[AArch64] Enable tree-stdarg pass for AArch64 by defining counter fields
[gcc.git] / gcc / ChangeLog
1 2016-05-27 Jiong Wang <jiong.wang@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4 va_list_gpr_counter_field and va_list_fpr_counter_field.
5
6 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
7
8 PR67609
9 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
10 * config/aarch64/aarch64.c
11 (aarch64_cannot_change_mode_class): Remove function.
12 * config/aarch64/aarch64-protos.h
13 (aarch64_cannot_change_mode_class): Remove.
14
15 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16
17 * cfgloop.c (record_niter_bound): Record likely upper bounds.
18 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
19 get_likely_max_loop_iterations_int): New.
20 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21 any_likely_upper_bound.
22 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
23 Declare.
24 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
25 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
26 upper bound.
27 (unroll_loop_constant_iterations): Likewise.
28 (unroll_loop_runtime_iterations): Likewise.
29 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
30 * lto-streamer-out.c (output_cfg): Likewise.
31 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
32 bounds.
33 (canonicalize_loop_induction_variables): Dump likely upper bounds.
34 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
35 (likely_max_loop_iterations): New.
36 (likely_max_loop_iterations_int): New.
37 (likely_max_stmt_executions): New.
38 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
39 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
40 likely_max_stmt_executions): Declare.
41
42 2016-05-27 Marek Polacek <polacek@redhat.com>
43
44 PR middle-end/71308
45 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
46
47 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
48
49 * config/s390/s390.md (2x risbg splitters): Use
50 reg_overlap_mentioned_p instead of rtx_equal_p.
51
52 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
53
54 * combine.c (make_compound_operation): Take known zero bits into
55 account when checking for possible zero_extend.
56
57 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
58
59 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
60 Use const_int_operand for operand 2 predicate. Simplify expand code
61 as a result.
62
63 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
64
65 PR middle-end/71279
66 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
67 into comparison.
68
69 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
70
71 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
72 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
73 that returns CC_SESWPmode and CC_ZESWPmode.
74 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
75 and CC_SESWPmode.
76 (aarch64_rtx_costs): Likewise.
77
78 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
79
80 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
81 for ISA 3.0 min/max support.
82 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
83 conditional move support.
84 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
85 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
86 available.
87 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
88 conditional moves where the comparison type is different from move
89 type.
90 (fp_minmax): New code iterator for smin/smax.
91 (minmax): New code attributes for min/max.
92 (SMINMAX): Likewise.
93 (smax<mode>3): Combine min, max insns into one insn using the
94 fp_minmax code iterator. Add support for ISA 3.0 min/max
95 instructions that don't need -ffast-math.
96 (s<minmax><mode>3): Likewise.
97 (smax<mode>3_vsx): Likewise.
98 (smin<mode>3): Likewise.
99 (s<minmax><mode>3_vsx): Likewise.
100 (smin<mode>3_vsx): Likewise.
101 (pre-VSX min/max splitters): Likewise.
102 (s<minmax><mode>3_fpr): Likewise.
103 (movsfcc): Rewrite floating point conditional moves to combine
104 SFmode/DFmode into a single insn.
105 (mov<mode>cc): Likewise.
106 (movdfcc): Likewise.
107 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
108 SFDF2 iterators to handle all combinations.
109 (fseldfsf4): Likewise.
110 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
111 (fseldfdf4): Likewise.
112 (fselsfdf4): Likewise.
113 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
114 comparison instructions that set a 0/-1 mask, and use it for
115 floating point conditional move via XXSEL.
116 (fpmask<mode>): Likewise.
117 (xxsel<mode>): Likewise.
118 * config/rs6000/predicates.md (min_max_operator): Delete, no
119 longer used.
120 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
121 instructions that generate a 0/-1 mask for use with XXSEL.
122 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
123 say whether floating point min/max is available, either through
124 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
125 (TARGET_MINMAX_DF): Likewise.
126
127 2016-05-27 Alan Modra <amodra@gmail.com>
128
129 PR rtl-optimization/71275
130 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
131 for update_equiv_regs and combine_and_move_insns.
132
133 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
134
135 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
136 if_then_else or cond RTXes to calculate attribute value.
137 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
138 <attr "length_immediate>: Ditto.
139 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
140 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
141 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
142 <attr "type">: Ditto.
143 <attr "prefix_data16">: Ditto.
144 <attr "prefix_extra">: Ditto.
145 <attr "length_immediate">: Ditto.
146 <attr "prefix">: Ditto.
147 (vec_set<mode>_0) <attr "isa">: Ditto.
148 <attr "prefix_extra">: Ditto.
149 <attr "length_immediate">: Ditto.
150 <attr "prefix">: Ditto.
151 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
152 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
153 (sse2_storelpd) <attr "prefix_data16">: Ditto.
154 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
155 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
156 <attr "length_immediate">: Ditto.
157 <attr "prefix">: Ditto.
158 (sse2_movsd) <attr "length_immediate">: Ditto.
159 <attr "prefix">: Ditto.
160 (vec_concatv2df) <attr "isa">: Ditto.
161 <attr "prefix">: Ditto.
162 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
163 (*vec_extractv2di_1) <attr "isa">: Ditto.
164 <attr "type">: Ditto.
165 <attr "length_immediate">: Ditto.
166 <attr "prefix_rex">: Ditto.
167 <attr "prefix_extra">: Ditto.
168 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
169 <attr "prefix_extra">: Ditto.
170 <attr "length_immediate">: Ditto.
171 (vec_concatv2di) <attr "isa">: Ditto.
172 <attr "prefix_extra">: Ditto.
173 <attr "length_immediate">: Ditto.
174 <attr "prefix">: Ditto.
175
176 2016-05-26 Martin Liska <mliska@suse.cz>
177
178 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
179 function.
180 (operator+): Likewise.
181 (operator-): Likewise.
182 (comp_cost::operator+=): Likewise.
183 (comp_cost::operator-=): Likewise.
184 (comp_cost::operator/=): Likewise.
185 (comp_cost::operator*=): Likewise.
186 (operator<): Likewise.
187 (operator==): Likewise.
188 (operator<=): Likewise.
189 (new_cost): Remove.
190 (infinite_cost_p): Likewise.
191 (add_costs): Likewise.
192 (sub_costs): Likewise.
193 (compare_costs): Likewise.
194 (set_group_iv_cost): Use the newly introduced functions.
195 (get_address_cost): Likewise.
196 (get_shiftadd_cost): Likewise.
197 (force_expr_to_var_cost): Likewise.
198 (split_address_cost): Likewise.
199 (ptr_difference_cost): Likewise.
200 (difference_cost): Likewise.
201 (get_computation_cost_at): Likewise.
202 (determine_group_iv_cost_generic): Likewise.
203 (determine_group_iv_cost_address): Likewise.
204 (determine_group_iv_cost_cond): Likewise.
205 (autoinc_possible_for_pair): Likewise.
206 (determine_group_iv_costs): Likewise.
207 (cheaper_cost_pair): Likewise.
208 (iv_ca_recount_cost): Likewise.
209 (iv_ca_set_no_cp): Likewise.
210 (iv_ca_set_cp): Likewise.
211 (iv_ca_cost): Likewise.
212 (iv_ca_new): Likewise.
213 (iv_ca_dump): Likewise.
214 (iv_ca_narrow): Likewise.
215 (iv_ca_prune): Likewise.
216 (iv_ca_replace): Likewise.
217 (try_add_cand_for): Likewise.
218 (try_improve_iv_set): Likewise.
219 (find_optimal_iv_set): Likewise.
220
221 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
222
223 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
224 that internal functions will clobber all caller-saved registers.
225
226 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
227
228 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
229 Return a better case_values_threshold when optimizing.
230
231 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
232
233 * config/aarch64/aarch64-simd.md (aarch64_combinez):
234 Add ? to integer variant.
235 (aarch64_combinez_be): Likewise.
236
237 2016-05-26 Jakub Jelinek <jakub@redhat.com>
238
239 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
240 instead of x constraint.
241 (vcvtps2ph256<mask_name>): Likewise.
242
243 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
244 alternative. Formatting fix.
245
246 * config/i386/sse.md
247 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
248 to ...
249 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
250 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
251 maybe_evex prefix instead of vex.
252 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
253 EXT_REX_SSE_REG_P (op0) case in the splitter.
254
255 2016-05-25 Jeff Law <law@redhat.com>
256
257 PR tree-optimization/71272
258 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
259 Update comments. Add test for empty path.
260
261 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
262
263 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
264 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
265 special case builtin.
266 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
267 code for ALTIVEC_BUILTIN_VEC_CMPNE.
268 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
269 for __builtin_vec_cmpne.
270
271 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
272
273 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
274 redundant test and bail out if the type of the new operand is not
275 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
276
277 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
278
279 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
280 (x_ix86_target_flags_explicit): Remove.
281 * config/i386/i386.c (ix86_function_specific_save): Do not copy
282 x_ix86_target_flags_explicit.
283 (ix86_function_specific_restore): Ditto.
284
285 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
286 H.J. Lu <hongjiu.lu@intel.com>
287
288 PR target/70738
289 * common/config/i386/i386-common.c
290 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
291 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
292 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
293 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
294 (-mgeneral-regs-only): Add new option.
295 * config/i386/i386.c (ix86_option_override_internal): Don't enable
296 x87 instructions if only general registers are allowed.
297 (ix86_target_string): Add ix86_flags argument. Handle additional
298 flags options through ix86_flags argument. Update all callers.
299 * doc/invoke.texi: Document -mgeneral-regs-only.
300
301 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
302
303 PR rtl-optimization/66940
304 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
305 decrementing desired_val will not overflow before performing these
306 operations.
307
308 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
309
310 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
311 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
312 * config/i386/i386.c (enum ix86_builtins): Add
313 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
314 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
315 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
316 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
317 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
318 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
319 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
320 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
321 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
322 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
323 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
324 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
325 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
326 __builtin_ia32_cvtps2dq512_mask.
327 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
328 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
329 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
330 * config/i386/sse.md
331 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
332 Rename to ...
333 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
334 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
335 to ...
336 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
337 (avx512f_vec_pack_sfix_v8df): New define_expand.
338 (avx512f_roundpd512): Rename to ...
339 (avx512f_round<castmode>512): ... this. Change iterator.
340 (avx512f_roundps512_sfix): New define_expand.
341 (round<mode>2_sfix): Change iterator.
342
343 2016-05-25 Nick Clifton <nickc@redhat.com>
344
345 * config/msp430/msp430.c (msp430_attr): Produce an error if a
346 static interrupt handler is detected.
347 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
348 default linker script.
349 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
350 the low part of a symbolic pointer.
351
352 2016-05-25 Richard Biener <rguenther@suse.de>
353
354 PR tree-optimization/71261
355 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
356 interesting stmt instead of immediate uses when looking
357 for the use operand to replace.
358
359 2016-05-25 Martin Liska <mliska@suse.cz>
360
361 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
362
363 2016-05-25 Richard Biener <rguenther@suse.de>
364
365 PR tree-optimization/71264
366 * tree-vect-stmts.c (vect_init_vector): Properly deal with
367 vector type val.
368
369 2016-05-25 Martin Liska <mliska@suse.cz>
370
371 PR tree-optimization/71239
372 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
373 if DECL_SIZE is NULL.
374
375 2016-05-25 Richard Biener <rguenther@suse.de>
376
377 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
378 * tree-if-conv.c (pass_data_if_conversion): Use it.
379
380 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
381
382 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
383 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
384 * varpool.c (varpool_node::get_availability): Likewise.
385
386 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
387
388 * config/rs6000/altivec.md (VNEG iterator): New iterator for
389 VNEGW/VNEGD instructions.
390 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
391 (neg<mode>2): Add expander for V2DImode added in ISA 2.06, and
392 support for ISA 3.0 VNEGW/VNEGD instructions.
393
394 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
395
396 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
397 pointers inside OACC_DATA regions.
398 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
399 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
400 (gimplify_adjust_omp_clauses): Fix typo in comment.
401
402 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
403
404 * config/rs6000/altivec.md (VParity): New mode iterator for vector
405 parity built-in functions.
406 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
407 zeros.
408 (p9v_parity<mode>2): Likewise.
409 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
410 parity.
411 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
412 (parity<mode>2): ISA 3.0 expander for vector parity.
413 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
414 power9 built-ins.
415 (BU_P9_64BIT_MISC_0): Likewise.
416 (BU_P9_MISC_0): Likewise.
417 (BU_P9V_AV_1): Likewise.
418 (BU_P9V_AV_2): Likewise.
419 (BU_P9V_AV_3): Likewise.
420 (BU_P9V_AV_P): Likewise.
421 (BU_P9V_VSX_1): Likewise.
422 (BU_P9V_OVERLOAD_1): Likewise.
423 (BU_P9V_OVERLOAD_2): Likewise.
424 (BU_P9V_OVERLOAD_3): Likewise.
425 (VCTZB): Add vector count trailing zeros support.
426 (VCTZH): Likewise.
427 (VCTZW): Likewise.
428 (VCTZD): Likewise.
429 (VPRTYBD): Add vector parity support.
430 (VPRTYBQ): Likewise.
431 (VPRTYBW): Likewise.
432 (VCTZ): Add overloaded vector count trailing zeros support.
433 (VPRTYB): Add overloaded vector parity support.
434 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
435 overloaded vector count trailing zeros and parity instructions.
436 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
437 vector parity support.
438 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
439 trailing zeros support.
440 (vec_cntlz): Likewise.
441 (vec_vctzb): Likewise.
442 (vec_vctzd): Likewise.
443 (vec_vctzh): Likewise.
444 (vec_vctzw): Likewise.
445 (vec_vprtyb): Add ISA 3.0 vector parity support.
446 (vec_vprtybd): Likewise.
447 (vec_vprtybw): Likewise.
448 (vec_vprtybq): Likewise.
449 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
450 the ISA 3.0 vector count trailing zeros and vector parity built-in
451 functions.
452
453 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
454
455 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
456 when there is stmt_to_insert.
457
458 2016-05-24 Martin Sebor <msebor@redhat.com>
459
460 PR c++/71147
461 * gcc/tree.h (complete_or_array_type_p): New inline function.
462
463 2016-05-24 Jakub Jelinek <jakub@redhat.com>
464
465 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
466 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
467 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
468
469 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
470 Limit 1st alternative to noavx isa, split 2nd alternative into one
471 noavx and one avx alternative, use *x and Bm in the former and
472 x and m in the latter.
473
474 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
475 of sse4 for the first alternative, drop %v from the template
476 and d operand modifier. Split second alternative into one sse4_noavx
477 and one avx alternative, use *x instead of *v in the former and v
478 instead of *v in the latter.
479 (*sse4_1_extractps): Use noavx isa instead of * for the first
480 alternative, drop %v from the template. Split second alternative into
481 one noavx and one avx alternative, use *x instead of *v in the
482 former and v instead of *v in the latter.
483 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
484 with noavx and the last one with avx.
485 (sse4_1_phminposuw): Guard first alternative with noavx isa,
486 split the second one into one noavx and one avx alternative,
487 use *x and Bm in the former and x and m in the latter one.
488 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
489 alternatives.
490
491 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
492 first two alternatives to noavx, use *x instead of *v in the second
493 one, add avx alternative without *.
494 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
495 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
496 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
497
498 2016-05-24 Jeff Law <law@redhat.com>
499
500 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
501 New function, extracted from...
502 (fsm_find_control_statement_thread_paths): Here. Use the new function.
503 Allow simple copies and constant initializations in the SSA chain.
504
505 2016-05-24 Marek Polacek <polacek@redhat.com>
506
507 PR c/71249
508 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
509 scope.
510
511 2016-05-24 Jakub Jelinek <jakub@redhat.com>
512
513 PR c++/71257
514 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
515 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
516 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
517 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
518 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
519
520 2016-05-24 Richard Biener <rguenther@suse.de>
521
522 PR tree-optimization/71240
523 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
524 has integral type.
525
526 2016-05-24 Richard Biener <rguenther@suse.de>
527
528 PR tree-optimization/71230
529 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
530
531 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
532
533 * tree-vectorizer.h (vectorizable_comparison): Delete.
534 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
535 PURE_SLP_STMT check.
536 * tree-vect-stmts.c (vectorizable_call): Likewise.
537 (vectorizable_simd_clone_call): Likewise.
538 (vectorizable_conversion): Likewise.
539 (vectorizable_assignment): Likewise.
540 (vectorizable_shift): Likewise.
541 (vectorizable_operation): Likewise.
542 (vectorizable_load): Likewise.
543 (vectorizable_condition): Likewise.
544 (vectorizable_store): Likewise. Assert that we don't have
545 hybrid SLP.
546 (vectorizable_comparison): Make static. Remove redundant
547 PURE_SLP_STMT check.
548 (vect_transform_stmt): Assert that we always have an slp_node
549 if PURE_SLP_STMT.
550
551 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
552
553 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
554 operands[2] against 1 with comparison against CONST1_RTX.
555 (<shift>di3_neon): Likewise.
556 * config/arm/predicates.md (const0_operand): Replace with comparison
557 against CONST0_RTX.
558
559 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
560
561 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
562 operands[2] against 1 with comparison against CONST1_RTX.
563 (ashrdi3): Likewise.
564 (lshrdi3): Likewise.
565 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
566 UINTVAL.
567 (ashrsi3): Likewise.
568 (lshrsi3): Likewise.
569 (rotrsi3): Likewise.
570 (define_split above *compareqi_eq0): Likewise.
571 (define_split above "prologue"): Likewise.
572 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
573 * config/arm/predicates.md (shift_operator): Likewise.
574 (shift_nomul_operator): Likewise.
575 (sat_shift_operator): Likewise.
576 (thumb1_cmp_operand): Likewise.
577 (const_neon_scalar_shift_amount_operand): Replace manual range
578 check with IN_RANGE.
579 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
580 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
581
582 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583
584 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
585 with HOST_WIDE_INT_1.
586 (insv): Likewise.
587 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
588 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
589 (arm_canonicalize_comparison): Likewise.
590 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
591 HOST_WIDE_INT_1.
592 (thumb1_size_rtx_costs): Likewise.
593 (vfp_const_double_index): Replace cast of 1 to unsigned
594 HOST_WIDE_INT with HOST_WIDE_INT_1U.
595 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
596 HOST_WIDE_INT_1.
597 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
598 HOST_WIDE_INT with HOST_WIDE_INT_1U.
599 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
600 HOST_WIDE_INT with HOST_WIDE_INT_1.
601
602 2016-05-24 Marek Polacek <polacek@redhat.com>
603
604 * tree-cfg.h (should_remove_lhs_p): New predicate.
605 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
606 * gimplify.c (gimplify_modify_expr): Likewise.
607 * tree-cfg.c (verify_gimple_call): Likewise.
608 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
609 * gimple-fold.c: Include "tree-cfg.h".
610 (gimple_fold_call): Use should_remove_lhs_p.
611
612 2016-05-24 Richard Biener <rguenther@suse.de>
613
614 PR tree-optimization/71253
615 * cfganal.h (control_dependences): Make robust against edge
616 and BB removal.
617 (control_dependences::control_dependences): Remove edge_list argument.
618 (control_dependences::get_edge): Remove.
619 (control_dependences::get_edge_src): Add.
620 (control_dependences::get_edge_dest): Likewise.
621 (control_dependences::m_el): Make a vector of edge src/dest index.
622 * cfganal.c (control_dependences::find_control_dependence): Adjust.
623 (control_dependences::control_dependences): Likewise.
624 (control_dependences::~control_dependence): Likewise.
625 (control_dependences::get_edge): Remove.
626 (control_dependences::get_edge_src): Add.
627 (control_dependences::get_edge_dest): Likewise.
628 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
629 get_edge_src.
630 (perform_tree_ssa_dce): Adjust.
631 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
632 get_edge_src.
633 (pass_loop_distribution::execute): Adjust. Do loop destroying
634 conditional on changed.
635
636 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
637
638 PR target/69857
639 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
640 return. Reindent transformation comment and mention the ARM state
641 behavior.
642
643 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
644
645 PR middle-end/71252
646 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
647 after build_and_add_sum creates new use stmt.
648
649 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
650
651 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
652 load_lanes/grouped_load classification comes first. Don't check
653 whether the vectorization factor is a multiple of the group size
654 for load_lanes.
655
656 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
657
658 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
659 GROUP_GAP for single-element interleaving.
660 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
661 variable.
662
663 2016-05-24 Richard Biener <rguenther@suse.de>
664
665 PR middle-end/70434
666 PR c/69504
667 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
668 bases which are accessed with non-invariant indices.
669 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
670 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
671
672 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
673
674 PR middle-end/71170
675 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
676 (add_to_ops_vec): Add stmt_to_insert.
677 (add_repeat_to_ops_vec): Init stmt_to_insert.
678 (insert_stmt_before_use): New.
679 (transform_add_to_multiply): Remove mult_stmt insertion and add it
680 to ops vector.
681 (get_ops): Init stmt_to_insert.
682 (maybe_optimize_range_tests): Likewise.
683 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
684 (rewrite_expr_tree_parallel): Likewise.
685 (reassociate_bb): Likewise.
686
687 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
688
689 PR target/71201
690 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
691 ISA 3.0 xxperm fusion alternative.
692 (altivec_vperm_v8hiv16qi): Likewise.
693 (altivec_vperm_<mode>_uns_internal): Likewise.
694 (vperm_v8hiv4si): Likewise.
695 (vperm_v16qiv8hi): Likewise.
696
697 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
698 Kelvin Nilsen <kelvin@gcc.gnu.org>
699
700 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
701 vpermr/xxpermr on ISA 3.0.
702 (altivec_expand_vec_perm_le): Likewise.
703 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
704 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
705 ISA 3.0.
706
707 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
708
709 * config/i386/i386.h (IS_STACK_MODE): Enable for
710 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
711 SSE_FLOAT_MODE_P macros.
712 * config/i386/i386.c (ix86_preferred_reload_class): Use
713 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
714 Cleanup regclass processing for CONST_DOUBLE_P.
715 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
716 (ix86_rtx_costs): Remove redundant TARGET_80387 check
717 with IS_STACK_MODE macro.
718 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
719 with TARGET_SSE2.
720 (*movdf_internal): Use IS_STACK_MODE macro.
721 (*movsf_internal): Ditto.
722
723 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
724
725 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
726 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
727
728 2016-05-23 Jeff Law <law@redhat.com>
729
730 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
731 extracted from ...
732 (fsm_find_control_statement_thread_paths): Call it.
733
734 2016-05-23 Martin Jambor <mjambor@suse.cz>
735
736 PR ipa/71234
737 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
738 from_global_constant if t is not NULL.
739
740 2016-05-23 Marek Polacek <polacek@redhat.com>
741
742 PR c/49859
743 * common.opt (Wswitch-unreachable): New option.
744 * doc/invoke.texi: Document -Wswitch-unreachable.
745 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
746 warning.
747
748 2016-05-23 Bin Cheng <bin.cheng@arm.com>
749
750 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
751 TMR_INDEX is non-NULL.
752
753 2016-05-23 Richard Biener <rguenther@suse.de>
754
755 PR tree-optimization/71230
756 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
757 (try_special_add_to_ops): ... here. Always test for single-use.
758
759 2016-05-23 Martin Jambor <mjambor@suse.cz>
760
761 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
762 default block if a PHI node in the original one would be resized.
763
764 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
765
766 PR tree-optimization/58135
767 * tree-vect-slp.c: When group size is not multiple
768 of vector size, allow splitting of store group at
769 vector boundary.
770
771 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
772
773 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
774
775 2016-05-22 Jakub Jelinek <jakub@redhat.com>
776
777 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
778 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
779 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
780 of 64x2.
781
782 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
783 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
784 v constraint instead of x and vinserti32x4 insn.
785
786 * config/i386/sse.md (i128vldq): New mode iterator.
787 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
788 avx512dq and avx512vl alternatives.
789
790 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
791 constraint, use maybe_evex prefix instead of vex.
792 (vec_dupv4sf): Use v constraint instead of x for output
793 operand except for noavx alternative, use Yv constraint
794 instead of x for input. Use maybe_evex prefix instead of vex.
795 (*vec_dupv4si): Likewise.
796 (*vec_dupv2di): Likewise.
797
798 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
799
800 PR middle-end/40921
801 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
802 (linearize_expr_tree): Call try_special_add_to_ops.
803 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
804
805 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
806
807 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
808 to computed stack_usage.
809
810 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
811
812 PR target/71103
813 * config/avr/avr.md (define_expand "mov<mode>"): If the source
814 operand is subreg (symbol_ref) then move the symbol ref to register.
815
816 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
817
818 * tree.c (array_at_struct_end_p): Look through MEM_REF.
819
820 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
821
822 PR middle-end/71179
823 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
824 VECTOR type.
825
826 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
827
828 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
829 ranges by calling get_single_symbol and tidy up. Look more closely
830 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
831
832 2016-05-20 Jeff Law <law@redhat.com>
833
834 * bitmap.c (bitmap_find_bit): Remove useless test.
835
836 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
837
838 * function.c (thread_prologue_and_epilogue_insns): Commit the
839 insertion of the epilogue.
840
841 2016-05-20 Martin Jambor <mjambor@suse.cz>
842
843 PR tree-optimization/70884
844 * tree-sra.c (initialize_constant_pool_replacements): Do not check
845 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
846 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
847 of constant pool data as a reason for scalarization.
848
849 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
850
851 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
852 for naked functions.
853 (thumb1_expand_prologue): Likewise.
854
855 2016-05-20 Nathan Sidwell <nathan@acm.org>
856
857 * config/nvptx/nptx.c (nvptx_option_override): Only set
858 flag_toplevel_reorder, if not explicitly specified. Set
859 flag_no_common, unless explicitly specified.
860
861 2016-05-20 David Malcolm <dmalcolm@redhat.com>
862
863 * calls.c (can_implement_as_sibling_call_p): Mark param
864 reg_parm_stack_space with ATTRIBUTE_UNUSED.
865
866 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
867
868 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
869 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
870 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
871 constants.
872 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
873 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
874 and CASE_CONST_ANY.
875
876 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
877
878 * config/nvptx/nvptx.md (sincossf3): New pattern.
879
880 2016-05-20 David Malcolm <dmalcolm@redhat.com>
881
882 * calls.c (maybe_complain_about_tail_call): New function.
883 (initialize_argument_information): Call
884 maybe_complain_about_tail_call when clearing *may_tailcall.
885 (can_implement_as_sibling_call_p): Call
886 maybe_complain_about_tail_call when returning false.
887 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
888 ensure try_tail_call is set. Call maybe_complain_about_tail_call
889 if tail-call optimization fails.
890 * cfgexpand.c (expand_call_stmt): Initialize
891 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
892 * gimple-pretty-print.c (dump_gimple_call): Dump
893 gimple_call_must_tail_p.
894 * gimple.c (gimple_build_call_from_tree): Call
895 gimple_call_set_must_tail with the value of
896 CALL_EXPR_MUST_TAIL_CALL.
897 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
898 (gimple_call_set_must_tail): New function.
899 (gimple_call_must_tail_p): New function.
900 * print-tree.c (print_node): Update printing of TREE_STATIC
901 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
902 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
903 trailing comment listing applicable flags.
904 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
905
906 2016-05-20 David Malcolm <dmalcolm@redhat.com>
907
908 * calls.c (expand_call): Move "Rest of purposes for tail call
909 optimizations to fail" to...
910 (can_implement_as_sibling_call_p): ...this new function, and
911 split into multiple "if" statements.
912
913 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
914
915 * cfgloop.h (expected_loop_iterations_unbounded,
916 expected_loop_iterations): Unconstify.
917 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
918 profile with known upper bound; return 3 when profile is absent.
919 (expected_loop_iterations): Update.
920
921 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
922
923 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
924 and get_max_loop_iterations_int.
925
926 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
927
928 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
929 realistic upper bounds here.
930
931 2016-05-20 Jakub Jelinek <jakub@redhat.com>
932
933 PR c++/71210
934 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
935 calls if the LHS is variable length or has addressable type.
936 If targets[0]->decl is a noreturn call with void return type and
937 zero arguments, adjust fntype and remove lhs in that case.
938
939 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
940
941 PR tree-optimization/71079
942 PR tree-optimization/71206
943 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
944
945 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
946
947 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
948 (get_vec_alignment_for_array_decl): Likewise.
949 (get_vec_alignment_for_record_decl): Likewise.
950 (increase_alignment::execute): Move code to find alignment to
951 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
952 (type_align_map): New hash_map.
953
954 2016-05-20 Richard Guenther <rguenther@suse.de>
955
956 PR tree-optimization/29756
957 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
958 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
959 * fold-const.c (operand_equal_p): Likewise.
960 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
961 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
962 * tree-inline.c (estimate_operator_cost): Likewise.
963 * tree-pretty-print.c (dump_generic_node): Likewise.
964 * tree-ssa-operands.c (get_expr_operands): Likewise.
965 * cfgexpand.c (expand_debug_expr): Likewise.
966 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
967 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
968 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
969 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
970 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
971 (execute_update_addresses_taken): Do it.
972
973 2016-05-20 Richard Biener <rguenther@suse.de>
974
975 PR tree-optimization/71185
976 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
977 register operations.
978
979 2016-05-20 Richard Biener <rguenther@suse.de>
980
981 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
982 gimple_seq_add_seq_without_update.
983 (release_bb_predicate): Assert we have no operands to free.
984 (if_convertible_loop_p_1): Calculate post dominators later.
985 Do not free BB predicates here.
986 (combine_blocks): Do not recompute BB predicates.
987 (version_loop_for_if_conversion): Save BB predicates around
988 loop versioning.
989
990 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
991
992 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
993 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
994 code. Ignore sibcalls on EDGE_IGNORE edges.
995 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
996 on edges for sibcalls that run without prologue. The rest of the
997 function is combined from...
998 (fix_fake_fallthrough_edge): ... this, and ...
999 (try_shrink_wrapping): ... a part of this. Remove the bb_with
1000 function argument, make it a local variable.
1001
1002 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
1003
1004 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
1005 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
1006 for 32-bit mode and SEH for 64-bit.
1007 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
1008 TARGET_64BIT_DEFAULT.
1009
1010 2016-05-19 Ryan Burn <contact@rnburn.com>
1011
1012 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
1013 * gengtype.c (open_base_files): Add cilk.h to ifiles.
1014
1015 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
1016
1017 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
1018 force pending loads from memory.
1019
1020 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
1021
1022 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
1023 (UNSPEC_DARN_32): New unspec constant.
1024 (UNSPEC_DARN_RAW): New unspec constant.
1025 (darn_32): New instruction.
1026 (darn_raw): New instruction.
1027 (darn): New instruction.
1028 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
1029 support and documentation for this macro.
1030 (BU_P9_MISC_1): New macro definition.
1031 (BU_P9_64BIT_MISC_0): New macro definition.
1032 (BU_P9_MISC_0): New macro definition.
1033 (darn_32): New builtin definition.
1034 (darn_raw): New builtin definition.
1035 (darn): New builtin definition.
1036 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
1037 RS6000_BUILTIN_0 directives to surround each occurrence of
1038 #include "rs6000-builtin.def".
1039 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
1040 RS6000_BTM_64BIT flags to the returned mask, depending on
1041 configuration.
1042 (def_builtin): Correct an error in the assignments made to the
1043 debugging variable attr_string.
1044 (rs6000_expand_builtin): Add support for no-operand built-in
1045 functions.
1046 (builtin_function_type): Remove fatal_error assertion that is no
1047 longer valid.
1048 (rs6000_common_init_builtins): Add support for no-operand built-in
1049 functions.
1050 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
1051 definition.
1052 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
1053 definition.
1054 (RS6000_BTM_64BIT): New macro definition.
1055 * doc/extend.texi: Document __builtin_darn (void),
1056 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
1057 functions.
1058
1059 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
1060
1061 * tree-vect-loop.c (vect_analyze_loop_2): Use also
1062 max_loop_iterations_int.
1063
1064 2016-05-19 Marek Polacek <polacek@redhat.com>
1065
1066 PR tree-optimization/71031
1067 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
1068 condition and adjust the code a bit.
1069
1070 2016-05-19 Martin Liska <mliska@suse.cz>
1071
1072 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
1073 auto_vec instead of vec.
1074
1075 2016-05-19 Martin Liska <mliska@suse.cz>
1076
1077 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
1078
1079 2016-05-19 Martin Liska <mliska@suse.cz>
1080
1081 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
1082
1083 2016-05-19 Martin Liska <mliska@suse.cz>
1084
1085 * ipa-pure-const.c (set_function_state): Remove an existing
1086 funct_state.
1087 (remove_node_data): Do not free it as it's released
1088 in set_function_state.
1089
1090 2016-05-19 Martin Liska <mliska@suse.cz>
1091
1092 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
1093 bitmap.
1094
1095 2016-05-19 Martin Liska <mliska@suse.cz>
1096
1097 * omp-simd-clone.c (simd_clone_adjust): Release vector.
1098
1099 2016-05-19 Martin Liska <mliska@suse.cz>
1100
1101 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
1102 an auto_vec instead of re-creating it.
1103
1104 2016-05-19 Martin Liska <mliska@suse.cz>
1105
1106 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
1107 auto_vec instead of vec.
1108
1109 2016-05-19 Martin Liska <mliska@suse.cz>
1110
1111 * lto-section-in.c (lto_get_section_data): Call
1112 lto_check_version with additional argument.
1113 * lto-streamer.c (lto_check_version): Add new argument.
1114 * lto-streamer.h (lto_check_version): Likewise.
1115
1116 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1117
1118 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
1119 Don't add cost of inner memory when handling sign-extended loads.
1120
1121 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
1122
1123 PR rtl-optimization/71148
1124 * cse.c (cse_main): Free dominance info.
1125 (rest_of_handle_cse): Don't free dominance info.
1126 (rest_of_handle_cse2): Likewise.
1127 (rest_of_handle_cse_after_global_opts): Likewise.
1128
1129 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1130
1131 PR target/71056
1132 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
1133 NULL_TREE early if NEON is not available. Remove now redundant check
1134 in ARM_CHECK_BUILTIN_MODE.
1135
1136 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
1137
1138 PR sanitizer/64354
1139 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
1140 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
1141 * doc/cpp.texi: Document new macros.
1142
1143 2016-05-19 Bin Cheng <bin.cheng@arm.com>
1144
1145 PR tree-optimization/69848
1146 * tree-vect-loop.c (vectorizable_reduction): Don't factor
1147 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
1148
1149 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1150
1151 * function.c (thread_prologue_and_epilogue_insn): Move the
1152 "goto epilogue_done" one block later.
1153
1154 2016-05-19 Richard Biener <rguenther@suse.de>
1155
1156 PR tree-optimization/70729
1157 * passes.def: Move LIM pass before PRE. Remove no longer
1158 required copyprop and move first DCE out of the loop pipeline.
1159
1160 2016-05-18 David Malcolm <dmalcolm@redhat.com>
1161
1162 PR driver/69265
1163 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
1164 (OBJS-libcommon-target): ...here.
1165 * opts-common.c: Include spellcheck.h.
1166 (cmdline_handle_error): Build a vec of valid options and use it
1167 to suggest provide hints for misspelled arguments.
1168
1169 2016-05-18 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR c++/71100
1172 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
1173 lhs if it has TREE_ADDRESSABLE type.
1174
1175 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
1176
1177 PR target/71145
1178 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
1179 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
1180
1181 2016-05-18 Martin Jambor <mjambor@suse.cz>
1182
1183 PR ipa/69708
1184 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
1185 input for NOP_EXPR pass-through functions.
1186 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
1187 aggregate global constant VAR_DECLs in constant jump functions.
1188
1189 2016-05-18 Martin Jambor <mjambor@suse.cz>
1190
1191 PR ipa/69708
1192 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
1193 from TREE_READONLY parameters.
1194
1195 2016-05-18 Martin Jambor <mjambor@suse.cz>
1196
1197 PR ipa/69708
1198 * cgraph.h (cgraph_indirect_call_info): New field
1199 guaranteed_unmodified.
1200 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
1201 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1202 appropriate.
1203 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
1204 pass the parameter value to ipa_find_agg_cst_for_param.
1205 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
1206 guaranteed_unmodified, store AA results there instead of bailing out
1207 if present.
1208 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
1209 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
1210 (find_constructor_constant_at_offset): New function.
1211 (ipa_find_agg_cst_from_init): Likewise.
1212 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
1213 static initializers of contants, report back through a new paameter
1214 from_global_constant if that was the case.
1215 (try_make_edge_direct_simple_call): Also pass parameter value to
1216 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
1217 appropriate.
1218 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
1219 (ipa_read_indirect_edge_info): Likewise.
1220 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
1221 (ipa_load_from_parm_agg): Likewise.
1222
1223 2016-05-18 Jiong Wang <jiong.wang@arm.com>
1224
1225 PR rtl-optimization/71150
1226 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
1227 check.
1228
1229 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1230
1231 PR target/70915
1232 * config/rs6000/constraints.md (wE constraint): New constraint
1233 for a vector constant that can be loaded with XXSPLTIB.
1234 (wM constraint): New constraint for a vector constant of a 1's.
1235 (wS constraint): New constraint for a vector constant that can be
1236 loaded with XXSPLTIB and a vector sign extend instruction.
1237 * config/rs6000/predicates.md (xxspltib_constant_split): New
1238 predicates for wE/wS constraints.
1239 (xxspltib_constant_nosplit): Likewise.
1240 (easy_vector_constant): Add support for constants that can be
1241 loaded via XXSPLTIB.
1242 (all_ones_constant): New predicate for vector constant with all
1243 1's set.
1244 (splat_input_operand): Add support for ISA 3.0 word splat operations.
1245 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
1246 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
1247 instruction and possibly with a sign extension.
1248 (output_vec_const_move): Add support for XXSPLTIB. If we are
1249 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
1250 instead of XXLXOR/XXLORC.
1251 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
1252 operations.
1253 (rs6000_legitimize_reload_address): Likewise.
1254 (rs6000_output_move_128bit): Use output_vec_const_move to emit
1255 constants.
1256 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
1257 combine VSX_M and VSX_M2 into one iterator.
1258 (VSX_M2): Likewise.
1259 (VSINT_84): New iterators for loading constants with XXSPLTIB.
1260 (VSINT_842): Likewise.
1261 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
1262 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
1263 XXSPLTIB instruction.
1264 (xxspltib_<mode>_nosplit): Likewise.
1265 (xxspltib_<mode>_split): New insn to load up constants with
1266 XXSPLTIB and a sign extend instruction.
1267 (vsx_mov<mode>): Replace single move that handled all vector types
1268 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
1269 moves (when -mvsx-timode is in effect) into the main vector
1270 moves. Eliminate separate moves for <VSr> <VSa>, where the
1271 preferred register class (<VSr>) is listed first, and the
1272 secondary register class (<VSa>) is listed second with a '?' to
1273 discourage use. Prefer loading 0/-1 in any VSX register for ISA
1274 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
1275 that if the register was involved in a slow operation, the
1276 clear/set operation does not wait for the slow operation to
1277 finish. Adjust the length attributes for 32-bit mode. Use
1278 rs6000_output_move_128bit and drop the use of the string
1279 instructions for 32-bit movti when -mvsx-timode is in effect. Use
1280 spacing so that the alternatives and attributes don't generate
1281 long lines, and put things in columns, so that it is easier to
1282 match up the operands and attributes with the insn alternatives.
1283 (vsx_mov<mode>_64bit): Likewise.
1284 (vsx_mov<mode>_32bit): Likewise.
1285 (vsx_movti_64bit): Fold movti into normal vector moves.
1286 (vsx_movti_32bit): Likewise.
1287 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
1288 splat instructions.
1289 (vsx_splat_v4si_internal): Likewise.
1290 (vsx_splat_v4sf_internal): Likewise.
1291 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
1292 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
1293 extend vector elements.
1294 (vsx_sign_extend_hi_<mode>): Likewise.
1295 (vsx_sign_extend_si_v2di): Likewise.
1296 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
1297 declaration.
1298 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
1299 constraints. Add trailing period to wL documentation.
1300
1301 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
1302
1303 PR middle-end/71020
1304 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
1305 * tree-dfa.c (replace_abnormal_ssa_names): New function.
1306 * tree-call-cdce.c: Include tree-dfa.h.
1307 (can_guard_call_p): New function, extracted from...
1308 (can_use_internal_fn): ...here.
1309 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
1310 and return void.
1311 (shrink_wrap_one_built_in_call): Likewise.
1312 (use_internal_fn): Likewise.
1313 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
1314 and return void. Call replace_abnormal_ssa_names.
1315 (pass_call_cdce::execute): Check can_guard_call_p during the
1316 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
1317 will always change something.
1318
1319 2016-05-18 Martin Jambor <mjambor@suse.cz>
1320
1321 PR ipa/70646
1322 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
1323 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
1324
1325 2016-05-18 Martin Jambor <mjambor@suse.cz>
1326
1327 PR ipa/70646
1328 * ipa-inline.h (condition): New field size.
1329 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
1330 for comaprison and store it into the new condition.
1331 (evaluate_conditions_for_known_args): Use condition size to check
1332 access sizes for all but CHANGED conditions.
1333 (unmodified_parm_1): New parameter size_p, store access size into it.
1334 (unmodified_parm): Likewise.
1335 (unmodified_parm_or_parm_agg_item): Likewise.
1336 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
1337 (set_cond_stmt_execution_predicate): Extract access sizes and store
1338 them to conditions.
1339 (set_switch_stmt_execution_predicate): Likewise.
1340 (will_be_nonconstant_expr_predicate): Likewise.
1341 (will_be_nonconstant_predicate): Likewise.
1342 (inline_read_section): Stream condition size.
1343 (inline_write_summary): Likewise.
1344
1345 2016-05-18 Richard Biener <rguenther@suse.de>
1346
1347 * tree-ssa-loop-im.c (determine_max_movement): Properly add
1348 condition cost to PHI cost instead of total_cost.
1349
1350 2016-05-18 Martin Liska <mliska@suse.cz>
1351
1352 PR fortran/70856
1353 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
1354 merged variables.
1355
1356 2016-05-18 Richard Biener <rguenther@suse.de>
1357
1358 * lto-streamer.h (LTO_major_version): Bump to 6.
1359
1360 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
1361
1362 * function.c (make_split_prologue_seq, make_prologue_seq,
1363 make_epilogue_seq): New functions, factored out from...
1364 (thread_prologue_and_epilogue_insns): Here.
1365
1366 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
1367
1368 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1369 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
1370 of before. Add a comment.
1371
1372 2016-05-18 Bin Cheng <bin.cheng@arm.com>
1373
1374 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
1375 expression pointer, not pointer to the pointer.
1376
1377 2016-05-18 Jakub Jelinek <jakub@redhat.com>
1378
1379 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
1380 (avx2_pbroadcast<mode>): Add another alternative with v instead
1381 of x constraints in it, using <pbroadcast_evex_isa> isa.
1382 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
1383
1384 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
1385 constraint x instead of v in second alternative, add avx512bw
1386 alternative.
1387
1388 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
1389 constraint x instead of v in second alternative, add avx512bw
1390 alternative.
1391
1392 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
1393 constraint x instead of v in second alternative, add avx512bw
1394 alternative.
1395
1396 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
1397 avx512bw alternative.
1398
1399 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
1400
1401 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
1402 array to 128 chars.
1403 (define_insn "*andnottf3"): Ditto.
1404 (define_insn "*<code><mode>3"/any_logic): Ditto.
1405 (define_insn "*<code>tf3"/any_logic): Ditto.
1406 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
1407 operand to block AVX-512VL insn variant emit when it is not enabled.
1408
1409 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
1410
1411 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
1412 constraint fot SF mode.
1413
1414 2016-05-18 Petr Murzin <petr.murzin@intel.com>
1415 Kirill Yukhin <kirill.yukhin@intel.com>
1416
1417 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
1418 modifiers.
1419 (define_insn "rsqrt14<mode>"): Ditto.
1420 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1421 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1422 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
1423 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1424 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
1425 Ditto.
1426 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
1427 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
1428 * config/i386/i386.c (ix86_print_operand): Expand check for size
1429 override codes for Intel syntax.
1430
1431 2016-05-18 Richard Biener <rguenther@suse.de>
1432
1433 PR tree-optimization/71168
1434 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
1435 initialization earlier.
1436
1437 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
1438
1439 * config/aarch64/aarch64-simd.md
1440 (aarch64_reduc_plus_internal<mode>): Rename to...
1441 (reduc_plus_scal): ...This, and remove previous implementation.
1442
1443 2016-05-18 Richard Biener <rguenther@suse.de>
1444
1445 * passes.def: Put late dse and cd_dce in canonical order.
1446
1447 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
1448
1449 * ipa-inline-transform.c (preserve_function_body_p): Look for
1450 first non-thunk clone.
1451 (save_function_body): Save into first non-thunk.
1452 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
1453 up call stmt id.
1454 (lto_output_node): Inline thunks don't need body in every
1455 partition.
1456 * lto-streamer-in.c: Do not fixup thunk clones.
1457 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
1458 thunks.
1459 * tree-inline.c (copy_bb): Be prepared for target node to be new after
1460 folding suceeds.
1461
1462 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1463
1464 PR middle-end/63586
1465 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
1466 (reassociate_bb): Call transform_add_to_multiply.
1467
1468 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1469
1470 * config/aarch64/aarch64.c (all_extensions): Removed unused
1471 static variable.
1472
1473 2016-05-17 Nathan Sidwell <nathan@acm.org>
1474
1475 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
1476 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
1477
1478 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
1479
1480 PR tree-optimization/54579
1481 PR middle-end/55299
1482 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
1483
1484 2016-05-17 Marek Polacek <polacek@redhat.com>
1485
1486 PR ipa/71146
1487 * tree-inline.c (expand_call_inline): Call
1488 maybe_remove_unused_call_args.
1489
1490 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
1491
1492 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
1493 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
1494 * doc/md.texi (fmin@var{m}3): Likewise.
1495
1496 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
1497
1498 * match.pd (X & C): New transformation.
1499
1500 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
1501
1502 * match.pd (~X & Y): New transformation.
1503
1504 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
1505
1506 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
1507 information for new SSA_NAME.
1508 (simplify_conversion_using_ranges): Get range through get_range_info
1509 instead of get_value_range.
1510
1511 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1512
1513 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
1514 Remove inline assembly.
1515 (vmvn_s16): Likewise.
1516 (vmvn_s32): Likewise.
1517 (vmvn_u8): Likewise.
1518 (vmvn_u16): Likewise.
1519 (vmvn_u32): Likewise.
1520 (vmvnq_s8): Likewise.
1521 (vmvnq_s16): Likewise.
1522 (vmvnq_s32): Likewise.
1523 (vmvnq_u8): Likewise.
1524 (vmvnq_u16): Likewise.
1525 (vmvnq_u32): Likewise.
1526 (vmvn_p8): Likewise.
1527 (vmvnq_p16): Likewise.
1528
1529 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1530
1531 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
1532 Use builtin.
1533 (vmul_n_s16): Likewise.
1534 (vmul_n_s32): Likewise.
1535 (vmul_n_u16): Likewise.
1536 (vmul_n_u32): Likewise.
1537 (vmulq_n_f32): Likewise.
1538 (vmulq_n_f64): Likewise.
1539 (vmulq_n_s16): Likewise.
1540 (vmulq_n_s32): Likewise.
1541 (vmulq_n_u16): Likewise.
1542 (vmulq_n_u32): Likewise.
1543
1544 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1545
1546 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
1547 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
1548
1549 2016-05-17 Jiong Wang <jiong.wang@arm.com>
1550
1551 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
1552 to *aarch64_fma4_elt_from_dup<mode>.
1553 (*aarch64_fnma4_elt_to_128df): Rename to
1554 *aarch64_fnma4_elt_from_dup<mode>.
1555 * config/aarch64/arm_neon.h (vfma_n_f64): New.
1556 (vfms_n_f32): Likewise.
1557 (vfms_n_f64): Likewise.
1558 (vfmsq_n_f32): Likewise.
1559 (vfmsq_n_f64): Likewise.
1560
1561 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
1562
1563 * wide-int.h: Change fixed_wide_int_storage from class to struct.
1564
1565 2016-05-17 Richard Biener <rguenther@suse.de>
1566
1567 PR tree-optimization/71132
1568 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
1569 Only add control dependences for blocks in the loop.
1570 (build_rdg): Adjust.
1571 (generate_code_for_partition): Return whether loop should
1572 be destroyed and delay that.
1573 (distribute_loop): Likewise.
1574 (pass_loop_distribution::execute): Record loops to be destroyed
1575 and perform delayed destroying of loops.
1576
1577 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1578
1579 PR target/70809
1580 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
1581
1582 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
1583
1584 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
1585
1586 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
1587
1588 PR target/71114
1589 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
1590 insertion point for instructions generated by validize_mem.
1591
1592 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
1593
1594 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
1595 in brackets.
1596
1597 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
1598
1599 * config/aarch64/aarch64.c
1600 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
1601 rather than a macro.
1602
1603 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
1604
1605 * doc/invoke.texi (AArch64 Options): Various updates.
1606
1607 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
1608
1609 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
1610 into instrumentation thunks.
1611 * cif-code.def (CIF_CHKP): New.
1612
1613 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
1614
1615 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
1616
1617 2016-05-16 Martin Jambor <mjambor@suse.cz>
1618
1619 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
1620 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
1621
1622 2016-05-16 Marek Polacek <polacek@redhat.com>
1623
1624 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
1625 commentary.
1626
1627 2016-05-16 Martin Jambor <mjambor@suse.cz>
1628
1629 PR hsa/70857
1630 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
1631 the outlined kernel function.
1632
1633 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
1634
1635 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
1636 (ISA_HAS_DLSA): Ditto.
1637
1638 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
1639
1640 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
1641
1642 2016-05-16 Nathan Sidwell <nathan@acm.org>
1643
1644 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
1645 (nvptx_name_replacement): Restore. Add comment.
1646 (write_fn_proto, write_fn_proto_from_insn,
1647 nvptx_output_call_insn): Restore
1648 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
1649
1650 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
1651
1652 * config/aarch64/aarch64.md
1653 (add<mode>3_compareC_cconly_imm): Remove use of %w.
1654 (add<mode>3_compareC_imm): Likewise.
1655 (<optab>si3_uxtw): Split into register and immediate variants.
1656 (andsi3_compare0_uxtw): Likewise.
1657 (and<mode>3_compare0): Likewise.
1658 (and<mode>3nr_compare0): Likewise.
1659 (stack_protect_test_<mode>): Don't use %x for memory operands.
1660
1661 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
1662
1663 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
1664
1665 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
1666
1667 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1668 Split integer shifts into shift_reg and bfm.
1669 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1670 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1671 (ror<mode>3_insn): Likewise.
1672 (<optab>si3_insn_uxtw): Likewise.
1673 (<optab><mode>3_insn): Change to rotate_imm.
1674 (extr<mode>5_insn_alt): Likewise.
1675 (extrsi5_insn_uxtw): Likewise.
1676 (extrsi5_insn_uxtw_alt): Likewise.
1677
1678 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
1679
1680 * doc/tm.texi: Regenerate.
1681 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
1682 (TARGET_INVALID_RETURN_TYPE): Remove.
1683 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
1684 TARGET_INVALID_RETURN_TYPE.
1685 * target.def (invalid_parameter_type): Remove.
1686 (invalid_return_type): Remove.
1687
1688 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
1689
1690 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
1691 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
1692 calls from thunk.
1693 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
1694 gimple body.
1695 (preserve_function_body_p): No need to preserve function body
1696 * cif-codes.def (CIF_THUNK): Remove.
1697 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
1698
1699 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
1700
1701 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
1702
1703 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
1704
1705 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
1706 for thunks.
1707
1708 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
1709
1710 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
1711 (inline_small_functions): Do not look for function symbol when
1712 resetting caches.
1713
1714 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
1715
1716 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
1717 of inline thunks
1718
1719 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
1720 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1721 Jiong Wang <jiong.wang@arm.com>
1722
1723 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1724 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
1725 Define __ARM_FP16_ARGS when appropriate.
1726 * config/arm/arm.c (arm_invalid_parameter_type): Remove
1727 declaration.
1728 (arm_invalid_return_type): Likewise.
1729 (TARGET_INVALID_PARAMETER_TYPE): Remove.
1730 (TARGET_INVALID_RETURN_TYPE): Remove.
1731 (aapcs_vfp_sub_candidate): Allow HFmode.
1732 (aapcs_vfp_allocate): Add comment. Support HFmode.
1733 (aapcs_vfp_allocate_return_reg): Likewise.
1734 (struct aapcs_cp_arg_layout): Slightly reword comments for
1735 is_return_candidate and allocate_return_reg.
1736 (output_mov_vfp): Update assert.
1737 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
1738 condition.
1739 (arm_invalid_parameter_type): Remove.
1740 (amr_invalid_return_type): Remove.
1741 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
1742 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
1743 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
1744
1745 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
1746
1747 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
1748 * config/aarch64/arch64-protos.h
1749 (aarch64_legitimize_reload_address): Remove.
1750 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
1751 Remove.
1752
1753 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
1754
1755 * configure.ac: Add ACX_NONCANONICAL_HOST.
1756 * configure: Regenerate.
1757 * Makefile.in: Set host_noncanonical.
1758
1759 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
1760
1761 PR target/71097
1762 * config/i386/i386.md (*movtf_internal): Before register allocation,
1763 do not allow FP constants for CM_MEDIUM memory model, allow only
1764 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
1765 (*movxf_internal): Ditto.
1766 (*movdf_internal): Ditto.
1767 (*movsf_internal): Ditto.
1768
1769 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1770
1771 PR rtl-optimization/67483
1772 * combine.c (make_compound_operation): Don't call extract_left_shift
1773 with negative shift amounts.
1774
1775 2016-05-13 Jakub Jelinek <jakub@redhat.com>
1776
1777 PR bootstrap/71071
1778 * fold-const.c (fold_checksum_tree): Allow modification
1779 of TYPE_ALIAS_SET during folding.
1780
1781 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
1782 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
1783 (ix86_split_to_parts): Likewise. Fix up formatting.
1784
1785 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
1788 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
1789 printf format.
1790
1791 2016-05-13 Nathan Sidwell <nathan@acm.org>
1792
1793 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
1794 (nvptx_name_replacement): Delete.
1795 (write_fn_proto, write_fn_proto_from_insn,
1796 nvptx_output_call_insn): Remove nvptx_name_replacement call.
1797 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
1798 * langhooks.c (add_builtin_funcction_common): Call
1799 targetm.mangle_decl_assembler_name.
1800
1801 * config/nvptx/nvptx.c (write_fn_proto): Handle
1802 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
1803
1804 2016-05-13 Martin Liska <mliska@suse.cz>
1805
1806 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
1807 and PRIu64 in printf format.
1808
1809 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1810
1811 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
1812 comment.
1813
1814 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1815
1816 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1817 Change --param max-completely-peeled-times to
1818 --param max-completely-peel-times in dump file printing.
1819
1820 2016-05-13 Richard Biener <rguenther@suse.de>
1821
1822 PR tree-optimization/42587
1823 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
1824 (find_bswap_or_nop_1): Likewise.
1825 (bswap_replace): Likewise.
1826
1827 2016-05-13 Martin Liska <mliska@suse.cz>
1828
1829 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
1830 Initialize a variable with default value.
1831
1832 2016-05-13 Martin Liska <mliska@suse.cz>
1833
1834 * doc/invoke.texi: Enhance explanation of error recovery
1835 of sanitizers.
1836
1837 2016-05-13 Martin Liska <mliska@suse.cz>
1838
1839 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
1840 (struct cost_pair): Change inv_expr_id (int) to inv_expr
1841 (iv_inv_expr_ent *).
1842 (struct iv_inv_expr_ent): Comment struct fields.
1843 (sort_iv_inv_expr_ent): New function.
1844 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
1845 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
1846 a hash_map between iv_inv_expr_ent and number of usages.
1847 (niter_for_exit): Fix coding style.
1848 (tree_ssa_iv_optimize_init): Use renamed variable.
1849 (determine_base_object): Fix coding style.
1850 (alloc_iv): Likewise.
1851 (find_interesting_uses_outside): Likewise.
1852 (add_candidate_1): Likewise.
1853 (add_standard_iv_candidates): Likewise.
1854 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
1855 (prepare_decl_rtl): Fix coding style.
1856 (get_address_cost): Likewise.
1857 (get_shiftadd_cost): Likewise.
1858 (force_expr_to_var_cost): Likewise.
1859 (compare_aff_trees): Likewise.
1860 (get_expr_id): Restructure the function.
1861 (get_loop_invariant_expr_id): Renamed to
1862 get_loop_invariant_expr.
1863 (get_computation_cost_at): Replace usage of inv_expr_id with
1864 inv_expr.
1865 (get_computation_cost): Likewise.
1866 (determine_group_iv_cost_generic): Likewise.
1867 (determine_group_iv_cost_address): Likewise.
1868 (iv_period): Fix coding style.
1869 (iv_elimination_compare_lt): Likewise.
1870 (may_eliminate_iv): Likewise.
1871 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
1872 inv_expr.
1873 (determine_group_iv_costs): Dump invariant expressions.
1874 (iv_ca_recount_cost): Use the newly added hash_map.
1875 (iv_ca_set_remove_invariants): Fix coding style.
1876 (iv_ca_set_add_invariants): Fix coding style.
1877 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
1878 invariants.
1879 (iv_ca_set_cp): Likewise.
1880 (iv_ca_new): Initialize the newly added hash_map and remove
1881 initialization of fields.
1882 (iv_ca_free): Delete the hash_map.
1883 (iv_ca_dump): Dump invariant expressions.
1884 (iv_ca_extend): Fix coding style.
1885 (try_add_cand_for): Likewise.
1886 (create_new_ivs): Dump information about # of avg iterations and
1887 # of used invariant expressions.
1888 (rewrite_use_compare): Fix coding style.
1889 (free_loop_data): Set default value for max_inv_expr_id.
1890
1891 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1892
1893 * cse.c (rest_of_handle_cse): Use cleanup_cfg
1894 returned value cse_cfg_altered computation.
1895 (rest_of_handle_cse2): Likewise.
1896 (rest_of_handle_cse_after_global_opts): Likewise.
1897
1898 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1899
1900 PR target/53440
1901 * config/arm/arm.c (arm32_output_mi_thunk): New.
1902 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
1903 to split Thumb1 vs TARGET_32BIT functionality.
1904 (arm_thumb1_mi_thunk): New.
1905
1906 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1907
1908 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
1909 to true.
1910
1911 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1912
1913 PR target/71080
1914 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
1915
1916 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
1917
1918 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
1919 (expand_builtin_trap): Emit a regular call.
1920 (set_builtin_user_assembler_name): Remove obsolete cases.
1921 * dse.c (scan_insn): Adjust.
1922 * except.c: Include calls.h.
1923 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
1924 emit a regular call to setjmp.
1925 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
1926 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
1927 (emit_block_move_via_libcall): Delete.
1928 (block_move_fn): Delete.
1929 (init_block_move_fn): Likewise.
1930 (emit_block_move_libcall_fn): Likewise.
1931 (emit_block_op_via_libcall): New function.
1932 (set_storage_via_libcall): Tidy up and use memset builtin.
1933 (block_clear_fn): Delete.
1934 (init_block_clear_fn): Likewise.
1935 (clear_storage_libcall_fn): Likewise.
1936 (expand_assignment): Call emit_block_move_via_libcall.
1937 Do not include gt-expr.h.
1938 * expr.h (emit_block_op_via_libcall): Declare.
1939 (emit_block_copy_via_libcall): New inline function.
1940 (emit_block_move_via_libcall): Likewise.
1941 (emit_block_comp_via_libcall): Likewise.
1942 (block_clear_fn): Delete.
1943 (init_block_move_fn): Likewise.
1944 (init_block_clear_fn): Likewise.
1945 (emit_block_move_via_libcall): Likewise.
1946 (set_storage_via_libcall): Add default parameter value.
1947 * libfuncs.h (enum libfunc_index): Remove obsolete values.
1948 (abort_libfunc): Delete.
1949 (memcpy_libfunc): Likewise.
1950 (memmove_libfunc): Likewise.
1951 (memcmp_libfunc): Likewise.
1952 (memset_libfunc): Likewise.
1953 (setbits_libfunc): Likewise.
1954 (setjmp_libfunc): Likewise.
1955 (longjmp_libfunc): Likewise.
1956 (profile_function_entry_libfunc): Likewise.
1957 (profile_function_exit_libfunc): Likewise.
1958 (gcov_flush_libfunc): Likewise.
1959 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
1960 and DECL_VISIBILITY on the declaration.
1961 (init_optabs): Do not initialize obsolete libfuncs.
1962 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
1963 * tree-core.h (ECF_RET1): Define.
1964 (ECF_TM_PURE): Adjust.
1965 (ECF_TM_BUILTIN): Likewise.
1966 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
1967 (build_common_builtin_nodes): Initialize abort builtin.
1968 Add ECF_RET1 on memcpy, memmove and memset builtins.
1969 Pass final flags for alloca and alloca_with_align builtins.
1970 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
1971 obsolete builtins.
1972 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
1973 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
1974 set_storage_via_libcall and call emit_block_copy_via_libcall.
1975
1976 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
1977
1978 * config/i386/i386.md (*call_got_x32): Change operand 0 to
1979 DImode before it is passed to ix86_output_call_operand.
1980 (*call_value_got_x32): Ditto for operand 1.
1981
1982 2016-05-12 Jiong Wang <jiong.wang@arm.com>
1983
1984 PR rtl-optimization/70904
1985 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
1986 reload for wide mode.
1987
1988 2016-05-12 Marek Polacek <polacek@redhat.com>
1989
1990 PR c/70756
1991 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
1992 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
1993 * langhooks.h (incomplete_type_error): Likewise.
1994 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
1995 parameter, pass it down to incomplete_type_error.
1996 * tree.h (size_in_bytes): New inline overload.
1997 (size_in_bytes_loc): Renamed from size_in_bytes.
1998
1999 2016-05-12 Richard Biener <rguenther@suse.de>
2000
2001 PR tree-optimization/71059
2002 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
2003 nary before looking up or entering the expression into the VN
2004 hashes.
2005 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
2006 Make sure to re-use NARYs without result as inserted by
2007 phi-translation.
2008
2009 2016-05-12 Richard Biener <rguenther@suse.de>
2010
2011 PR tree-optimization/71062
2012 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2013 field.
2014 * tree-ssa-structalias.c (set_uids_in_ptset): Set
2015 vars_contains_restrict if the var is a restrict tag.
2016 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
2017 do not disambiguate pointers against it.
2018 (dump_points_to_solution): Re-structure and adjust for new
2019 vars_contains_restrict flag.
2020 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
2021
2022 2016-05-12 Martin Liska <mliska@suse.cz>
2023
2024 * doc/invoke.texi: Explain connection between
2025 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
2026
2027 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
2028
2029 PR tree-optimization/71006
2030 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2031 consider COND_EXPR as a mask producer.
2032
2033 2016-05-12 Marek Polacek <polacek@redhat.com>
2034
2035 PR driver/71063
2036 * opts.c (common_handle_option): Detect missing argument for --help^.
2037
2038 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2039
2040 PR target/70830
2041 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
2042 when popping the PC and within an interrupt handler routine.
2043 Add missing tab to output of "ldmfd".
2044 (output_return_instruction): Output LDMFD with SP update rather
2045 than POP when returning from interrupt handler.
2046
2047 2016-05-12 Jakub Jelinek <jakub@redhat.com>
2048
2049 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
2050 TARGET_64BIT && TARGET_AVX512DQ.
2051 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
2052 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
2053 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
2054 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
2055 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
2056 (*vec_extractv4si_zext): Add avx512dq alternative.
2057 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
2058 use v instead of x constraint in other alternatives where possible.
2059
2060 * config/i386/sse.md (sse2_loadld): Use v instead of x
2061 constraint in alternatives 0,1,4.
2062
2063 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
2064 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
2065 v constraints instead of x and <pinsr_evex_isa> isa attribute.
2066
2067 PR target/71019
2068 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
2069 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
2070 is not emitted unless TARGET_AVX512BW.
2071 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
2072 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
2073 for the result operand.
2074
2075 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
2076 constraint instead of x in avx alternatives. Use maybe_evex instead
2077 of vex prefix.
2078
2079 * config/i386/constraints.md (Yv): New constraint.
2080 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
2081 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
2082 * config/i386/i386.md (avx512fvecmode): New mode attr.
2083 (*pushtf): Use v constraint instead of x.
2084 (*movtf_internal): Likewise. For TARGET_AVX512VL and
2085 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
2086 (*absneg<mode>2): Use Yv constraint instead of x constraint.
2087 (*absnegtf2_sse): Likewise.
2088 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
2089 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
2090 avx512f alternatives.
2091 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
2092
2093 2016-05-12 Richard Biener <rguenther@suse.de>
2094
2095 PR tree-optimization/71060
2096 * tree-data-ref.c (initialize_data_dependence_relation): Do not
2097 require exact match of DR_BASE_OBJECT but only matching address and
2098 type.
2099
2100 2016-05-12 Richard Biener <rguenther@suse.de>
2101
2102 PR tree-optimization/70986
2103 * cfganal.c: Include cfgloop.h.
2104 (dfs_find_deadend): Prefer to take edges exiting loops.
2105
2106 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2107
2108 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
2109 compile and run time.
2110
2111 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2112
2113 PR c/43651
2114 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
2115
2116 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
2117
2118 * config/i386/i386.c (legitimize_pic_address): Use
2119 copy_to_suggested_reg instead of gen_movsi.
2120
2121 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2122
2123 * config/rs6000/predicates.md (quad_memory_operand): Move most of
2124 the code into quad_address_p and call it to share code with
2125 vsx_quad_dform_memory_operand.
2126 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
2127 d-form support.
2128 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
2129 bit instead of being a separate word. Split -mpower9-dform into
2130 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2131 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
2132 for the register class supporting 128-bit quad word memory offsets.
2133 (mode_supports_vsx_dform_quad): Helper function to return if the
2134 register class uses quad word memory offsets.
2135 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
2136 (rs6000_debug_reg_global): Always print if we are using LRA or not.
2137 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
2138 instructions are enabled, set up the appropriate addr_masks for
2139 128-bit types.
2140 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
2141 -mpower9-dform-scalar, instead of -mpower9-dform.
2142 (rs6000_option_override_internal): Split -mpower9-dform into two
2143 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
2144 -mpower9-dform switch sets or clears both. If we are not using
2145 the LRA register allocator, do not enable -mpower9-dform-vector by
2146 default. If we are using LRA, enable -mpower9-dform-vector and
2147 -mvsx-timode if it is appropriate. Issue a warning if either
2148 -mpower9-dform-vector or -mvsx-timode are explicitly used without
2149 enabling LRA.
2150 (quad_address_offset_p): New helper function to return if the
2151 offset is legal for quad word memory instructions.
2152 (quad_address_p): New function to determin if GPR or vector
2153 register quad word memory addresses are legal.
2154 (mem_operand_gpr): Validate quad word address offsets.
2155 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
2156 d-form (register + offset) instructions.
2157 (offsettable_ok_by_alignment): Likewise.
2158 (rs6000_legitimate_offset_address_p): Likewise.
2159 (legitimate_lo_sum_address_p): Likewise.
2160 (rs6000_legitimize_address): Likewise.
2161 (rs6000_legitimize_reload_address): Add more debug statements for
2162 -mdebug=addr.
2163 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
2164 d-form instructions.
2165 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
2166 d-form instructions. Distinguish different cases in debug
2167 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
2168 d-form instructions.
2169 (rs6000_preferred_reload_class): Likewise.
2170 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
2171 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
2172 of the ISA 2.06 indexed memory instructions.
2173 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
2174 use them to save/restore the saved vector registers instead of
2175 using Altivec instructions.
2176 (rs6000_emit_epilogue): Likewise.
2177 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
2178 (rs6000_opt_masks): Split -mpower9-dform into
2179 -mpower9-dform-scalar and -mpower9-dform-vector.
2180 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
2181 was not selected.
2182 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
2183 ISA 3.0 vector indexed memory instructions, and fold the code into
2184 the normal mov<mode> patterns.
2185 (p9_vecstore_<mode>): Likewise.
2186 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
2187 instructions.
2188 (vsx_movti_64bit): Likewise.
2189 (vsx_movti_32bit): Likewise.
2190 * config/rs6000/constraints.md (wO constraint): New constraint for
2191 ISA 3.0 vector d-form support.
2192 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
2193 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
2194 include -mpower9-dform-vector until we switch over to LRA.
2195 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
2196 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
2197 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
2198 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2199 for -mpower9-dform and -mlra.
2200 * doc/md.texi (wO constraint): Document wO constraint.
2201
2202 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
2203
2204 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
2205 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
2206 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
2207 Move handling of non-insn arguments inline into the sole user:
2208 (output_trans_func): ...here.
2209 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
2210 in emitted function prototype.
2211 (output_internal_insn_latency_func): Ditto. Simplify.
2212 (output_internal_maximal_insn_latency_func): Ditto. Delete
2213 always-unused argument.
2214 (output_insn_latency_func): Ditto.
2215 (output_maximal_insn_latency_func): Ditto.
2216
2217 2016-05-11 Richard Biener <rguenther@suse.de>
2218
2219 PR tree-optimization/71055
2220 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
2221 sth with precision not equal to access size verify we don't chop
2222 off bits.
2223
2224 2016-05-11 Richard Biener <rguenther@suse.de>
2225
2226 PR debug/71057
2227 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
2228 (dwarf2out_finish): Move retry_incomplete_types call ...
2229 (dwarf2out_early_finish): ... here.
2230
2231 2016-05-11 Richard Biener <rguenther@suse.de>
2232
2233 PR middle-end/71002
2234 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
2235 if the langhook insists on it.
2236 * fold-const.c (make_bit_field_ref): Add arg for the original
2237 reference and preserve its alias-set.
2238 (decode_field_reference): Take exp by reference and adjust it
2239 to the original memory reference.
2240 (optimize_bit_field_compare): Adjust callers.
2241 (fold_truth_andor_1): Likewise.
2242 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
2243
2244 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
2245
2246 PR middle-end/70807
2247 * cfgrtl.h (delete_insn_and_edges): Now return bool.
2248 * cfgrtl.c (delete_insn_and_edges): Likewise.
2249 * config/i386/i386.c (convert_scalars_to_vector): Remove
2250 redundant code.
2251 * cse.c (cse_insn): Compute cse_cfg_altered.
2252 (delete_trivially_dead_insns): Likewise.
2253 (cse_cc_succs): Likewise.
2254 (rest_of_handle_cse): Free dominance info if required.
2255 (rest_of_handle_cse2): Likewise.
2256 (rest_of_handle_cse_after_global_opts): Likewise.
2257
2258 2016-05-11 Alan Modra <amodra@gmail.com>
2259
2260 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
2261 abi_v4_pass_in_fpr): New functions.
2262 (rs6000_function_arg_boundary): Exclude complex IBM long double
2263 from 64-bit alignment when ABI_V4.
2264 (rs6000_function_arg, rs6000_function_arg_advance_1,
2265 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
2266
2267 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
2268
2269 PR rtl-optimization/71028
2270 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
2271 jump with just a return in the fallthrough block if the branch
2272 block contains just a return as well.
2273
2274 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
2275
2276 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
2277 * match.pd ((X & Y) ^ Y): ... this.
2278 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
2279 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
2280
2281 2016-05-10 David Malcolm <dmalcolm@redhat.com>
2282
2283 * read-md.c (require_char_ws): New function.
2284 (read_string): Simplify using require_char_ws.
2285 (handle_constants): Likewise.
2286 (handle_enum): Likewise.
2287 (handle_file): Likewise.
2288 * read-md.h (require_char_ws): New declaration.
2289 * read-rtl.c (read_conditions): Simplify using require_char_ws.
2290 (read_mapping): Likewise.
2291 (read_rtx_code): Likewise.
2292 (read_nested_rtx): Likewise.
2293
2294 2016-05-10 James Norris <jnorris@codesourcery.com>
2295
2296 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
2297 if offloading is enabled and -fopenacc or -fopenmp is specified.
2298 (CRTOFFLOADEND): Likewise.
2299 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
2300 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
2301
2302 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
2303
2304 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
2305 gotoff_operand code paths. Use copy_to_suggested_regs and
2306 expand_simple_binop where appropriate. Cleanup.
2307
2308 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2309
2310 PR target/70799
2311 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
2312 integer constants.
2313 (dimode_scalar_chain::vector_const_cost): New.
2314 (dimode_scalar_chain::compute_convert_gain): Handle constants.
2315 (dimode_scalar_chain::convert_op): Likewise.
2316 (dimode_scalar_chain::convert_insn): Likewise.
2317
2318 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
2319
2320 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
2321 unary operation, not a binary one.
2322
2323 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2324
2325 PR middle-end/70877
2326 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
2327 calls with type casted fndecl.
2328
2329 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2330
2331 PR tree-optimization/70786
2332 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
2333 * calls.c (initialize_argument_information): Bind bounds
2334 with corresponding args passed by reference.
2335
2336 2016-05-10 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR target/70927
2339 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
2340 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
2341 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
2342 accordingly.
2343
2344 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2345
2346 PR target/70963
2347 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
2348 code for a zero scale factor.
2349 (vsx_xvcvdpuxds_scale): Likewise.
2350
2351 2016-05-10 David Malcolm <dmalcolm@redhat.com>
2352
2353 * diagnostic-show-locus.c (layout::layout): Call show_ruler
2354 if show_ruler_p was set on the context.
2355 (layout::show_ruler): New method.
2356 * diagnostic.h (struct diagnostic_context): Add field
2357 "show_ruler_p".
2358
2359 2016-05-10 Richard Biener <rguenther@suse.de>
2360
2361 PR tree-optimization/71039
2362 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
2363 (chk_uses): New function.
2364 (propagate_with_phi): Verify we can safely replicate the lhs of an
2365 aggregate assignment on all incoming edges.
2366
2367 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
2368
2369 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
2370 Forward declare.
2371 (rx_atomic_sequence): New class.
2372 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
2373 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
2374 non-inline.
2375 (rx_atomic_sequence::rx_atomic_sequence,
2376 rx_atomic_sequence::~rx_atomic_sequence): New functions.
2377 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
2378 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
2379 CTRLREG_INTB): New constants.
2380 (FETCHOP): New code iterator.
2381 (fethcop_name, fetchop_name2): New iterator code attributes.
2382 (QIHI): New mode iterator.
2383 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
2384 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
2385 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
2386
2387 2016-05-10 Martin Liska <mliska@suse.cz>
2388
2389 * tree-inline.c (remap_dependence_clique): Do not remap
2390 debugging statements.
2391
2392 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2393
2394 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
2395 ("*fixuns_truncdfdi2_z13")
2396 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
2397 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
2398 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
2399
2400 2016-05-10 Richard Biener <rguenther@suse.de>
2401
2402 PR tree-optimization/70497
2403 PR tree-optimization/28367
2404 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
2405 split out from ...
2406 (visit_reference_op_load): ... here.
2407 (vn_reference_lookup_3): Use it to handle subreg-like accesses
2408 with simplified BIT_FIELD_REFs.
2409 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
2410 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
2411 correctly.
2412
2413 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
2414
2415 * dwarf2out.c (add_abstract_origin_attribute): Adjust
2416 documentation comment. For BLOCK nodes, add a
2417 DW_AT_abstract_origin attribute that points to the DIE generated
2418 for the origin BLOCK.
2419 (gen_lexical_block_die): Call add_abstract_origin_attribute for
2420 blocks from inlined functions.
2421
2422 2016-05-10 Alan Modra <amodra@gmail.com>
2423
2424 PR target/70947
2425 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
2426 regrename modifying insns saving lr before __morestack call.
2427 * config/rs6000/rs6000.md (split_stack_return): Similarly for
2428 insns restoring lr after __morestack call.
2429
2430 2016-05-09 Jakub Jelinek <jakub@redhat.com>
2431
2432 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
2433 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
2434 expanders.
2435 * config/i386/sse.md (vec_interleave_high<mode>,
2436 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
2437 <avx512>_vpermt2var<mode>3_maskz): Likewise.
2438
2439 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2440
2441 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
2442 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
2443 parallel reassociation for power8 and forward.
2444
2445 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
2446
2447 * config/i386/i386.md (absneg splitters with general regs): Use
2448 general_reg_operand predicate.
2449 (btsq peephole2): Use x86_64_immediate_operand to check if new
2450 value is suitable for immediate operand. Generate emitted insn
2451 using RTL expressions.
2452 (btcq peephole2): Ditto.
2453 (btrq peephole2): Ditto. Generate correct immediate operand
2454 for AND masking.
2455
2456 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
2457
2458 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
2459 bitpos.
2460
2461 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
2462
2463 * tree-affine.c (wide_int_constant_multiple_p): Add missing
2464 pointer dereference.
2465
2466 2016-05-09 Richard Biener <rguenther@suse.de>
2467
2468 PR tree-optimization/70985
2469 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
2470 op0 isn't a gimple register.
2471
2472 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
2473
2474 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
2475 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
2476 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
2477 (i6400_fpu_mult): New cpu units.
2478 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
2479 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
2480 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
2481 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
2482 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
2483 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
2484 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
2485 (i6400_msa_long_float4, i6400_msa_long_float5)
2486 (i6400_msa_long_float8, i6400_msa_fdiv_df)
2487 (i6400_msa_fdiv_sf): New reservations.
2488 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
2489 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
2490 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
2491 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
2492 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
2493 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
2494 (msa_short_cmp, msa_short_float2, msa_short_logic3)
2495 (msa_short_store4, msa_long_load, msa_short_store)
2496 (msa_long_logic, msa_long_float2, msa_long_float4)
2497 (msa_long_float5, msa_long_float8, msa_long_mult)
2498 (msa_long_fdiv, msa_long_div): New reservations.
2499
2500 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
2501 Sameera Deshpande <sameera.deshpande@imgtec.com>
2502 Matthew Fortune <matthew.fortune@imgtec.com>
2503 Graham Stott <graham.stott@imgtec.com>
2504 Chao-ying Fu <chao-ying.fu@imgtec.com>
2505
2506 * config.gcc: Add MSA header file for mips*-*-* target.
2507 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
2508 (Ubv8i, Urv8): New constraints.
2509 * config/mips/mips-ftypes.def: Add function types for MSA
2510 builtins.
2511 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
2512 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
2513 * config/mips/mips-msa.md: New file.
2514 * config/mips/mips-protos.h
2515 (mips_split_128bit_const_insns): New prototype.
2516 (mips_msa_idiv_insns): Likewise.
2517 (mips_split_128bit_move): Likewise.
2518 (mips_split_128bit_move_p): Likewise.
2519 (mips_split_msa_copy_d): Likewise.
2520 (mips_split_msa_insert_d): Likewise.
2521 (mips_split_msa_fill_d): Likewise.
2522 (mips_expand_msa_branch): Likewise.
2523 (mips_const_vector_same_val_p): Likewise.
2524 (mips_const_vector_same_bytes_p): Likewise.
2525 (mips_const_vector_same_int_p): Likewise.
2526 (mips_const_vector_shuffle_set_p): Likewise.
2527 (mips_const_vector_bitimm_set_p): Likewise.
2528 (mips_const_vector_bitimm_clr_p): Likewise.
2529 (mips_msa_vec_parallel_const_half): Likewise.
2530 (mips_msa_output_division): Likewise.
2531 (mips_ldst_scaled_shift): Likewise.
2532 (mips_expand_vec_cond_expr): Likewise.
2533 * config/mips/mips.c (enum mips_builtin_type): Add
2534 MIPS_BUILTIN_MSA_TEST_BRANCH.
2535 (mips_gen_const_int_vector_shuffle): New prototype.
2536 (mips_const_vector_bitimm_set_p): New function.
2537 (mips_const_vector_bitimm_clr_p): Likewise.
2538 (mips_const_vector_same_val_p): Likewise.
2539 (mips_const_vector_same_bytes_p): Likewise.
2540 (mips_const_vector_same_int_p): Likewise.
2541 (mips_const_vector_shuffle_set_p): Likewise.
2542 (mips_symbol_insns): Forbid loading symbols via immediate for
2543 MSA.
2544 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
2545 stores.
2546 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
2547 MSA.
2548 (mips_lx_address_p): Add support load indexed address for MSA.
2549 (mips_address_insns): Add calculation of instructions needed for
2550 stores and loads for MSA.
2551 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
2552 CONST_VECTOR for MSA and let it fall through.
2553 (mips_ldst_scaled_shift): New function.
2554 (mips_subword_at_byte): Likewise.
2555 (mips_msa_idiv_insns): Likewise.
2556 (mips_legitimize_move): Validate MSA moves.
2557 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
2558 calculation of costs for MSA division.
2559 (mips_split_move_p): Check if MSA moves need splitting.
2560 (mips_split_move): Split MSA moves if necessary.
2561 (mips_split_128bit_move_p): New function.
2562 (mips_split_128bit_move): Likewise.
2563 (mips_split_msa_copy_d): Likewise.
2564 (mips_split_msa_insert_d): Likewise.
2565 (mips_split_msa_fill_d): Likewise.
2566 (mips_output_move): Handle MSA moves.
2567 (mips_expand_msa_branch): New function.
2568 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
2569 Reinstate 'y' modifier.
2570 (mips_file_start): Add MSA .gnu_attribute.
2571 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
2572 FPRs.
2573 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
2574 (mips_class_max_nregs): Add register size for MSA supported mode.
2575 (mips_cannot_change_mode_class): Allow conversion between MSA
2576 vector modes and TImode.
2577 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
2578 instruction.
2579 (mips_secondary_reload_class): Force MSA loads/stores via memory.
2580 (mips_preferred_simd_mode): Add preffered modes for MSA.
2581 (mips_vector_mode_supported_p): Add MSA supported modes.
2582 (mips_autovectorize_vector_sizes): New function.
2583 (mips_msa_output_division): Likewise.
2584 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
2585 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
2586 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
2587 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
2588 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
2589 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
2590 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
2591 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
2592 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
2593 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
2594 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
2595 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
2596 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
2597 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
2598 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
2599 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
2600 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
2601 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
2602 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
2603 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
2604 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
2605 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
2606 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
2607 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
2608 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
2609 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
2610 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
2611 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
2612 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
2613 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
2614 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
2615 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
2616 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
2617 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
2618 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
2619 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
2620 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
2621 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
2622 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
2623 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
2624 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
2625 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
2626 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
2627 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
2628 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
2629 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
2630 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
2631 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
2632 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
2633 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
2634 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
2635 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
2636 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
2637 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
2638 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
2639 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
2640 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
2641 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
2642 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
2643 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
2644 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
2645 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
2646 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
2647 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
2648 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
2649 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
2650 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
2651 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
2652 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
2653 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
2654 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
2655 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
2656 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
2657 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
2658 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
2659 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
2660 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
2661 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
2662 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
2663 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
2664 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
2665 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
2666 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
2667 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
2668 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
2669 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
2670 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
2671 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
2672 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
2673 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
2674 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
2675 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
2676 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
2677 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
2678 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
2679 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
2680 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
2681 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
2682 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
2683 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
2684 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
2685 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
2686 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
2687 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
2688 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
2689 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
2690 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
2691 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
2692 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
2693 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
2694 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
2695 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
2696 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
2697 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
2698 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
2699 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
2700 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
2701 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
2702 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
2703 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
2704 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
2705 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
2706 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
2707 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
2708 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
2709 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
2710 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
2711 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
2712 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
2713 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
2714 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
2715 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
2716 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
2717 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
2718 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
2719 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
2720 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
2721 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
2722 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
2723 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
2724 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
2725 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
2726 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
2727 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
2728 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
2729 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
2730 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
2731 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
2732 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
2733 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
2734 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
2735 move_v builtins.
2736 (mips_get_builtin_decl_index): New array.
2737 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
2738 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
2739 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
2740 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
2741 (mips_init_builtins): Initialize mips_get_builtin_decl_index
2742 array.
2743 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
2744 hook.
2745 (mips_expand_builtin_insn): Prepare operands for
2746 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
2747 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
2748 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
2749 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
2750 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
2751 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
2752 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
2753 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
2754 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
2755 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
2756 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
2757 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
2758 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
2759 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
2760 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
2761 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
2762 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
2763 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
2764 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
2765 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
2766 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
2767 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
2768 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
2769 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
2770 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
2771 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
2772 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
2773 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
2774 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
2775 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
2776 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
2777 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
2778 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
2779 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
2780 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
2781 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
2782 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
2783 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
2784 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
2785 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
2786 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
2787 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
2788 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
2789 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
2790 These are set implicitly and an error is reported if overridden.
2791 (mips_expand_builtin_msa_test_branch): New function.
2792 (mips_expand_msa_shuffle): Likewise.
2793 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
2794 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
2795 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
2796 (mips_expand_vec_unpack): Add support for MSA.
2797 (mips_expand_vector_init): Likewise.
2798 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
2799 instead of const0_rtx.
2800 (mips_msa_vec_parallel_const_half): New function.
2801 (mips_gen_const_int_vector): Likewise.
2802 (mips_gen_const_int_vector_shuffle): Likewise.
2803 (mips_expand_msa_cmp): Likewise.
2804 (mips_expand_vec_cond_expr): Likewise.
2805 * config/mips/mips.h
2806 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
2807 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
2808 specified.
2809 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
2810 (ISA_HAS_MSA): New macro.
2811 (UNITS_PER_MSA_REG): Likewise.
2812 (BITS_PER_MSA_REG): Likewise.
2813 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
2814 (MSA_REG_FIRST): New macro.
2815 (MSA_REG_LAST): Likewise.
2816 (MSA_REG_NUM): Likewise.
2817 (MSA_REG_P): Likewise.
2818 (MSA_REG_RTX_P): Likewise.
2819 (MSA_SUPPORTED_MODE_P): Likewise.
2820 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
2821 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
2822 * config/mips/mips.md: Include mips-msa.md.
2823 (alu_type): Add simd_add.
2824 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
2825 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
2826 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
2827 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
2828 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
2829 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
2830 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
2831 simd_move, simd_load, simd_store. Choose "multi" for moves
2832 for "qword_mode".
2833 (qword_mode): New attribute.
2834 (insn_count): Add instruction count for quad moves.
2835 Increase the count for MIPS SIMD division.
2836 (UNITMODE): Add UNITMODEs for vector types.
2837 (addsub): New code iterator.
2838 * config/mips/mips.opt (mmsa): New option.
2839 * config/mips/msa.h: New file.
2840 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
2841 specified.
2842 * config/mips/mti-linux.h: Likewise.
2843 * config/mips/predicates.md
2844 (const_msa_branch_operand): New constraint.
2845 (const_uimm3_operand): Likewise.
2846 (const_uimm4_operand): Likewise.
2847 (const_uimm5_operand): Likewise.
2848 (const_uimm8_operand): Likewise.
2849 (const_imm5_operand): Likewise.
2850 (aq10b_operand): Likewise.
2851 (aq10h_operand): Likewise.
2852 (aq10w_operand): Likewise.
2853 (aq10d_operand): Likewise.
2854 (const_m1_operand): Likewise.
2855 (reg_or_m1_operand): Likewise.
2856 (const_exp_2_operand): Likewise.
2857 (const_exp_4_operand): Likewise.
2858 (const_exp_8_operand): Likewise.
2859 (const_exp_16_operand): Likewise.
2860 (const_vector_same_val_operand): Likewise.
2861 (const_vector_same_simm5_operand): Likewise.
2862 (const_vector_same_uimm5_operand): Likewise.
2863 (const_vector_same_uimm6_operand): Likewise.
2864 (const_vector_same_uimm8_operand): Likewise.
2865 (par_const_vector_shf_set_operand): Likewise.
2866 (reg_or_vector_same_val_operand): Likewise.
2867 (reg_or_vector_same_simm5_operand): Likewise.
2868 (reg_or_vector_same_uimm6_operand): Likewise.
2869 * doc/extend.texi (MIPS SIMD Architecture Functions): New
2870 section.
2871 * doc/invoke.texi (-mmsa): Document new option.
2872
2873 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2874
2875 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
2876 * configure: Regenerate.
2877 * config.in: Regenerate.
2878 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
2879 on -fvtable-verify.
2880 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
2881 (ENDFILE_VTV_SPEC): Define.
2882
2883 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
2884
2885 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
2886 registers in all interrupt handlers if necessary.
2887 (rl78_option_override): Add warning.
2888 (MUST_SAVE_MDUC_REGISTERS): New macro.
2889 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
2890 * config/rl78/rl78.c (check_mduc_usage): New function.
2891 (mduc_regs): New structure to hold MDUC register data.
2892 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
2893 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
2894 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
2895 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
2896 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
2897 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
2898
2899 2016-05-09 Bin Cheng <bin.cheng@arm.com>
2900
2901 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
2902 (tree-ssa-loop-niter.h): Ditto.
2903 (idx_within_array_bound, ref_within_array_bound): New functions.
2904 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
2905 Factor out check on writable base object to ...
2906 (base_object_writable): ... here.
2907
2908 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2909
2910 * config/arm/arm.md (probe_stack): Add modes to set source
2911 and destination.
2912
2913 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
2914
2915 * regrename.c (base_reg_class_for_rename): New static function.
2916 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
2917
2918 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
2919
2920 * cgraph.c (thunk_adjust): Export.
2921 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
2922 * cgraphunit.c (thunk_adjust): Export.
2923 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
2924 thunks.
2925 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
2926 inlinable.
2927 * tree-inline.c (expand_call_inline): Expand thunks inline.
2928
2929 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
2930
2931 PR target/70998
2932 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
2933 (*sse2_vd_cvtss2sd): Ditto.
2934 * config/i386/i386.md
2935 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
2936 Generate *sse2_vd_cvtsd2ss pattern.
2937 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
2938 Generate *sse2_vd_cvtss2sd pattern.
2939
2940 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
2941
2942 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
2943 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
2944 users.
2945
2946 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
2947
2948 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
2949 * config/sh/sh.c: Define and declare variables on first use throughout
2950 the file.
2951 (current_function_interrupt): Change to bool type.
2952 (frame_insn): Rename to emit_frame_insn and update users.
2953 (push_regs): Use bool for 'interrupt_handler' argument.
2954 (save_schedule_s): Remove.
2955 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
2956 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
2957 targetm.asm_out.unaligned_op.di.
2958 (gen_far_branch): Remove redundant forward declaration.
2959 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
2960 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
2961 (sh_set_return_address, sh_function_ok_for_sibcall,
2962 scavenge_reg): Update comments.
2963 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
2964 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
2965 (sh_attr_renesas_p): Remove unnecessary parentheses.
2966 (branch_dest): Simplify.
2967 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
2968 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
2969 (CUMULATIVE_ARGS): Change macro to typedef.
2970 (current_function_interrupt): Change to bool type.
2971 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
2972 Surround with __cplusplus ifdef.
2973 (sh_compare_op0, sh_compare_op1): Remove.
2974 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
2975
2976 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
2977
2978 * config/arm/arm.md: (arch): Add neon.
2979 (arch_enabled): Return yes for arch neon when TARGET_NEON.
2980 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
2981 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
2982 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
2983 attributes for alt renumbering. Mark alt 3 as non-predicable.
2984 (thumb2_movdf_vfp): Likewise.
2985
2986 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
2987
2988 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
2989 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
2990 (*andqi_1): Add preferred_for_speed attribute to disparage
2991 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
2992 (*<code>qi_1): Ditto.
2993 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
2994 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
2995 (*ashlqi3_1): Ditto.
2996 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
2997 Add preferred_for_size attribute to disparage alternative 0 and
2998 preferred_for_speed attribute to disparage alternative 1 for
2999 TARGET_PARTIAL_REG_STALL targets.
3000
3001 2016-05-07 Tom de Vries <tom@codesourcery.com>
3002
3003 PR tree-optimization/70956
3004 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
3005 def.
3006
3007 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
3008
3009 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
3010 * config/sh/sh.c (sh_cbranch_distance): Implement it.
3011 * config/sh/sh.md (branch_zero): Remove define_attr.
3012 (define_delay): Disable delay slot if branch distance is one insn.
3013
3014 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3015
3016 * config/i386/i386.md (LEAMODE): New mode attribute.
3017 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
3018 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
3019 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
3020 operand 2 predicate.
3021 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
3022 (*lea<mode>_general_3): Ditto.
3023 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
3024
3025 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3026
3027 * genmddump.c (main): Convert argv from char ** to const char **.
3028
3029 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3030
3031 * coretypes.h (OVERRIDE): New macro.
3032 (FINAL): New macro.
3033
3034 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
3035
3036 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
3037 allow coalescing if the types are compatible.
3038
3039 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3040
3041 * pass_manager.h (pass_manager::register_pass_name): New method.
3042 (pass_manager::get_pass_by_name): New method.
3043 (pass_manager::create_pass_tab): New method.
3044 (pass_manager::m_name_to_pass_map): New field.
3045 * passes.c (name_to_pass_map): Delete global in favor of field
3046 "m_name_to_pass_map" of pass_manager.
3047 (register_pass_name): Rename from a function to...
3048 (pass_manager::register_pass_name): ...this method, updating
3049 for renaming of global "name_to_pass_map" to field
3050 "m_name_to_pass_map".
3051 (create_pass_tab): Rename from a function to...
3052 (pass_manager::create_pass_tab): ...this method, updating
3053 for renaming of global "name_to_pass_map" to field.
3054 (get_pass_by_name): Rename from a function to...
3055 (pass_manager::get_pass_by_name): ...this method.
3056 (enable_disable_pass): Convert use of get_pass_by_name to
3057 a method call, locating the pass_manager singleton.
3058
3059 2016-05-06 David Malcolm <dmalcolm@redhat.com>
3060
3061 * genattr-common.c (main): Convert argv from char ** to const char **.
3062 * genattr.c (main): Likewise.
3063 * genattrtab.c (main): Likewise.
3064 * genautomata.c (initiate_automaton_gen): Likewise.
3065 (main): Likewise.
3066 * gencodes.c (main): Likewise.
3067 * genconditions.c (main): Likewise.
3068 * genconfig.c (main): Likewise.
3069 * genconstants.c (main): Likewise.
3070 * genemit.c (main): Likewise.
3071 * genenums.c (main): Likewise.
3072 * genextract.c (main): Likewise.
3073 * genflags.c (main): Likewise.
3074 * genmddeps.c (main): Likewise.
3075 * genopinit.c (main): Likewise.
3076 * genoutput.c (main): Likewise.
3077 * genpeep.c (main): Likewise.
3078 * genpreds.c (main): Likewise.
3079 * genrecog.c (main): Likewise.
3080 * gensupport.c (init_rtx_reader_args_cb): Likewise.
3081 (init_rtx_reader_args): Likewise.
3082 * gensupport.h (init_rtx_reader_args_cb): Likewise.
3083 (init_rtx_reader_args): Likewise.
3084 * gentarget-def.c (main): Likewise.
3085 * read-md.c (read_md_files): Likewise.
3086 * read-md.h (read_md_files): Likewise.
3087
3088 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3089
3090 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
3091 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
3092 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
3093 Remove unused predicate.
3094 (register_and_not_fp_reg_operand): Ditto.
3095
3096 2016-05-06 Martin Liska <mliska@suse.cz>
3097
3098 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
3099 instead of vec as the vector is local to the function.
3100
3101 2016-05-06 Jakub Jelinek <jakub@redhat.com>
3102
3103 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
3104 avx512bw alternative.
3105
3106 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
3107 before the ashr<mode>3 pattern.
3108
3109 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
3110 v instead of x in vex or maybe_vex alternatives, use
3111 maybe_evex instead of vex in prefix.
3112
3113 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
3114 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
3115 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
3116 in vex or maybe_vex alternatives, use maybe_evex instead of vex
3117 in prefix.
3118
3119 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
3120 v instead of x in vex or maybe_vex alternatives, use
3121 maybe_evex instead of vex in prefix.
3122
3123 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
3124 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
3125 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
3126 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
3127 alternatives, use maybe_evex instead of vex in prefix.
3128
3129 * config/i386/sse.md (vec_interleave_lowv4sf,
3130 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
3131 v instead of x in vex or maybe_vex alternatives, use
3132 maybe_evex instead of vex in prefix.
3133
3134 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
3135 v instead of x in vex or maybe_vex alternatives, use
3136 maybe_evex instead of vex in prefix.
3137
3138 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
3139 v constraint instead of x.
3140
3141 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
3142
3143 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3144 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3145 equality first.
3146
3147 2016-05-06 Richard Biener <rguenther@suse.de>
3148
3149 PR tree-optimization/70948
3150 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3151 Properly clobber all fields of va_list for __builtin_va_start.
3152
3153 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
3154
3155 PR debug/70935
3156 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
3157 loop latch destination.
3158
3159 2016-05-06 Martin Liska <mliska@suse.cz>
3160
3161 * tree-ssa-uninit.c: Apply manual changes
3162 to the GNU coding style.
3163 (prune_uninit_phi_opnds): Rename from
3164 prune_uninit_phi_opnds_in_unrealizable_paths.
3165
3166 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3167
3168 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
3169 mspace): Remove deprecated options.
3170 * doc/invoke.texi (SH options): Remove -mspace.
3171
3172 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3173
3174 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
3175
3176 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3177
3178 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
3179 corresponding combine split pattern.
3180
3181 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3182
3183 PR target/58219
3184 * config/sh/predicates.md (long_displacement_mem_operand): New.
3185 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
3186 Add movi20, movi20s alternatives. Adjust length attribute for
3187 alternatives.
3188 (movsi_ie): Allow for any FPU. Adjust length attribute for
3189 alternatives.
3190 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
3191 attribute for alternatives.
3192 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
3193 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
3194 length attribute for alternatives.
3195
3196 2016-05-06 Richard Biener <rguenther@suse.de>
3197
3198 PR tree-optimization/70960
3199 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
3200
3201 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3202
3203 PR target/52933
3204 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
3205 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
3206
3207 2016-05-06 Marek Polacek <polacek@redhat.com>
3208
3209 PR sanitizer/70875
3210 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
3211
3212 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3213
3214 PR target/54089
3215 * config/sh/sh.md (*rotcr): Add another variant.
3216
3217 2016-05-06 Richard Biener <rguenther@suse.de>
3218
3219 PR middle-end/70931
3220 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
3221
3222 2016-05-06 Richard Biener <rguenther@suse.de>
3223
3224 PR middle-end/70941
3225 * fold-const.c (split_tree): Always convert to the original type
3226 before negating.
3227
3228 2016-05-06 Richard Biener <rguenther@suse.de>
3229
3230 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
3231 (fwprop_addr): Likewise.
3232
3233 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
3234
3235 PR target/70873
3236 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
3237 New prototype.
3238 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
3239 * config/i386/i386.md (push mem splitter): Use find_constant_src in
3240 the splitter condition.
3241 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
3242 the splitter condition.
3243 (FP float_extend load splitter): Ditto.
3244
3245 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
3246
3247 * config/i386/i386.md (peehole2 patterns): Change true_regnum
3248 to REGNO in all peephole2 patterns.
3249 (post-reload splitters): Change true_regnum to REGNO in
3250 post-reload splitters.
3251 (zero_extend splitters): Use general_reg_operand and
3252 nonimmediate_gr_operand predicates.
3253
3254 2016-05-05 Jakub Jelinek <jakub@redhat.com>
3255
3256 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
3257 v constraint instead of x.
3258
3259 2016-05-05 Alan Modra <amodra@gmail.com>
3260
3261 PR target/68662
3262 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
3263 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
3264 TARGET_NO_FP_IN_TOC for -mrelocatable.
3265 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
3266 TARGET_RELOCATABLE test.
3267 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3268 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3269 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3270 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3271 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3272 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3273 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3274 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3275 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
3276 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3277 Likewise.
3278 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
3279 (rs6000_stack_info): Likewise.
3280 (rs6000_elf_asm_out_constructor): Likewise.
3281 (rs6000_elf_asm_out_destructor): Likewise.
3282 (rs6000_elf_declare_function_name): Likewise.
3283 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
3284 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
3285 Don't define.
3286
3287 2016-05-05 Alan Modra <amodra@gmail.com>
3288
3289 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
3290
3291 2016-05-05 Alan Modra <amodra@gmail.com>
3292
3293 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
3294 out-of-line gpr restore for one or two regs if that would add
3295 a save of lr.
3296
3297 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
3298
3299 PR target/70873
3300 * config/i386/i386.md
3301 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
3302 Change to post-epilogue_completed late splitter. Use sse_reg_operand
3303 as operand 0 predicate.
3304 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
3305 Ditto.
3306 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
3307 Ditto. Emit the pattern using RTX.
3308
3309 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
3310 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
3311 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
3312 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
3313 Ditto.
3314 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
3315 sse_reg_operand as operand 0 predicate.
3316
3317 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
3318 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
3319 instead of gen_rtx_REG.
3320 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
3321 Ditto.
3322
3323 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3324
3325 * function.c (emit_use_return_register_into_block): Delete.
3326 (gen_return_pattern): Delete.
3327 (emit_return_into_block): Delete.
3328 (active_insn_between): Delete.
3329 (convert_jumps_to_returns): Delete.
3330 (emit_return_for_exit): Delete.
3331 (thread_prologue_and_epilogue_insns): Delete all code dealing with
3332 simple_return for shrink-wrapped blocks.
3333 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
3334 end of blocks that need one.
3335 (get_unconverted_simple_return): Delete.
3336 (convert_to_simple_return): Delete.
3337 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
3338 (convert_to_simple_return): Ditto.
3339
3340 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3341
3342 * cfgcleanup.c (bb_is_just_return): New function.
3343 (try_optimize_cfg): Simplify jumps to return, branches to return,
3344 and branches around return.
3345
3346 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3347
3348 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
3349 branch to a return.
3350
3351 2016-05-04 Jakub Jelinek <jakub@redhat.com>
3352
3353 PR c++/70906
3354 PR c++/70933
3355 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
3356 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
3357 assert flags & OEP_HASH_CHECK, instead of asserting it
3358 never happens. Handle TARGET_EXPR.
3359 * fold-const.c (operand_equal_p): For hash verification,
3360 or in OEP_HASH_CHECK into flags.
3361
3362 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
3363
3364 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
3365 comment.
3366 (compute_samebase_partition_bases): Fix typo.
3367
3368 2016-05-04 Jakub Jelinek <jakub@redhat.com>
3369
3370 * config/i386/sse.md (vec_interleave_highv8sf,
3371 vec_interleave_lowv8sf, vec_interleave_highv4df,
3372 vec_interleave_lowv4df): Remove constraints from expanders.
3373
3374 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
3375
3376 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
3377
3378 * tree-inline.c (expand_call_inline): Fix path dealing with
3379 making lhs of call statement undefined.
3380
3381 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
3382
3383 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
3384 Check availability on NODE, too.
3385 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
3386 (cgraph_node::call_for_symbol_and_aliases): Likewise.
3387 (varpool_node::call_for_symbol_and_aliase): Likewise.
3388 * ipa-pure-const.c (add_new_function): Analyze all bodies.
3389 (propagate_pure_const): Propagate across interposable functions, too.
3390 (skip_function_for_local_pure_const): Do not skip interposable bodies
3391 with aliases.
3392 (pass_local_pure_const::execute): Update.
3393
3394 2016-05-04 Marek Polacek <polacek@redhat.com>
3395
3396 * doc/invoke.texi: Document -Wdangling-else.
3397
3398 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3399
3400 * config.gcc: Error out when conflicting multilib is detected. Do not
3401 loop over multilibs since no combination is legal.
3402
3403 2016-05-04 Alan Modra <amodra@gmail.com>
3404
3405 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
3406 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
3407 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3408 Align .toc.
3409
3410 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
3411
3412 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
3413 Clean up p5600 comments.
3414
3415 2016-05-04 Richard Biener <rguenther@suse.de>
3416
3417 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
3418 constructor simplifications.
3419 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
3420
3421 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
3422
3423 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
3424 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
3425 result.set_rtx is null instead of aborting.
3426 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
3427 Always enable.
3428 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
3429 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
3430 *mov<mode>_store_postinc): New patterns.
3431
3432 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
3433
3434 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
3435 as commutative. Check both conversions are NOP.
3436 ((A & B) OP (C & B)): Remove.
3437
3438 2016-05-04 Alan Modra <amodra@gmail.com>
3439
3440 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
3441
3442 2016-05-04 Alan Modra <amodra@gmail.com>
3443
3444 PR target/70866
3445 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
3446 when cr2,3,4 are all fixed regs.
3447
3448 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
3449
3450 PR rtl-optimization/57193
3451 * opts.c (default_options_table): Revert OPT_frename_registers change.
3452 * doc/invoke.texi (-frename-registers, -O2): Likewise.
3453
3454 2016-05-03 Martin Sebor <msebor@redhat.com>
3455
3456 PR c++/66561
3457 * builtins.c (fold_builtin_FILE): New function.
3458 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
3459 (fold_builtin_0): Call them.
3460 * gimplify.c (gimplify_call_expr): Remove the handling of
3461 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
3462
3463 PR c++/66561
3464 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
3465 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
3466 constants.
3467
3468 PR c++/66639
3469 * doc/extend.texi (Function Names as Strings): Update __func__,
3470 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
3471 constants.
3472
3473 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3474 Richard Biener <rguenther@suse.de>
3475
3476 PR tree-optimization/70916
3477 * tree-if-conv.c: Include cfganal.h.
3478 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
3479 and remove_fake_exit_edges around the optimization pass.
3480
3481 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
3482
3483 * cgraph.c (symbol_table::create_edge): Set inline_failed.
3484 (cgraph_edge::make_direct): Likewise.
3485 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
3486 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
3487 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
3488 (CIF_THUNK): New code.
3489 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
3490 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
3491 (compute_inline_parameters): Set inline_failed for thunks.
3492 (inline_analyze_function): Cleanup.
3493 * ipa-inline.c (can_inline_edge_p): Do not deal with
3494 call_stmt_cannot_inline_p.
3495 (can_early_inline_edge_p): Likewise.
3496 (early_inliner): Initialize inline_failed.
3497 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
3498
3499 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
3500
3501 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
3502 from nonimm_ssenomem_operand.
3503 (nonimm_ssenomem_operand): New predicate.
3504 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
3505 as operand 0 predicate.
3506 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
3507 Disable unsupported alternatives using "enabled" attribute.
3508 Use register_ssemem_operand as operand 0 predicate.
3509 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
3510
3511 2016-05-03 Marek Polacek <polacek@redhat.com>
3512
3513 PR c/70859
3514 * input.c (expansion_point_location): New function.
3515 * input.h (expansion_point_location): Declare.
3516
3517 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
3518
3519 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
3520 occurence with frame_offset_ ones.
3521
3522 2016-05-03 Alan Modra <amodra@gmail.com>
3523
3524 PR rtl-optimization/70890
3525 * ira.c (combine_and_move_insns): When moving def_insn, remove
3526 equivs on use_insn.
3527
3528 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
3529
3530 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
3531 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
3532 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
3533 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
3534
3535 2016-05-03 Alan Modra <amodra@gmail.com>
3536
3537 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
3538 for SAVE_MULTIPLE/STORE_MULTIPLE.
3539
3540 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3541
3542 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
3543 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
3544
3545 2016-05-03 Richard Biener <rguenther@suse.de>
3546
3547 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
3548 default true.
3549 (gimplify_arg): Likewise.
3550 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
3551 re-writing the result to a decl if required.
3552 (internal_get_tmp_var): Add allow_ssa parameter
3553 and override into_ssa with it.
3554 (get_formal_tmp_var): Adjust.
3555 (get_initialized_tmp_var): Add allow_ssa parameter.
3556 (gimplify_arg): Add allow_ssa parameter and avoid generating
3557 SSA names for the result false.
3558 (gimplify_call_expr): If the call may return twice do not
3559 gimplify parameters into SSA.
3560 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
3561 (gimplify_modify_expr): Adjust assert. For noreturn calls
3562 with a SSA name LHS adjust its def.
3563 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
3564 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
3565 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
3566 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
3567 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
3568 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
3569 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
3570 (optimize_target_teams): Do not allow SSA names for clause operands.
3571 (gimplify_expr): Likewise for where we mark the result addressable.
3572 * passes.def (pass_init_datastructures): Remove.
3573 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
3574 (rewrite_stmt): Likewise.
3575 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
3576 (replace_locals_op): Replace SSA names.
3577 (copy_gimple_seq_and_replace_locals): Init src_cfun.
3578 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
3579 * cgraph.c (release_function_body): Free CFG annotations only
3580 when we have a CFG. Simplify.
3581 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
3582 force_gimple_operand instead of get_initialized_tmp_var.
3583 * tree-pass.h (make_pass_init_datastructures): Remove.
3584 * tree-ssa.c (execute_init_datastructures): Remove.
3585 (pass_data_init_datastructures): Likewise.
3586 (class pass_init_datastructures): Likewise.
3587 (make_pass_init_datastructures): Likewise.
3588 * omp-low.c (create_omp_child_function): Init SSA data structures.
3589 (grid_expand_target_grid_body): Likewise.
3590 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
3591 name before adding it to names_to_release.
3592 (remove_bb): Always release SSA defs.
3593 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
3594 before dereferencing it.
3595 * cgraphunit.c (init_lowered_empty_function): Always
3596 int SSA data structures.
3597 * tree-ssanames.c (release_defs): Remove assert that we are in
3598 SSA form.
3599 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
3600
3601 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3602 Uros Bizjak <ubizjak@gmail.com>
3603
3604 PR rtl-optimization/70467
3605 * config/i386/predicates.md (x86_64_hilo_int_operand,
3606 x86_64_hilo_general_operand): New predicates.
3607 * config/i386/constraints.md (Wd): New constraint.
3608 * config/i386/i386.md (mode attr di): Use Wd instead of e.
3609 (general_hilo_operand): New mode attr.
3610 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
3611 instead of <general_operand>.
3612 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
3613 x86_64_hilo_general_operand instead of <general_operand>.
3614
3615 2016-05-03 Jakub Jelinek <jakub@redhat.com>
3616
3617 PR tree-optimization/70916
3618 * tree-if-conv.c (constant_or_ssa_name): Removed.
3619 (fold_build_cond_expr): Use is_gimple_val instead of
3620 constant_or_ssa_name.
3621
3622 PR tree-optimization/70916
3623 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
3624 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
3625
3626 PR target/49244
3627 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
3628 (optimize_atomic_bit_test_and): New function.
3629 (pass_fold_builtins::execute): Use it.
3630 * optabs.def (atomic_bit_test_and_set_optab,
3631 atomic_bit_test_and_complement_optab,
3632 atomic_bit_test_and_reset_optab): New optabs.
3633 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
3634 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
3635 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
3636 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
3637 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
3638 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
3639 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
3640 * doc/md.texi (atomic_bit_test_and_set@var{mode},
3641 atomic_bit_test_and_complement@var{mode},
3642 atomic_bit_test_and_reset@var{mode}): Document.
3643 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
3644 atomic_bit_test_and_complement<mode>,
3645 atomic_bit_test_and_reset<mode>): New expanders.
3646 (atomic_bit_test_and_set<mode>_1,
3647 atomic_bit_test_and_complement<mode>_1,
3648 atomic_bit_test_and_reset<mode>_1): New insns.
3649
3650 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
3651
3652 PR rtl-optimization/70687
3653 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
3654 instead of unsigned HOST_WIDE_INT.
3655
3656 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
3657
3658 PR rtl-optimization/44281
3659 * hard-reg-set.h (struct target_hard_regs): New field
3660 x_fixed_nonglobal_reg_set.
3661 (fixed_nonglobal_reg_set): New macro.
3662 * reginfo.c (init_reg_sets_1): Initialize it.
3663 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
3664 of fixed_reg_set.
3665 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
3666
3667 2016-05-03 Bin Cheng <bin.cheng@arm.com>
3668
3669 PR tree-optimization/56541
3670 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
3671 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
3672 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
3673 (any_complicated_phi): new static variable.
3674 (aggressive_if_conv): delete.
3675 (if_convertible_phi_p): support phis with more than two arguments.
3676 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
3677 critical pred edges.
3678 (ifcvt_split_critical_edges): support phis with more than two
3679 arguments by checking new parameter. only split critical edges
3680 if needed.
3681 (tree_if_conversion): handle simd pragma marked loop using new
3682 local variable aggressive_if_conv. check any_complicated_phi.
3683
3684 2016-05-03 Bin Cheng <bin.cheng@arm.com>
3685
3686 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
3687 before using it.
3688
3689 2016-05-03 Bin Cheng <bin.cheng@arm.com>
3690
3691 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
3692 cbase.
3693
3694 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
3695
3696 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
3697 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
3698 define_insn_and_split.
3699 (mulsi3_i): New define_insn_and_split.
3700 (mulsi3_call): Convert to define_insn.
3701 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
3702 Remove constraints.
3703
3704 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3705
3706 * machmode.h (mode_complex): Add support to give the complex mode
3707 for a given mode.
3708 (GET_MODE_COMPLEX_MODE): Likewise.
3709 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
3710 stored by build_complex_type and gfc_build_complex_type instead of
3711 trying to figure out the appropriate mode based on the size. Raise
3712 an assertion error, if the type was not set.
3713 * genmodes.c (struct mode_data): Add field for the complex type of
3714 the given type.
3715 (blank_mode): Likewise.
3716 (make_complex_modes): Remember the complex mode created in the
3717 base type.
3718 (emit_mode_complex): Write out the mode_complex array to map a
3719 type mode to the complex version.
3720 (emit_insn_modes_c): Likewise.
3721 * tree.c (build_complex_type): Set the complex type to use before
3722 calling layout_type.
3723 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
3724 support for __float128 complex datatypes.
3725 (rs6000_hard_regno_mode_ok): Likewise.
3726 (rs6000_setup_reg_addr_masks): Likewise.
3727 (rs6000_complex_function_value): Likewise.
3728 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
3729 __float128 and __ibm128 complex.
3730 (FLOAT128_IBM_P): Likewise.
3731 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3732 * doc/extend.texi (Additional Floating Types): Document that
3733 -mfloat128 must be used to enable __float128. Document complex
3734 __float128 and __ibm128 support.
3735
3736 2016-05-02 Jakub Jelinek <jakub@redhat.com>
3737
3738 PR target/49244
3739 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
3740 char/short arguments promoted to int because of promote_prototypes.
3741
3742 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
3743
3744 * config/i386/predicates.md (register_ssemem_operand): New predicate.
3745 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
3746 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
3747 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
3748 alternatives using "enabled" attribute. Use register_ssemem_operand
3749 as operand 1 predicate.
3750 (*cmpi<unord>xf_i387): Split XFmode pattern from
3751 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
3752 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
3753 *absneg<mode>2_i387. Disable unsupported alternatives using
3754 "enabled" attribute.
3755 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
3756
3757 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3758
3759 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
3760 marker.
3761 (oacc_loop_process): Check mask for loop termination.
3762
3763 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
3764
3765 * cif-code.def (CIF_THUNK): Add.
3766 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
3767 accidental change.
3768
3769 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
3770
3771 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
3772 (dump_inline_summary): Dump it.
3773 (fp_expression_p): New predicate.
3774 (estimate_function_body_sizes): Use it.
3775 (inline_merge_summary): Merge fp_expressions.
3776 (inline_read_section): Read fp_expressions.
3777 (inline_write_summary): Write fp_expressions.
3778 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
3779 codegen boundary if either caller or callee is !fp_expressions.
3780 * ipa-inline.h (inline_summary): Add fp_expressions.
3781 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
3782 to fp_expressions be sure the fp generation flags are updated.
3783
3784 2016-05-02 Jakub Jelinek <jakub@redhat.com>
3785
3786 PR rtl-optimization/70467
3787 * cse.c (cse_insn): Handle no-op MEM moves after folding.
3788
3789 PR rtl-optimization/70467
3790 * ipa-pure-const.c (check_call): Handle internal calls even in
3791 ipa mode like in local mode.
3792
3793 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3794
3795 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
3796
3797 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
3798
3799 * match.pd (X u< X, X u> X): New transformations.
3800
3801 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
3802
3803 * flag-types.h (enum warn_strict_overflow_code): Move ...
3804 * coretypes.h: ... here.
3805 * fold-const.h (fold_overflow_warning): Declare.
3806 * fold-const.c (fold_overflow_warning): Make non-static.
3807 (fold_comparison): Move the transformation of X +- C1 CMP C2
3808 into X CMP C2 -+ C1 ...
3809 * match.pd: ... here.
3810 * gimple-fold.c (fold_stmt_1): Protect with
3811 fold_defer_overflow_warnings.
3812
3813 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3814
3815 * omp-low.c (struct oacc_loop): Add 'inner' field.
3816 (new_oacc_loop_raw): Initialize it to zero.
3817 (oacc_loop_fixed_partitions): Initialize it.
3818 (oacc_loop_auto_partitions): Partition outermost loop to outermost
3819 available partitioning.
3820
3821 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
3822
3823 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
3824 register_operand.
3825 (umulsidi3): Likewise.
3826 (indirect_jump): Fix jump instruction assembly patterns.
3827
3828 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
3829
3830 PR target/70860
3831 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
3832 (nvptx_function_value): Assert non-NULL cfun.
3833
3834 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
3835
3836 PR rtl-optimization/70886
3837 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
3838
3839 * cselib.h (rtx_equal_for_cselib_1): Declare.
3840 (rtx_equal_for_cselib_p: New inline function.
3841 * cselib.c (rtx_equal_for_cselib_p): Delete.
3842 (rtx_equal_for_cselib_1): Make public.
3843
3844 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
3845
3846 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
3847 (register_mixssei387nonimm_operand): Remove predicate.
3848 * config/i386/i386.md (*fop_<mode>_comm): Merge from
3849 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
3850 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
3851 for TARGET_MIX_SSE_I387 alternatives.
3852 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
3853 Disable unsupported alternatives using "enabled" attribute. Use
3854 nonimm_ssenomem_operand as operand 1 predicate. Also check
3855 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
3856
3857 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3858
3859 * tree.c (cst_and_fits_in_hwi): Simplify.
3860
3861 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3862
3863 * tree.h (wi::to_wide): New function.
3864 * expr.c (expand_expr_real_1): Use wi::to_wide.
3865 * fold-const.c (int_const_binop_1): Likewise.
3866 (extract_muldiv_1): Likewise.
3867
3868 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3869
3870 * wide-int.h: Update offset_int and widest_int documentation.
3871 (WI_SIGNED_SHIFT_RESULT): New macro.
3872 (wi::binary_shift): Define signed_shift_result_type for
3873 shifts on offset_int- and widest_int-like types.
3874 (generic_wide_int): Support <<= and >>= if << and >> are supported.
3875 * tree.h (int_bit_position): Use shift operators instead of wi::
3876 shifts.
3877 * alias.c (adjust_offset_for_component_ref): Likewise.
3878 * expr.c (get_inner_reference): Likewise.
3879 * fold-const.c (fold_comparison): Likewise.
3880 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
3881 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
3882 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3883 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3884 (stmt_kills_ref_p): Likewise.
3885 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
3886 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
3887 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3888 (ao_ref_init_from_vn_reference): Likewise.
3889
3890 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3891
3892 * wide-int.h: Update offset_int and widest_int documentation.
3893 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
3894 (wi::binary_traits): Allow ordered comparisons between offset_int and
3895 offset_int, between widest_int and widest_int, and between either
3896 of these types and basic C types.
3897 (operator <, <=, >, >=): Define for the same combinations.
3898 * tree.h (tree_int_cst_lt): Use comparison operators instead
3899 of wi:: comparisons.
3900 (tree_int_cst_le): Likewise.
3901 * gimple-fold.c (fold_array_ctor_reference): Likewise.
3902 (fold_nonarray_ctor_reference): Likewise.
3903 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
3904 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
3905 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
3906 * tree-sra.c (completely_scalarize): Likewise.
3907 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
3908 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
3909 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
3910 (check_for_binary_op_overflow): Likewise.
3911 (search_for_addr_array): Likewise.
3912 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
3913
3914 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
3915
3916 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
3917 (arc_save_restore): Likewise.
3918 (arc_dwarf_register_span): Likewise.
3919 (arc_output_pic_addr_const): Initialize suffix variable.
3920
3921 2016-05-02 Martin Liska <mliska@suse.cz>
3922
3923 * symbol-summary.h (function_summary::function_summary):
3924 Remove checking assert for all cgraph nodes.
3925 (function_summary::get): Check summary_uid.
3926 (symtab_insertion): Check summary_uid.
3927
3928 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
3929
3930 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
3931 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
3932 bmaskn instruction.
3933 (arc_dwarf_register_span): Remove enum keyword.
3934 (compact_memory_operand_p): New function.
3935 * config/arc/arc.h (reg_class): Add code density register classes.
3936 (REG_CLASS_NAMES): Likewise.
3937 (REG_CLASS_CONTENTS): Likewise.
3938 * config/arc/arc.md (*movqi_insn): Add code density instructions.
3939 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
3940 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
3941 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
3942 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
3943 constraints.
3944 (h, Rcd, Rsd, Rzd): New register constraints.
3945 (T): Use compact_memory_operand_p function.
3946 * config/arc/predicates.md (compact_load_memory_operand): Remove.
3947
3948 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
3949
3950 * config/sh/sh.md (*negnegt, *movtt): Remove.
3951
3952 2016-05-02 Marek Polacek <polacek@redhat.com>
3953 Tom de Vries <tom@codesourcery.com>
3954
3955 PR tree-optimization/70700
3956 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
3957 bigger than FIRST_REF_NODE.
3958
3959 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
3960
3961 PR target/52898
3962 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
3963 TARGET_CMPEQDI_T.
3964 (prepare_cbranch_operands): Don't use scratch register. Assume that
3965 function is used when pseudos can be created.
3966 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
3967 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
3968 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
3969 define_expand. Allow it only when pseudos can be created.
3970 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
3971
3972 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
3973
3974 * config/i386/constraints.md (BC): Only allow -1 operands.
3975 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
3976 Add "enabled" attribute. Update XI mode attribute calculation.
3977 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
3978 (*movoi_internal_avx): Update XI mode attribute calculation.
3979 (*movti_internal): Ditto.
3980
3981 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
3982
3983 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
3984 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
3985
3986 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
3987
3988 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
3989 statement on instruction code. Remove trailing spaces.
3990 (altivec_expand_stv_builtin): Likewise.
3991
3992 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
3993
3994 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
3995 (TARGET_FPU_DOUBLE): Simplify.
3996 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
3997 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
3998 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
3999 with 'TARGET_FPU_DOUBLE'.
4000 * config/sh/sh.md: Likewise.
4001
4002 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
4003
4004 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
4005 SH_DIV_STR_FOR_SIZE): Remove.
4006 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
4007 SH_DIV_STR_FOR_SIZE): Remove.
4008
4009 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
4010
4011 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
4012 logical_reg_operand): Delete.
4013 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
4014 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
4015 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
4016 match_operand and match_test.
4017 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
4018 variables on their first use. Return bool values.
4019 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
4020 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
4021 arith_reg_operand for input operand. Remove empty constraints.
4022 (xorsi3): Delete.
4023 (*xorsi3_compact): Rename to xorsi3.
4024 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
4025 (*zero_extend<mode>si2_disp_mem): Update comment.
4026 (mov_nop): Delete.
4027
4028 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4029
4030 * config/sh/t-sh: Remove SH5 support.
4031 * config.gcc: Likewise.
4032 * configure: Likewise.
4033
4034 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4035
4036 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
4037
4038 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
4039
4040 * config/sh/sh.c (register_sh_passes, sh_option_override,
4041 sh_print_operand, prepare_move_operands,
4042 sh_can_follow_jump): Remove TARGET_SH1 checks.
4043 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
4044 PROMOTE_MODE): Likewise.
4045 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
4046 movdi): Likewise.
4047
4048 2016-04-30 Alan Modra <amodra@gmail.com>
4049
4050 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
4051 restoring when fixed_reg_p, but allow out-of-line or stmw save.
4052 Check for user regs later to avoid unnecessary looping over regs.
4053 Merge user reg check with non-saved reg check. Don't force
4054 inline VR restore when static chain used.
4055 (rs6000_frame_related): Omit eh_frame info for user regs when
4056 saving.
4057 (fixed_regs_p): Delete.
4058
4059 2016-04-30 Alan Modra <amodra@gmail.com>
4060
4061 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
4062 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
4063 Update all uses.
4064
4065 2016-04-30 Alan Modra <amodra@gmail.com>
4066
4067 PR target/69645
4068 * config/rs6000/rs6000.c (fixed_reg_p): New function.
4069 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
4070 Update all uses.
4071
4072 2016-04-30 Alan Modra <amodra@gmail.com>
4073
4074 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4075 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
4076 flag_pic test for Darwin.
4077
4078 2016-04-30 Alan Modra <amodra@gmail.com>
4079
4080 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
4081 throw_calls_crossed.
4082 (REG_FREQ_CALLS_CROSSED): Delete.
4083 (REG_N_THROWING_CALLS_CROSSED): Delete.
4084 * regstat.c (regstat_bb_compute_ri): Don't calculate
4085 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
4086 (dump_reg_info): Don't print call cross frequency.
4087 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
4088 and REG_N_THROWING_CALLS_CROSSED.
4089
4090 2016-04-30 Alan Modra <amodra@gmail.com>
4091
4092 * regs.h (struct reg_info_t): Delete live_length.
4093 (REG_LIVE_LENGTH): Delete macro.
4094 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
4095 local_live, local_processed and local_live_last_luid params.
4096 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
4097 Formatting fixes.
4098 (regstat_compute_ri): Adjust for above. Don't set
4099 REG_LIVE_LENGTH.
4100 (dump_reg_info): Don't print live length.
4101 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
4102 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
4103 Localize loop_depth var.
4104
4105 2016-04-30 Alan Modra <amodra@gmail.com>
4106
4107 * ira.c (enum valid_equiv): New.
4108 (validate_equiv_mem): Return enum.
4109 (update_equiv_mem): Create replacement in more cases.
4110 (add_store_equivs): Update validate_equiv_mem call.
4111
4112 2016-04-30 Alan Modra <amodra@gmail.com>
4113
4114 * ira.c (combine_and_move_insns): Rather than scanning insns,
4115 use DF infrastucture to find use and def insns.
4116
4117 2016-04-30 Alan Modra <amodra@gmail.com>
4118
4119 ira.c (combine_and_move_insns): Move invariant conditions..
4120 (ira.c): ..to here. Call combine_and_move_insns before
4121 add_store_equivs. Call grow_reg_equivs later. Allocate
4122 req_equiv later using max_reg_num() rather than global max_regno.
4123 (contains_replace_regs): Delete.
4124 (add_store_equivs): Remove contains_replace_regs test.
4125
4126 2016-04-30 Alan Modra <amodra@gmail.com>
4127
4128 * ira.c (struct equiv_mem_data): New.
4129 (equiv_mem, equiv_mem_modified): Delete static vars.
4130 (validate_equiv_mem_from_store): Use "data" param to communicate..
4131 (validate_equiv_mem): ..from here.
4132
4133 2016-04-30 Alan Modra <amodra@gmail.com>
4134
4135 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
4136 split out from..
4137 (update_reg_equivs): ..here. Move allocation and freeing of
4138 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
4139 end_alias_analysis to..
4140 (ira): ..here.
4141
4142 2016-04-30 Alan Modra <amodra@gmail.com>
4143
4144 * ira.c (pdx_subregs): Delete.
4145 (struct equivalence): Add pdx_subregs field.
4146 (set_paradoxical_subreg): Remove pdx_subregs param. Update
4147 pdx_subregs access.
4148 (update_equiv_regs): Don't create or free pdx_subregs. Update
4149 pdx_subregs access.
4150
4151 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4152
4153 * config/rs6000/altivec.h: Change definitions of vec_xl and
4154 vec_xst.
4155 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
4156 (LD_ELEMREV_V2DI): New.
4157 (LD_ELEMREV_V4SF): New.
4158 (LD_ELEMREV_V4SI): New.
4159 (LD_ELEMREV_V8HI): New.
4160 (LD_ELEMREV_V16QI): New.
4161 (ST_ELEMREV_V2DF): New.
4162 (ST_ELEMREV_V2DI): New.
4163 (ST_ELEMREV_V4SF): New.
4164 (ST_ELEMREV_V4SI): New.
4165 (ST_ELEMREV_V8HI): New.
4166 (ST_ELEMREV_V16QI): New.
4167 (XL): New.
4168 (XST): New.
4169 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4170 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
4171 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
4172 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
4173 (altivec_expand_builtin): Add handling for
4174 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
4175 (rs6000_invalid_builtin): Add error-checking for
4176 RS6000_BTM_P9_VECTOR.
4177 (altivec_init_builtins): Define builtins used to implement vec_xl
4178 and vec_xst.
4179 (rs6000_builtin_mask_names): Define power9-vector.
4180 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
4181 (RS6000_BTM_P9_VECTOR): Define.
4182 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
4183 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
4184 (vsx_ld_elemrev_v2df): Likewise.
4185 (vsx_ld_elemrev_v4sf): Likewise.
4186 (vsx_ld_elemrev_v4si): Likewise.
4187 (vsx_ld_elemrev_v8hi): Likewise.
4188 (vsx_ld_elemrev_v16qi): Likewise.
4189 (vsx_st_elemrev_v2df): Likewise.
4190 (vsx_st_elemrev_v2di): Likewise.
4191 (vsx_st_elemrev_v4sf): Likewise.
4192 (vsx_st_elemrev_v4si): Likewise.
4193 (vsx_st_elemrev_v8hi): Likewise.
4194 (vsx_st_elemrev_v16qi): Likewise.
4195 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
4196 grammar.
4197
4198 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
4199
4200 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
4201 out into ...
4202 (simplify_control_stmt_condition_1): ... here. Recurse into
4203 BIT_AND_EXPRs and BIT_IOR_EXPRs.
4204
4205 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
4206
4207 PR target/69810
4208 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
4209 (zero_extendqi<mode>2_dot): Revert earlier conversion from
4210 define_insn_and_split to define_insn.
4211 (zero_extendqi<mode>2_dot2): Same.
4212 (extendqi<mode>2_dot): Same.
4213 (extendqi<mode>2_dot2): Same.
4214
4215 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4216
4217 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
4218 (probe_stack): New expander.
4219 (probe_stack_<mode>): New insn pattern.
4220
4221 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4222
4223 * config/i386/i386.md
4224 (operations with memory inputs setting flags peephole2):
4225 Remove uneeded REG_P checks. Cleanup pattern generation.
4226
4227 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
4228
4229 * tree-vect-loop.c (vect_transform_loop): Fix
4230 nb_iterations_upper_bound computation for vectorized loop.
4231
4232 2016-04-29 Marek Polacek <polacek@redhat.com>
4233 Jakub Jelinek <jakub@redhat.com>
4234
4235 PR sanitizer/70342
4236 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4237 TARGET_EXPR_SLOT as a base.
4238
4239 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
4242 with 'rCm2' constraints to limit possible immediate size.
4243 (*load_zeroextendqisi_update): Likewise.
4244 (*load_signextendqisi_update): Likewise.
4245 (*loadhi_update): Likewise.
4246 (*load_zeroextendhisi_update): Likewise.
4247 (*load_signextendhisi_update): Likewise.
4248 (*loadsi_update): Likewise.
4249 (*loadsf_update): Likewise.
4250
4251 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4252
4253 * config/i386/predicates.md (constm1_operand): Fix comparison.
4254
4255 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
4256
4257 * testsuite/gcc.target/arc/ieee_eq.c: New test.
4258
4259 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
4260
4261 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
4262 remaining SH5 related settings.
4263 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
4264 shmedia_prepare_call_address): Delete.
4265 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
4266 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
4267 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
4268 UNSUPPORTED_SH2A): Remove m5 checks.
4269 (sh_divide_strategy_e): Remove SH5 division strategies.
4270 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
4271 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
4272
4273 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4274
4275 * config/s390/s390.c (s390_rtx_costs): Update documentation.
4276
4277 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4278
4279 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
4280 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
4281 Change lder to ldr.
4282 * config/s390/vector.md ("mov<mode>"): Likewise.
4283
4284 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
4285
4286 * config/s390/constraints.md ("U", "W"): Invoke
4287 s390_mem_constraint with "ZR" and "ZT".
4288 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
4289 addresses when using LRA. Accept also short displacements for S
4290 and T constraints. Do not check for long displacement target for
4291 S and T constraints.
4292 (s390_mem_constraint): Remove handling of U and W constraints.
4293 * config/s390/s390.md (various patterns): Remove the short
4294 displacement constraints (Q and R) if a long displacement
4295 constraint is present. Add longdisp as required CPU capability.
4296 * config/s390/vector.md: Likewise.
4297 * config/s390/vx-builtins.md: Likewise.
4298
4299 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4300
4301 PR target/60040
4302 * reload1.c (reload): Call finish_spills before
4303 restarting reload loop. Skip select_reload_regs
4304 if update_eliminables_and_spill returns true.
4305
4306 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
4307
4308 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
4309 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
4310 (umulhisi3_imm): Update predicates and constraint letters.
4311 (umulhisi3_reg): Declare instruction as commutative.
4312 * config/arc/constraints.md (J12, J16): New constraints.
4313 * config/arc/predicates.md (short_unsigned_const_operand): New
4314 predicate.
4315 (arc_short_operand): Likewise.
4316 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
4317
4318 2016-04-29 Richard Biener <rguenther@suse.de>
4319
4320 PR tree-optimization/13962
4321 PR tree-optimization/65686
4322 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
4323 * tree-ssa-alias.c (ptrs_compare_unequal): New function
4324 using PTA to compare pointers.
4325 * match.pd: Add pattern for pointer equality compare simplification
4326 using ptrs_compare_unequal.
4327
4328 2016-04-29 Richard Biener <rguenther@suse.de>
4329
4330 * stor-layout.c (layout_type): Do not build a pointer-to-element
4331 type for arrays.
4332
4333 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
4334
4335 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
4336 Use SWI mode iterator. Use general_reg_operand predicate.
4337 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
4338 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
4339 predicates.
4340
4341 2016-04-29 Jakub Jelinek <jakub@redhat.com>
4342
4343 PR middle-end/70843
4344 * fold-const.c (operand_equal_p): Don't verify hash value equality
4345 if arg0 == arg1.
4346 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
4347 and OMP_CLAUSE.
4348
4349 2016-04-28 Jakub Jelinek <jakub@redhat.com>
4350
4351 PR target/70858
4352 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
4353 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
4354 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
4355 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
4356 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
4357
4358 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4359
4360 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
4361 to info. Don't initialize separate fields to 0. Clean up
4362 formatting a bit.
4363
4364 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
4365
4366 * config/i386/i386.md (peephole2s for operations with memory inputs):
4367 Use SWI mode iterator.
4368 (peephole2s for operations with memory outputs): Ditto.
4369 Do not check for stack checking probe.
4370
4371 (probe_stack): Remove expander.
4372
4373 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4374 Andrew Burgess <andrew.burgess@embecosm.com>
4375
4376 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
4377 operands as 32-bits.
4378
4379 2016-04-28 Jason Merrill <jason@redhat.com>
4380
4381 * gdbinit.in: Skip line-map.h.
4382
4383 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4384 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * config/arc/arc.c (arc_conditional_register_usage): Take
4387 TARGET_RRQ_CLASS into account.
4388 (arc_print_operand): Support printing 'p' and 's' operands.
4389 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
4390 as 0.
4391 (TARGET_RRQ_CLASS): Define.
4392 (IS_POWEROF2_OR_0_P): Define.
4393 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
4394 alternatives.
4395 (*tst_movb): New define_insn.
4396 (*tst): Avoid recognition if it could prevent '*tst_movb'
4397 combination; replace c/CnL with c/Chs alternative.
4398 (*tst_bitfield_tst): New define_insn.
4399 (*tst_bitfield_asr): New define_insn.
4400 (*tst_bitfield): New define_insn.
4401 (andsi3_i): Add Rrq variant.
4402 (extzv): New define_expand.
4403 (insv): New define_expand.
4404 (*insv_i): New define_insn.
4405 (*movb): New define_insn.
4406 (*movb_signed): New define_insn.
4407 (*movb_high): New define_insn.
4408 (*movb_high_signed): New define_insn.
4409 (*movb_high_signed + 1): New define_split pattern.
4410 (*mrgb): New define_insn.
4411 (*mrgb + 1): New define_peephole2 pattern.
4412 (*mrgb + 2): New define_peephole2 pattern.
4413 * config/arc/arc.opt (mbitops): New option for nps400, uses
4414 TARGET_NPS_BITOPS_DEFAULT.
4415 * config/arc/constraints.md (q): Make register class conditional.
4416 (Rrq): New register constraint.
4417 (Chs): New constraint.
4418 (Clo): New constraint.
4419 (Chi): New constraint.
4420 (Cbf): New constraint.
4421 (Cbn): New constraint.
4422 (C18): New constraint.
4423 (Cbi): New constraint.
4424
4425 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4426
4427 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
4428 dst->popcount.
4429 (bitmap_intersection_of_preds): Ditto.
4430 (bitmap_union_of_succs): Ditto.
4431 (bitmap_union_of_preds): Ditto.
4432 * sbitmap.c (do_popcount): Delete.
4433 (BITMAP_DEBUGGING): Delete.
4434 (sbitmap_verify_popcount): Delete.
4435 (sbitmap_alloc): Don't initialize the popcount field.
4436 (sbitmap_alloc_with_popcount): Delete.
4437 (sbitmap_resize): Don't resize the popcount array.
4438 (sbitmap_vector_alloc): Don't initialize the popcount field.
4439 (bitmap_copy): Don't copy the popcount array.
4440 (bitmap_clear): Don't clear the popcount array.
4441 (bitmap_clear): Delete the popcount array handling.
4442 (bitmap_ior_and_compl): Delete the popcount assert.
4443 (bitmap_not): Ditto.
4444 (bitmap_and_compl): Ditto.
4445 (bitmap_and): Delete the popcount array handling.
4446 (bitmap_xor): Ditto.
4447 (bitmap_ior): Ditto.
4448 (bitmap_or_and): Delete the popcount assert.
4449 (bitmap_and_or): Ditto.
4450 (popcount_table): Delete.
4451 (sbitmap_elt_popcount): Delete.
4452 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
4453 (bitmap_set_bit): Delete the popcount assert.
4454 (bitmap_clear_bit): Ditto.
4455 (sbitmap_free): Don't free the popcount array.
4456 (sbitmap_alloc_with_popcount): Delete declaration.
4457 (sbitmap_popcount): Ditto.
4458
4459 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4460 Andrew Burgess <andrew.burgess@embecosm.com>
4461
4462 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
4463 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
4464 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
4465 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
4466 * config/arc/arc.opt (mcmem): New option.
4467 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
4468 supply length for r/m alternative.
4469 (*extendqisi2_ac): Likewise.
4470 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
4471 r/Uex alternative.
4472 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
4473 (movhi_insn): Likewise.
4474 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
4475 (*zero_extendqihi2_i): Add r/Ucm alternative.
4476 (*zero_extendqisi2_ac): Likewise.
4477 (*zero_extendhisi2_i): Likewise.
4478 * config/arc/constraints.md (Uex): New memory constraint.
4479 (Ucm): New define_constraint.
4480 * config/arc/predicates.md (long_immediate_loadstore_operand):
4481 Return 0 for MEM with cmem_address address.
4482 (cmem_address_0): New predicates.
4483 (cmem_address_1): Likewise.
4484 (cmem_address_2): Likewise.
4485 (cmem_address): Likewise.
4486
4487 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4488
4489 * config/rs6000/rs6000.c (machine_function): Rename
4490 insn_chain_scanned_p to spe_insn_chain_scanned_p.
4491 (rs6000_stack_info): Adjust.
4492
4493 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
4494 Andrew Burgess <andrew.burgess@embecosm.com>
4495
4496 * config/arc/constraints.md (Usd): Convert to define_constraint.
4497 (Us<): Likewise.
4498 (Us>): Likewise.
4499
4500 2016-04-28 Jakub Jelinek <jakub@redhat.com>
4501
4502 PR target/70821
4503 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
4504 Add new peephole2 where the first insn is *mov<mode>_or instead of
4505 *mov<mode>_internal.
4506
4507 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
4508
4509 * tracer.c (bb_seen): Make static.
4510
4511 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
4512
4513 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
4514 support, setup defaults.
4515 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
4516 * config/arc/arc.c (arc_init): Add NPS400 support.
4517 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
4518 (TARGET_ARC700): NPS400 is also an ARC700.
4519 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
4520
4521 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
4522
4523 PR target/70668
4524 * config/nds32/nds32.md (casesi): Don't access the operands array
4525 out of bounds.
4526
4527 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
4528
4529 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
4530 (or $-1,reg peephole2): Ditto.
4531 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
4532
4533 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
4534
4535 * doc/extend.texi (Common Function Attributes) [optimize]:
4536 Discourage use of the optimize attribute.
4537
4538 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
4539
4540 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
4541 special case builtin.
4542 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4543 ALTIVEC_BUILTIN_VEC_ADDE.
4544 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4545 support for ALTIVEC_BUILTIN_VEC_ADDE.
4546 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4547 for __builtin_vec_adde.
4548
4549 2016-04-28 Jakub Jelinek <jakub@redhat.com>
4550
4551 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
4552 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
4553
4554 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4555
4556 PR testsuite/70595
4557 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4558 attributes): Document cilkplus_runtime.
4559
4560 2016-04-28 Martin Jambor <mjambor@suse.cz>
4561
4562 * tree-cfg.c (verify_expr): Verify that local declarations belong to
4563 this function. Call verify_expr on MEM_REFs and bases of other
4564 handled_components.
4565
4566 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567
4568 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
4569 for WORD_REGISTER_OPERATIONS to runtime check.
4570
4571 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4572
4573 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
4574
4575 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4576
4577 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
4578 big-endian compilation.
4579 * config/arc/arc.md (addf3): Likewise.
4580 (subdf3): Likewise.
4581 (muldf3): Likewise.
4582
4583 2016-04-28 Richard Biener <rguenther@suse.de>
4584
4585 PR tree-optimization/70840
4586 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
4587 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
4588 Mark x * pow(x,c) -> pow(x,c+1) commutative.
4589 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
4590
4591 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4592
4593 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
4594 and explain why in a comment.
4595
4596 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4597
4598 * config/arc/arc.md (cpu_facility): Add fpx variant.
4599 (subdf3): Prohibit use reverse sub when assist operations option
4600 is enabled.
4601 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
4602 instructions only when FPX is enabled.
4603 * testsuite/gcc.target/arc/trsub.c: New test.
4604
4605 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
4606
4607 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
4608 mult_operator when calculating "type" attribute.
4609 (*fop_<mode>_1_i387): Ditto.
4610 (*fop_xf_1_i387): Ditto.
4611 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
4612 Use std::swap to swap operands. Use RTL expressions to generate
4613 converted pattern.
4614
4615 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4616 Joern Rennecke <joern.rennecke@embecosm.com>
4617
4618 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
4619 declaration.
4620 (emit_pic_move): Remove.
4621 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
4622 * config/arc/arc.c (emit_pic_move): Removed.
4623 (TARGET_HAVE_TLS): Define.
4624 (arc_conditional_register_usage): Test for arc_tp_regno.
4625 (arc_print_operand, arc_print_operand_address): Handle TLS
4626 unspecs.
4627 (arc_needs_pcl_p): New function.
4628 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
4629 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
4630 (arc_raw_symbolic_reference_mentioned_p): Likewise.
4631 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
4632 (arc_legitimize_tls_address): Likewise.
4633 (DTPOFF_ZERO_SYM): Define.
4634 (arc_legitimize_pic_address): Make it static, handle TLS cases.
4635 (arc_output_pic_addr_const): Print TLS unspecs.
4636 (prepare_pic_move): New function, replaces emit_pic_move.
4637 (arc_legitimate_constant_p): Handle TLS unspecs.
4638 (arc_legitimate_address_p): Likewise.
4639 (arc_rewrite_small_data_p): Use assert for TLS constants.
4640 (prepare_move_operands): Use prepare_pic_move.
4641 (arc_legitimize_address): Legitimize tls addresses.
4642 (arc_epilogue_uses): Check for arc_tp_regno.
4643 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
4644 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
4645 Define.
4646 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
4647 Likewise.
4648 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
4649 %(arc_tls_extra_start_spec).
4650 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
4651 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
4652 (EH_USES): Define.
4653 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
4654 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
4655 (UNSPEC_TLS_OFF): Add.
4656 (R10_REG): Define.
4657 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
4658 (get_thread_pointersi): New patterns.
4659 * config/arc/arc.opt (mtp-regno): New option.
4660 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
4661 (move_dest_operand): Likewise.
4662 * configure: Regenerate.
4663 * configure.ac: Add arc*-*-* case to test for tls.
4664 * doc/invoke.texi (ARC options): Document mtp-regno.
4665
4666 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
4667
4668 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
4669 the new ARC HS SIMD instructions.
4670 (arc_preferred_simd_mode): New function.
4671 (arc_autovectorize_vector_sizes): Likewise.
4672 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
4673 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4674 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
4675 (arc_init_builtins): Add new SIMD builtin types.
4676 (arc_split_move): Handle 64 bit vector moves.
4677 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
4678 (TARGET_PLUS_QMACW): Define.
4679 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
4680 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
4681 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
4682 (VSUBADD4H): New builtins.
4683 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
4684 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
4685
4686 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
4687 Matthias Klose <doko@debian.org>
4688
4689 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
4690
4691 2016-04-28 Richard Biener <rguenther@suse.de>
4692
4693 PR middle-end/70777
4694 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
4695 canonicalization.
4696
4697 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
4698
4699 * common/config/sh/sh-common.c: Remove SH5 support.
4700 * config/sh/constraints.md: Likewise.
4701 * config/sh/config/sh/elf.h: Likewise.
4702 * config/sh/linux.h: Likewise.
4703 * config/sh/netbsd-elf.h: Likewise.
4704 * config/sh/predicates.md: Likewise.
4705 * config/sh/sh-c.c: Likewise.
4706 * config/sh/sh-protos.h: Likewise.
4707 * config/sh/sh.c: Likewise.
4708 * config/sh/sh.h: Likewise.
4709 * config/sh/sh.md: Likewise.
4710 * config/sh/sh.opt: Likewise.
4711 * config/sh/sync.md: Likewise.
4712 * config/sh/sh64.h: Delete.
4713 * config/sh/shmedia.h: Likewise.
4714 * config/sh/shmedia.md: Likewise.
4715 * config/sh/sshmedia.h: Likewise.
4716 * config/sh/t-netbsd-sh5-64: Likewise.
4717 * config/sh/t-sh64: Likewise.
4718 * config/sh/ushmedia.h: Likewise.
4719
4720 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
4721
4722 * config/i386/i386.md (sign_extend to memory peephole2s): Use
4723 general_reg_operand instead of register_operand predicate.
4724
4725 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4726
4727 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
4728
4729 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
4730
4731 * match.pd (A - B > A, A + B < A): New transformations.
4732
4733 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
4734
4735 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
4736 which defaults to true. Emit an outer pair of parentheses only if
4737 EMIT_PARENS. When continuing a chain of && or || (or & or |),
4738 don't emit parentheses for the right-hand operand.
4739
4740 2016-04-27 Jeff Law <law@redhat.com>
4741
4742 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
4743
4744 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4745
4746 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
4747 (altivec_lvx_<mode>_internal): Document.
4748 (altivec_lvx_<mode>_2op): New define_insn.
4749 (altivec_lvx_<mode>_1op): Likewise.
4750 (altivec_lvx_<mode>_2op_si): Likewise.
4751 (altivec_lvx_<mode>_1op_si): Likewise.
4752 (altivec_stvx_<mode>): Remove.
4753 (altivec_stvx_<mode>_internal): Document.
4754 (altivec_stvx_<mode>_2op): New define_insn.
4755 (altivec_stvx_<mode>_1op): Likewise.
4756 (altivec_stvx_<mode>_2op_si): Likewise.
4757 (altivec_stvx_<mode>_1op_si): Likewise.
4758 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4759 Expand vec_ld and vec_st during parsing.
4760 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
4761 changes.
4762 (altivec_expand_stvx_be): Likewise.
4763 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
4764 address-masking behavior in RTL.
4765 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
4766 address-masking behavior in RTL.
4767 (altivec_expand_builtin): Change builtin code arguments for calls
4768 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
4769 (insn_is_swappable_p): Avoid incorrect swap optimization in the
4770 presence of lvx/stvx patterns.
4771 (alignment_with_canonical_addr): New function.
4772 (alignment_mask): Likewise.
4773 (find_alignment_op): Likewise.
4774 (recombine_lvx_pattern): Likewise.
4775 (recombine_stvx_pattern): Likewise.
4776 (recombine_lvx_stvx_patterns): Likewise.
4777 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
4778 stvx patterns from expand.
4779 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
4780 expansions.
4781 (vector_altivec_store_<mode>): Likewise.
4782
4783 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
4784
4785 * config/aarch64/aarch64.md
4786 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
4787 remove the "fp" attributes.
4788 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
4789 add the "simd" attributes.
4790 (*movdf_aarch64): Likewise.
4791 (*movtf_aarch64): Remove the "fp" attributes.
4792 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
4793 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
4794
4795 2016-04-27 David Malcolm <dmalcolm@redhat.com>
4796
4797 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
4798 rtx to rtx_code_label *.
4799 * rtl.h (maybe_set_first_label_num): Likewise.
4800
4801 2016-04-27 David Malcolm <dmalcolm@redhat.com>
4802
4803 * df-core.c (df_add_problem): Make the problem param be const.
4804 (df_remove_problem): Make local "problem" be const.
4805 * df-problems.c (problem_RD): Make const.
4806 (problem_LR): Likewise.
4807 (problem_LIVE): Likewise.
4808 (problem_MIR): Likewise.
4809 (problem_CHAIN): Likewise.
4810 (problem_WORD_LR): Likewise.
4811 (problem_NOTE): Likewise.
4812 (problem_MD): Likewise.
4813 * df-scan.c (problem_SCAN): Likewise.
4814 * df.h (struct df_problem): Make field "dependent_problem" be
4815 const.
4816 (struct dataflow): Likewise for field "problem".
4817 (df_add_problem): Make param const.
4818
4819 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
4820
4821 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
4822 inter-unit moves to/from vector registers are enabled. Do not disable
4823 for TARGET_MMX.
4824
4825 2016-04-27 David Malcolm <dmalcolm@redhat.com>
4826
4827 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
4828 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
4829 #define to...
4830 (enum df_problem_id): ...this new enum.
4831 (struct df_problem): Convert field "id" from "int" to
4832 enum df_problem_id.
4833
4834 2016-04-27 David Malcolm <dmalcolm@redhat.com>
4835
4836 * rtl.def: Update comment for "things in the instruction chain" to
4837 reflect the removal of the leading "i" field for INSN_UID in
4838 r210360. Fix bogus apostrophe.
4839
4840 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
4841
4842 * config/i386/i386.md
4843 (lea arith with mem operand + setcc peephole2): Set operator mode.
4844
4845 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
4846
4847 PR target/70155
4848 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
4849 (dimode_scalar_to_vector_candidate_p): This.
4850 (timode_scalar_to_vector_candidate_p): New function.
4851 (scalar_to_vector_candidate_p): Likewise.
4852 (timode_check_non_convertible_regs): Likewise.
4853 (timode_remove_non_convertible_regs): Likewise.
4854 (remove_non_convertible_regs): Likewise.
4855 (remove_non_convertible_regs): Renamed to ...
4856 (dimode_remove_non_convertible_regs): This.
4857 (scalar_chain::~scalar_chain): Make it virtual.
4858 (scalar_chain::compute_convert_gain): Make it pure virtual.
4859 (scalar_chain::mark_dual_mode_def): Likewise.
4860 (scalar_chain::convert_insn): Likewise.
4861 (scalar_chain::convert_registers): Likewise.
4862 (scalar_chain::add_to_queue): Make it protected.
4863 (scalar_chain::emit_conversion_insns): Likewise.
4864 (scalar_chain::replace_with_subreg): Likewise.
4865 (scalar_chain::replace_with_subreg_in_insn): Likewise.
4866 (scalar_chain::convert_op): Likewise.
4867 (scalar_chain::convert_reg): Likewise.
4868 (scalar_chain::make_vector_copies): Likewise.
4869 (scalar_chain::convert_registers): New pure virtual function.
4870 (class dimode_scalar_chain): New class.
4871 (class timode_scalar_chain): Likewise.
4872 (scalar_chain::mark_dual_mode_def): Renamed to ...
4873 (dimode_scalar_chain::mark_dual_mode_def): This.
4874 (timode_scalar_chain::mark_dual_mode_def): New function.
4875 (timode_scalar_chain::convert_insn): Likewise.
4876 (dimode_scalar_chain::convert_registers): Likewise.
4877 (scalar_chain::compute_convert_gain): Renamed to ...
4878 (dimode_scalar_chain::compute_convert_gain): This.
4879 (scalar_chain::replace_with_subreg): Renamed to ...
4880 (dimode_scalar_chain::replace_with_subreg): This.
4881 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
4882 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
4883 (scalar_chain::make_vector_copies): Renamed to ...
4884 (dimode_scalar_chain::make_vector_copies): This.
4885 (scalar_chain::convert_reg): Renamed to ...
4886 (dimode_scalar_chain::convert_reg ): This.
4887 (scalar_chain::convert_op): Renamed to ...
4888 (dimode_scalar_chain::convert_op): This.
4889 (scalar_chain::convert_insn): Renamed to ...
4890 (dimode_scalar_chain::convert_insn): This.
4891 (scalar_chain::convert): Call convert_registers.
4892 (convert_scalars_to_vector): Change to scalar_chain pointer to
4893 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
4894 in 32-bit mode. Delete scalar_chain pointer. Call
4895 free_dominance_info in 64-bit mode.
4896 (pass_stv::gate): Remove TARGET_64BIT check.
4897 (ix86_option_override): Put the 64-bit STV pass before the CSE
4898 pass.
4899
4900 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
4901
4902 * dwarf2out.h (struct dw_loc_descr_node): Remove the
4903 dw_loc_frame_offset field.
4904 * dwarf2out.c (new_loc_descr): Likewise.
4905 (resolve_args_picking_1): Turn the VISITED hash set into a
4906 FRAME_OFFSET hash map. Use it to associate a frame offset to
4907 visited nodes. Remove uses of the CHECKING_P macro.
4908 (resolve_args_picking): Update call to resolve_args_picking_1.
4909
4910 2016-04-27 Martin Liska <mliska@suse.cz>
4911
4912 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
4913 (free_loop_data): Release vuses of groups.
4914
4915 2016-04-27 Bin Cheng <bin.cheng@arm.com>
4916
4917 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
4918 instead of redundant use_id and boolean have_use_for.
4919 (struct iv_use): Change sub_id into group_id. Remove field next.
4920 Move fields: related_cands, n_map_members, cost_map and selected
4921 to ...
4922 (struct iv_group): ... here. New structure.
4923 (struct iv_common_cand): Use structure declaration directly.
4924 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
4925 (MAX_CONSIDERED_USES): Rename macro to ...
4926 (MAX_CONSIDERED_GROUPS): ... here.
4927 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
4928 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
4929 (dump_uses): Rename to ...
4930 (dump_groups): ... here. Update all uses.
4931 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
4932 (find_induction_variables): Refactor format of dump information.
4933 (record_sub_use): Delete.
4934 (record_use): Update all uses.
4935 (record_group): New function.
4936 (record_group_use, find_interesting_uses_op): Call above functions.
4937 Update all uses.
4938 (find_interesting_uses_cond): Ditto.
4939 (group_compare_offset): New function.
4940 (split_all_small_groups): Rename to ...
4941 (split_small_address_groups_p): ... here. Update all uses.
4942 (split_address_groups): Update all uses.
4943 (find_interesting_uses): Refactor format of dump information.
4944 (add_candidate_1): Update all uses. Remove redundant check on iv,
4945 base and step.
4946 (add_candidate, record_common_cand): Remove redundant assert.
4947 (add_iv_candidate_for_biv): Update use.
4948 (add_iv_candidate_derived_from_uses): Update all uses.
4949 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
4950 (alloc_use_cost_map): Ditto.
4951 (set_use_iv_cost, get_use_iv_cost): Rename to ...
4952 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
4953 (determine_use_iv_cost_generic): Ditto.
4954 (determine_group_iv_cost_generic): Ditto.
4955 (determine_use_iv_cost_address): Ditto.
4956 (determine_group_iv_cost_address): Ditto.
4957 (determine_use_iv_cost_condition): Ditto.
4958 (determine_group_iv_cost_cond): Ditto.
4959 (determine_use_iv_cost): Ditto.
4960 (determine_group_iv_cost): Ditto.
4961 (set_autoinc_for_original_candidates): Update all uses.
4962 (find_iv_candidates): Update all uses. Refactor dump information.
4963 (determine_use_iv_costs): Ditto.
4964 (determine_iv_costs): Ditto.
4965 (iv_ca_cand_for_use): Rename to ...
4966 (iv_ca_cand_for_group): ... here. Update all uses.
4967 (iv_ca_add_use, iv_ca_add_group): Ditto.
4968 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
4969 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
4970 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
4971 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
4972 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
4973 (create_new_iv, adjust_iv_update_pos): Ditto.
4974 (rewrite_use_address): Delete.
4975 (rewrite_use_address_1): Rename to ...
4976 (rewrite_use_address): ... here.
4977 (rewrite_use_compare): Update all uses.
4978 (rewrite_use): Delete.
4979 (rewrite_uses): Rename to ...
4980 (rewrite_groups): ... here. Update all uses.
4981 (remove_unused_ivs, free_loop_data): Update all uses.
4982 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
4983
4984 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4985
4986 * rtlanal.c (nonzero_bits1): Convert preprocessor check
4987 for WORD_REGISTER_OPERATIONS to runtime check.
4988
4989 2016-04-27 Richard Biener <rguenther@suse.de>
4990
4991 PR ipa/70760
4992 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
4993 aggregate_value_p to determine if a function result is
4994 returned by reference.
4995 (ipa_pta_execute): Functions having their address taken are
4996 not automatically nonlocal.
4997
4998 2016-04-27 Jakub Jelinek <jakub@redhat.com>
4999
5000 PR sanitizer/70683
5001 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
5002 * fold-const.c (operand_equal_p): If flag_checking and
5003 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
5004 and if it returns non-zero, assert iterative_hash_expr on both
5005 args is the same.
5006
5007 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5008
5009 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
5010
5011 2016-04-27 Nick Clifton <nickc@redhat.com>
5012
5013 PR middle-end/49889
5014 * varasm.c (merge_weak): Generate an error if an attempt is made
5015 to convert a non-weak static function into a weak, public function.
5016
5017 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5018
5019 * params.def (MAX_PARTITION_SIZE): New param.
5020 * doc/invoke.texi: Document lto-max-partition.
5021
5022 2016-04-27 Richard Biener <rguenther@suse.de>
5023
5024 PR ipa/70785
5025 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
5026 function cummulating used_from_other_partition, externally_visible
5027 and force_output from aliases.
5028 (refered_from_nonlocal_var): Likewise.
5029 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
5030 node flags properly.
5031
5032 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
5033
5034 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
5035 (-Wmemset-elt-size): New item.
5036
5037 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
5038
5039 PR ada/70759
5040 * stor-layout.h (internal_reference_types): Delete.
5041 * stor-layout.c (reference_types_internal): Likewise.
5042 (internal_reference_types): Likewise.
5043 (layout_type) <REFERENCE_TYPE>: Adjust.
5044
5045 2016-04-27 Jakub Jelinek <jakub@redhat.com>
5046
5047 PR sanitizer/70683
5048 * tree.h (inchash::add_expr): Add FLAGS argument.
5049 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
5050 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
5051 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
5052 Formatting fix. Adjust recursive calls. For tcc_comparison,
5053 if swap_tree_comparison (code) is smaller than code, hash that
5054 and arguments in the other order. Hash CONVERT_EXPR the same
5055 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
5056 of ADDR_EXPR of decl as the decl itself. Add or remove
5057 OEP_ADDRESS_OF from recursive flags as needed. For
5058 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
5059 operands commutatively and only the third one normally.
5060 For internal CALL_EXPR hash in CALL_EXPR_IFN.
5061
5062 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
5063
5064 * config/rtems.h (LIB_SPEC): Add -latomic.
5065
5066 2016-04-27 Joel Sherrill <joel@rtems.org>
5067
5068 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
5069 xilink.ld and flags not relevant to RTEMS.
5070
5071 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5072
5073 * toplev.c (backend_init_target): Avoid calling init_reload when using
5074 LRA.
5075
5076 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5077
5078 * reorg.c (try_merge_delay_insns): Declare i and j inside the
5079 for loops rather than one for the whole function.
5080
5081 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5082
5083 * match.pd (X + CST CMP X): New transformation.
5084
5085 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
5086
5087 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
5088 * fold-const.c (fold_binary_loc): Remove 2 transformations
5089 superseded by match.pd.
5090 * match.pd (x+x -> x*2): Generalize to integers.
5091
5092 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
5093
5094 * config/i386/i386.md (operation on memory peephole): Duplicate an
5095 existing peephole and adapt it to match lea rather than an operation
5096 that clobbers CC.
5097
5098 PR rtl-optimization/57193
5099 * opts.c (default_options_table): Add OPT_frename_registers at -O2
5100 and above.
5101 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
5102
5103 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5104
5105 * tree-if-conv.c (any_pred_load_store): New static variable.
5106 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
5107 any_pred_load_store instead of and_mask_load_store.
5108 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
5109 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
5110 (combine_blocks, tree_if_conversion): Ditto.
5111
5112 2016-04-26 Bin Cheng <bin.cheng@arm.com>
5113
5114 PR tree-optimization/70771
5115 PR tree-optimization/70775
5116 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
5117 virtual PHI nodes. Delete parameter.
5118 (if_convertible_loop_p_1): Delete argument to above function.
5119 (predicate_all_scalar_phis): Delete code handling single-argument
5120 PHIs.
5121 (tree_if_conversion): Mark and update virtual SSA.
5122
5123 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5124
5125 PR target/61821
5126 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
5127 (x86_elf_aligned_common): Rename to ...
5128 (x86_elf_aligned_decl_common): ... this.
5129 Add decl arg. Switch to .lbss for largecomm object. Use
5130 LARGECOMM_SECTION_ASM_OP.
5131 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
5132 renaming.
5133 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
5134 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
5135 Pass new decl arg.
5136 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5137 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
5138
5139 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5140
5141 PR target/59407
5142 * config/i386/i386.c (SECTION_LARGE): Define.
5143 (x86_64_elf_select_section): Set it for large data/bss sections.
5144 Only clear SECTION_WRITE for .lrodata.
5145 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
5146 data/bss sections.
5147 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
5148 * varasm.c (default_elf_asm_named_section): Grow flagchars.
5149 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
5150 SECTION_MACH_DEP.
5151 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
5152 * doc/tm.texi: Regenerate.
5153
5154 2016-04-26 Jakub Jelinek <jakub@redhat.com>
5155
5156 PR bootstrap/70704
5157 * configure.ac (--enable-checking): Document extra flag, for
5158 non-release builds default to --enable-checking=yes,extra.
5159 If misc checking and extra checking, define CHECKING_P to 2 instead
5160 of 1.
5161 * common.opt (fchecking=): Add.
5162 * doc/invoke.texi (-fchecking=): Document.
5163 * doc/install.texi: Document --enable-checking changes.
5164 * configure: Regenerated.
5165 * config.in: Regenerated.
5166
5167 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5168
5169 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
5170 attribute instead of which_alternative.
5171 * config/i386/sse.md (*mov<mode>_internal): Ditto.
5172 Use EXT_REX_SSE_REG_P where appropriate.
5173
5174 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5175
5176 * config/i386/predicates.md (const0_operand): Do not match
5177 const_wide_int code.
5178 (const1_operand): Ditto.
5179
5180 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5181
5182 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
5183 for SSE constm1 operands and TARGET_AVX512VL.
5184 (*movti_internal): Ditto.
5185 (*mov<mode>_or): Use constm1_operand predicate.
5186 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
5187 for SSE vector_all_ones operands and TARGET_AVX512VL.
5188 * config/i386/predicates.md (constm1_operand): New predicate.
5189 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
5190 emission of constant -1 load.
5191
5192 2016-04-25 Jason Merrill <jason@redhat.com>
5193
5194 * gdbinit.in: Skip is-a.h.
5195
5196 * attribs.c (register_scoped_attributes): Fix logic.
5197 * attribs.h: Declare register_scoped_attributes.
5198
5199 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5200
5201 * config/rs6000/rs6000-builtin.def: Correct pasto error for
5202 stxvd2x and stxvw4x built-in functions.
5203
5204 2016-04-25 DJ Delorie <dj@redhat.com>
5205
5206 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
5207 (ashrhi3): Likewise.
5208 (lshrhi3): Likewise.
5209
5210 2016-04-25 Richard Biener <rguenther@suse.de>
5211
5212 PR tree-optimization/70780
5213 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
5214 wasn't visited yet.
5215 (compute_antic): Mark blocks with abnormal preds as visited as
5216 they have a final empty antic-in solution already.
5217
5218 2016-04-25 Michael Collison <michael.collison@linaro.org>
5219
5220 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
5221
5222 2016-04-25 Michael Collison <michael.collison@linaro.org>
5223
5224 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
5225 mode is VQI to improve mixed mode vectorization.
5226 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
5227 define_insn to match low half of signed vaddw.
5228 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
5229 define_insn to match high half of signed vaddw.
5230 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
5231 define_insn to match low half of unsigned vaddw.
5232 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
5233 define_insn to match high half of unsigned vaddw.
5234 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
5235 (arm_simd_check_vect_par_cnst_half_p): Likewise.
5236 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
5237 for new function.
5238 (arm_simd_check_vect_par_cnst_half_p): Likewise.
5239 * config/arm/predicates.md (vect_par_constant_high): Support
5240 big endian and simplify by calling
5241 arm_simd_check_vect_par_cnst_half
5242 (vect_par_constant_low): Likewise.
5243
5244 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
5245
5246 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
5247 predicate for operand 2.
5248
5249 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
5250 H.J. Lu <hongjiu.lu@intel.com>
5251
5252 * config/i386/i386-protos.h (standard_sse_constant_p): Add
5253 machine_mode argument.
5254 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
5255 constm1_rtx operands. For VOIDmode constants, get mode from
5256 pred_mode. Check mode size if the mode is supported by ABI.
5257 (standard_sse_constant_opcode): Do not use standard_constant_p.
5258 Strictly check ABI support for all-ones operands.
5259 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
5260 immediates. Update calls to standard_sse_constant_p.
5261 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
5262 (ix86_rtx_costs): Ditto.
5263 * config/i386/i386.md (*movxi_internal_avx512f): Use
5264 nonimmediate_or_sse_const_operand instead of vector_move_operand.
5265 Use (v,BC) alternative instead of (v,C). Use register_operand
5266 checks instead of MEM_P.
5267 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
5268 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
5269 isa attribute. Use register_operand checks instead of MEM_P.
5270 (*movti_internal): Use nonimmediate_or_sse_const_operand for
5271 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
5272 alternative and corresponding sse2 isa attribute.
5273 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
5274 to standard_sse_constant_p.
5275 (FP constant splitters): Ditto.
5276 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
5277 (C): Ditto.
5278 * config/i386/predicates.md (constm1_operand): Remove.
5279 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
5280 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
5281 vector_all_ones_operand instead of constm1_operand.
5282
5283 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5284
5285 * print-rtl.c (print_rtx_insn_vec): New function.
5286 * print-rtl.h: New prototype.
5287 * store-motion.c (struct st_expr): Make avail_stores a vector.
5288 (st_expr_entry): Adjust.
5289 (free_st_expr_entry): Likewise.
5290 (print_store_motion_mems): Likewise.
5291 (find_moveable_store): Likewise.
5292 (compute_store_table): Likewise.
5293 (delete_store): Likewise.
5294 (build_store_vectors): Likewise.
5295
5296 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5297
5298 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
5299
5300 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5301
5302 * vec.h (vec_safe_contains): New function.
5303 (vec::contains): Likewise.
5304 (vec::begin): Likewise.
5305 (vec::end): Likewise.
5306
5307 2016-04-23 Jakub Jelinek <jakub@redhat.com>
5308
5309 PR sanitizer/70712
5310 * cfgexpand.c (expand_stack_vars): Fix typo.
5311
5312 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
5313
5314 * system.h (list, map, set, vector): Include conditionally.
5315 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
5316 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
5317 * ipa-icf.c (INCLUDE_LIST): Define.
5318 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
5319 * config/sh/sh.c (INCLUDE_VECTOR): Define.
5320 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
5321 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
5322 * cp/logic.cc (INCLUDE_LIST): Define.
5323 * fortran/trans-common.c (INCLUDE_MAP): Define.
5324
5325 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
5326
5327 * auto-profile.c: Remove <string.h> include.
5328 * ipa-icf-gimple.c: Remove <list> include.
5329 * diagnostic.c: Remove <new> include.
5330 * genmatch.c: Likewise.
5331 * pretty-print.c: Likewise.
5332 * toplev.c: Likewise
5333 * c/c-objc-common.c: Likewise.
5334 * cp/error.c: Likewise.
5335 * fortran/error.c: Likewise.
5336
5337 2016-04-22 Richard Biener <rguenther@suse.de>
5338
5339 * lto-streamer-in.c (input_ssa_names): Do not allocate
5340 GIMPLE_NOP for all SSA names.
5341 * lto-streamer-out.c (output_ssa_names): Do not output
5342 SSA names that should have been released.
5343
5344 2016-04-22 Richard Biener <rguenther@suse.de>
5345
5346 PR tree-optimization/70740
5347 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
5348 VDEF.
5349
5350 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
5351
5352 PR target/70750
5353 * config/i386/predicates.md (call_insn_operand): Replace
5354 sibcall_memory_operand with memory_operand.
5355
5356 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
5357
5358 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
5359 has_single_use() tests.
5360 (register_edge_assert_for_1): Likewise.
5361 (find_assert_locations_1): Check the liveness bitmap instead of
5362 checking has_single_use().
5363
5364 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
5365
5366 PR target/70728
5367 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
5368 Extract AVX-512BW constraint from AVX.
5369
5370 2016-04-21 Richard Biener <rguenther@suse.de>
5371
5372 PR tree-optimization/70725
5373 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
5374 for phi_convertible_by_degenerating_args.
5375 (predicate_all_scalar_phis): Handle single-argument PHIs.
5376
5377 2016-04-21 Richard Biener <rguenther@suse.de>
5378
5379 PR middle-end/70747
5380 * fold-const.c (fold_comparison): Return properly typed
5381 constant boolean.
5382
5383 2016-04-21 Bin Cheng <bin.cheng@arm.com>
5384
5385 PR tree-optimization/70715
5386 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5387 after expanding BASE using expand_simple_operations.
5388
5389 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
5390
5391 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
5392 New transformations.
5393
5394 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
5395
5396 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
5397
5398 2016-04-20 Jan Hubicka <jh@suse.cz>
5399
5400 * ipa-inline.c (can_inline_edge_p): Pass caller info to
5401 ultiimate_alias_target.
5402 (update_callee_keys): Likewise.
5403 (lookup_recursive_calls): Likewise.
5404 (speculation_useful_p): Likewise.
5405
5406 2016-04-20 Jan Hubicka <jh@suse.cz>
5407
5408 PR ipa/70018
5409 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
5410 (set_nothrow_flag_1): ... this; handle interposition correctly;
5411 recurse on aliases and thunks.
5412 (cgraph_node::set_nothrow_flag): New.
5413 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
5414 functions compiled with non-call exceptions that binds to current
5415 def.
5416 (propagate_nothrow): Be safe WRT interposition.
5417 * cgraph.h (set_nothrow_flag): Update prototype.
5418
5419 2016-04-18 Jan Hubicka <jh@suse.cz>
5420
5421 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
5422 max_loop_iterations_int.
5423 (tree_unswitch_outer_loop): Likewise.
5424
5425 2016-04-20 Bin Cheng <bin.cheng@arm.com>
5426
5427 PR tree-optimization/69489
5428 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
5429 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
5430 Revise dump message.
5431 (if_convertible_bb_p): Remove check on edge count of basic block's
5432 predecessors.
5433
5434 2016-04-20 Bin Cheng <bin.cheng@arm.com>
5435
5436 PR tree-optimization/56625
5437 PR tree-optimization/69489
5438 * tree-data-ref.h (DR_INNERMOST): New macro.
5439 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
5440 hashing struct innermost_loop_behavior.
5441 (ref_DR_map): Remove.
5442 (innermost_DR_map): New map.
5443 (baseref_DR_map): Revise comment.
5444 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
5445 to innermost_DR_map accroding to its innermost loop behavior.
5446 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
5447 to its innermost loop behavior.
5448 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
5449 Add initialization for innermost_DR_map. Record memory reference
5450 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
5451 have innermost loop behavior.
5452 (if_convertible_loop_p): Remove release for ref_DR_map. Release
5453 innermost_DR_map.
5454
5455 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
5456
5457 * config/i386/i386.md (*lea<mode>_general_1): Rename from
5458 *lea_general_1. Use explicit SWI12 mode interator.
5459 (*lea<mode>_general_2): Rename from *lea_general_2.
5460 Use explicit SWI12 mode interator.
5461 (*lea<mode>_general_3): Rename from *lea_general_3.
5462 Use explicit SWI12 mode interator.
5463 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
5464 Use explicit SWI12 mode interator.
5465 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
5466 Use explicit SWI48 mode interator.
5467
5468 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
5469
5470 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5471 Short-cut unaligned load and store cases. Handle all integer
5472 vector modes.
5473 (ix86_expand_vector_move_misalign): Short-cut unaligned load
5474 and store cases. Call ix86_avx256_split_vector_move_misalign
5475 directly without checking mode class.
5476
5477 2016-04-20 Andrew Pinski <apinski@cavium.com>
5478 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5479
5480 PR target/64971
5481 * config/aarch64/aarch64.md (sibcall): Force call
5482 address to be DImode for ILP32.
5483 (sibcall_value): Likewise.
5484
5485 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
5486
5487 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
5488
5489 2016-04-20 Richard Biener <rguenther@suse.de>
5490
5491 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
5492 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
5493 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
5494 (maybe_push_res_to_seq): Adjust.
5495 * gimple-fold.c (maybe_build_generic_op): Likewise.
5496
5497 2016-04-20 Marek Polacek <polacek@redhat.com>
5498
5499 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
5500 rather than true.
5501
5502 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
5503
5504 * config/i386/sse.md (vec_unpacks_lo_hi): Always
5505 use kmovw to support AVX512F target.
5506
5507 2016-04-20 Bin Cheng <bin.cheng@arm.com>
5508
5509 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
5510
5511 2016-04-20 Marek Polacek <polacek@redhat.com>
5512
5513 PR tree-optimization/70725
5514 * tree-if-conv.c (is_false_predicate): New function.
5515 (predicate_mem_writes): Use it.
5516
5517 2016-04-20 Richard Biener <rguenther@suse.de>
5518
5519 PR tree-optimization/70726
5520 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
5521 shift amounts from a pattern stmt operand.
5522
5523 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5524
5525 PR target/70674
5526 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
5527 stack_restore_from_fpr pattern when restoring r15.
5528 (s390_optimize_prologue): Strip away the memory barrier in the
5529 parallel when trying to get rid of restore insns.
5530 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
5531 definition for loading the stack pointer from an FPR. Compared to
5532 the normal move insn this pattern includes a full memory barrier.
5533
5534 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5535
5536 PR middle-end/70680
5537 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
5538 implicitly linear or lastprivate iterator on the outer context.
5539
5540 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
5541
5542 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
5543 alignment check.
5544 * config/i386/i386.md (ssememalign): Removed.
5545 * config/i386/sse.md: Remove ssememalign attribute from patterns.
5546
5547 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
5548
5549 PR target/69201
5550 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
5551 const short * to __builtin_ia32_loaddquhi512_mask.
5552 (_mm512_maskz_loadu_epi16): Likewise.
5553 (_mm512_mask_storeu_epi16): Pass short * to
5554 __builtin_ia32_storedquhi512_mask.
5555 (_mm512_mask_loadu_epi8): Pass const char * to
5556 __builtin_ia32_loaddquqi512_mask.
5557 (_mm512_maskz_loadu_epi8): Likewise.
5558 (_mm512_mask_storeu_epi8): Pass char * to
5559 __builtin_ia32_storedquqi512_mask.
5560 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
5561 const double * to __builtin_ia32_loadupd512_mask.
5562 (_mm512_mask_loadu_pd): Likewise.
5563 (_mm512_maskz_loadu_pd): Likewise.
5564 (_mm512_storeu_pd): Pass double * to
5565 __builtin_ia32_storeupd512_mask.
5566 (_mm512_mask_storeu_pd): Likewise.
5567 (_mm512_loadu_ps): Pass const float * to
5568 __builtin_ia32_loadups512_mask.
5569 (_mm512_mask_loadu_ps): Likewise.
5570 (_mm512_maskz_loadu_ps): Likewise.
5571 (_mm512_storeu_ps): Pass float * to
5572 __builtin_ia32_storeups512_mask.
5573 (_mm512_mask_storeu_ps): Likewise.
5574 (_mm512_mask_loadu_epi64): Pass const long long * to
5575 __builtin_ia32_loaddqudi512_mask.
5576 (_mm512_maskz_loadu_epi64): Likewise.
5577 (_mm512_mask_storeu_epi64): Pass long long *
5578 to __builtin_ia32_storedqudi512_mask.
5579 (_mm512_loadu_si512): Pass const int * to
5580 __builtin_ia32_loaddqusi512_mask.
5581 (_mm512_mask_loadu_epi32): Likewise.
5582 (_mm512_maskz_loadu_epi32): Likewise.
5583 (_mm512_storeu_si512): Pass int * to
5584 __builtin_ia32_storedqusi512_mask.
5585 (_mm512_mask_storeu_epi32): Likewise.
5586 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
5587 char * to __builtin_ia32_storedquqi256_mask.
5588 (_mm_mask_storeu_epi8): Likewise.
5589 (_mm256_mask_loadu_epi16): Pass const short * to
5590 __builtin_ia32_loaddquhi256_mask.
5591 (_mm256_maskz_loadu_epi16): Likewise.
5592 (_mm_mask_loadu_epi16): Pass const short * to
5593 __builtin_ia32_loaddquhi128_mask.
5594 (_mm_maskz_loadu_epi16): Likewise.
5595 (_mm256_mask_loadu_epi8): Pass const char * to
5596 __builtin_ia32_loaddquqi256_mask.
5597 (_mm256_maskz_loadu_epi8): Likewise.
5598 (_mm_mask_loadu_epi8): Pass const char * to
5599 __builtin_ia32_loaddquqi128_mask.
5600 (_mm_maskz_loadu_epi8): Likewise.
5601 (_mm256_mask_storeu_epi16): Pass short * to.
5602 __builtin_ia32_storedquhi256_mask.
5603 (_mm_mask_storeu_epi16): Pass short * to.
5604 __builtin_ia32_storedquhi128_mask.
5605 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
5606 const double * to __builtin_ia32_loadupd256_mask.
5607 (_mm256_maskz_loadu_pd): Likewise.
5608 (_mm_mask_loadu_pd): Pass onst double * to
5609 __builtin_ia32_loadupd128_mask.
5610 (_mm_maskz_loadu_pd): Likewise.
5611 (_mm256_mask_storeu_pd): Pass double * to
5612 __builtin_ia32_storeupd256_mask.
5613 (_mm_mask_storeu_pd): Pass double * to
5614 __builtin_ia32_storeupd128_mask.
5615 (_mm256_mask_loadu_ps): Pass const float * to
5616 __builtin_ia32_loadups256_mask.
5617 (_mm256_maskz_loadu_ps): Likewise.
5618 (_mm_mask_loadu_ps): Pass const float * to
5619 __builtin_ia32_loadups128_mask.
5620 (_mm_maskz_loadu_ps): Likewise.
5621 (_mm256_mask_storeu_ps): Pass float * to
5622 __builtin_ia32_storeups256_mask.
5623 (_mm_mask_storeu_ps): ass float * to
5624 __builtin_ia32_storeups128_mask.
5625 (_mm256_mask_loadu_epi64): Pass const long long * to
5626 __builtin_ia32_loaddqudi256_mask.
5627 (_mm256_maskz_loadu_epi64): Likewise.
5628 (_mm_mask_loadu_epi64): Pass const long long * to
5629 __builtin_ia32_loaddqudi128_mask.
5630 (_mm_maskz_loadu_epi64): Likewise.
5631 (_mm256_mask_storeu_epi64): Pass long long * to
5632 __builtin_ia32_storedqudi256_mask.
5633 (_mm_mask_storeu_epi64): Pass long long * to
5634 __builtin_ia32_storedqudi128_mask.
5635 (_mm256_mask_loadu_epi32): Pass const int * to
5636 __builtin_ia32_loaddqusi256_mask.
5637 (_mm256_maskz_loadu_epi32): Likewise.
5638 (_mm_mask_loadu_epi32): Pass const int * to
5639 __builtin_ia32_loaddqusi128_mask.
5640 (_mm_maskz_loadu_epi32): Likewise.
5641 (_mm256_mask_storeu_epi32): Pass int * to
5642 __builtin_ia32_storedqusi256_mask.
5643 (_mm_mask_storeu_epi32): Pass int * to
5644 __builtin_ia32_storedqusi128_mask.
5645 * config/i386/i386-builtin-types.def (PCSHORT): New.
5646 (PINT64): Likewise.
5647 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
5648 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
5649 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
5650 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
5651 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
5652 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
5653 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
5654 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
5655 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
5656 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
5657 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
5658 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
5659 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
5660 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
5661 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
5662 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
5663 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
5664 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
5665 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
5666 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
5667 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
5668 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
5669 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
5670 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
5671 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
5672 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
5673 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
5674 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
5675 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
5676 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
5677 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
5678 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
5679 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
5680 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
5681 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
5682 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
5683 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
5684 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
5685 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
5686 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
5687 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
5688 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
5689 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
5690 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
5691 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
5692 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
5693 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
5694 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
5695 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
5696 use UNSPEC_STOREU.
5697 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
5698 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
5699 load nor store.
5700 (ix86_expand_vector_move_misalign): Likewise.
5701 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
5702 to scalar function prototype for unaligned load/store builtins.
5703 (ix86_expand_special_args_builtin): Updated.
5704 * config/i386/sse.md (UNSPEC_LOADU): Removed.
5705 (UNSPEC_STOREU): Likewise.
5706 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
5707 (VI_ULOADSTORE_F_AVX512VL): Likewise.
5708 (ssescalarsize): Handle V4TI, V2TI and V1TI.
5709 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
5710 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
5711 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
5712 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
5713 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
5714 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
5715 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
5716 (<avx512>_storedqu<mode>_mask): Likewise.
5717 (*sse4_2_pcmpestr_unaligned): Likewise.
5718 (*sse4_2_pcmpistr_unaligned): Likewise.
5719 (*mov<mode>_internal): Renamed to ...
5720 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
5721 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
5722 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
5723 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
5724
5725 2016-04-19 Richard Biener <rguenther@suse.de>
5726
5727 PR tree-optimization/70171
5728 * tree-ssa-phiprop.c: Include stor-layout.h.
5729 (phiprop_insert_phi): Handle the aggregate copy case.
5730 (propagate_with_phi): Likewise.
5731
5732 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
5733
5734 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
5735 instead of simplify_gen_subreg (... , 0).
5736 (ix86_delegitimize_address): Ditto.
5737 (ix86_split_divmod): Ditto.
5738 (ix86_split_copysign_const): Ditto.
5739 (ix86_split_copysign_var): Ditto.
5740 (ix86_expand_args_builtin): Ditto.
5741 (ix86_expand_round_builtin): Ditto.
5742 (ix86_expand_special_args_builtin): Ditto.
5743 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
5744 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
5745 (udivmodqi4): Ditto.
5746 (absneg splitters): Ditto.
5747 (*jcc_bt<mode>_1): Ditto.
5748
5749 2016-04-19 Richard Biener <rguenther@suse.de>
5750
5751 PR tree-optimization/70724
5752 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
5753 restoring out from ...
5754 (free_scc_vn): ... here.
5755 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
5756 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
5757 tail merging.
5758 (pass_fre::execute): Restore SSA info.
5759
5760 2016-04-19 Richard Biener <rguenther@suse.de>
5761
5762 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
5763 * gimple-walk.c (walk_gimple_op): Initialize it.
5764 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
5765 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
5766 remapping SSA names of defs.
5767 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
5768 adjustment.
5769
5770 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
5771
5772 PR middle-end/70689
5773 * lra-constraints.c (equiv_substition_p): New.
5774 (process_alt_operands): Use it.
5775 (swap_operands): Swap it.
5776 (curr_insn_transform): Update it.
5777
5778 2016-04-18 Michael Matz <matz@suse.de>
5779
5780 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
5781 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
5782 * tree-core.h (tree_type_common.align): Use bit-field.
5783 (tree_type_common.spare): New.
5784 (tree_decl_common.off_align): Make smaller.
5785 (tree_decl_common.align): Use bit-field.
5786
5787 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
5788 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
5789 (scan_sharing_clauses): Ditto.
5790 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
5791 (omp_finish_file): Ditto.
5792 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
5793 (layout_decl): Ditto.
5794 (relayout_decl): Ditto.
5795 (finalize_record_size): Use SET_TYPE_ALIGN.
5796 (finalize_type_size): Ditto.
5797 (finish_builtin_struct): Ditto.
5798 (layout_type): Ditto.
5799 (initialize_sizetypes): Ditto.
5800 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
5801 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
5802 (lookup_field_for_decl): Use SET_DECL_ALIGN.
5803 (get_chain_field): Ditto.
5804 (get_trampoline_type): Ditto.
5805 (get_nl_goto_field): Ditto.
5806 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
5807 SET_DECL_ALIGN.
5808 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
5809 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
5810 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
5811 (build_qualified_type): Use SET_TYPE_ALIGN.
5812 (build_aligned_type, build_range_type_1): Ditto.
5813 (build_atomic_base): Ditto.
5814 (build_common_tree_nodes): Ditto.
5815 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
5816 (expand_one_stack_var_at): Ditto.
5817 * coverage.c (build_var): Use SET_DECL_ALIGN.
5818 * except.c (init_eh): Ditto.
5819 * function.c (assign_parm_setup_block): Ditto.
5820 * symtab.c (increase_alignment_1): Ditto.
5821 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
5822 * tree-vect-stmts.c (ensure_base_align): Ditto.
5823 * varasm.c (align_variable): Ditto.
5824 (assemble_variable): Ditto.
5825 (build_constant_desc): Ditto.
5826 (output_constant_def_contents): Ditto.
5827
5828 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
5829 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
5830 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
5831 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
5832 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
5833
5834 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
5835
5836 PR target/70708
5837 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
5838 replace %vmovsd with "%vmovq".
5839 (vec_concatv2df): Likewise.
5840
5841 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
5842
5843 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
5844 (*vec_extractv2si_0): Ditto.
5845 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
5846 (zero_extended_scalar_load_operand splitters): Ditto.
5847 (vec_extract splitters): Ditto.
5848 (*vec_extractv4si_0_zext): Ditto.
5849 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
5850 and lowpart_subreg.
5851 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
5852 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
5853 (*sse4_1_extractps): Use lowpart_subreg.
5854 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
5855
5856 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5857
5858 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
5859 gld requirements.
5860 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
5861 Mention Solaris 11 packaging changes.
5862 Update gas and gld requirements.
5863 Remove reference to pre-Solaris 10 bug.
5864 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
5865 systems and bugs.
5866 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
5867 with cc.
5868
5869 2016-04-17 Jan Hubicka <jh@suse.cz>
5870
5871 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
5872 max_loop_iterations_int.
5873
5874 2016-04-18 Richard Biener <rguenther@suse.de>
5875
5876 PR tree-optimization/43434
5877 * tree-ssa-structalias.c (struct vls_data): New.
5878 (visit_loadstore): Handle all pointer-based accesses.
5879 (compute_dependence_clique): Compute a bitmap of restrict tags
5880 assigned bases and pass it to visit_loadstore.
5881
5882 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
5883
5884 PR target/70711
5885 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
5886 armv8.1-a and armv8.1-a+crc.
5887
5888 2016-04-18 Richard Biener <rguenther@suse.de>
5889
5890 PR tree-optimization/70701
5891 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
5892 references after translating through a memcpy.
5893
5894 2016-04-18 Richard Biener <rguenther@suse.de>
5895
5896 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
5897 (compute_antic): ... here. For partial antic use regular
5898 postorder and scrap iteration.
5899 (compute_partial_antic_aux): Remove unused return value.
5900 (init_pre): Do not allocate postorder.
5901 (fini_pre): Do not free postorder.
5902
5903 2016-04-18 Richard Biener <rguenther@suse.de>
5904
5905 PR middle-end/37870
5906 * expmed.c (extract_bit_field_1): Remove broken case
5907 using a wider MODE_INT mode.
5908
5909 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
5910
5911 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
5912 unless compiling with at least GCC-4.8.
5913
5914 2016-04-17 Jan Hubicka <jh@suse.cz>
5915
5916 PR bootstrap/70706
5917 * graphite.c (graphite_finalize): Update call to
5918 tree_estimate_probability.
5919 * predict.h (tree_estimate_probability): Update prototype.
5920
5921 2016-04-17 Jan Hubicka <jh@suse.cz>
5922
5923 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
5924 (tree_estimate_probability): Likewise.
5925 (pass_profile::execute): Update.
5926 (report_predictor_hitrates): New function.
5927 * profile.c (compute_branch_probabilities): Use it.
5928 * predict.h (report_predictor_hitrates): Declare.
5929
5930 2016-04-17 Jan Hubicka <jh@suse.cz>
5931
5932 PR ipa/70018
5933 * cgraph.h (cgraph_node::set_const_flag,
5934 cgraph_node::set_pure_flag): Update prototype to return bool;
5935 update comment.
5936 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
5937 of interposable symbol are interposable, too.
5938 (cgraph_set_const_flag_1): Rename to ...
5939 (set_const_flag_1): ... this one; change to self recursive function
5940 instead of call_for_symbol_thunks_and_aliases. Handle correctly
5941 clearnig the flag in all variants and also virtual thunks of const
5942 functions are pure; track if any change was done.
5943 (cgraph_node::set_const_flag): Update.
5944 (struct set_pure_flag_info): New struct.
5945 (cgraph_set_pure_flag_1): Rename to ...
5946 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
5947 rather than pointer encoded flags; track if any changes was done;
5948 handle correctly clearning flag and setting flag of aliases already
5949 declared const.
5950 (cgraph_node::set_pure_flag): Update.
5951 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
5952
5953 2016-04-17 Tom de Vries <tom@codesourcery.com>
5954
5955 PR other/70433
5956 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
5957 backslash in label.
5958
5959 2016-04-17 Tom de Vries <tom@codesourcery.com>
5960
5961 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
5962 '{}<> ' as escape-for-record.
5963
5964 2016-04-17 Tom de Vries <tom@codesourcery.com>
5965
5966 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
5967 structure.
5968
5969 2016-04-17 Tom de Vries <tom@codesourcery.com>
5970
5971 PR other/70185
5972 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
5973 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
5974 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
5975 * passes.c (finish_optimization_passes): Only call
5976 finish_graph_dump_file if dfi->graph_dump_initialized.
5977 (execute_function_dump, pass_init_dump_file): Use
5978 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
5979
5980 2016-04-17 Tom de Vries <tom@codesourcery.com>
5981
5982 PR tree-optimization/70256
5983 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
5984 (debug_varmap): New function.
5985
5986 2016-04-17 Tom de Vries <tom@codesourcery.com>
5987
5988 PR other/70183
5989 * passes.c (pass_manager::register_pass): Propagate pflags.
5990
5991 2016-04-17 Tom de Vries <tom@codesourcery.com>
5992
5993 PR other/68875
5994 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
5995 * passes.c (pass_manager::pass_manager): Declare and init p_start in
5996 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
5997 check if it's equal to p_start.
5998 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
5999
6000 2016-04-15 Jan Hubicka <jh@suse.cz>
6001
6002 PR ipa/70018
6003 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
6004 function does not bind to current def.
6005 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
6006 handle conservatively calls to functions that does not need to bind
6007 to current def.
6008 (check_call): Update call of worse_state.
6009 (ignore_edge_for_nothrow): Update.
6010 (ignore_edge_for_pure_const): Likewise.
6011 (propagate_pure_const): Update calls to worse_state.
6012 (skip_function_for_local_pure_const): Reformat comments.
6013
6014 2016-04-15 Jan Hubicka <jh@suse.cz>
6015
6016 PR ipa/70018
6017 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
6018 (cgraph_node::function_symbol): Likewise.
6019 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6020 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
6021 (symtab_node::ultimate_alias_target): Add REF parameter.
6022 (symtab_node::binds_to_current_def_p): Declare.
6023 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
6024 (cgraph_node::function_symbol): Likewise.
6025 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
6026 (cgraph_node::get_availability): Likewise.
6027 (cgraph_edge::binds_to_current_def_p): New inline function.
6028 (varpool_node::get_availability): Add REF parameter.
6029 (varpool_node::ultimate_alias_target): Likewise.
6030 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
6031 (symtab_node::binds_to_current_def_p): Likewise.
6032 * varpool.c (varpool_node::get_availability): Likewise.
6033
6034 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6035
6036 PR target/70662
6037 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
6038 Fix mode size check.
6039
6040 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6041
6042 * BASE-VER: Set to 7.0.0.
6043
6044 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
6045
6046 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
6047
6048 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6049
6050 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
6051 architecture revisions.
6052
6053 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
6054
6055 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
6056 * config/i386/i386.c (ix86_using_red_zone): No longer static.
6057 * config/i386/i386.md (stack decrement to push peepholes): Guard
6058 with !x86_using_red_zone ().
6059
6060 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6061
6062 PR c++/70675
6063 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
6064 to dump_generic_node.
6065 (NIY): Pass also flags to do_niy.
6066
6067 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
6068
6069 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
6070 (simd_clone_vector_of_formal_parm_types)
6071 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
6072 (simd_clone_mangle, simd_clone_create)
6073 (simd_clone_adjust_return_type, create_tmp_simd_array)
6074 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
6075 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
6076 (ipa_simd_modify_function_body, simd_clone_linear_addend)
6077 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
6078 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
6079 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
6080 * omp-simd-clone.c: ... this new file.
6081 (simd_clone_vector_of_formal_parm_types): Make it static.
6082 * Makefile.in (OBJS): Add omp-simd-clone.o.
6083
6084 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6085
6086 PR target/70662
6087 * config/i386/sse.md: Use proper memory operand modifiers.
6088
6089
6090 2016-04-15 Richard Biener <rguenther@suse.de>
6091 Alan Modra <amodra@gmail.com>
6092
6093 PR tree-optimization/70130
6094 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
6095 when alignment stays not the same and no not use the realign
6096 scheme then.
6097
6098 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6099
6100 PR target/70669
6101 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6102 direct move handlers for KFmode. Change TFmode handlers test from
6103 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
6104
6105 2016-04-14 Jakub Jelinek <jakub@redhat.com>
6106
6107 PR c++/70594
6108 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
6109 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
6110 (inlined_polymorphic_ctor_dtor_block_p): Use it.
6111 * tree-ssa-live.c (remove_unused_scope_block_p): When
6112 in_ctor_dtor_block, avoid discarding not just BLOCKs with
6113 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
6114 block_ultimate_origin is FUNCTION_DECL.
6115 (remove_unused_locals): If current_function_decl is
6116 polymorphic_ctor_dtor_p, pass initial true to
6117 remove_unused_scope_block_p' is_ctor_dtor_block.
6118
6119 2016-04-14 Martin Sebor <msebor@redhat.com>
6120
6121 PR c++/69517
6122 PR c++/70019
6123 PR c++/70588
6124 * doc/extend.texi (Variable Length): Revert.
6125
6126 2016-04-14 Marek Polacek <polacek@redhat.com>
6127 Jan Hubicka <hubicka@ucw.cz>
6128
6129 PR c++/70029
6130 * tree.c (verify_type): Disable the canonical type of main variant
6131 check.
6132
6133 2016-04-14 Jason Merrill <jason@redhat.com>
6134
6135 * cfgexpand.c, expr.c: Revert previous change.
6136
6137 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6138
6139 PR middle-end/70643
6140 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
6141 when building a mem ref for the incoming reduction variable.
6142
6143 2016-04-14 Richard Biener <rguenther@suse.de>
6144
6145 PR tree-optimization/70614
6146 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
6147 loop if the evolution dropped to chrec_dont_know.
6148 (interpret_condition_phi): Likewise.
6149
6150 2016-04-14 Richard Biener <rguenther@suse.de>
6151
6152 PR tree-optimization/70623
6153 * tree-ssa-pre.c (changed_blocks): Make global ...
6154 (compute_antic): ... local here. Move and fix worklist
6155 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
6156 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
6157 worklist handling, dump when ANTIC_IN changed.
6158 (compute_partial_antic_aux): Remove worklist handling.
6159 (init_pre): Do not compute post dominators. Add a comment about
6160 the CFG order chosen.
6161 (fini_pre): Do not free post dominators.
6162
6163 2016-04-13 Martin Sebor <msebor@redhat.com>
6164
6165 PR c++/69517
6166 PR c++/70019
6167 PR c++/70588
6168 * doc/extend.texi (Variable Length): Document C++ specifics.
6169
6170 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR c++/70641
6173 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
6174 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
6175 eh edges have been purged.
6176
6177 PR c++/70594
6178 * tree-sra.c (create_access_replacement,
6179 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
6180 gets fancy name.
6181 * tree-pretty-print.c (dump_fancy_name): New function.
6182 (dump_decl_name, dump_generic_node): Use it.
6183
6184 2016-04-13 Jason Merrill <jason@redhat.com>
6185
6186 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
6187 * expr.c (expand_expr_real_1): Likewise.
6188
6189 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
6190
6191 * config/i386/i386.md (kunpckhi): Swap operands.
6192 (kunpcksi): Likewise.
6193 (kunpckdi): Likewise.
6194 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
6195 (vec_pack_trunc_<mode>): Likewise.
6196
6197 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6198
6199 PR debug/70628
6200 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
6201
6202 PR middle-end/70633
6203 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
6204 gimplification turns some element into non-constant.
6205
6206 PR debug/70628
6207 * rtl.h (convert_memory_address_addr_space_1): New prototype.
6208 * explow.c (convert_memory_address_addr_space_1): No longer static,
6209 add NO_EMIT argument and don't call convert_modes if true, pass
6210 it down recursively, remove break after return.
6211 (convert_memory_address_addr_space): Adjust caller.
6212 * simplify-rtx.c (simplify_unary_operation_1): Call
6213 convert_memory_address_addr_space_1 instead of convert_memory_address,
6214 if it returns NULL, don't simplify.
6215
6216 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
6217
6218 PR target/70630
6219 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
6220
6221 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6222
6223 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6224 Bump the upper SIMDLEN limits, so that if the return type or
6225 characteristic type if the return type is void can be passed in
6226 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
6227 allowed.
6228
6229 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6230
6231 PR target/70640
6232 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
6233 Do not use "=" constraint on an input constraint.
6234 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6235 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6236 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
6237 generates (neg (abs ...)) instead of (abs ...).
6238
6239 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6240
6241 PR rtl-optimization/70596
6242 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
6243 just invalidate LRA data and reset them. Adjust dump wording.
6244
6245 2016-04-12 Martin Liska <mliska@suse.cz>
6246
6247 Revert
6248 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6249
6250 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6251 estimates here.
6252 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6253 max_loop_iterations_int.
6254 (tree_unswitch_outer_loop): Likewise.
6255 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6256 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6257
6258 2016-04-12 Tom de Vries <tom@codesourcery.com>
6259
6260 PR tree-optimization/68756
6261 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
6262 instead of new_name.
6263
6264 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6265
6266 PR tree-optimization/70602
6267 * tree-sra.c (generate_subtree_copies): Don't write anything into
6268 constant pool decls.
6269
6270 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
6271 regardless whether there are depend clauses or not.
6272
6273 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6274
6275 PR target/70381
6276 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
6277 target attribute and pragma from changing the -mfloat128
6278 and -mfloat128-hardware options.
6279
6280 * doc/extend.texi (Additional Floating Types): Document PowerPC
6281 __float128 restrictions.
6282
6283 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6284
6285 PR target/70133
6286 * config/aarch64/driver-aarch64.c
6287 (aarch64_get_extension_string_for_isa_flags): New.
6288 (arch_extension): Rename to...
6289 (aarch64_arch_extension): ...This.
6290 (ext_to_feat_string): Rename to...
6291 (aarch64_extensions): ...This.
6292 (aarch64_core_data): Keep track of architecture extension flags.
6293 (cpu_data): Rename to...
6294 (aarch64_cpu_data): ...This.
6295 (aarch64_arch_driver_info): Keep track of architecture extension
6296 flags.
6297 (get_arch_name_from_id): Rename to...
6298 (get_arch_from_id): ...This, change return type.
6299 (host_detect_local_cpu): Update and reformat for renames, handle
6300 extensions through common infrastructure.
6301
6302 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6303
6304 PR target/70133
6305 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
6306 track of a canonical flag name.
6307 (all_extensions): Likewise.
6308 (arch_to_arch_name): Also track extension flags enabled by the arch.
6309 (all_architectures): Likewise.
6310 (aarch64_parse_extension): Move to here.
6311 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
6312 rework.
6313 (aarch64_rewrite_selected_cpu): Update for above change.
6314 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
6315 are handled, such that the single explicit value enabled by an
6316 extension is kept seperate from the implicit values it also enables.
6317 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
6318 to here.
6319 (aarch64_parse_extension): New.
6320 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
6321 here to config/aarch64/aarch64-protos.h.
6322 (aarch64_parse_extension): Move from here to
6323 common/config/aarch64/aarch64-common.c.
6324 (aarch64_option_print): Update.
6325 (aarch64_declare_function_name): Likewise.
6326 (aarch64_start_file): Likewise.
6327 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
6328 the canonical flag for extensions.
6329 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
6330 flags.
6331
6332 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6333
6334 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
6335 AARCH64_FL_CRC.
6336
6337 2016-04-09 Tom de Vries <tom@codesourcery.com>
6338
6339 PR tree-optimization/68953
6340 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
6341 first to last subscript.
6342
6343 2016-04-09 Jakub Jelinek <jakub@redhat.com>
6344
6345 PR tree-optimization/70586
6346 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
6347 for any calls.
6348
6349 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6350
6351 PR lto/70289
6352 PR ipa/70348
6353 PR tree-optimization/70373
6354 PR middle-end/70533
6355 PR middle-end/70534
6356 PR middle-end/70535
6357 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
6358 clauses for acc parallel reductions as necessary. Error on those
6359 that are private.
6360 * omp-low.c (scan_sharing_clauses): Don't install variables which
6361 are used in acc parallel reductions.
6362 (lower_rec_input_clauses): Remove dead code.
6363 (lower_oacc_reductions): Add support for reference reductions.
6364 (lower_reduction_clauses): Remove dead code.
6365 (lower_omp_target): Don't remap variables appearing in acc parallel
6366 reductions.
6367 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
6368
6369 2016-04-08 Jakub Jelinek <jakub@redhat.com>
6370
6371 PR middle-end/70593
6372 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
6373 with multiple SSA_NAME defs, force the outputs other than first
6374 to be live before calling live_track_process_def on each output.
6375
6376 PR rtl-optimization/70574
6377 * fwprop.c (forward_propagate_and_simplify): Don't add
6378 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
6379 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
6380 paradoxical subregs within *loc.
6381
6382 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
6383
6384 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
6385 -ftree-parallelize-loops={0,1}.
6386 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
6387 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
6388 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6389 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6390 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6391
6392 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
6393
6394 PR sanitizer/70541
6395 * asan.c (instrument_derefs): If we get unknown location, extract it
6396 with EXPR_LOCATION.
6397 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
6398
6399 2016-04-08 Tom de Vries <tom@codesourcery.com>
6400
6401 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
6402 implicit firstprivate clause.
6403
6404 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6405
6406 PR target/70566
6407 * config/arm/thumb2.md (tst + branch-> lsls + branch
6408 peephole below *orsi_not_shiftsi_si): Require that condition
6409 register is dead after the peephole.
6410 (second peephole after the above): Likewise.
6411
6412 2016-04-08 Alan Modra <amodra@gmail.com>
6413
6414 PR target/70117
6415 * builtins.c (fold_builtin_classify): For IBM extended precision,
6416 look at just the high-order double to test for NaN.
6417 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
6418 test just the high double for Inf but both doubles for subnormal
6419 limit.
6420
6421 2016-04-07 Jakub Jelinek <jakub@redhat.com>
6422
6423 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
6424 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
6425 node->simdclone->mask_mode != VOIDmode masks.
6426 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
6427 earlier, use it instead of node->simdclone.
6428 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6429 Set clonei->mask_mode.
6430
6431 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
6432
6433 PR c/70436
6434 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
6435 Pass it through to cp_parser_already_scoped_statement.
6436 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
6437 it through to cp_parser_statement.
6438 (cp_parser_statement): Pass IF_P through to
6439 cp_parser_iteration_statement.
6440 (cp_parser_pragma): Adjust call to
6441 cp_parser_iteration_statement.
6442
6443 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
6444
6445 PR c/70436
6446 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
6447 resolve a future -Wparentheses warning.
6448 * omp-low.c (scan_sharing_clauses): Likewise.
6449 * tree-parloops.c (eliminate_local_variables): Likewise.
6450
6451 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
6452
6453 PR rtl-optimization/70398
6454 * lra-constraints.c (process_address_1): Check zero scale and code
6455 for reloading with zero scale.
6456
6457 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
6458
6459 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
6460 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
6461
6462 2016-04-06 Jakub Jelinek <jakub@redhat.com>
6463
6464 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6465 Add support for AVX512F clones, include them by default for
6466 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
6467 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
6468 up to 128.
6469
6470 PR middle-end/70550
6471 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
6472 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
6473 firstprivate clauses.
6474 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
6475 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
6476 (lower_omp_target): Set TREE_NO_WARNING for
6477 non-addressable possibly uninitialized vars which are copied into
6478 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
6479
6480 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
6481
6482 * config/pa/predicates.md (integer_store_memory_operand): Accept
6483 REG+D operands with a large offset when reload_in_progress is true.
6484 (floating_point_store_memory_operand): Likewise.
6485
6486 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6487
6488 PR c++/70336
6489 * match.pd (nested int casts): Limit to GIMPLE.
6490
6491 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
6492
6493 PR ipa/66223
6494 * ipa-devirt.c (maybe_record_node): Fix comment; use
6495 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
6496
6497 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6498
6499 PR rtl-optimization/70542
6500 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
6501 if there are any uses other than insn or debug insns.
6502
6503 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
6504 Jakub Jelinek <jakub@redhat.com>
6505
6506 PR tree-optimization/70509
6507 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
6508 Shift HOST_WIDE_INT_1U instead of 1.
6509
6510 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
6511
6512 PR tree-optimization/70509
6513 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
6514 of the vector base type for index.
6515
6516 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
6517
6518 PR target/70510
6519 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
6520
6521 2016-04-05 Richard Biener <rguenther@suse.de>
6522
6523 PR tree-optimization/70526
6524 * tree-sra.c (build_ref_for_offset): Use prev_base to
6525 extract the alias pointer type.
6526
6527 2016-04-05 Richard Biener <rguenther@suse.de>
6528
6529 * dse.c (struct store_info): Remove alias_set member.
6530 (struct read_info_type): Likewise.
6531 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
6532 spill_deleted, clear_alias_set_lookup): Remove.
6533 (get_group_info): Remove dead base == NULL_RTX case.
6534 (dse_step0): Remove initialization of removed variables.
6535 (delete_dead_store_insn): Reomve alias set dumping.
6536 (free_read_records): Remove alias_set handling.
6537 (canon_address): Remove alias_set_out parameter.
6538 (record_store): Remove spill_alias_set, it's always zero.
6539 (check_mem_read_rtx): Likewise.
6540 (dse_step2): Rename from ...
6541 (dse_step2_nospill): ... this. Adjust.
6542 (scan_stores): Rename from ...
6543 (scan_stores_nospill): ... this.
6544 (scan_reads): Rename from ...
6545 (scan_reads_nospill): ... this.
6546 (scan_stores_spill, scan_reads_spill): Remove.
6547 (dse_step3_scan): Remove for_spills argument which is always false.
6548 (dse_step3): Likewise.
6549 (dse_step5): Rename from ...
6550 (dse_step5_nospill): ... this. Remove alias_set handling.
6551 (rest_of_handle_dse): Adjust.
6552
6553 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6554
6555 PR target/70525
6556 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
6557 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
6558 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
6559 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
6560
6561 2016-04-05 Richard Biener <rguenther@suse.de>
6562
6563 PR middle-end/70499
6564 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
6565 non-register type temporaries into SSA.
6566
6567 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
6568
6569 PR ipa/66223
6570 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
6571 calls when sanitizing.
6572 (possible_polymorphic_call_target_p): Fix formatting.
6573
6574 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6575 Jakub Jelinek <jakub@redhat.com>
6576
6577 PR middle-end/70457
6578 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
6579 to ensure a call statement is compatible with a built-in's
6580 prototype.
6581 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
6582 Likewise.
6583
6584 2016-04-04 Richard Biener <rguenther@suse.de>
6585
6586 PR rtl-optimization/70484
6587 * rtl.h (canon_output_dependence): Declare.
6588 * alias.c (canon_output_dependence): New function.
6589 * dse.c (record_store): Use canon_output_dependence rather
6590 than canon_true_dependence.
6591
6592 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6593
6594 PR ipa/68881
6595 * cgraph.h (symtab_node::copy_visibility_from): New function.
6596 * symtab.c (symtab_node::copy_visibility_from): New function.
6597 * ipa-visibility.c (optimize_weakref): New function.
6598 (function_and_variable_visibility): Use it.
6599
6600 2016-04-04 Martin Liska <mliska@suse.cz>
6601
6602 PR hsa/70402
6603 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
6604 value that is really in range handled by SBR instruction.
6605 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
6606 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
6607 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
6608
6609 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
6610
6611 PR target/70416
6612 PR target/67391
6613 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
6614 set, but not for SP_REG operands.
6615
6616 2016-04-02 Martin Sebor <msebor@redhat.com>
6617
6618 PR c++/67376
6619 * fold-const.c (maybe_nonzero_address): New function.
6620 (fold_comparison): Call it. Fold equality and relational
6621 expressions involving null pointers.
6622 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
6623
6624 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
6625
6626 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
6627 the "Y" constraint (scalar FP 0.0 immediate).
6628
6629 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
6630 Add the "const_double" to the list of operand constraints.
6631
6632 2016-04-01 Jakub Jelinek <jakub@redhat.com>
6633
6634 PR rtl-optimization/70467
6635 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
6636 If low word of the last operand is 0, just emit addition/subtraction
6637 for the high word.
6638
6639 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6640
6641 PR target/70404
6642 * config/s390/s390.c (s390_expand_insv): Check for everything
6643 constant instead of just VOIDmode stuff.
6644
6645 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6646
6647 PR target/70496
6648 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
6649
6650 2016-04-01 Nathan Sidwell <nathan@acm.org>
6651
6652 * tree.def (TRY_CATCH_EXPR): Correct documentation.
6653
6654 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
6655
6656 PR rtl-optimization/70461
6657 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
6658 is necessary.
6659
6660 2016-03-31 Martin Liska <mliska@suse.cz>
6661
6662 PR hsa/70399
6663 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
6664 a tree value or an immediate integer value to a buffer
6665 that is eventually copied to a BRIG section.
6666 (emit_immediate_operand): Call the function here.
6667 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
6668 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
6669 of class' fields that are removed.
6670 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
6671 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
6672 m_brig_repr_size fields.
6673
6674 2016-03-31 Martin Liska <mliska@suse.cz>
6675
6676 PR hsa/70391
6677 * hsa-gen.c (hsa_function_representation::update_dominance): New
6678 function.
6679 (convert_addr_to_flat_segment): Likewise.
6680 (gen_hsa_memory_set): New alignment argument.
6681 (gen_hsa_ctor_assignment): Likewise.
6682 (gen_hsa_insns_for_single_assignment): Provide alignment
6683 to gen_hsa_ctor_assignment.
6684 (gen_hsa_insns_for_direct_call): Add new argument.
6685 (expand_lhs_of_string_op): New function.
6686 (expand_string_operation_builtin): Likewise.
6687 (expand_memory_copy): New function.
6688 (expand_memory_set): New function.
6689 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
6690 (convert_switch_statements): Change signature.
6691 (generate_hsa): Use a return value of the function.
6692 (pass_gen_hsail::execute): Do not call
6693 convert_switch_statements here.
6694 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
6695 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
6696 (hsa_function_representation::update_dominance): New function.
6697
6698 2016-03-31 Martin Liska <mliska@suse.cz>
6699
6700 PR hsa/70391
6701 * hsa-brig.c (emit_directive_variable): Emit alignment
6702 according to hsa_symbol::m_align.
6703 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
6704 (dump_hsa_symbol): Dump alignment of HSA symbols.
6705 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
6706 (gen_hsa_addr_with_align): New function.
6707 (hsa_bitmemref_alignment): Use newly added function.
6708 (gen_hsa_insns_for_load): Likewise.
6709 (gen_hsa_insns_for_store): Likewise.
6710 (gen_hsa_memory_copy): New argument added.
6711 (gen_hsa_insns_for_single_assignment): Respect
6712 alignment for assignments processed via gen_hsa_memory_copy.
6713 (gen_hsa_insns_for_direct_call): Likewise.
6714 (gen_hsa_insns_for_return): Likewise.
6715 (gen_function_def_parameters): Set default alignment.
6716 * hsa.c (hsa_object_alignment): New function.
6717 (hsa_byte_alignment): Pasted function.
6718 * hsa.h (hsa_symbol::m_align): New field.
6719
6720 2016-03-31 Bin Cheng <bin.cheng@arm.com>
6721
6722 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
6723 scratch field for goto case.
6724
6725 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
6726
6727 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
6728
6729 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
6730
6731 PR target/70442
6732 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
6733 (scalar_chain::convert_insn): Call convert_op for reg
6734 moves to handle undefined registers.
6735
6736 2016-03-31 Nathan Sidwell <nathan@acm.org>
6737
6738 PR c++/70393
6739 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
6740 Assert we don't want to move backwards.
6741
6742 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
6743
6744 PR target/70453
6745 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
6746
6747 2016-03-31 Jakub Jelinek <jakub@redhat.com>
6748
6749 PR rtl-optimization/70460
6750 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
6751 with operand from REG_LABEL_OPERAND, instead substitute
6752 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
6753 Don't do anything for REG_NON_LOCAL_GOTO jumps.
6754
6755 2016-03-31 Martin Liska <mliska@suse.cz>
6756
6757 * passes.c (execute_one_pass): Do not call
6758 todo_after for a discarded function.
6759
6760 2016-03-31 Bin Cheng <bin.cheng@arm.com>
6761
6762 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
6763 (no_cost, infinite_cost): Initialize the new field.
6764 (get_computation_cost_at): Record setup cost.
6765 (determine_use_iv_cost_address): Skip cost computation for sub
6766 uses if we can estimate it without losing accuracy.
6767
6768 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6769
6770 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6771 estimates here.
6772 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6773 max_loop_iterations_int.
6774 (tree_unswitch_outer_loop): Likewise.
6775 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6776 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6777
6778 2016-03-30 Richard Biener <rguenther@suse.de>
6779
6780 PR middle-end/70450
6781 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
6782
6783 2016-03-30 Jakub Jelinek <jakub@redhat.com>
6784
6785 PR target/70421
6786 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
6787 in gen_blendm expander.
6788
6789 2016-03-30 Nick Clifton <nickc@redhat.com>
6790
6791 PR target/62254
6792 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
6793 case where we are already provided with an SImode SUBREG.
6794
6795 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
6796
6797 PR target/70439
6798 * config/i386/i386.c (ix86_expand_epilogue): Properly check
6799 conflict between DRAP register and __builtin_eh_return.
6800
6801 2016-03-30 Michael Matz <matz@suse.de>
6802 Richard Biener <rguenther@suse.de>
6803
6804 PR ipa/12392
6805 * ipa-polymorphic-call.c (struct type_change_info): Change
6806 speculative to an unsigned allowing to limit the work we do.
6807 (csftc_abort_walking_p): New inline function..
6808 (check_stmt_for_type_change): Limit the number of may-defs
6809 skipped for speculative devirtualization to
6810 max-speculative-devirt-maydefs.
6811 * params.def (max-speculative-devirt-maydefs): New param.
6812 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
6813
6814 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
6815
6816 PR target/63890
6817 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
6818 and TARGET_MACHO.
6819
6820 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
6821
6822 PR tree-optimization/59124
6823 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
6824 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
6825
6826 2016-03-29 Jeff Law <law@redhat.com>
6827
6828 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
6829
6830 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
6831
6832 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
6833 to HOST_WIDE_INT.
6834
6835 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
6836
6837 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
6838 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
6839 gcrt0.o if linking dynamically.
6840
6841 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
6842
6843 PR ipa/70283
6844 * ipa-devirt.c (methods_equal_p): New function.
6845 (compare_virtual_tables): Use it.
6846 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
6847 * cgraphclones.c (clone_function_name_1): Use
6848 symbol_table::symbol_suffix_separator.
6849 * coverage.c (build_var): Likewise.
6850 * symtab.c (symbol_table::symbol_suffix_separator): New.
6851
6852 2016-03-29 Jakub Jelinek <jakub@redhat.com>
6853
6854 PR rtl-optimization/70429
6855 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
6856 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
6857 mode != result_mode.
6858
6859 PR c++/70353
6860 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
6861
6862 PR tree-optimization/70405
6863 * ssa-iterators.h (num_imm_uses): Add missing braces.
6864
6865 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
6866
6867 PR rtl-optimization/68695
6868 * ira-color.c (allocno_copy_cost_saving): New.
6869 (improve_allocation): Use it.
6870
6871 2016-03-29 Richard Henderson <rth@redhat.com>
6872
6873 PR middle-end/70355
6874 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
6875
6876 2016-03-29 Richard Biener <rguenther@suse.de>
6877
6878 PR middle-end/70424
6879 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
6880 use alignment returned by get_pointer_alignment_1 if it is
6881 bigger than BITS_PER_UNIT.
6882 * builtins.c (get_pointer_alignment_1): Do not return true
6883 for alignment extracted from SSA info.
6884
6885 2016-03-28 James Bowman <james.bowman@ftdichip.com>
6886
6887 * config/ft32/ft32.opt (mnodiv): New.
6888 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
6889 * doc/invoke.texi (FT32 Options -mnodiv): New.
6890
6891 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
6892
6893 PR target/70406
6894 * config/i386/i386.md (define_split, andn): Fix modes.
6895
6896 2016-03-26 Richard Biener <rguenther@suse.de>
6897 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6898
6899 PR ipa/70366
6900 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
6901 instead of
6902 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
6903 as 2nd argument to cl_optimization_restore().
6904
6905 2016-03-25 Richard Henderson <rth@redhat.com>
6906
6907 PR target/70120
6908 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
6909 * config/aarch64/aarch64-protos.h: Declare it.
6910 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
6911
6912 2016-03-25 Alan Modra <amodra@gmail.com>
6913
6914 PR target/70052
6915 * config/rs6000/constraints.md (j): Simplify.
6916 * config/rs6000/predicates.md (easy_fp_constant): Exclude
6917 decimal float 0.D.
6918 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
6919 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
6920 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
6921 in all constraint alternatives.
6922 (movtd_64bit_nodm): Delete "j" constraint alternative.
6923
6924 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
6925
6926 * tree-ssa-propagate.c: Enhance docs for
6927 SSA_PROP_NOT_INTERESTING.
6928
6929 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
6930
6931 * doc/extend.texi: Fix typo in documentation to pure attribute.
6932
6933 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
6934
6935 PR target/70319
6936 * config/pa/pa.md (bswapdi2): Use a scratch register.
6937
6938 2016-03-24 Richard Henderson <rth@redhat.com>
6939
6940 PR middle-end/69845
6941 * fold-const.c (extract_muldiv_1): Correct test for multiplication
6942 overflow.
6943
6944 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
6945
6946 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
6947 using ix86_expand_binary_operator instead of gen_andsi3.
6948
6949 2016-03-24 Richard Biener <rguenther@suse.de>
6950
6951 PR tree-optimization/70396
6952 * tree-vect-stmts.c (vectorizable_comparison): Use
6953 get_vectype_for_scalar_type.
6954
6955 2016-03-24 Richard Biener <rguenther@suse.de>
6956
6957 PR middle-end/70370
6958 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
6959 with register bases.
6960
6961 2016-03-24 Richard Biener <rguenther@suse.de>
6962
6963 PR tree-optimization/70372
6964 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
6965 build_all_ones_cst to also handle vector types correctly.
6966
6967 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6968
6969 PR target/70381
6970 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
6971 -mfloat128 here.
6972
6973 2016-03-23 Marek Polacek <polacek@redhat.com>
6974
6975 PR c++/69884
6976 * doc/invoke.texi: Document -Wignored-attributes.
6977
6978 2016-03-23 Bin Cheng <bin.cheng@arm.com>
6979
6980 PR tree-optimization/69042
6981 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
6982 parameter from 30 to 40.
6983
6984 2016-03-23 Bin Cheng <bin.cheng@arm.com>
6985
6986 PR tree-optimization/69042
6987 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
6988 for use with constant offset stripped in base.
6989
6990 2016-03-23 Richard Biener <rguenther@suse.de>
6991
6992 PR middle-end/70251
6993 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
6994 mode compatibility check.
6995 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
6996
6997 2016-03-23 Jeff Law <law@redhat.com>
6998
6999 PR tree-optimization/64058
7000 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
7001 CONFLICT_COUNT.
7002 (struct ssa_conflicts): Move up earlier in the file.
7003 (conflicts_, var_map_): New static variables.
7004 (initialize_conflict_count): New function to initialize the
7005 CONFLICT_COUNT field for each conflict pair.
7006 (compare_pairs): Lazily initialize the conflict count and use it
7007 as the first tie-breaker.
7008 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
7009 and wipe conflicts_ and map_ around the call to qsort. Remove
7010 special case for 2 coalesce pairs.
7011 * bitmap.c (bitmap_count_unique_bits): New function.
7012 (bitmap_count_bits_in_word): New function, extracted from
7013 bitmap_count_bits.
7014 (bitmap_count_bits): Use bitmap_count_bits_in_word.
7015 * bitmap.h (bitmap_count_unique_bits): Declare it.
7016
7017 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7018
7019 PR target/69917
7020 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
7021 transparent alias chain for decl assembler name.
7022 * config/sol2.c (solaris_assemble_visibility): Likewise.
7023
7024 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7025
7026 * config/arm/arm1020e.md (1020call_op): Reduce reservation
7027 duration.
7028 (v10_fdivs): Likewise.
7029 (v10_fdivd): Likewise.
7030
7031 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7032
7033 PR driver/70132
7034 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
7035 to not call fclose twice on file.
7036
7037 2016-03-23 Jakub Jelinek <jakub@redhat.com>
7038
7039 PR tree-optimization/70354
7040 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7041 oprnd0 is wider than oprnd1 and there is a cast from the wider
7042 type to oprnd1, mask it with the mask of the narrower type.
7043
7044 PR target/70321
7045 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
7046 Optimize TARGET_STV splitters, if high or low word of last argument
7047 is 0 or -1.
7048
7049 2016-03-22 Jeff Law <law@redhat.com>
7050
7051 PR target/70232
7052 tree-ssa-threadbackward.c
7053 (fsm_find_control_statement_thread_paths): Correctly distinguish
7054 between old style jump threads vs FSM jump threads.
7055
7056 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7057
7058 PR target/70302
7059 * config/i386/i386.c (scalar_chain::convert_op): Support
7060 uninitialized register usage case.
7061
7062 2016-03-22 Richard Biener <rguenther@suse.de>
7063
7064 PR middle-end/70251
7065 * genmatch.c (gen_transform): Adjust last parameter to a three-state
7066 int...
7067 (capture::gen_transform): ... to change behavior when substituting
7068 a condition into cond or not-cond expr context.
7069 (dt_simplify::gen_1): Adjust.
7070 * gimple-match-head.c: Include gimplify.h for unshare_expr.
7071 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
7072 last change and instead change to
7073 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
7074 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7075
7076 2016-03-22 Anthony Green <green@moxielogic.com>
7077
7078 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
7079 issue for moxiebox targets.
7080 (CC1PLUS_SPEC): Ditto.
7081
7082 2016-03-22 Richard Biener <rguenther@suse.de>
7083
7084 PR middle-end/70333
7085 * fold-const.c (extract_muldiv_1): Properly perform multiplication
7086 in the wide type.
7087
7088 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7089
7090 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
7091
7092 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7093
7094 PR target/70325
7095 * config/i386/i386.c (def_builtin): Handle
7096 OPTION_MASK_ISA_AVX512VL to be and-ed with other
7097 bits.
7098 (const struct builtin_description bdesc_special_args[]):
7099 Remove duplicate ISA bits.
7100
7101 2016-03-22 Jakub Jelinek <jakub@redhat.com>
7102
7103 PR target/70329
7104 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
7105 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
7106 in a way that works also for AVX512BW.
7107
7108 PR target/70300
7109 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
7110 instead of source if operands[1] is xmm16 and above and
7111 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
7112 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
7113
7114 PR c++/70295
7115 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
7116 on assign if (*from_p) is a comparison, set it to
7117 TREE_NO_WARNING (*from_p).
7118
7119 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7120
7121 PR middle-end/70326
7122 * lra.c (restore_scratches): Ignore deleted insns.
7123
7124 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
7125 Jakub Jelinek <jakub@redhat.com>
7126
7127 PR tree-optimization/70317
7128 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
7129 to HONOR_NANS.
7130
7131 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
7132
7133 PR target/70327
7134 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
7135 of ix86_expand_move.
7136 (movoi): Ditto.
7137 (movti): Use general_operand for operand 1 predicate.
7138
7139 2016-03-21 Martin Liska <mliska@suse.cz>
7140
7141 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
7142 insns.
7143 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
7144
7145 2016-03-21 Martin Liska <mliska@suse.cz>
7146
7147 PR ipa/70306
7148 * ipa-icf.c (sem_function::parse): Skip static
7149 constructors and destructors.
7150
7151 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7152
7153 PR target/70296
7154 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
7155 function-like macro, peek following token(s) if it is followed
7156 by CPP_OPEN_PAREN token with optional padding in between, and
7157 if not, don't treat it like a macro.
7158
7159 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
7160 Alexander Monakov <amonakov@ispras.ru>
7161
7162 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
7163 for the stabs debug format.
7164
7165 2016-03-21 Richard Biener <rguenther@suse.de>
7166
7167 PR tree-optimization/70310
7168 * tree-vect-generic.c (expand_vector_condition): Fold the built
7169 condition.
7170
7171 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
7172
7173 PR target/70293
7174 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
7175 Block third alternative for AVX-512VL target,
7176
7177 2016-03-21 Martin Liska <mliska@suse.cz>
7178
7179 PR hsa/70234
7180 * hsa-brig.c (emit_function_directives): Mark unemitted
7181 global variables for emission.
7182 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
7183 (get_symbol_for_decl): Likewise.
7184 * hsa.h (struct hsa_symbol): New flag.
7185
7186 2016-03-21 Richard Biener <rguenther@suse.de>
7187
7188 PR tree-optimization/70288
7189 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
7190 we do not estimate unsimplified all-constant conditionals or
7191 switches as optimized away.
7192
7193 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
7194
7195 PR rtl-optimization/69102
7196 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
7197 when we have a readonly dependency context.
7198
7199 2016-03-18 Jeff Law <law@redhat.com>
7200
7201 PR rtl-optimization/70263
7202 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
7203 (update_equiv_regs): When trying to move a store to after the insn
7204 that sets the source of the store, make sure the store occurs after
7205 the insn that sets the source of the store. When successful note
7206 the REG_EQUIV note created in the dump file.
7207
7208 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
7209 Bernd Schmidt <bschmidt@redhat.com>
7210
7211 * doc/extend.texi: Document more potential problems with basic asms.
7212
7213 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
7214
7215 PR rtl-optimization/70278
7216 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
7217 VOIDmode.
7218
7219 2016-03-18 Jason Merrill <jason@redhat.com>
7220
7221 * calls.c (load_register_parameters): Fix zero size sibcall logic.
7222
7223 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
7224
7225 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
7226 values to 128b regs.
7227
7228 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7229
7230 PR tree-optimization/70252
7231 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
7232 boolean vector has a proper number of elements.
7233 (supportable_narrowing_operation): Likewise.
7234
7235 2016-03-18 Tom de Vries <tom@codesourcery.com>
7236
7237 PR ipa/70269
7238 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
7239
7240 2016-03-18 Jakub Jelinek <jakub@redhat.com>
7241
7242 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
7243 instead of replace_rtx for DEBUG_INSNs.
7244
7245 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7246
7247 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
7248 load type reservations.
7249
7250 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
7251
7252 PR target/70188
7253 * config/pa/constraints.md: Revert 2015-02-13 change. Use
7254 define_constraint for "Q" and "T" constraints.
7255
7256 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
7257
7258 Tweak the pipeline model for Exynos M1
7259
7260 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
7261 model.
7262
7263 2016-03-17 David Malcolm <dmalcolm@redhat.com>
7264
7265 PR c/70264
7266 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
7267 where one or both locations aren't within a line_map.
7268
7269 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
7270
7271 PR driver/70192
7272 * opts.c (finish_options): Don't set flag_pie to the default if
7273 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
7274 if it is -1.
7275
7276 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
7277
7278 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
7279 true as ALL_REGS argument to replace_rtx.
7280
7281 2016-03-17 Richard Biener <rguenther@suse.de>
7282
7283 PR debug/70271
7284 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
7285 last.
7286
7287 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7288
7289 PR target/70245
7290 * rtl.h (replace_rtx): Add ALL_REGS argument.
7291 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
7292 equality and assert mode is the same, instead of just rtx pointer
7293 equality.
7294 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
7295 true as ALL_REGS argument to replace_rtx.
7296
7297 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
7298
7299 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
7300 for boolean vector with vector mode only.
7301 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7302
7303 2016-03-17 Nick Clifton <nickc@redhat.com>
7304
7305 PR target/70162
7306 * config/rx/rx.c (rx_print_integer): Print negative constants in
7307 decimal.
7308
7309 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7310
7311 PR target/70261
7312 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
7313
7314 2016-03-16 Richard Henderson <rth@redhat.com>
7315 Richard Biener <rguenth@suse.de>
7316
7317 PR middle-end/70240
7318 PR middle-end/68215
7319 PR tree-opt/68714
7320 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
7321 first operand as is_gimple_condexpr.
7322
7323 PR middle-end/70240
7324 PR middle-end/68215
7325 Revert r231575
7326 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
7327 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
7328 Do not gimplify the result.
7329 (do_unop): Adjust call to tree_vec_extract.
7330 (do_binop): Likewise.
7331 (do_compare): Likewise.
7332 (do_plus_minus): Likewise.
7333 (do_negate): Likewise.
7334 (expand_vector_condition): Likewise.
7335 (do_cond): Likewise.
7336
7337 2016-03-16 Richard Henderson <rth@redhat.com>
7338
7339 PR target/70048
7340 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
7341 (aarch64_classify_address): Use it.
7342 (aarch64_legitimize_address): Force all subexpressions of PLUS
7343 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
7344
7345 2016-03-16 Jakub Jelinek <jakub@redhat.com>
7346 Richard Biener <rguenth@suse.de>
7347
7348 PR target/70245
7349 * rtlanal.c (replace_rtx): For REG, if from is a REG,
7350 return to even if only REGNO is equal, and assert
7351 mode is the same.
7352
7353 2016-03-11 Jeff Law <law@redhat.com>
7354
7355 PR rtl-optimization/70224
7356 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
7357
7358 2016-03-16 Richard Henderson <rth@redhat.com>
7359
7360 PR middle-end/70199
7361 * function.h (struct function): Add has_forced_label_in_static.
7362 * gimplify.c (force_labels_r): Set it.
7363 * lto-streamer-in.c (input_struct_function_base): Read it.
7364 * lto-streamer-out.c (output_struct_function_base): Write it.
7365 * tree-inline.c (has_label_address_in_static_1): Remove.
7366 (copy_forbidden): Remove fndecl parameter; test
7367 has_forced_label_in_static.
7368 (inline_forbidden_p): Update call to copy_forbidden.
7369 (tree_versionable_function_p): Likewise.
7370 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
7371 (chkp_versioning): Likewise.
7372 * tree-inline.h (copy_forbidden): Update decl.
7373
7374 2016-03-16 Marek Polacek <polacek@redhat.com>
7375
7376 PR c/70093
7377 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
7378 function being thunked if the result type doesn't have fixed size.
7379 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
7380 doesn't have fixed size.
7381
7382 2016-03-16 Bin Cheng <bin.cheng@arm.com>
7383
7384 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
7385 reporting malformed loop nest.
7386
7387 2016-03-16 Tom de Vries <tom@codesourcery.com>
7388
7389 PR lto/70187
7390 * ipa-devirt.c (possible_polymorphic_call_targets): Move
7391 nodes.length () == 1 test to before first nodes[0] access.
7392
7393 2016-03-16 Tom de Vries <tom@codesourcery.com>
7394
7395 PR tree-optimization/68715
7396 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
7397 single_pred_p test.
7398
7399 2016-03-16 Tom de Vries <tom@codesourcery.com>
7400
7401 PR tree-optimization/68809
7402 * graphite-scop-detection.c (same_close_phi_node): Test if result types
7403 are the same.
7404
7405 2016-03-16 Carlos O'Donell <carlos@redhat.com>
7406 Sandra Loosemore <sandra@codesourcery.com>
7407
7408 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
7409 on leaf attribute. Mention ELF interposition problems.
7410
7411 2016-03-16 Alan Modra <amodra@gmail.com>
7412
7413 PR rtl-optimization/69195
7414 PR rtl-optimization/47992
7415 * ira.c (indirect_jump_optimize): Ignore artificial defs.
7416 Add comments.
7417
7418 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
7419
7420 PR bootstrap/69513
7421 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
7422
7423 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7424
7425 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
7426
7427 2016-03-15 Jakub Jelinek <jakub@redhat.com>
7428
7429 PR rtl-optimization/70222
7430 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
7431 optimization if mode is different from result_mode, queue up masking
7432 of the result in outer_op. Formatting fix.
7433
7434 PR middle-end/70239
7435 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
7436 of safe_grow.
7437
7438 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7439
7440 PR rtl-optimization/69032
7441 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
7442 looping backwards over basic block insns.
7443
7444 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7445
7446 PR target/66660
7447 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
7448 to non-speculative when propagating trap bits.
7449
7450 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7451
7452 PR rtl-optimization/63384
7453 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
7454 DEBUG_INSN_P insns.
7455
7456 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7457
7458 PR target/64411
7459 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
7460 factored out from ...
7461 (sched_analyze_insn): ... here.
7462 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
7463 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
7464 get_implicit_reg_pending_clobbers in it.
7465 (setup_id_reg_sets): Use setup_id_implicit_regs.
7466 (deps_init_id): Ditto.
7467
7468 2016-03-15 Tom de Vries <tom@codesourcery.com>
7469
7470 PR ipa/70161
7471 * cgraph.c (cgraph_node::get_body): Save, reset and restore
7472 dump_file_name.
7473 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
7474 execute_function_dump.
7475 (execute_one_pass): Don't dump function if it will be dumped after ipa
7476 transform.
7477
7478 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
7479
7480 * genrecog.c (match_pattern_2): If pred is NULL don't call
7481 safe_predicate_mode on it.
7482
7483 2016-03-14 Jakub Jelinek <jakub@redhat.com>
7484
7485 PR middle-end/70219
7486 * lra-constraints.c (delete_move_and_clobber): Change assertion
7487 to also allow dregno == 0.
7488
7489 2016-03-14 Richard Henderson <rth@redhat.com>
7490
7491 PR tree-opt/68714
7492 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
7493 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
7494 (reassociate_bb): Use optimize_vec_cond_expr; avoid
7495 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
7496 on vectors.
7497
7498 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
7499
7500 PR target/70083
7501 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
7502 regs.
7503 (lra_create_live_ranges_1): initialize hard register biggest_mode to
7504 VOIDmode.
7505 * lra-constraints.c (split_reg): For hard regs, try to find the
7506 biggest single-register mode used in the function.
7507
7508 2016-03-14 Richard Biener <rguenther@suse.de>
7509
7510 PR tree-optimization/56365
7511 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
7512 constants to compare against.
7513
7514 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
7515
7516 PR target/70098
7517 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7518 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
7519 (define_split for the GPR case): Use int_reg_operand instead of
7520 gpc_reg_operand for the output.
7521
7522 2016-03-14 Tom de Vries <tom@codesourcery.com>
7523
7524 PR tree-optimization/70045
7525 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
7526 create_empty_if_region_on_edge argument.
7527
7528 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
7529
7530 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
7531 (STACK_CHECK_PROTECT): Likewise.
7532 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7533 (STACK_CHECK_PROTECT): Likewise.
7534 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7535 (STACK_CHECK_PROTECT): Likewise.
7536 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
7537 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7538 (STACK_CHECK_PROTECT): Likewise.
7539
7540 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
7541
7542 PR rtl-optimization/69307
7543 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
7544 registers in modes that span more than one register.
7545
7546 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
7547
7548 PR target/69614
7549 * lra-constraints.c (delete_move_and_clobber): New.
7550 (remove_inheritance_pseudos): Use it.
7551
7552 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
7553
7554 PR ada/70017
7555 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
7556 the libcall is LCT_THROW.
7557 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
7558 for the checking routine.
7559
7560 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7561
7562 PR target/70131
7563 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
7564 optimization if we have direct move.
7565 (roundu32<mode>2_fprs): Likewise.
7566
7567 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
7568
7569 PR target/70123
7570 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
7571 be rematerialized.
7572 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
7573 Arguments swapped. All callers changed. Take reg_renumber into
7574 account, and Calculate and compare register ranges for hard regs.
7575
7576 2016-03-11 Jeff Law <law@redhat.com>
7577
7578 PR tree-optimization/70190
7579 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7580 Handle cases where we can not extract the taken edge, even though we
7581 found a constant value.
7582
7583 PR tree-optimization/64058
7584 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
7585 (num_coalesce_pairs): Move up earlier in file.
7586 (find_coalesce_pair): Initialize the INDEX field for each pair
7587 discovered.
7588 (compare_pairs): No longer sort on the elements in each pair.
7589 Instead break ties with the index of the coalesce pair.
7590
7591 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7592
7593 PR target/70002
7594 * config/aarch64/aarch64-protos.h
7595 (aarch64_save_restore_target_globals): New prototype.
7596 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
7597 Call the above when popping pragma.
7598 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
7599 New function.
7600 (aarch64_set_current_function): Rewrite using the above.
7601
7602 2016-03-11 Jakub Jelinek <jakub@redhat.com>
7603
7604 PR tree-optimization/70177
7605 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
7606 (extract_ops_from_tree): ... this. In the 2 argument
7607 overload remove _1 suffix.
7608 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
7609 (extract_ops_from_tree): ... this.
7610 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
7611 Adjust callers.
7612 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7613 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
7614 extract_ops_from_tree instead of 2 operand one.
7615
7616 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
7617
7618 PR tree-optimization/70013
7619 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
7620 for constant-pool entries.
7621
7622 2016-03-11 Jakub Jelinek <jakub@redhat.com>
7623
7624 PR rtl-optimization/70174
7625 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
7626 followed by gen_lowpart on force_reg instead of just gen_lowpart.
7627
7628 PR tree-optimization/70169
7629 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
7630 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
7631 for unknown codes.
7632
7633 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
7634 Jakub Jelinek <jakub@redhat.com>
7635
7636 PR target/70160
7637 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
7638 of uninitialized values.
7639
7640 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7641
7642 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
7643 define_expand.
7644 ("*trunctddd2"): New pattern definition.
7645 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
7646 TD->DD truncation.
7647
7648 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7649
7650 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
7651 definitions for BFP and DFP rounding modes.
7652 ("fixuns_truncdddi2", "fixuns_trunctddi2")
7653 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
7654 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
7655 ("fix_trunctf<mode>2"): Use the new constants instead of magic
7656 numbers.
7657
7658 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7659
7660 * config/s390/constraints.md: Adjust comment.
7661 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
7662 s390_decompose_addrstyle_without_index.
7663 * config/s390/predicates.md (shift_count_or_setmem_operand):
7664 Rename to setmem_operand.
7665 * config/s390/s390-protos.h
7666 (s390_decompose_shift_count): Rename to
7667 s390_decompose_addrstyle_without_index.
7668 * config/s390/s390.c (s390_decompose_shift_count)
7669 (s390_mem_constraint, print_shift_count_operand)
7670 (print_operand_address, print_operand): Rename
7671 s390_decompose_shift_count to
7672 s390_decompose_addrstyle_without_index and rename
7673 print_shift_count_operand to print_addrstyle_operand troughout the
7674 file.
7675 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
7676 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
7677 Rename shift_count_or_setmem_operand to setmem_operand.
7678 * config/s390/vx-builtins.md ("vec_insert<mode>")
7679 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
7680 nonmemory_operand.
7681
7682 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7683
7684 PR target/70168
7685 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
7686 Handle overlapping retval and newval.
7687
7688 2016-03-10 Nick Clifton <nickc@redhat.com>
7689
7690 PR target/7044
7691 * config/aarch64/aarch64.c
7692 (aarch64_override_options_after_change_1): When forcing
7693 flag_omit_frame_pointer to be true, use a special value that can
7694 be detected if this function is called again, thus preventing
7695 flag_omit_leaf_frame_pointer from being forced to be false.
7696
7697 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7698
7699 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
7700 Set x_flag_omit_leaf_frame_pointer when handling
7701 -momit-leaf-frame-pointer.
7702
7703 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7704
7705 PR lto/69589
7706 * cgraph.c (cgraph_node::dump): Dump split_part and
7707 indirect_call_target.
7708 * cgraph.h (cgraph_node): Add indirect_call_target flag.
7709 * ipa.c (has_addr_references_p): Cleanup.
7710 (is_indirect_call_target_p): New.
7711 (walk_polymorphic_call_targets): Do not mark virtuals that may be
7712 called indirectly as local.
7713 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
7714
7715 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7716
7717 PR ipa/69630
7718 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
7719 on cxa_pure_virtual.
7720
7721 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7722
7723 PR lto/69589
7724 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
7725
7726 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7727
7728 PR lto/69589
7729 * tree.c (need_assembler_name_p): Only record main variant type names.
7730
7731 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
7732
7733 PR target/70113.
7734 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
7735 Always define to 0 or 1.
7736 (TARGET_FIX_ERR_A53_843419): New macro.
7737 * config/aarch64/aarch64-elf-raw.h
7738 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
7739 * config/aarch64/aarch64-linux.h: Likewise.
7740 * config/aarch64/aarch64.c
7741 (aarch64_override_options_after_change_1): Do not default
7742 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
7743 843419 is on.
7744 (aarch64_attributes): Handle fix-cortex-a53-843419.
7745 (aarch64_can_inline_p): Likewise.
7746 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
7747
7748 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
7749 Jakub Jelinek <jakub@redhat.com>
7750
7751 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
7752 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
7753 DECL_COMMONS if flag_unconstrained_commons is set.
7754 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7755 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
7756 (funconstrained-commons): Document.
7757
7758 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
7759
7760 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
7761 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
7762
7763 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
7764
7765 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
7766 has a proper number of elements.
7767
7768 2016-03-10 Alan Modra <amodra@gmail.com>
7769
7770 PR rtl-optimization/69195
7771 PR rtl-optimization/47992
7772 * ira.c (recorded_label_ref): Delete.
7773 (update_equiv_regs): Return void.
7774 (indirect_jump_optimize): New function.
7775 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
7776 before regstat_compute_ri. Don't rebuild_jump_labels here.
7777 Delete update_regstat.
7778
7779 2016-03-10 Richard Biener <rguenther@suse.de>
7780
7781 PR tree-optimization/70128
7782 * tree-ssa-structalias.c (set_uids_in_ptset): Set
7783 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
7784
7785 2016-03-09 Jakub Jelinek <jakub@redhat.com>
7786
7787 PR tree-optimization/70152
7788 * tree-sra.c (replace_removed_params_ssa_names): Copy over
7789 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
7790
7791 PR target/70086
7792 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
7793 instead of gen_sse2_loadlpd.
7794 * config/i386/sse.md (*vec_concatv2df): Rename to...
7795 (vec_concatv2df): ... this.
7796
7797 PR tree-optimization/70127
7798 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
7799
7800 2016-03-09 David Malcolm <dmalcolm@redhat.com>
7801
7802 PR c/68473
7803 PR c++/70105
7804 * diagnostic-show-locus.c (compatible_locations_p): New function.
7805 (layout::layout): Sanitize ranges using compatible_locations_p.
7806
7807 2016-03-09 David Malcolm <dmalcolm@redhat.com>
7808
7809 PR c/68473
7810 PR c++/70105
7811 * diagnostic-show-locus.c (layout_range::layout_range): Replace
7812 location_range param with three const expanded_locations * and a
7813 bool.
7814 (layout::layout): Replace call to
7815 rich_location::lazily_expand_location with get_expanded_location.
7816 Extract the range and perform location expansion here, passing
7817 the results to the layout_range ctor.
7818 * diagnostic.c (source_range::debug): Delete.
7819 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
7820 of rich_location::get_expanded_location.
7821 * gcc-rich-location.c (get_range_for_expr): Delete.
7822 (gcc_rich_location::add_expr): Reimplement to avoid the
7823 rich_location::add_range overload that took a location_range,
7824 passing a location_t instead.
7825
7826 2016-03-09 Richard Biener <rguenther@suse.de>
7827 Jakub Jelinek <jakub@redhat.com>
7828
7829 PR tree-optimization/70138
7830 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
7831 Also skip vect_double_reduction_def.
7832
7833 2016-03-09 Jakub Jelinek <jakub@redhat.com>
7834
7835 PR target/70049
7836 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
7837 if the operand is "m".
7838
7839 2016-03-09 Nathan Sidwell <nathan@acm.org>
7840
7841 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
7842
7843 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7844
7845 * config/i386/i386.c (processor_target_table): Fix cost table
7846 intialization order for znver1.
7847
7848 2016-03-08 Jakub Jelinek <jakub@redhat.com>
7849
7850 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
7851 - becuase -> because.
7852 * ipa-reference.c (ignore_module_statics): Likewise.
7853 * cgraph.c (cgraph_node::get_body): Likewise.
7854 * ipa-inline.c (early_inliner): Likewise.
7855 * ipa-devirt.c (types_same_for_odr): Likewise.
7856 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
7857 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
7858
7859 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7860
7861 * tree-ssa-math-opts.c: Fix typo in comment.
7862
7863 2016-03-08 Jakub Jelinek <jakub@redhat.com>
7864
7865 PR target/70110
7866 * config/i386/i386.c (scalar_chain::make_vector_copies,
7867 scalar_chain::convert_reg): Call end_sequence in between
7868 get_insns and emit_conversion_insns rather than after both
7869 calls.
7870
7871 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
7872
7873 PR target/70064
7874 * config/i386/i386.h (machine_function): Add
7875 pc_thunk_call_expanded flag.
7876 (ix86_pc_thunk_call_expanded): New define.
7877 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
7878 (*set_got): Rename insn pattern from set_got.
7879 (*set_got_labelled): Rename inst pattern from set_got_labelled.
7880 * config/i386/i386.c (ix86_compute_frame_layout): Use
7881 ix86_pc_thunk_call_expanded to prevent red-zone.
7882
7883 2016-03-07 Martin Jambor <mjambor@suse.cz>
7884
7885 * hsa.h (hsa_get_ctor_statements): Declare.
7886 (hsa_get_dtor_statements): Likewise.
7887 (hsa_get_kernel_dispatch_type): Likewise.
7888 * hsa.c (hsa_get_ctor_statements): New function.
7889 (hsa_get_dtor_statements): Likewise.
7890 (hsa_get_kernel_dispatch_type): Likewise.
7891 * hsa-brig.c (hsa_cdtor_statements): Removed.
7892 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
7893 hsa_get_dtor_statements.
7894 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
7895 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
7896
7897 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
7898
7899 * config/arm/arm-cores.def (cortex-r8): New.
7900 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
7901 * config/arm/arm-tune.md: Likewise.
7902 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
7903
7904 2016-03-07 Martin Sebor <msebor@redhat.com>
7905
7906 PR rtl-optimization/19705
7907 * doc/invoke.texi (Options That Control Optimization): Clarify
7908 -fno-branch-count-reg.
7909
7910 2016-02-26 Richard Biener <rguenther@suse.de>
7911 Jeff Law <law@redhat.com>
7912
7913 PR tree-optimization/69740
7914 * cfghooks.c (remove_edge): Request loop fixups if we delete
7915 an edge that might turn an irreducible loop into a natural
7916 loop.
7917 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
7918 Move after definition of loops_state_clear.
7919
7920 2016-03-07 Bin Cheng <bin.cheng@arm.com>
7921
7922 PR rtl-optimization/69052
7923 * rtlanal.c (commutative_operand_precedence): Set higher precedence
7924 to CONST_WIDE_INT.
7925
7926 2016-03-07 Tom de Vries <tom@codesourcery.com>
7927
7928 PR tree-optimization/70116
7929 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
7930 is_tm_ending stmts and ubsan/asan internal functions.
7931 (find_duplicate): Use it. Don't test is_tm_ending here.
7932
7933 2016-03-07 Richard Biener <rguenther@suse.de>
7934
7935 PR tree-optimization/70115
7936 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
7937 (propagate_constants_for_unrolling): Use replace_uses_by.
7938
7939 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
7940
7941 PR middle-end/69916
7942 * omp-low.c (struct oacc_loop): Add ifns.
7943 (new_oacc_loop_raw): Initialize it.
7944 (finish_oacc_loop): Clear mask & flags if no ifns.
7945 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
7946 (oacc_loop_xform_loop): Add ifns arg & adjust.
7947 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
7948
7949 2016-03-07 Richard Henderson <rth@redhat.com>
7950
7951 PR rtl-opt/70061
7952 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
7953 (insert_value_copy_on_edge): Likewise.
7954
7955 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7956
7957 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
7958
7959 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7960
7961 PR target/62281
7962 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
7963
7964 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7965
7966 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
7967
7968 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7969
7970 Fix sseimul type attribute.
7971 * config/i386/znver1.md
7972 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
7973 znver1_sseimul_avx256_load) : Fix the type attribute.
7974 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
7975 pipe usage and latency.
7976
7977 2016-03-05 Jakub Jelinek <jakub@redhat.com>
7978
7979 PR c++/70084
7980 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
7981 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
7982 to the right type.
7983
7984 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
7985
7986 PR c/69973
7987 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
7988
7989 PR rtl-optimization/69941
7990 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
7991 the reg share its mode.
7992
7993 2016-03-04 Jeff Law <law@redhat.com>
7994
7995 PR tree-optimization/69196
7996 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7997 If the both SSA_NAMEs are anonymous, then consider them unassociated
7998 and include the PHI in the statement count.
7999
8000 2016-03-05 Tom de Vries <tom@codesourcery.com>
8001
8002 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
8003 construct in oacc routine. Check for oacc region in oacc routine.
8004
8005 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8006
8007 PR target/70062
8008 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
8009 2016-02-22 changes, instead don't recurse if RECUR is already true.
8010 Don't change *dynamic_check if RECUR. Adjust recursive caller
8011 to pass true to the new argument.
8012 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
8013
8014 PR target/70059
8015 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8016 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
8017 fixes.
8018 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
8019
8020 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8021
8022 PR rtl-optimization/57676
8023 * lra-assigns.c (lra_assign): Guard test for maximum iterations
8024 with flag_checking.
8025
8026 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
8027
8028 * tree-vect-patterns.c (search_type_for_mask): Handle
8029 comparison of booleans.
8030
8031 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8032
8033 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
8034 Fix @xref usage.
8035
8036 PR debug/69947
8037 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
8038 all other ops that have dw_val_class_die_ref operands,
8039 and DW_OP_GNU_entry_value.
8040
8041 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8042
8043 PR rtl-optimization/69904
8044 * config/arm/arm.c (arm_cannot_copy_insn_p):
8045 Return true for load-exclusive instructions.
8046
8047 2016-03-03 Jakub Jelinek <jakub@redhat.com>
8048
8049 PR target/70021
8050 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
8051 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
8052 the pattern no matter if it is used just by non-pattern, pattern
8053 or mix thereof.
8054 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
8055 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8056 oprnd1 def_stmt is in pattern, don't look through it.
8057
8058 2016-03-03 Marek Polacek <polacek@redhat.com>
8059
8060 PR middle-end/70050
8061 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
8062
8063 2016-03-03 Martin Liska <mliska@suse.cz>
8064
8065 PR tree-optimization/70043
8066 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
8067 previous statement if we see a debug statement.
8068
8069 2016-03-03 Richard Biener <rguenther@suse.de>
8070
8071 PR tree-optimization/55936
8072 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
8073 parameter and guard unsafe equivalence use.
8074 (vrp_evaluate_conditional_warnv_with_ops): Always use
8075 safe equivalences but not via the quadratic compare_names
8076 helper.
8077
8078 2016-03-03 Michael Collison <michael.collison@linaro.org>
8079
8080 PR target/70014
8081 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
8082 for operand 1 to s_register_operand. Change predicate for operand
8083 2 to arm_not_immediate_operand.
8084
8085 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
8086
8087 * doc/tm.texi: Regenerated.
8088
8089 2016-03-02 Richard Henderson <rth@redhat.com>
8090
8091 PR rtl-opt/67145
8092 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
8093 simplification when all args are positive non-fixed registers.
8094
8095 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8096
8097 * target.def (lra_p): Specify that new ports should use LRA.
8098
8099 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8100
8101 PR libgomp/69555
8102 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
8103 gimplify_type_sizes the type they refer to.
8104 (omp_notice_variable): Handle reference vars to VLAs.
8105 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
8106 reference to VLA decls in the second pass instead of first pass.
8107
8108 2016-03-02 Tom de Vries <tom@codesourcery.com>
8109
8110 PR tree-optimization/68659
8111 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
8112 new_expr == NULL_TREE.
8113 (get_new_name): Handle ADDR_EXPR.
8114
8115 2016-03-02 Bin Cheng <bin.cheng@arm.com>
8116
8117 PR rtl-optimization/69052
8118 * loop-invariant.c (canonicalize_address): New function.
8119 (inv_can_prop_to_addr_use): Check validity of address expression
8120 which is canonicalized by above function.
8121
8122 2016-03-02 Alan Modra <amodra@gmail.com>
8123
8124 PR ipa/69990
8125 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
8126 larger alignment.
8127
8128 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8129
8130 PR target/70028
8131 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
8132 (*movhi_internal): Put mask moves from and to memory separately
8133 from moves from/to GPRs.
8134
8135 2016-03-02 Richard Biener <rguenther@suse.de>
8136
8137 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
8138 GENERIC expressions in GIMPLE.
8139
8140 2016-03-02 Richard Biener <rguenther@suse.de>
8141
8142 * config/i386/i386.c (type_natural_mode): Fix typo.
8143
8144 2016-03-02 Nick Clifton <nickc@redhat.com>
8145
8146 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
8147
8148 2016-03-02 Richard Biener <rguenther@suse.de>
8149 Uros Bizjak <ubizjak@gmail.com>
8150
8151 PR target/67278
8152 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
8153
8154 2016-03-02 Richard Biener <rguenther@suse.de>
8155
8156 PR middle-end/67278
8157 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
8158
8159 2016-03-02 Marek Polacek <polacek@redhat.com>
8160
8161 PR c/67854
8162 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
8163 "is promoted to" warning.
8164
8165 2016-03-01 DJ Delorie <dj@redhat.com>
8166
8167 * config.gcc: Deprecate mep-*.
8168
8169 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
8170
8171 PR middle-end/70025
8172 * lra-constraints.c (regno_val_use_in): New.
8173 (match_reload): Use it instead of regno_use_in.
8174
8175 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8176
8177 PR rtl-optimization/70007
8178 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
8179 references present in REG_EQUAL notes attached to non-SET patterns.
8180
8181 2016-03-01 Jeff Law <law@redhat.com>
8182
8183 PR tree-optimization/69196
8184 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8185 Appropriately clamp the number of statements to copy when the
8186 thread path does not traverse a loop backedge.
8187
8188 PR tree-optimization/69196
8189 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8190 Do count some PHIs in the thread path against the insn count. Decrease
8191 final statement count by one as the control statement in the last
8192 block will get removed. Remove special cased code for handling PHIs
8193 in the last block.
8194
8195 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
8196
8197 PR target/70027
8198 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
8199 asm dialect alternatives to explicit GOTPCREL calls.
8200
8201 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8202
8203 PR ada/70017
8204 * ira.c (do_reload): Issue warning for generic stack checking here...
8205 * reload1.c (reload): ...instead of here and streamline it.
8206
8207 2016-03-01 Nick Clifton <nickc@redhat.com>
8208
8209 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
8210
8211 2016-03-01 Richard Biener <rguenther@suse.de>
8212
8213 PR tree-optimization/69983
8214 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
8215 types and fall back to operand_equal_p.
8216
8217 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8218
8219 Revert
8220 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8221
8222 * config/s390/constraints.md ("jm8"): New constraint.
8223 * config/s390/predicates.md ("const_int_8bitset_operand"): New
8224 predicate.
8225 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
8226 into ...
8227 ("*setmem_long<setmem_and>"): New pattern.
8228 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
8229 into ...
8230 ("*setmem_long_31z<setmem_and>"): New pattern.
8231 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
8232 New substitution rules with the required attributes.
8233
8234
8235 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8236
8237 Revert
8238 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8239
8240 * gensupport.c (process_substs_on_one_elem): Split loop to
8241 complete mark_operands_used_in_match_dup on all expressions in the
8242 vector first.
8243 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8244 and remove function.
8245
8246 2016-03-01 Richard Biener <rguenther@suse.de>
8247
8248 PR middle-end/70022
8249 * fold-const.c (fold_indirect_ref_1): Fix range checking for
8250 vector BIT_FIELD_REF extract.
8251
8252 2016-03-01 Richard Biener <rguenther@suse.de>
8253
8254 PR tree-optimization/69994
8255 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
8256
8257 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8258
8259 PR tree-optimization/69956
8260 * tree-vect-stmts.c (supportable_widening_operation): Support
8261 multi-step conversion of boolean vectors.
8262 (supportable_narrowing_operation): Likewise.
8263
8264 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8265
8266 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
8267 anymore.
8268
8269 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8270
8271 * config/s390/subst.md (DSI_VI): New mode iterator.
8272 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
8273 * config/s390/vector.md ("vec_set<mode>"): Move expander before
8274 the insn definition.
8275 ("*vec_set<mode>"): Change predicate and add alternative to
8276 support only either register or const_int operands as element
8277 selector.
8278 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
8279 operands.
8280 ("vec_extract<mode>"): New expander.
8281 ("*vec_extract<mode>"): New insn definition supporting reg and
8282 const_int element selectors.
8283 ("*vec_extract<mode>_plus"): New insn definition supporting
8284 reg+const_int element selectors.
8285 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
8286 following expander+insn definition.
8287 ("<vec_shifts_name><mode>3"): New expander.
8288 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
8289
8290 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8291
8292 * config/s390/s390.md ("*tabort_1"): Change predicate to
8293 nonmemory_operand. Add a second alternative to cover
8294 register as well as const int operands.
8295 ("*tabort_1_plus"): New pattern definition.
8296
8297 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8298
8299 * config/s390/s390.md ("*ashrdi3_cc_31")
8300 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
8301 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
8302 Merge insn definitions into ...
8303 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8304 New pattern definition.
8305 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
8306 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
8307 ("*ashr<mode>3_and"): Merge insn definitions into ...
8308 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8309 New pattern definition.
8310 * config/s390/subst.md ("addr_style_op_cc_subst")
8311 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
8312 substitutions patterns plus attributes.
8313 Add ashiftrt to SUBST iterator.
8314
8315 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8316
8317 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
8318 op2 to nonmemory_operand.
8319 ("*<shift>di3_31", "*<shift>di3_31_and"):
8320 Merge into single pattern definition ...
8321 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
8322 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
8323 pattern definition ...
8324 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
8325 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
8326 iterator.
8327
8328 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8329
8330 * config/s390/predicates.md (const_int_6bitset_operand): New
8331 predicate.
8332 * config/s390/s390.md: Include subst.md.
8333 ("rotl<mode>3"): New expander.
8334 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
8335 ...
8336 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
8337 * config/s390/subst.md: New file.
8338
8339 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8340
8341 * config/s390/s390.md ("op_type", "atype", "length" attributes):
8342 Remove RRR type. It doesn't really exist.
8343 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
8344 attributes.
8345 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
8346 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
8347 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
8348 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
8349 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
8350 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
8351 `enabled' attribute.
8352
8353 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8354
8355 * gensupport.c (process_substs_on_one_elem): Split loop to
8356 complete mark_operands_used_in_match_dup on all expressions in the
8357 vector first.
8358 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8359 and remove function.
8360
8361 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
8362
8363 PR target/69706
8364 * config/sparc/sparc.c (NWORDS_UP): Rename to...
8365 (CEIL_NWORDS): ...this. Use CEIL macro.
8366 (compute_fp_layout): Adjust to above renaming.
8367 (function_arg_union_value): Likewise.
8368 (sparc_arg_partial_bytes): Likewise.
8369 (sparc_function_arg_advance): Likewise.
8370
8371 2016-02-29 Jeff Law <law@redhat.com>
8372
8373 PR tree-optimization/70005
8374 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
8375 where an object with a boolean range is compared against a value
8376 outside [0..1].
8377
8378 PR tree-optimization/69999
8379 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
8380 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
8381 loop cleanups.
8382
8383 2016-02-29 Richard Biener <rguenther@suse.de>
8384
8385 PR tree-optimization/69994
8386 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
8387 (get_unary_op): Look through nop conversions.
8388 (ops_equal_values_p): New function, look for equality diregarding
8389 nop conversions.
8390 (eliminate_plus_minus_pair): Use ops_equal_values_p
8391 (repropagate_negates): Do not use get_unary_op here.
8392
8393 2016-02-29 Martin Liska <mliska@suse.cz>
8394
8395 * system.h: Poison ENABLE_CHECKING macro.
8396
8397 2016-02-29 Martin Liska <mliska@suse.cz>
8398
8399 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
8400 is presented in dump flags.
8401 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8402 (hsa_regalloc): Likewise.
8403
8404 2016-02-19 Richard Biener <rguenther@suse.de>
8405
8406 PR tree-optimization/69980
8407 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
8408 permutation of those we need to keep.
8409
8410 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
8411
8412 PR target/69706
8413 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
8414 (NWORDS_UP): ...this
8415 (init_cumulative_args): Minor tweaks.
8416 (sparc_promote_function_mode): Likewise.
8417 (scan_record_type): Delete.
8418 (traverse_record_type): New function template.
8419 (classify_data_t): New structure type.
8420 (classify_registers): New inline function.
8421 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
8422 exhausted. Instantiate traverse_record_type on classify_registers and
8423 deal with the case of a structure passed in slot #15 with no FP field
8424 in the first word.
8425 (assign_data_t): New structure type.
8426 (compute_int_layout): New static function.
8427 (compute_fp_layout): Likewise.
8428 (count_registers): New inline function.
8429 (assign_int_registers): New static function.
8430 (assign_fp_registers): Likewise.
8431 (assign_registers): New inline function.
8432 (function_arg_record_value_1): Delete.
8433 (function_arg_record_value_2): Likewise.
8434 (function_arg_record_value_3): Likewise.
8435 (function_arg_record_value): Adjust to above changes. Instantiate
8436 traverse_record_type on count_registers to first count the number of
8437 registers to be used and then on assign_registers to assign them.
8438 (function_arg_union_value): Adjust to above renaming.
8439 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
8440 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
8441 case of a structure passed in slot #15
8442 (sparc_function_arg_advance): Likewise.
8443 (function_arg_padding): Minor tweak.
8444
8445 2016-02-29 Richard Biener <rguenther@suse.de>
8446
8447 PR tree-optimization/69720
8448 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
8449 the adjustment_def path for possibly vectorized defs.
8450 (vect_create_epilog_for_reduction): Handle vectorized initial
8451 defs properly.
8452
8453 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
8454
8455 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
8456
8457 2016-02-27 Jeff Law <law@redhat.com>
8458
8459 Revert
8460 2016-02-26 Richard Biener <rguenther@suse.de>
8461 Jeff Law <law@redhat.com>
8462
8463 PR tree-optimization/69740
8464 * cfghooks.c (remove_edge): Request loop fixups if we delete
8465 an edge that might turn an irreducible loop into a natural
8466 loop.
8467
8468 2016-02-27 Jakub Jelinek <jakub@redhat.com>
8469
8470 PR rtl-optimization/69896
8471 * tree-vect-generic.c (get_compute_type): Avoid single element
8472 vector types.
8473
8474 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
8475
8476 Rename the AArch64 tuning option and related functions to enable the
8477 Newton series for the reciprocal square root to reflect its
8478 approximative characteristic.
8479
8480 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
8481 function to "aarch64_emit_approx_rsqrt".
8482 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
8483 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
8484 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
8485 (xgene1_tunings): Likewise.
8486 (use_rsqrt_p): Likewise.
8487 (aarch64_emit_swrsqrt): Use new function name.
8488 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
8489 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
8490 text explaining this option.
8491 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
8492
8493 2016-02-26 Jakub Jelinek <jakub@redhat.com>
8494
8495 PR target/69969
8496 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8497 complain about -mallow-movmisalign without -mvsx if
8498 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
8499
8500 2016-02-26 Joel Sherrill <joel@rtems.org>
8501
8502 * config.gcc: Add x86_64-*-rtems*.
8503 * config/i386/rtems-64.h: New file.
8504
8505 2016-02-26 Joel Sherrill <joel@rtems.org>
8506
8507 * config.gcc: Add aarch64-*-rtems*.
8508 * config/aarch64/rtems.h: New file.
8509
8510 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
8511
8512 PR target/69946
8513 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
8514 shift amount using %h. Add comment.
8515
8516 2016-02-26 Richard Biener <rguenther@suse.de>
8517 Jeff Law <law@redhat.com>
8518
8519 PR tree-optimization/69740
8520 * cfghooks.c (remove_edge): Request loop fixups if we delete
8521 an edge that might turn an irreducible loop into a natural
8522 loop.
8523
8524 2016-02-26 Martin Jambor <mjambor@suse.cz>
8525
8526 PR middle-end/69920
8527 * tree-sra.c (sra_modify_assign): Do not remove loads of
8528 uninitialized aggregates to SSA_NAMEs.
8529
8530 2016-02-26 Richard Henderson <rth@redhat.com>
8531
8532 PR target/69709
8533 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
8534 pseudo in case the target rtx matches the source of the left
8535 shift.
8536
8537 2016-02-26 Martin Jambor <mjambor@suse.cz>
8538
8539 PR hsa/69568
8540 * hsa.h (hsa_type_packed_p): Declare.
8541 * hsa.c (hsa_type_packed_p): New function.
8542 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
8543 loads.
8544 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
8545 * hsa-brig.c (emit_basic_insn): Likewise.
8546
8547 2016-02-26 Martin Jambor <mjambor@suse.cz>
8548
8549 pr hsa/69674
8550 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
8551 pointers.
8552 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
8553
8554 2016-02-26 Martin Jambor <mjambor@suse.cz>
8555
8556 * hsa.h (is_a_helper): New overload for hsa_op_immed for
8557 hsa_op_with_type operands.
8558 (hsa_unsigned_type_for_type): Declare.
8559 * hsa.c (hsa_unsigned_type_for_type): New function.
8560 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
8561 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
8562 the finalizer. Do not emit extra move.
8563
8564 2016-02-26 Martin Jambor <mjambor@suse.cz>
8565
8566 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
8567 atomic operations in private segment.
8568
8569 2016-02-26 Martin Jambor <mjambor@suse.cz>
8570
8571 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
8572 statements to wi->info. Also disallow omp simd constructs.
8573 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
8574 for not gridifying. Dump special string for omp_for.
8575
8576 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8577
8578 PR target/69245
8579 * config/aarch64/aarch64.c (aarch64_set_current_function):
8580 Save/restore target globals when switching to
8581 target_option_default_node.
8582
8583 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8584
8585 PR target/69613
8586 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
8587 Return 0 if !SHIFT_COUNT_TRUNCATED.
8588
8589 2016-02-26 Jakub Jelinek <jakub@redhat.com>
8590 Eric Botcazou <ebotcazou@adacore.com>
8591
8592 PR rtl-optimization/69891
8593 * dse.c (scan_insn): If we can't figure out memset arguments
8594 or they are non-constant, call clear_rhs_from_active_local_stores.
8595
8596 2016-02-26 Martin Liska <mliska@suse.cz>
8597
8598 * doc/extend.texi: Mention clog10, clog10f an clog10l
8599 in Builtins section.
8600
8601 2016-02-26 Martin Liska <mliska@suse.cz>
8602
8603 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
8604 CHECKING_P.
8605 (resolve_args_picking_1): Likewise.
8606 * dwarf2out.h (struct GTY): Likewise.
8607
8608 2016-02-26 Martin Liska <mliska@suse.cz>
8609
8610 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
8611 with flag_checking.
8612 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8613
8614 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
8615 Martin Liska <mliska@suse.cz>
8616
8617 * doc/install.texi: Mention --enable-valgrind-annotations.
8618
8619 2016-02-26 Richard Biener <rguenther@suse.de>
8620
8621 PR tree-optimization/69551
8622 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
8623 looking through aliases adjust DECL_PT_UID to refer to the
8624 ultimate alias target.
8625
8626 2016-02-25 Martin Liska <mliska@suse.cz>
8627
8628 PR middle-end/69919
8629 * alloc-pool.c (after_memory_report): New variable.
8630 * alloc-pool.h (base_pool_allocator ::release): Do not use
8631 the infrastructure if after_memory_report.
8632 * toplev.c (toplev::main): Mark after memory report.
8633
8634 2016-02-25 Richard Biener <rguenther@suse.de>
8635
8636 PR tree-optimization/48795
8637 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
8638
8639 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
8640
8641 PR driver/68463
8642 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
8643 offloading is enabled and -fopenacc or -fopenmp is specified.
8644 (CRTOFFLOADEND): Likewise.
8645 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
8646 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
8647 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
8648 (offload_objects_file_name): New static var.
8649 (tool_cleanup): Remove offload_objects_file_name file.
8650 (find_offloadbeginend): Replace with ...
8651 (find_crtoffloadtable): ... this.
8652 (run_gcc): Remove offload_argc and offload_argv.
8653 Get offload_objects_file_name from -foffload-objects=... option.
8654 Read names of object files with offload from this file, pass them to
8655 compile_images_for_offload_targets. Don't call find_offloadbeginend and
8656 don't pass offloadbegin and offloadend to the linker. Don't pass
8657 offload non-LTO files to the linker, because now they're not claimed.
8658
8659 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
8660
8661 PR ipa/69630
8662 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8663 on builtin_unreachable.
8664
8665 2016-02-25 Jakub Jelinek <jakub@redhat.com>
8666
8667 PR rtl-optimization/69896
8668 * regcprop.c: Include cfgrtl.h.
8669 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
8670 than remembered mode, either delete it (if noop_move_p), or
8671 treat like copy_p but not noop_p instruction.
8672
8673 2016-02-24 Jakub Jelinek <jakub@redhat.com>
8674
8675 PR debug/69705
8676 * dwarf2out.c (gen_variable_die): Work around buggy LTO
8677 - allow NULL decl for Fortran DW_TAG_common_block variables.
8678
8679 2016-02-24 Jason Merrill <jason@redhat.com>
8680
8681 * common.opt (flifetime-dse): Add -flifetime-dse=1.
8682
8683 2016-02-24 Richard Biener <rguenther@suse.de>
8684 Jakub Jelinek <jakub@redhat.com>
8685
8686 PR middle-end/69760
8687 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
8688 conditionally executed ops to well-defined overflow behavior.
8689
8690 2016-02-24 Jakub Jelinek <jakub@redhat.com>
8691
8692 PR middle-end/69915
8693 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
8694 elements.
8695
8696 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8697
8698 PR rtl-optimization/69886
8699 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
8700 argument. Use it when checking validity of set instructions.
8701 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
8702 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
8703 callsite.
8704 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
8705 * store-motion.c (find_moveable_store): Update
8706 can_assign_to_reg_without_clobbers_p callsite.
8707
8708 2016-02-24 Richard Biener <rguenther@suse.de>
8709
8710 PR middle-end/68963
8711 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
8712 bogus check.
8713 (record_nonwrapping_iv): Do not fall back to the low/high bound
8714 for non-constant IV bases if the stmt is not always executed.
8715
8716 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8717
8718 * config/arm/arm-cores.def (cortex-a32): New entry.
8719 * config/arm/arm-tables.opt: Regenerate.
8720 * config/arm/arm-tune.md: Regenerate.
8721 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
8722 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
8723 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
8724 for -mcpu and -mtune.
8725
8726 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8727
8728 PR target/69875
8729 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
8730 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
8731 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
8732 (atomic_loaddi_1): Delete.
8733 (atomic_loaddi): Rewrite expander using the above changes.
8734
8735 2016-02-24 Jakub Jelinek <jakub@redhat.com>
8736
8737 PR c/69918
8738 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
8739 2 to 3.
8740
8741 2016-02-24 Jakub Jelinek <jakub@redhat.com>
8742 Richard Biener <rguenth@suse.de>
8743
8744 PR middle-end/69909
8745 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
8746 set_mem_attributes if tem is SSA_NAME which got expanded
8747 as a MEM.
8748
8749 2016-02-24 Richard Biener <rguenther@suse.de>
8750
8751 PR tree-optimization/69907
8752 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
8753 end of permutations for BB vectorization.
8754
8755 2016-02-24 Christian Bruel <christian.bruel@st.com>
8756
8757 * config/arm/arm-c.c (arm_option_override): Initialize
8758 target_option_current_node.
8759 * config/arm/arm.c (arm_pragma_target_parse): Replace
8760 build_target_option_node call by target_option_current_node.
8761 Set target_option_current_node.
8762 Fix comments.
8763
8764 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
8765
8766 PR target/69810
8767 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
8768 define_insn_and_split to define_insn.
8769 (zero_extendqi<mode>2_dot2): Same.
8770 (extendqi<mode>2_dot): Same.
8771 (extendqi<mode>2_dot2): Same.
8772
8773 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
8774
8775 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
8776 and add bypass for AES{D,E} and AESMC pairs.
8777 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
8778 and AESMC pairs.
8779
8780 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
8781
8782 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
8783 series for reciprocal square root in Exynos M1.
8784
8785 2016-02-23 Martin Sebor <msebor@redhat.com>
8786
8787 PR c/69759
8788 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
8789 __builtin_alloca_with_align.
8790
8791 2016-02-23 Richard Henderson <rth@redhat.com>
8792
8793 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
8794 (ix86_register_pragmas): Remove __seg_tls.
8795 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
8796 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
8797 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
8798 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
8799 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
8800 * doc/extend.texi (__seg_tls): Remove item.
8801
8802 2016-02-23 Richard Biener <rguenther@suse.de>
8803
8804 * alloc-pool.h (struct allocation_object): Make id member
8805 conditional on CHECKING_P again.
8806 (get_instance): Adjust.
8807 (base_pool_allocator): Likewise.
8808
8809 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
8810
8811 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
8812 (parallelize_loops): In OpenACC kernels mode, set n_threads to
8813 zero.
8814 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
8815 flag_openacc.
8816 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
8817
8818 2016-02-23 Richard Biener <rguenther@suse.de>
8819
8820 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
8821 * bitmap.h (struct bitmap_usage): Likewise.
8822 (bitmap_move): Declare.
8823 * bitmap.c (register_overhead): Take size_t argument.
8824 (bitmap_move): New function.
8825 * df-problems.c (df_rd_transfer_function): Use bitmap_move
8826 to properly account overhead.
8827 * tree.c (free_node): Use tree_size.
8828
8829 2016-02-23 Jakub Jelinek <jakub@redhat.com>
8830
8831 PR c++/69902
8832 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
8833 when inverting comparison.
8834
8835 PR c/69900
8836 * common.opt (Wunreachable-code): Add Warning flag.
8837
8838 2016-02-23 Mark Wielaard <mjw@redhat.com>
8839 Jakub Jelinek <jakub@redhat.com>
8840
8841 PR c/69911
8842 * cgraphunit.c (check_global_declaration): Check main_input_filename
8843 and DECL_SOURCE_FILE are not NULL.
8844
8845 2016-02-23 Martin Jambor <mjambor@suse.cz>
8846
8847 PR tree-optimization/69666
8848 * tree-sra.c (sra_modify_assign): Do not attempt to create
8849 default_def replacements for unscalarizable regions.
8850
8851 2016-02-20 Mark Wielaard <mjw@redhat.com>
8852
8853 PR c/28901
8854 * cgraphunit.c (check_global_declaration): Check level of
8855 warn_unused_const_variable and main_input_filename.
8856 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
8857 (-Wunused-variable): For C implies -Wunused-const-variable=1.
8858 (-Wunused-const-variable): Explain levels 1 and 2.
8859
8860 2016-02-22 Jakub Jelinek <jakub@redhat.com>
8861
8862 PR target/69888
8863 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
8864 identical arguments. Formatting and spelling fixes.
8865
8866 PR target/69885
8867 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
8868 be specified.
8869
8870 PR target/69894
8871 PR target/69895
8872 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
8873 and m68k-devices.def.
8874 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
8875 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
8876
8877 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
8878
8879 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
8880 and HImode registers.
8881
8882 2016-02-22 Richard Biener <rguenther@suse.de>
8883
8884 PR tree-optimization/69882
8885 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
8886 preserve permutations present because of gaps.
8887 (vect_supported_load_permutation_p): Always continue checking
8888 permutations after vect_attempt_slp_rearrange_stmts.
8889
8890 2016-02-22 Bin Cheng <bin.cheng@arm.com>
8891
8892 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
8893 min_profitable_estimate, rather than min_profitable_iters.
8894
8895 2016-02-22 Jakub Jelinek <jakub@redhat.com>
8896
8897 PR target/69885
8898 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
8899 SImode for last match_operand.
8900
8901 2016-02-22 Martin Liska <mliska@suse.cz>
8902
8903 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
8904 return bitsize - 1 as the return value.
8905
8906 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
8907
8908 PR target/69806
8909 PR target/54089
8910 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
8911 Handle negative shift counts.
8912 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
8913 force_reg on the shift constant.
8914 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
8915 (lshrsi3_d): Handle negative shift counts.
8916
8917 2016-02-22 Richard Biener <rguenther@suse.de>
8918 Tom de Vries <tom@codesourcery.com>
8919
8920 * graph.c: Include dumpfile.h.
8921 (print_graph_cfg): Split into three overloads.
8922 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
8923
8924 2016-02-22 Tom de Vries <tom@codesourcery.com>
8925
8926 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
8927 dump-fn.
8928
8929 2016-02-22 Richard Biener <rguenther@suse.de>
8930
8931 PR ipa/37448
8932 * ipa-inline-transform.c (inline_call): When not updating
8933 overall summaries adjust self size by the growth estimate.
8934 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
8935 hash-set, do not update overall summaries here. Renamed from ...
8936 (inline_to_all_callers): ... this which is now wrapping the
8937 above and performing delayed overall summary update.
8938 (early_inline_small_functions): Delay updating of the overall
8939 summary.
8940
8941 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
8942
8943 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
8944 variable.
8945
8946 2016-02-19 Jakub Jelinek <jakub@redhat.com>
8947
8948 PR driver/69805
8949 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
8950 :%* in %:gt() argument.
8951 (greater_than_spec_func): Adjust for expecting only numbers,
8952 if there are more than two numbers, compare the last two.
8953
8954 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
8955
8956 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
8957 -Wnarrowing with -std.
8958
8959 2016-02-19 Jakub Jelinek <jakub@redhat.com>
8960
8961 PR c++/69851
8962 * expr.c (store_field): Don't use bit-field path if exp is
8963 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
8964 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
8965 and the assignment can be performed by bitwise copy. Formatting
8966 fix.
8967
8968 PR middle-end/69838
8969 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
8970 call copy_reg_eh_region_note_forward on before and/or after sequences
8971 and remove note from insn if it no longer can throw.
8972
8973 PR target/69820
8974 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
8975 if TARGET_AVX512BW.
8976
8977 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8978
8979 * config/s390/vector.md: Add missing commutative operand markers
8980 to the patterns which qualify for one.
8981 * config/s390/vx-builtins.md: Likewise.
8982
8983 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8984
8985 * config/s390/vector.md (VI, VI_QHS): Add single element vector
8986 types to mode iterators.
8987 (vec_double): ... and mode attribute.
8988 * config/s390/vx-builtins.md (non_vec_int): Likewise.
8989
8990 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8991
8992 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
8993 Change the predicate of op2 from nonimmediate to general and let
8994 reload fix it if necessary.
8995
8996 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8997
8998 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
8999
9000 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9001
9002 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
9003 mode.
9004
9005 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9006
9007 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
9008 * config/s390/s390.c (s390_expand_vec_movstr): New function.
9009 * config/s390/s390.md ("movstr<P:mode>"): Call
9010 s390_expand_vec_movstr.
9011
9012 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9013
9014 * config/s390/s390.md: Add missing output modifier for operand 1
9015 to print it as address properly.
9016
9017 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9018
9019 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
9020 * config/s390/2964.md: New file.
9021 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
9022 of insn grouping attributes depending on the CPU level.
9023 (s390_get_unit_mask): New function.
9024 (s390_sched_score): Remove the OOO from the scheduling macros.
9025 Add loop to calculate a score for the instruction mix.
9026 (s390_sched_reorder): Likewise plus improve debug output.
9027 (s390_sched_variable_issue): Rename macros as above. Calculate
9028 the unit distances after actually scheduling an insn. Improve
9029 debug output.
9030 (s390_sched_init): Clear last_scheduled_unit_distance array.
9031 * config/s390/s390.md: Include 2964.md.
9032
9033 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9034
9035 PR target/69671
9036 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
9037 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
9038 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
9039 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
9040 *avx512f_<code>v8div16qi2_mask_1): New insns.
9041
9042 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9043
9044 PR target/68404
9045 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
9046 2016-02-09 change.
9047
9048 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
9049 earlyclobber from target. Use wF constraint for fused memory
9050 address.
9051 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
9052
9053 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9054 Martin Liska <mliska@suse.cz>
9055
9056 PR sanitizer/69863
9057 * cfgexpand.c (asan_sanitize_stack_p): New function.
9058 (partition_stack_vars): Use the function.
9059 (expand_stack_vars): Likewise.
9060 (defer_stack_allocation): Likewise.
9061 (expand_used_vars): Likewise.
9062
9063 2016-02-18 Richard Biener <rguenther@suse.de>
9064
9065 PR middle-end/69553
9066 * fold-const.c (operand_equal_p): Properly compare offsets for
9067 IMAGPART_EXPR and ARRAY_REF.
9068
9069 2016-02-18 Nick Clifton <nickc@redhat.com>
9070
9071 PR target/62254
9072 PR target/69610
9073 * config/arm/arm.c (arm_option_override_internal): Disable
9074 interworking if the target does not support thumb instructions.
9075 (arm_reload_in_hi): Handle the case where a register to register
9076 move needs reloading because there is no simple pattern to handle
9077 it.
9078 (arm_reload_out_hi): Likewise.
9079
9080 2016-02-18 Richard Biener <rguenther@suse.de>
9081
9082 PR middle-end/69854
9083 * match.pd: Don't use fold_binary or fold_unary for folding
9084 constants.
9085
9086 2016-02-17 Jakub Jelinek <jakub@redhat.com>
9087
9088 PR c++/69850
9089 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
9090 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
9091 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
9092 warn on gimple_no_warning_p statements.
9093
9094 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
9095
9096 * doc/extend.texi (C++ Attributes): Correct description of
9097 warn_unused type attribute.
9098
9099 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9100
9101 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
9102 correct instruction.
9103
9104 2016-02-17 Richard Biener <rguenther@suse.de>
9105
9106 PR rtl-optimization/69609
9107 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
9108 (find_traces_1_round): When ending a trace update cached priority
9109 of successors.
9110 (bb_to_key): Use cached priority when available.
9111 (copy_bb): Initialize cached priority.
9112 (reorder_basic_blocks_software_trace_cache): Likewise.
9113
9114 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9115
9116 PR target/69161
9117 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
9118 New predicate.
9119 (aarch64_comparison_operator): Break overly long line into two.
9120 (aarch64_comparison_operation): Likewise.
9121 * config/aarch64/aarch64.md (cstorecc4): Use
9122 aarch64_comparison_operator_mode instead of
9123 aarch64_comparison_operator.
9124 (cstore<mode>4): Likewise.
9125 (aarch64_cstore<mode>): Likewise.
9126 (*cstoresi_insn_uxtw): Likewise.
9127 (cstore<mode>_neg): Likewise.
9128 (*cstoresi_neg_uxtw): Likewise.
9129
9130 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9131
9132 PR target/69161
9133 * config/arm/predicates.md (arm_comparison_operator_mode):
9134 New predicate.
9135 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
9136 instead of arm_comparison_operator.
9137 (*mov_negscc): Likewise.
9138 (*mov_notscc): Likewise.
9139 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
9140 (*thumb2_mov_negscc): Likewise.
9141 (*thumb2_mov_negscc_strict_it): Likewise.
9142 (*thumb2_mov_notscc): Likewise.
9143 (*thumb2_mov_notscc_strict_it): Likewise.
9144
9145 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
9146
9147 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
9148 Add missing return.
9149
9150 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
9151
9152 * config/visium/visium.c (machine_libfunc_index): New enum.
9153 (machine_libfuncs): New structure.
9154 (visium_libfuncs): New static variable.
9155 (TARGET_INIT_LIBFUNCS): Define to...
9156 (visium_init_libfuncs): ...this. New function.
9157 (expand_block_move_4): Use the appropriate libfunc.
9158 (expand_block_move_2): Likewise.
9159 (expand_block_move_1): Likewise.
9160 (expand_block_set_4): Likewise.
9161 (expand_block_set_2): Likewise.
9162 (expand_block_set_1): Likewise.
9163 (visium_trampoline_init): Likewise.
9164
9165 2016-02-17 Nick Clifton <nickc@redhat.com>
9166
9167 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
9168 TI's devices.csv file as of March 2016.
9169
9170 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
9171
9172 PR Target/48344
9173 * opts-global.c (handle_common_deferred_options): Introduce and
9174 initialize two global variables to remember command-line options
9175 specifying a stack-limiting register.
9176 * opts.h: Add extern declarations of the two new global variables.
9177 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
9178 variable based on the values of the two new global variables.
9179
9180 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9181
9182 PR c/69835
9183 * common.opt (Wnonnull-compare): New warning.
9184 * doc/invoke.texi (-Wnonnull): Remove text about comparison
9185 of arguments against NULL.
9186 (-Wnonnull-compare): Document.
9187 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
9188 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
9189 * passes.def (pass_warn_nonnull_compare): Add.
9190 * gimple-ssa-nonnull-compare.c: New file.
9191
9192 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9193
9194 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
9195 AARCH64_EXTRA_TUNE_RECIP_SQRT.
9196
9197 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9198
9199 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
9200 reciprocal sqrt for -mlow-precision-recip-sqrt.
9201
9202 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9203 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9204
9205 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
9206 always use lane loads to construct non-constant vectors.
9207
9208 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9209
9210 * config/aarch64/aarch64.md
9211 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
9212 constraints for operand 3.
9213 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
9214
9215 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9216 Richard Biener <rguenther@suse.de>
9217
9218 PR tree-optimization/69820
9219 * tree-vect-patterns.c (type_conversion_p): Return false if
9220 *orig_type is unsigned single precision or boolean.
9221 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
9222 Formatting fix.
9223
9224 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9225
9226 PR rtl-optimization/69764
9227 PR rtl-optimization/69771
9228 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
9229 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
9230
9231 2016-02-16 Richard Biener <rguenther@suse.de>
9232
9233 PR tree-optimization/69776
9234 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
9235 sets from caller.
9236 (indirect_refs_may_alias_p): Likewise.
9237 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
9238 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
9239 according to tbaa_p.
9240 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
9241 (optimize_stmt): For redundant store discovery do not allow tbaa.
9242
9243 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
9244
9245 PR tree-optimization/69714
9246 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
9247 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
9248
9249 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
9250
9251 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
9252 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
9253 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
9254 * config/arc/arc.c (arc_init): Check FPU options.
9255 (get_arc_condition_code): Handle new CC_FPU* modes.
9256 (arc_select_cc_mode): Likewise.
9257 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
9258 register pair only. Allow access for ARCv2 accumulator.
9259 (gen_compare_reg): Whenever we have FPU support use FPU compare
9260 instructions.
9261 (arc_reorg): Don't generate brcc insns when FPU compare
9262 instructions are involved.
9263 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
9264 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
9265 floating point emulation.
9266 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
9267 (REVERSE_CONDITION): Add new CC_FPU* modes.
9268 (TARGET_FP_SP_BASE): Define.
9269 (TARGET_FP_DP_BASE): Likewise.
9270 (TARGET_FP_SP_FUSED): Likewise.
9271 (TARGET_FP_DP_FUSED): Likewise.
9272 (TARGET_FP_SP_CONV): Likewise.
9273 (TARGET_FP_DP_CONV): Likewise.
9274 (TARGET_FP_SP_SQRT): Likewise.
9275 (TARGET_FP_DP_SQRT): Likewise.
9276 (TARGET_FP_DP_AX): Likewise.
9277 * config/arc/arc.md (ARCV2_ACC): New constant.
9278 (type): New fpu type attribute.
9279 (SDF): Conditional iterator.
9280 (cstore<mode>, cbranch<mode>): Change expand condition.
9281 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
9282 handles FPU/FPX cases as well.
9283 * config/arc/arc.opt (mfpu): New option.
9284 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
9285 Renamed.
9286 (adddf3, muldf3, subdf3): Removed.
9287 * config/arc/predicates.md (proper_comparison_operator): Recognize
9288 CC_FPU* modes.
9289 * config/arc/fpu.md: New file.
9290 * doc/invoke.texi (ARC Options): Document mfpu option.
9291
9292 2016-02-16 Richard Biener <rguenther@suse.de>
9293
9294 PR rtl-optimization/69291
9295 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
9296 noce_operand_ok check.
9297
9298 2016-02-16 Tom de Vries <tom@codesourcery.com>
9299
9300 PR lto/67709
9301 * omp-low.c (simd_clone_create): Remove call to
9302 symtab->call_cgraph_insertion_hooks.
9303
9304 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9305
9306 PR tree-optimization/69802
9307 * tree-ssa-reassoc.c (update_range_test): If op is
9308 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
9309 op == 1 test of precision 1 integral op, otherwise handle
9310 that case as op itself. Fix up formatting.
9311 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
9312 up formatting.
9313
9314 2016-02-16 Richard Biener <rguenther@suse.de>
9315
9316 PR tree-optimization/69586
9317 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
9318 types for conversion sources.
9319
9320 2016-02-16 Richard Biener <rguenther@suse.de>
9321
9322 PR middle-end/69801
9323 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
9324 mask OEP_ADDRESS_OF.
9325
9326 2016-02-16 Alan Modra <amodra@gmail.com>
9327
9328 PR target/68973
9329 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
9330 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
9331 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
9332 (p8_mtvsrwz): New.
9333 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
9334 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
9335 (p8_fmrgow_<mode>): Likewise.
9336 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
9337 changes.
9338 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
9339 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
9340 to use movdi_internal64. Remove op0_di.
9341 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
9342
9343 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
9344
9345 Add support for the FCCMP insn types
9346
9347 * config/aarch64/aarch64.md (fccmp): Change insn type.
9348 (fccmpe): Likewise.
9349 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
9350 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
9351 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
9352 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
9353 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
9354 * config/arm/types.md (fccmps): Add new insn type.
9355 (fccmpd): Likewise.
9356
9357 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
9358
9359 * alias.c (get_alias_set): Fix a typo in comment.
9360
9361 2016-02-15 Richard Biener <rguenther@suse.de>
9362
9363 PR tree-optimization/69595
9364 * match.pd: Complete range test simplification to true.
9365
9366 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
9367
9368 PR rtl-optimization/69648
9369 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
9370 pic_offset_table_rtx.
9371
9372 PR rtl-optimization/69752
9373 * ira.c (update_equiv_regs): When looking for more than a single SET,
9374 also take other side effects into account.
9375
9376 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
9377
9378 * config/s390/s390.c (s390_function_profiler): Add a new sequence
9379 for z900+ CPUs in 31-bit mode.
9380
9381 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
9382
9383 * common/config/s390/s390-common.c (s390_supports_split_stack):
9384 New function.
9385 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
9386 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
9387 * config/s390/s390.c (struct machine_function): New field
9388 split_stack_varargs_pointer.
9389 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
9390 in s390_emit_prologue.
9391 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
9392 vararg pointer.
9393 (morestack_ref): New global.
9394 (SPLIT_STACK_AVAILABLE): New macro.
9395 (s390_expand_split_stack_prologue): New function.
9396 (s390_live_on_entry): New function.
9397 (s390_va_start): Use split-stack vararg pointer if appropriate.
9398 (s390_asm_file_end): Emit the split-stack note sections.
9399 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
9400 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
9401 (UNSPECV_SPLIT_STACK_CALL): New unspec.
9402 (UNSPECV_SPLIT_STACK_DATA): New unspec.
9403 (split_stack_prologue): New expand.
9404 (split_stack_space_check): New expand.
9405 (split_stack_data): New insn.
9406 (split_stack_call): New expand.
9407 (split_stack_call_*): New insn.
9408 (split_stack_cond_call): New expand.
9409 (split_stack_cond_call_*): New insn.
9410
9411 2016-02-15 Richard Biener <rguenther@suse.de>
9412
9413 PR tree-optimization/69783
9414 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9415 Add trivially correct cases.
9416
9417 2016-02-15 Tom de Vries <tom@codesourcery.com>
9418
9419 PR lto/69655
9420 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
9421 do_force_output.
9422 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
9423
9424 2016-02-15 Richard Biener <rguenther@suse.de>
9425
9426 PR tree-optimization/69776
9427 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9428 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
9429 indicate whether we can use TBAA to disambiguate against stores.
9430 Use alias-set zero if not.
9431 (visit_reference_op_store): Do not use TBAA when looking up
9432 redundant stores.
9433 * tree-ssa-pre.c (compute_avail): Use TBAA here.
9434 (eliminate_dom_walker::before_dom_children): But not when looking
9435 up redundant stores.
9436
9437 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
9438
9439 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
9440
9441 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9442
9443 * config/i386/znver1.md
9444 (znver1_pop, znver1_pop_mem,
9445 znver1_load_imov_double_store,
9446 znver1_load_imov_direct_store,
9447 znver1_load_imov_direct_load,
9448 znver1_load_imov_double_load): Add new.
9449 (znver1_insn, znver1_insn_load): Add icmov type.
9450 (znver1_sseavx_fma,
9451 znver1_sseavx_fma_load,
9452 znver1_avx256_fma,
9453 znver1_avx256_fma_load): Fix pipe usage.
9454
9455 2016-02-14 Alan Modra <amodra@gmail.com>
9456
9457 PR target/68973
9458 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
9459 with an invalid hard reg, reload just the reg not the entire
9460 pre/post-inc/dec address expression.
9461
9462 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
9463
9464 PR target/67260
9465 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
9466 fixed R1_REG scratch reg.
9467 (sibcall_value_pcrel_fdpic): Likewise.
9468
9469 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
9470
9471 PR target/67636
9472 PR target/64345
9473 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
9474
9475 2016-02-12 Walter Lee <walt@tilera.com>
9476
9477 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
9478 * config/tilegx/t-tilegx: Likewise.
9479
9480 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9481
9482 PR other/69554
9483 * diagnostic-show-locus.c (struct line_span): New struct.
9484 (layout::get_first_line): Delete.
9485 (layout::get_last_line): Delete.
9486 (layout::get_num_line_spans): New member function.
9487 (layout::get_line_span): Likewise.
9488 (layout::print_heading_for_line_span_index_p): Likewise.
9489 (layout::get_expanded_location): Likewise.
9490 (layout::calculate_line_spans): Likewise.
9491 (layout::m_first_line): Delete.
9492 (layout::m_last_line): Delete.
9493 (layout::m_line_spans): New field.
9494 (layout::layout): Update comment. Replace m_first_line and
9495 m_last_line with m_line_spans, replacing their initialization
9496 with a call to calculate_line_spans.
9497 (diagnostic_show_locus): When printing source lines and
9498 annotations, rather than looping over a single span
9499 of lines, instead loop over each line_span within
9500 the layout, with an inner loop over the lines within them.
9501 Call the context's start_span callback when changing line spans.
9502 * diagnostic.c (diagnostic_initialize): Initialize start_span.
9503 (diagnostic_build_prefix): Break out the building of the location
9504 part of the string into...
9505 (diagnostic_get_location_text): ...this new function, rewriting
9506 it from nested ternary expressions to a sequence of "if"
9507 statements.
9508 (default_diagnostic_start_span_fn): New function.
9509 * diagnostic.h (diagnostic_start_span_fn): New typedef.
9510 (diagnostic_context::start_span): New field.
9511 (default_diagnostic_start_span_fn): New prototype.
9512
9513 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9514
9515 PR driver/69779
9516 * gcc.c (driver::finalize): Fix cleanup of "specs".
9517
9518 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9519
9520 PR driver/69265
9521 PR driver/69453
9522 * gcc.c (driver::driver): Initialize m_option_suggestions.
9523 (driver::~driver): Clean up m_option_suggestions.
9524 (suggest_option): Convert to...
9525 (driver::suggest_option): ...this, and split out into
9526 driver::build_option_suggestions and find_closest_string.
9527 (driver::build_option_suggestions): New function, from
9528 first half of suggest_option. Special-case
9529 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
9530 the sanitizer_opts array. For options of enum types, add the
9531 various enum values to the candidate strings.
9532 (driver::handle_unrecognized_options): Remove "const".
9533 * gcc.h (driver::handle_unrecognized_options): Likewise.
9534 (driver::build_option_suggestions): New decl.
9535 (driver::suggest_option): New decl.
9536 (driver::m_option_suggestions): New field.
9537 * opts-common.c (add_misspelling_candidates): New function.
9538 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
9539 and make non-static.
9540 * opts.h (sanitizer_opts): New array decl.
9541 (add_misspelling_candidates): New function decl.
9542 * spellcheck.c (find_closest_string): New function.
9543 * spellcheck.h (find_closest_string): New function decl.
9544
9545 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9546
9547 PR rtl-optimization/69764
9548 PR rtl-optimization/69771
9549 * optabs.c (expand_binop_directly): For shift_optab_p, force
9550 convert_modes with VOIDmode if xop1 has VOIDmode.
9551
9552 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
9553
9554 PR target/69729
9555 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
9556 to correctly determine instrumentation thunks.
9557
9558 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9559
9560 PR ipa/69241
9561 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
9562 type by reference, force lhs on the call.
9563
9564 PR ipa/68672
9565 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
9566 Compute retval and retbnd early in all cases if split_part_return_p
9567 and return_bb is not EXIT. Remove all clobber stmts and reset
9568 all debug stmts that refer to SSA_NAMEs defined in split part,
9569 except if it is retval, in that case replace the old retval with the
9570 lhs of the call to the split part.
9571
9572 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9573
9574 revert:
9575 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9576
9577 PR middle-end/66726
9578 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9579 whose result is used in PHI.
9580 (maybe_optimize_range_tests): Likewise.
9581 (final_range_test_p): Likweise.
9582
9583 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9584
9585 PR middle-end/66726
9586 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9587 whose result is used in PHI.
9588 (maybe_optimize_range_tests): Likewise.
9589 (final_range_test_p): Likweise.
9590
9591 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9592
9593 * cgraph.c: Spelling fixes - behaviour -> behavior and
9594 neighbour -> neighbor.
9595 * target.def: Likewise.
9596 * sel-sched.c: Likewise.
9597 * config/mips/mips.c: Likewise.
9598 * config/arc/arc.md: Likewise.
9599 * config/arm/cortex-a57.md: Likewise.
9600 * config/arm/arm.c: Likewise.
9601 * config/arm/neon.md: Likewise.
9602 * config/arm/arm-c.c: Likewise.
9603 * config/vms/vms-c.c: Likewise.
9604 * config/s390/s390.c: Likewise.
9605 * config/i386/znver1.md: Likewise.
9606 * config/i386/i386.c: Likewise.
9607 * config/ia64/hpux-unix2003.h: Likewise.
9608 * config/msp430/msp430.md: Likewise.
9609 * config/rx/rx.c: Likewise.
9610 * config/rx/rx.md: Likewise.
9611 * config/aarch64/aarch64-simd.md: Likewise.
9612 * config/aarch64/aarch64.c: Likewise.
9613 * config/nvptx/nvptx.c: Likewise.
9614 * config/bfin/bfin.c: Likewise.
9615 * config/cris/cris.opt: Likewise.
9616 * config/rs6000/rs6000.c: Likewise.
9617 * target.h: Likewise.
9618 * spellcheck.c: Likewise.
9619 * ira-build.c: Likewise.
9620 * tree-inline.c: Likewise.
9621 * builtins.c: Likewise.
9622 * lra-constraints.c: Likewise.
9623 * explow.c: Likewise.
9624 * hwint.h: Likewise.
9625 * targhooks.c: Likewise.
9626 * tree-vect-data-refs.c: Likewise.
9627 * expr.c: Likewise.
9628 * doc/tm.texi: Likewise.
9629 * doc/extend.texi: Likewise.
9630 * doc/install.texi: Likewise.
9631 * doc/md.texi: Likewise.
9632 * tree-ssa-tail-merge.c: Likewise.
9633 * sched-int.h: Likewise.
9634 * match.pd: Likewise.
9635 * sched-ebb.c: Likewise.
9636 * target.def (omit_struct_return_reg): Likewise.
9637 * gimple-ssa-isolate-paths.c: Likewise.
9638 (find_implicit_erroneous_behaviour): Renamed to...
9639 (find_implicit_erroneous_behavior): ... this.
9640 (find_explicit_erroneous_behaviour): Renamed to...
9641 (find_explicit_erroneous_behavior): ... this.
9642 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
9643
9644 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
9645
9646 PR rtl-optimization/64682
9647 PR rtl-optimization/69567
9648 PR rtl-optimization/69737
9649 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
9650 in I2 as well, just lose it.
9651
9652 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9653
9654 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
9655 New variable.
9656 (aarch64_last_printed_tune_string): Likewise.
9657 (aarch64_declare_function_name): Only output .arch assembler
9658 directive if it will be different from the previously output
9659 directive. Same for .tune comment but only if -dA is set.
9660 (aarch64_start_file): New function.
9661 (TARGET_ASM_FILE_START): Define.
9662
9663 2016-02-11 David Malcolm <dmalcolm@redhat.com>
9664
9665 PR plugins/69758
9666 * Makefile.in (PLUGIN_HEADERS): Add params.list.
9667
9668 2016-02-11 Jakub Jelinek <jakub@redhat.com>
9669
9670 PR target/65313
9671 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
9672 -Wmaybe-uninitialized warning.
9673
9674 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
9675
9676 PR target/69713
9677 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
9678
9679 2016-02-11 Richard Biener <rguenther@suse.de>
9680
9681 PR rtl-optimization/69291
9682 * ifcvt.c (noce_try_store_flag_constants): Do not allow
9683 subexpressions affected by changing the result.
9684
9685 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
9686
9687 PR target/69148
9688 * lra-constraints.c (curr_insn_transform): Find in/out operands
9689 for secondary memory moves. Update dups.
9690
9691 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
9692
9693 PR tree-optimization/69652
9694 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
9695 to nested loop, did source re-formatting, skip debug statements,
9696 add check on statement with volatile operand, remove dead scalar
9697 statements.
9698
9699 2016-02-10 Jakub Jelinek <jakub@redhat.com>
9700 Patrick Palka <ppalka@gcc.gnu.org>
9701
9702 PR ipa/69241
9703 PR c++/69649
9704 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
9705 calls if the return type is TREE_ADDRESSABLE.
9706 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
9707 * ipa-split.c (split_function): Fix doubled "we" in comment.
9708 Use void return type for the split part even if
9709 !split_point->split_part_set_retval.
9710
9711 2016-02-10 Bin Cheng <bin.cheng@arm.com>
9712
9713 PR tree-optimization/68021
9714 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
9715 when computing the value of biv cand by itself.
9716
9717 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
9718
9719 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
9720 (cortexa57_tunings): Likewise.
9721 (cortexa72_tunings): Likewise.
9722 (arch_macro_fusion_pair_p): Add support for AES fusion.
9723 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
9724 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
9725 Allow virtual registers before reload so early scheduling works.
9726 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
9727 correct latency and pipeline.
9728 (cortex_a57_crypto_complex): Likewise.
9729 (cortex_a57_crypto_xor): Likewise.
9730 (define_bypass): Add AES bypass.
9731
9732 2016-02-10 Richard Biener <rguenther@suse.de>
9733
9734 PR tree-optimization/69726
9735 * passes.def: Add DCE pass before late uninit.
9736 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
9737 really fixup if-conversions job.
9738
9739 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
9740
9741 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
9742 (arm_cortex_a57_tune): Likewise.
9743 (aarch_macro_fusion_pair_p): Add support for AES fusion.
9744 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
9745
9746 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
9747
9748 * timevar.def (TV_PHASE_DBGINFO): Delete.
9749 (TV_PHASE_CHECK_DBGINFO): Likewise.
9750 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
9751
9752 2016-02-10 Richard Biener <rguenther@suse.de>
9753
9754 PR tree-optimization/69719
9755 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9756 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
9757
9758 2016-02-09 Andrew Pinski <apinski@cavium.com>
9759
9760 PR tree-opt/69282
9761 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
9762 get_vcond_mask_icode returns false.
9763
9764 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9765
9766 PR target/68404
9767 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
9768 an ADDIS that adds a pointer to a large constant that sets the
9769 upper16 bits with a load operation.
9770
9771 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
9772
9773 PR target/68532
9774 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
9775 order.
9776 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
9777 endian.
9778 (vzipq_s16): Likewise.
9779 (vzipq_s32): Likewise.
9780 (vzipq_f32): Likewise.
9781 (vzipq_u8): Likewise.
9782 (vzipq_u16): Likewise.
9783 (vzipq_u32): Likewise.
9784 (vzipq_p8): Likewise.
9785 (vzipq_p16): Likewise.
9786
9787 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
9788
9789 PR target/68532
9790 * config/arm/arm.c (neon_endian_lane_map): New function.
9791 (neon_vector_pair_endian_lane_map): New function.
9792 (arm_evpc_neon_vuzp): Allow for big endian lane order.
9793 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
9794 endian.
9795 (vuzpq_s16): Likewise.
9796 (vuzpq_s32): Likewise.
9797 (vuzpq_f32): Likewise.
9798 (vuzpq_u8): Likewise.
9799 (vuzpq_u16): Likewise.
9800 (vuzpq_u32): Likewise.
9801 (vuzpq_p8): Likewise.
9802 (vuzpq_p16): Likewise.
9803
9804 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
9805
9806 PR target/69634
9807 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
9808 debug insns.
9809
9810 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
9811
9812 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
9813 truncate const_int operand 1 to QImode.
9814
9815 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
9816
9817 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
9818 corresponding to an abnormal edge.
9819
9820 2016-02-09 Tom de Vries <tom@codesourcery.com>
9821
9822 PR tree-optimization/69599
9823 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
9824 function.
9825 (find_func_aliases_for_builtin_call, find_func_clobbers)
9826 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
9827 partition.
9828
9829 2016-02-09 Richard Biener <rguenther@suse.de>
9830
9831 PR tree-optimization/69715
9832 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
9833 LHS on calls as non-rewritable.
9834
9835 2016-02-09 Tom de Vries <tom@codesourcery.com>
9836
9837 PR lto/69707
9838 * lto-wrapper.c (append_diag_options): New function.
9839 (compile_offload_image): Call append_diag_options.
9840
9841 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
9842
9843 PR other/69722
9844 * doc/extend.texi (Flag Output Operands): Correct sectioning.
9845 Minor copy-edit to fix verb tenses.
9846
9847 2016-02-08 Jakub Jelinek <jakub@redhat.com>
9848
9849 PR tree-optimization/69209
9850 * ipa-split.c (split_function): If split part is not
9851 returning retval, retval has gimple type but is not
9852 gimple value, force it into a SSA_NAME first.
9853
9854 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
9855
9856 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
9857 outdated section.
9858
9859 2016-02-08 Jason Merrill <jason@redhat.com>
9860
9861 PR c++/69631
9862 * convert.c (convert_to_integer_1): Check dofold on truncation
9863 distribution.
9864 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
9865 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
9866 Rename from *_nofold.
9867 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
9868 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
9869
9870 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
9871
9872 PR target/60410
9873 * tree.c (build_common_tree_nodes): Remove short_double argument.
9874 All callers changed.
9875 * tree.h (build_common_tree_nodes): Adjust declaration.
9876 * doc/invoke.texi (-fshort-double): Remove documentation.
9877 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9878 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
9879 * lto-wrapper.c (merge_and_complain, append_compiler_options)
9880 (append_linker_options): Don't handle OPT_fshort_double.
9881
9882 PR rtl-optimization/68730
9883 * lra-remat.c (insn_to_cand_activation): New static variable.
9884 (lra_remat): Allocate and free it.
9885 (create_cand): New arg activation. Initialize a field in
9886 insn_to_cand_activation if it is nonnull.
9887 (create_cands): Pass the activation insn to create_cand when making
9888 a candidate involving an output reload. Reorganize code a little.
9889 (do_remat): Keep track of active status of candidates in a separate
9890 bitmap.
9891
9892 2016-02-08 Richard Biener <rguenther@suse.de>
9893
9894 PR tree-optimization/69719
9895 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9896 Properly use absolute of the difference of the two offsets to
9897 compare or adjust the segment length.
9898
9899 2016-02-08 Richard Biener <rguenther@suse.de>
9900 Jeff Law <law@redhat.com>
9901
9902 PR target/68273
9903 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
9904 types for anonymous SSA names.
9905
9906 2016-02-08 Richard Biener <rguenther@suse.de>
9907
9908 PR rtl-optimization/69274
9909 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
9910
9911 2016-02-08 Jeff Law <law@redhat.com>
9912
9913 PR tree-optimization/65917
9914 * tree-ssa-dom.c (record_temporary_equivalences): Record both
9915 equivalences from if (x == y) style conditionals.
9916 (loop_depth_of_name): Remove.
9917 (record_equality): Remove loop depth check.
9918 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
9919 (const_and_copies::record_const_or_copy_raw): New member function.
9920 * tree-ssa-scopedtables.c
9921 (const_and_copies::record_const_or_copy_raw): New, factored out of
9922 (const_and_copies::record_const_or_copy): Call new member function.
9923
9924 2016-02-05 Jeff Law <law@redhat.com>
9925
9926 PR tree-optimization/68541
9927 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
9928 (count_stmts_in_block): New function.
9929 (poor_ifcvt_candidate_code): Likewise.
9930 (is_feasible_trace): Add some heuristics to determine when path
9931 splitting is profitable.
9932 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
9933 is a diamond with a single exit.
9934
9935 2016-02-05 Martin Sebor <msebor@redhat.com>
9936
9937 PR c++/69662
9938 * doc/invoke.texi: Update -Wplacement-new to take an optional
9939 argument.
9940
9941 2016-02-06 Richard Henderson <rth@redhat.com>
9942
9943 PR c/69643
9944 * tree.c (tree_nop_conversion_p): Do not strip casts into or
9945 out of non-standard address spaces.
9946
9947 2016-02-05 Jakub Jelinek <jakub@redhat.com>
9948
9949 PR rtl-optimization/69691
9950 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
9951
9952 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
9953
9954 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
9955 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
9956 (*ieee128_mfvsrd_64bit): Likewise.
9957 (*ieee128_mfvsrd_32bit): Likewise.
9958
9959 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
9960
9961 PR target/69369
9962 Revert r232560:
9963 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
9964
9965 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
9966 instrumented_version.
9967
9968 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
9969
9970 * doc/invoke.texi (Optimize Options): In table of --param options
9971 rename second occurrence of tracer-min-branch-ratio to
9972 tracer-min-branch-probability, rename
9973 tracer-min-branch-ratio-feedback to
9974 tracer-min-branch-probability-feedback and clarify description,
9975 rename sched-spec-state-edge-prob-cutoff to
9976 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
9977 to selsched-insns-to-rename, rename lto-minpartition to
9978 lto-min-partition, delete reorder-blocks-duplicate and
9979 reorder-blocks-duplicate-feedback.
9980
9981 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9982
9983 * config/s390/s390.c (s390_register_info_set_ranges): Remove
9984 superfluous loops.
9985
9986 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
9987
9988 * doc/extend.texi: S/390: Correct some typos.
9989
9990 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9991
9992 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
9993
9994 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9995
9996 PR target/69625
9997 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
9998 (s390_register_info_gprtofpr): Use new macros above.
9999 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
10000 its name.
10001 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
10002 its name. Adjust restore and save gpr ranges.
10003 (s390_register_info_set_ranges): New function.
10004 (s390_register_info): Use new macros above. Call
10005 s390_register_info_set_ranges.
10006 (s390_optimize_register_info): Likewise.
10007 (s390_hard_regno_rename_ok): Use new macros.
10008 (s390_hard_regno_scratch_ok): Likewise.
10009 (s390_emit_epilogue): Likewise.
10010 (s390_can_use_return_insn): Likewise.
10011 (s390_optimize_prologue): Likewise.
10012 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
10013
10014 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10015
10016 PR bootstrap/69677
10017 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
10018 alignment fixes.
10019 (ix86_option_override_internal): Disable TARGET_STV even for
10020 -m{incoming,preferred}-stack-boundary=3.
10021
10022 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10023
10024 * config.gcc: Mark deprecated rtems targets as obsolete.
10025
10026 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
10027
10028 PR rtl-optimization/64682
10029 PR rtl-optimization/69567
10030 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
10031 before I2 only if the register is both used and set in I2.
10032
10033 2016-02-04 DJ Delorie <dj@redhat.com>
10034
10035 * config/msp430/msp430.c (msp430_start_function): Add function type.
10036
10037 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10038
10039 PR fortran/69368
10040 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
10041
10042 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
10043
10044 PR rtl-optimization/69577
10045 Revert:
10046 2015-10-29 Richard Henderson <rth@redhat.com>
10047
10048 PR target/68124
10049 PR rtl-opt/67609
10050 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
10051 sse check to the exact conditions of PR 67609.
10052
10053 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
10054
10055 PR target/69667
10056 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
10057 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
10058 not allowed into the traditional Altivec registers.
10059 (movtd_64bit_nodm): Likewise.
10060 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10061
10062 2016-02-04 David Malcolm <dmalcolm@redhat.com>
10063
10064 * config/aarch64/cortex-a57-fma-steering.c
10065 (aarch64_register_fma_steering): Remove "static" from arguments
10066 to register_pass.
10067
10068 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
10069
10070 PR target/69619
10071 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
10072 twice when complex.
10073
10074 2016-02-04 Mike Frysinger <vapier@gentoo.org>
10075
10076 * doc/invoke.texi: Delete -mno-fma4.
10077
10078 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
10079
10080 PR rtl-optimization/69577
10081 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
10082 (find_subregs_of_mode): Update accordingly. Iterate over partial
10083 definitions.
10084
10085 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
10086
10087 * config/arm/arm-protos.h (neon_reinterpret): Remove.
10088 * config/arm/arm.c (neon_reinterpret): Remove.
10089 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
10090 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
10091 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
10092 vreinterpretti): Remove.
10093 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10094 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10095 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
10096 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
10097 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
10098 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
10099 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
10100 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
10101 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
10102 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
10103 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
10104 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
10105 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
10106 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
10107 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
10108 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
10109 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
10110 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
10111 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
10112 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
10113 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
10114 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
10115 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
10116 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
10117 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
10118 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
10119 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
10120 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
10121 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
10122 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
10123 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
10124 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
10125 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
10126 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
10127 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
10128 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
10129 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
10130 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
10131 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
10132 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
10133 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
10134 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
10135 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
10136 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
10137 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
10138 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
10139 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
10140 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
10141 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
10142 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
10143 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
10144 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
10145 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
10146 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
10147 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
10148 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
10149 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
10150 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
10151 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
10152 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
10153 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
10154 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
10155 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
10156 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
10157 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
10158 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
10159 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
10160 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
10161 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
10162 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
10163 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
10164 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
10165 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
10166 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
10167 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
10168 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
10169 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
10170 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
10171 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
10172 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
10173 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
10174 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
10175 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
10176 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
10177 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
10178 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
10179 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
10180 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
10181 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
10182 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
10183 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
10184 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
10185 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
10186 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
10187 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
10188 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
10189 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
10190 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
10191 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
10192 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
10193 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
10194 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
10195 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
10196
10197 2016-02-04 Martin Liska <mliska@suse.cz>
10198
10199 PR sanitizer/69276
10200 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
10201 that are gimple_store_p.
10202 (maybe_instrument_call): Likewise.
10203
10204 2016-02-04 Bin Cheng <bin.cheng@arm.com>
10205
10206 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
10207 register scaling out of memory reference and comment why.
10208
10209 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10210
10211 PR target/65932
10212 PR target/67714
10213 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
10214 folding the source of a SET.
10215
10216 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10217
10218 PR target/65932
10219 PR target/67714
10220 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
10221 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
10222
10223 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
10224
10225 PR target/65932
10226 PR target/67714
10227 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
10228 HImode.
10229
10230 2016-02-04 Christian Bruel <christian.bruel@st.com>
10231
10232 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
10233 * config/arm/arm.c (arm_set_current_function): Likewise.
10234
10235 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10236 Ilya Enkovich <enkovich.gnu@gmail.com>
10237 H.J. Lu <hongjiu.lu@intel.com>
10238
10239 PR target/69454
10240 * config/i386/i386.c (convert_scalars_to_vector): Remove
10241 stack alignment fixes.
10242 (ix86_option_override_internal): Disable TARGET_STV if stack
10243 might not be aligned enough.
10244 (ix86_minimum_alignment): Assert that TARGET_STV is false.
10245
10246 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
10247
10248 * config/i386/x86-tune.def: Disable default prefetching
10249 for -march=znver1.
10250
10251 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10252 Vladimir Makarov <vmakarov@redhat.com>
10253
10254 PR target/69461
10255 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
10256 in validating fused toc addresses.
10257
10258 2016-02-03 Jakub Jelinek <jakub@redhat.com>
10259
10260 PR c/69627
10261 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
10262 range->m_caret fields if range->m_show_caret_p is false.
10263
10264 PR target/69644
10265 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10266 Force oldval into register if it does not satisfy reg_or_short_operand
10267 predicate. Fix up formatting.
10268
10269 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
10270 Alexandre Oliva <aoliva@redhat.com>
10271
10272 PR target/69461
10273 * lra-constraints.c (simplify_operand_subreg): Check additionally
10274 address validity after potential reloading.
10275 (process_address_1): Check insns validity. In case of failure do
10276 nothing.
10277
10278 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
10279
10280 PR target/69118
10281 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
10282 Fix target.
10283
10284 2016-02-02 Jakub Jelinek <jakub@redhat.com>
10285
10286 * wide-int.cc (canonize_uhwi): New function.
10287 (wi::divmod_internal): Use it.
10288
10289 2016-02-02 James Norris <jnorris@codesourcery.com
10290
10291 * gimplify.c (omp_notice_variable): Add usage check.
10292
10293 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10294
10295 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
10296 like LE, GE, LT, GT when emitting relational operator.
10297
10298 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10299
10300 * ira-costs.c (find_costs_and_classes): Add extra argument.
10301 * target.def (ira_change_pseudo_allocno_class): Add parameter.
10302 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
10303 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
10304 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
10305 Add best_class parameter, and return it if not ALL_REGS.
10306 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
10307 Add parameter.
10308 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
10309 Update target hook.
10310
10311 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10312
10313 * config/aarch64/aarch64.c
10314 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
10315 (aarch64_ira_change_pseudo_allocno_class): New function.
10316
10317 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
10318
10319 PR target/67032
10320 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
10321
10322 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10323
10324 * config/avr/avr.c (avr_option_override): Set
10325 PARAM_ALLOW_STORE_DATA_RACES to 1.
10326
10327 2016-02-02 Richard Biener <rguenther@suse.de>
10328
10329 PR tree-optimization/69595
10330 * match.pd: Add range test simplifications to true/false.
10331
10332 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10333
10334 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
10335 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
10336 instead.
10337
10338 2016-02-02 Richard Biener <rguenther@suse.de>
10339
10340 PR tree-optimization/69606
10341 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
10342 info on the result before moving a stmt.
10343
10344 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
10345
10346 PR middle-end/68542
10347 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
10348 branch with vector comparison.
10349 * config/i386/sse.md (VI48_AVX): New mode iterator.
10350 (define_expand "cbranch<mode>4): Add support for conditional branch
10351 with vector comparison.
10352 * tree-vect-loop.c (optimize_mask_stores): New function.
10353 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
10354 has_mask_store field of vect_info.
10355 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
10356 vectorized loops having masked stores after vec_info destroy.
10357 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
10358 correspondent macros.
10359 (optimize_mask_stores): Add prototype.
10360
10361 2016-02-02 Alan Modra <amodra@gmail.com>
10362
10363 PR target/69548
10364 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
10365 allow subregs.
10366
10367 2016-02-02 Alan Modra <amodra@gmail.com>
10368
10369 PR target/68662
10370 * config/rs6000/rs6000.c (need_toc_init): New var, set it
10371 whenever toc_label_name used.
10372 (rs6000_file_start): Don't set up toc section here,
10373 (rs6000_output_function_epilogue): do so here instead,
10374 (rs6000_xcoff_file_start): and here.
10375 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
10376 (load_toc_aix_di): Likewise.
10377
10378 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10379
10380 PR rtl-optimization/69592
10381 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
10382 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
10383 (num_sign_bit_copies_binary_arith_p): New inline function.
10384 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
10385
10386 2016-02-01 Jeff Law <law@redhat.com>
10387
10388 PR tree-optimization/69580
10389 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
10390 * tree-ssa-threadbackward.c
10391 (fsm_find_control_statement_thread_paths): Do not try to walk
10392 through large PHI nodes.
10393
10394 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10395
10396 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
10397 when count is incremented above limit, don't analyze further
10398 insns afterwards.
10399
10400 * omp-low.c (oacc_parse_default_dims): Avoid
10401 -Wsign-compare warning, make sure value fits into int
10402 rather than just unsigned int.
10403
10404 2016-02-01 Bin Cheng <bin.cheng@arm.com>
10405
10406 PR tree-optimization/67921
10407 * fold-const.c (split_tree): New parameters. Convert pointer
10408 type variable part to proper type before negating.
10409 (fold_binary_loc): Pass new arguments to split_tree.
10410
10411 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10412
10413 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
10414 (nvptx_goacc_validate_dims): Extend to handle global defaults.
10415 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
10416 * doc/tm.texti: Rebuilt.
10417 * doc/invoke.texi (fopenacc-dim): Document.
10418 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
10419 (append_compiler_options): Likewise.
10420 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
10421 (oacc_parse_default_dims): New.
10422 (oacc_validate_dims): Add USED arg. Select non-unity default when
10423 possible.
10424 (oacc_loop_fixed_partitions): Return mask of used partitions.
10425 (oacc_loop_auto_partitions): Emit dump info.
10426 (oacc_loop_partition): Return mask of used partitions.
10427 (execute_oacc_device_lower): Parse default dimension arg. Adjust
10428 loop partitioning and validation calls.
10429
10430 2016-02-01 Richard Biener <rguenther@suse.de>
10431
10432 PR middle-end/69556
10433 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
10434
10435 2016-02-01 Richard Biener <rguenther@suse.de>
10436
10437 PR tree-optimization/69574
10438 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
10439 of asserting return chrec_dont_know.
10440
10441 2016-02-01 Martin Liska <mliska@suse.cz>
10442
10443 * mem-stats-traits.h: Add copyright header.
10444 * mem-stats.h: Likewise.
10445
10446 2016-02-01 Richard Biener <rguenther@suse.de>
10447
10448 PR tree-optimization/69579
10449 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
10450 Do not propagate through abnormal PHI results.
10451
10452 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
10453
10454 * postreload.c (reload_cse_simplify): Remove dead code.
10455
10456 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10457
10458 PR rtl-optimization/69570
10459 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
10460 if there is more than one set, not if there is a single set.
10461
10462 2016-02-01 Richard Henderson <rth@redhat.com>
10463
10464 PR rtl-opt/69535
10465 * combine.c (make_compound_operation): When looking through a
10466 subreg, make sure to re-extend to the width of the outer mode.
10467
10468 2016-01-30 Jakub Jelinek <jakub@redhat.com>
10469
10470 PR tree-optimization/69546
10471 * wide-int.cc (wi::divmod_internal): For unsigned division
10472 where both operands fit into uhwi, if o1 is 1 and o0 has
10473 msb set, if divident_prec is larger than bits per hwi,
10474 clear another quotient word and return 2 instead of 1.
10475 Similarly for remainder with msb in HWI set, if dividend_prec
10476 is larger than bits per hwi.
10477
10478 2016-01-29 Martin Jambor <mjambor@suse.cz>
10479
10480 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
10481 Use short lowercase names.
10482 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
10483 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
10484 acq_rel one. Protect warning agains segfaults if
10485 get_memory_order_name returns NULL.
10486 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
10487 with release semantics. Do not warn if get_memory_order already did.
10488 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
10489 semantics. Fix check for relaxed or acquire semantics. Do not warn
10490 if get_memory_order already did.
10491
10492 2016-01-29 Sebastian Pop <s.pop@samsung.com>
10493
10494 * doc/install.texi: Document that isl-0.16 is supported.
10495
10496 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
10497
10498 PR target/69299
10499 * config/i386/constraints.md (Bm): Describe as special memory
10500 constraint.
10501 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
10502 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10503 * genpreds.c (struct constraint_data): Add is_special_memory.
10504 (have_special_memory_constraints, special_memory_start): New
10505 static vars.
10506 (special_memory_end): Ditto.
10507 (add_constraint): Add new arg is_special_memory. Add code to
10508 process its true value. Update have_special_memory_constraints.
10509 (process_define_constraint): Pass the new arg.
10510 (process_define_register_constraint): Ditto.
10511 (choose_enum_order): Process special memory.
10512 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
10513 function insn_extra_special_memory_constraint.
10514 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10515 * gensupport.c (process_rtx): Process
10516 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10517 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
10518 * ira-lives.c (single_reg_class): Use
10519 insn_extra_special_memory_constraint.
10520 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
10521 * lra-constraints.c (process_alt_operands): Ditto.
10522 (curr_insn_transform): Use insn_extra_special_memory_constraint.
10523 * recog.c (asm_operand_ok, preprocess_constraints): Process
10524 CT_SPECIAL_MEMORY.
10525 * reload.c (find_reloads): Ditto.
10526 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
10527 * stmt.c (parse_input_constraint): Use
10528 insn_extra_special_memory_constraint.
10529
10530 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
10531
10532 PR target/69530
10533 * lra-splill.c (lra_final_code_change): Revert r229087 by
10534 removing all sub-registers.
10535
10536 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
10537
10538 PR target/65604
10539 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
10540
10541 2016-01-29 Jakub Jelinek <jakub@redhat.com>
10542
10543 PR target/69551
10544 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
10545 SSE1, copy target into the temporary reg first before recursing
10546 on it.
10547
10548 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
10549
10550 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
10551 with vm.
10552
10553 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
10554
10555 * ginclude/stdarg.h: Test __cplusplus instead of
10556 __GXX_EXPERIMENTAL_CXX0X__.
10557
10558 2016-01-29 Richard Biener <rguenther@suse.de>
10559
10560 PR tree-optimization/69547
10561 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
10562 Do not mark clobbers necessary.
10563 (mark_all_reaching_defs_necessary_1): Likewise.
10564
10565 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10566
10567 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
10568 declaration name with %qs and print it in both error messages.
10569 Also fix indentation.
10570
10571 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10572
10573 PR other/69006
10574 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
10575 trailing blank line from error message.
10576
10577 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
10578
10579 PR c++/69462
10580 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
10581 for C++-11.
10582
10583 2016-01-29 Richard Biener <rguenther@suse.de>
10584
10585 PR middle-end/69537
10586 * match.pd: Allow all integral types when simplifying a
10587 widening or sign-changing conversion.
10588
10589 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10590
10591 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
10592 back to setting codegen_error to fail codegen.
10593
10594 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
10595
10596 PR target/69459
10597 * config/i386/constraints.md (C): Only accept constant zero operand.
10598 (BC): New constraint.
10599 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
10600 instead of C constraint.
10601 * doc/md.texi (Machine Constraints): Update description
10602 of C constraint.
10603
10604 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
10605
10606 PR target/68400
10607 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
10608
10609 2016-01-28 Jakub Jelinek <jakub@redhat.com>
10610
10611 PR middle-end/69542
10612 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
10613 non-debug insns.
10614
10615 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
10616
10617 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
10618 branches if using guessed profile.
10619
10620 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
10621
10622 * graphite-optimize-isl.c (optimize_isl): Fix dump.
10623
10624 2016-01-28 Richard Henderson <rth@redhat.com>
10625
10626 PR target/69305
10627 * config/aarch64/aarch64-modes.def (CC_Cmode): New
10628 * config/aarch64/aarch64-protos.h: Update.
10629 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
10630 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
10631 (aarch64_get_condition_code_1): Handle CC_Cmode.
10632 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
10633 (*add<mode>3_compareC_cconly_imm): New.
10634 (*add<mode>3_compareC_cconly): New.
10635 (*add<mode>3_compareC_imm): New.
10636 (add<mode>3_compareC): New.
10637 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
10638 to be first. Use aarch64_carry_operation.
10639 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
10640 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
10641 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
10642 (subti3): Use subdi3_compare1.
10643 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
10644 (sub<mode>3_compare1): New.
10645 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
10646 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
10647 (*subsi3_carryin_uxtw): Likewise.
10648 (*ngc<mode>, *ngcsi_uxtw): Likewise.
10649 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
10650 * config/aarch64/iterators.md (DWI): New.
10651 * config/aarch64/predicates.md (aarch64_carry_operation): New.
10652 (aarch64_borrow_operation): New.
10653
10654 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10655
10656 * graphite-optimize-isl.c (optimize_isl): Print a different debug
10657 message when isl does not return a valid schedule.
10658
10659 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10660
10661 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10662 Remove comments from class declarations: they are already in the code
10663 close by the defs.
10664
10665 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10666
10667 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
10668 codegen_error_p.
10669 (ternary_op_to_tree): Same.
10670 (unary_op_to_tree): Same.
10671 (nary_op_to_tree): Same.
10672 (gcc_expression_from_isl_expr_op): Same.
10673 (gcc_expression_from_isl_expression): Same.
10674 (graphite_create_new_loop): Same.
10675 (graphite_create_new_loop_guard): Same.
10676 (build_iv_mapping): Same.
10677 (graphite_create_new_guard): Same.
10678 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
10679 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
10680
10681 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10682
10683 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
10684 instead of setting codegen_error to fail codegen.
10685
10686 2016-01-28 Jason Merrill <jason@redhat.com>
10687
10688 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
10689
10690 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
10691
10692 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10693 Remove CONST_INT_P check in CCMP cost calculation.
10694
10695 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
10696
10697 * config/aarch64/aarch64.c (generic_vector_cost):
10698 Set vec_permute_cost.
10699 (cortexa57_vector_cost): Likewise.
10700 (exynosm1_vector_cost): Likewise.
10701 (xgene1_vector_cost): Likewise.
10702 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
10703 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
10704 Add vec_permute_cost entry.
10705
10706 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
10707
10708 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
10709 immediate as %1.
10710 (add<mode>3_compare0): Likewise.
10711 (addsi3_compare0_uxtw): Likewise.
10712 (add<mode>3nr_compare0): Likewise.
10713 (compare_neg<mode>): Likewise.
10714 (<optab><mode>3): Likewise.
10715
10716 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
10717
10718 * tree-vect-stmts.c (vectorizable_comparison): Add
10719 NULL check for vectype.
10720
10721 2016-01-28 Richard Biener <rguenther@suse.de>
10722
10723 PR tree-optimization/69466
10724 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
10725 Account for PHIs we couldn't duplicate.
10726
10727 2016-01-28 Martin Liska <mliska@suse.cz>
10728
10729 PR pch/68758
10730 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
10731 instead of ENABLE_VALGRIND_CHECKING.
10732
10733 2016-01-27 Richard Henderson <rth@redhat.com>
10734
10735 PR rtl-opt/69447
10736 * lra-remat.c (subreg_regs): New.
10737 (dump_candidates_and_remat_bb_data): Dump it.
10738 (operand_to_remat): Reject if operand in subreg_regs.
10739 (set_bb_regs): Collect subreg_regs.
10740 (lra_remat): Init and free subreg_regs. Compute
10741 calculate_local_reg_remat_bb_data before create_cands.
10742
10743 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
10744
10745 PR target/68986
10746 * config/i386/i386.c (ix86_update_stack_boundary): Don't
10747 change stack_alignment_needed for __tls_get_addr call.
10748
10749 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
10750
10751 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
10752
10753 2016-01-27 Jeff Law <law@redhat.com>
10754
10755 PR tree-optimization/68398
10756 PR tree-optimization/69196
10757 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
10758 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
10759 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10760 Only count PHIs in the last block in the path. The others will
10761 const/copy propagate away. Add heuristic to allow more irreducible
10762 subloops to be created when it is likely profitable to do so.
10763
10764 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10765 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
10766 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
10767
10768 2016-01-27 Jakub Jelinek <jakub@redhat.com>
10769
10770 PR lto/69254
10771 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
10772 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
10773 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
10774 * tree-streamer-in.c: Include asan.h.
10775 (streamer_get_builtin_tree): For builtins in sanitizer
10776 range call initialize_sanitizer_builtins and retry.
10777
10778 2016-01-27 Ian Lance Taylor <iant@google.com>
10779
10780 * common.opt (fkeep-gc-roots-live): New undocumented option.
10781 * tree-ssa-loop-ivopts.c (add_candidate_1): If
10782 -fkeep-gc-roots-live, skip pointers.
10783 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
10784 NULL.
10785
10786 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
10787
10788 PR target/69512
10789 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
10790 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
10791
10792 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
10793
10794 PR target/68380
10795 * configure.ac: NetBSD provides SSP in its C library.
10796 * configure: Updated.
10797
10798 2016-01-27 Richard Biener <rguenther@suse.de>
10799
10800 PR tree-optimization/69166
10801 * tree-vect-loop.c (vect_is_simple_reduction): Always check
10802 reduction code for commutativity / associativity.
10803
10804 2016-01-27 Martin Jambor <mjambor@suse.cz>
10805
10806 PR tree-optimization/69355
10807 * tree-sra.c (analyze_access_subtree): Correct hole detection when
10808 total_scalarization fails.
10809
10810 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
10811
10812 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
10813 power9.
10814
10815 2016-01-27 Christian Bruel <christian.bruel@st.com>
10816
10817 PR target/69245
10818 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
10819 Move arm_reset_previous_fndecl and set_target_option_current_node in
10820 the conditional part. Call save_restore_target_globals.
10821 * config/arm/arm.c (arm_set_current_function):
10822 Refactor to better support #pragma target and attribute mix.
10823 Call save_restore_target_globals.
10824 * config/arm/arm-protos.h (save_restore_target_globals): New function.
10825
10826 2016-01-27 Martin Liska <mliska@suse.cz>
10827
10828 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
10829 reference for an HSA kernel and its host function.
10830
10831 2016-01-27 Jakub Jelinek <jakub@redhat.com>
10832
10833 PR tree-optimization/69399
10834 * wide-int.h (wi::lrshift): For larger precisions, only
10835 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
10836
10837 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
10838
10839 * config/arc/predicates.md (proper_comparison_operator): Reject
10840 constant-constant comparison.
10841
10842 2016-01-26 Tom de Vries <tom@codesourcery.com>
10843
10844 PR tree-optimization/69110
10845 * tree-data-ref.c (initialize_data_dependence_relation): Handle
10846 DR_NUM_DIMENSIONS == 0.
10847
10848 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10849 Sebastian Pop <s.pop@samsung.com>
10850
10851 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
10852 isl_ast_op_cond and isl_ast_op_select.
10853 (gcc_expression_from_isl_expr_op): Same.
10854
10855 2016-01-26 Jason Merrill <jason@redhat.com>
10856
10857 PR c++/68782
10858 * tree.c (recompute_constructor_flags): Split out from
10859 build_constructor.
10860 (verify_constructor_flags): New.
10861 * tree.h: Declare them.
10862
10863 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
10864
10865 PR rtl-optimization/69217
10866 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
10867 are no TYPE_FIELDS set for the record type.
10868
10869 2016-01-26 Jakub Jelinek <jakub@redhat.com>
10870
10871 PR target/68662
10872 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
10873 toc_label_name unconditionally.
10874 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
10875 SYMBOL_REF string. Use toc_label_name instead of constructing
10876 LCTOC1.
10877 (rs6000_elf_declare_function_name): Use toc_label_name instead of
10878 constructing LCTOC1.
10879
10880 2016-01-26 Martin Sebor <msebor@redhat.com>
10881
10882 PR other/69477
10883 * doc/extend.texi (Common Type Attributes): Move text that talks about
10884 attribute packed from attribute aligned to the section discussing
10885 the former attribute for clarity.
10886
10887 2016-01-26 Richard Henderson <rth@redhat.com>
10888
10889 PR middle-end/60908
10890 * trans-mem.c (tm_region_init): Mark entry block as visited.
10891
10892 2016-01-26 David Malcolm <dmalcolm@redhat.com>
10893
10894 PR other/69006
10895 * diagnostic-show-locus.c (layout::print_source_line): Replace
10896 call to pp_newline with call to layout::print_newline.
10897 (layout::print_annotation_line): Likewise.
10898 (layout::move_to_column): Likewise.
10899 (layout::print_any_fixits): After printing any fixits, print a
10900 trailing newline, if necessary.
10901 (layout::print_newline): New method, resetting any colorization
10902 before a newline.
10903 (diagnostic_show_locus): Move the pp_newline to before the
10904 early bailout. Remove dummy block enclosing the layout instance.
10905 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
10906 of pp_newline_and_flush with pp_flush.
10907 (diagnostic_append_note): Delete use of pp_newline.
10908 (diagnostic_append_note_at_rich_loc): Delete.
10909 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
10910 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
10911 when newline characters are added to the buffer.
10912
10913 2016-01-26 Michael Matz <matz@suse.de>
10914
10915 * configure.ac (ac_cv_std_swap_in_utility): New test.
10916 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
10917 * configure: Regenerate.
10918 * config.in: Regenerate.
10919
10920 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
10921
10922 * config/arc/arc.md (cstoresi4): Force operand into register.
10923 (arcset<code>): Fix predicate.
10924 (arcsetltu): Likewise.
10925 (arcsetgeu): Likewise.
10926 (arcsethi): Likewise.
10927 (arcsetls): Likewise.
10928
10929 2016-01-26 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR tree-optimization/69483
10932 * gimple-fold.c (canonicalize_constructor_val): Return NULL
10933 if base has error_mark_node type.
10934
10935 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
10936
10937 PR target/68620
10938 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
10939 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
10940 New helper macros.
10941 (vget_lane_f16): Handle big-endian.
10942 (vgetq_lane_f16): Likewise.
10943 (vset_lane_f16): Likewise.
10944 (vsetq_lane_f16): Likewise.
10945 * config/arm/iterators.md (VQXMOV): Add V8HF.
10946 (VDQ): Add V4HF and V8HF.
10947 (V_reg): Handle V4HF and V8HF.
10948 (Is_float_mode): Likewise.
10949 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
10950 neon_vdup_nv8hf): New patterns.
10951 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
10952 Use VD_LANE iterator.
10953 (neon_vld1_dup<mode>): Use VQ2 iterator.
10954
10955 2016-01-26 Nathan Sidwell <nathan@acm.org>
10956
10957 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
10958 (set_oacc_fn_attrib): Add IS_KERNEL arg.
10959 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
10960 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
10961 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
10962 (oacc_validate_dims): Add LEVEL arg, don't return level.
10963 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
10964 oacc_validate_dims.
10965 (execute_oacc_device_lower): Adjust, add more dump output.
10966 * tree-ssa-loop.c (gate_oacc_kernels): Use
10967 oacc_fn_attrib_kernels_p.
10968 * tree-parloops.c (create_parallel_loop): Adjust
10969 set_oacc_fn_attrib call.
10970
10971 2016-01-26 Jakub Jelinek <jakub@redhat.com>
10972
10973 PR lto/69254
10974 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
10975 (append_compiler_options): Handle -fcilkplus.
10976 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
10977
10978 2016-01-26 Nick Clifton <nickc@redhat.com>
10979
10980 PR target/66655
10981 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
10982 been marked as DECL_ONE_ONLY but we do not the means to make it
10983 so, then do not allow it to bind locally.
10984
10985 2016-01-26 Jakub Jelinek <jakub@redhat.com>
10986
10987 PR lto/69254
10988 * opts.h (parse_sanitizer_options): New prototype.
10989 * opts.c (sanitizer_opts): New array.
10990 (parse_sanitizer_options): New function.
10991 (common_handle_option): Use parse_sanitizer_options.
10992
10993 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
10994
10995 PR target/68986
10996 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
10997 alignment adjustment to ...
10998 (ix86_update_stack_boundary): Here. Don't over-align stack for
10999 __tls_get_addr.
11000 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
11001 if __tls_get_addr is called.
11002
11003 2016-01-26 Christian Bruel <christian.bruel@st.com>
11004
11005 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
11006
11007 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
11008
11009 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
11010
11011 2016-01-26 Richard Biener <rguenther@suse.de>
11012
11013 PR middle-end/69467
11014 * match.pd: Guard X * CST CMP 0 pattern with single_use.
11015
11016 2016-01-26 Richard Biener <rguenther@suse.de>
11017
11018 PR tree-optimization/69452
11019 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
11020 (move_computations_dom_walker::before_dom_children): Rename
11021 to ...
11022 (move_computations_worker): This.
11023 (move_computations): Perform an RPO rather than a DOM walk.
11024
11025 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11026
11027 PR target/69442
11028 * combine.c (combine_instructions): For REG_EQUAL note with
11029 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
11030 to the underlying register.
11031 * doc/rtl.texi (REG_EQUAL): Document the behavior of
11032 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
11033
11034 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
11035
11036 PR target/67896
11037 * config/aarch64/aarch64-builtins.c
11038 (aarch64_init_simd_builtin_types): Do not set structural
11039 equality to __Poly{8,16,64,128}_t types.
11040
11041 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
11042
11043 PR tree-optimization/69400
11044 * wide-int.cc (wi_pack): Take the precision as argument and
11045 perform canonicalization here rather than in the callers.
11046 Use the main loop to handle all full-width HWIs. Add a
11047 zero HWI if in_len isn't a full result.
11048 (wi::divmod_internal): Update accordingly.
11049 (wi::mul_internal): Likewise. Simplify.
11050
11051 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11052 Sebastian Pop <s.pop@samsung.com>
11053
11054 * graphite-poly.c (apply_poly_transforms): Simplify.
11055 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
11056 (print_isl_map): Same.
11057 (print_isl_union_map): Same.
11058 (print_isl_schedule): New.
11059 (debug_isl_schedule): New.
11060 * graphite-dependences.c (scop_get_reads): Do not call
11061 isl_union_map_add_map that is undocumented isl functionality.
11062 (scop_get_must_writes): Same.
11063 (scop_get_may_writes): Same.
11064 (scop_get_original_schedule): Remove.
11065 (scop_get_dependences): Do not call isl_union_map_compute_flow that
11066 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
11067 (compute_deps): Remove.
11068 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
11069 (debug_schedule_ast): New.
11070 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
11071 set_separate_option.
11072 (graphite_regenerate_ast_isl): Add dump.
11073 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
11074 from scop->transformed_schedule.
11075 (graphite_regenerate_ast_isl): Add more dump.
11076 * graphite-optimize-isl.c (optimize_isl): Set
11077 scop->transformed_schedule. Check whether schedules are equal.
11078 (apply_poly_transforms): Move here.
11079 * graphite-poly.c (apply_poly_transforms): ... from here.
11080 (free_poly_bb): Static.
11081 (free_scop): Static.
11082 (pbb_number_of_iterations_at_time): Remove.
11083 (print_isl_ast): New.
11084 (debug_isl_ast): New.
11085 (debug_scop_pbb): New.
11086 * graphite-scop-detection.c (print_edge): Move.
11087 (print_sese): Move.
11088 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
11089 (build_scop_scattering): Remove.
11090 (create_pw_aff_from_tree): Assert instead of bailing out.
11091 (add_condition_to_pbb): Remove unused code, do not fail.
11092 (add_conditions_to_domain): Same.
11093 (add_conditions_to_constraints): Remove.
11094 (build_scop_context): New.
11095 (add_iter_domain_dimension): New.
11096 (build_iteration_domains): Initialize pbb->iterators.
11097 Call add_conditions_to_domain.
11098 (nested_in): New.
11099 (loop_at): New.
11100 (index_outermost_in_loop): New.
11101 (index_pbb_in_loop): New.
11102 (outermost_pbb_in): New.
11103 (add_in_sequence): New.
11104 (add_outer_projection): New.
11105 (outer_projection_mupa): New.
11106 (add_loop_schedule): New.
11107 (build_schedule_pbb): New.
11108 (build_schedule_loop): New.
11109 (embed_in_surrounding_loops): New.
11110 (build_schedule_loop_nest): New.
11111 (build_original_schedule): New.
11112 (build_poly_scop): Call build_original_schedule.
11113 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
11114 (free_poly_dr): Remove.
11115 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
11116 (free_poly_bb): Remove.
11117 (debug_loop_vec): Remove.
11118 (print_isl_ast): Declare.
11119 (debug_isl_ast): Declare.
11120 (scop_do_interchange): Remove.
11121 (scop_do_strip_mine): Remove.
11122 (scop_do_block): Remove.
11123 (flatten_all_loops): Remove.
11124 (optimize_isl): Remove.
11125 (pbb_number_of_iterations_at_time): Remove.
11126 (debug_scop_pbb): Declare.
11127 (print_schedule_ast): Declare.
11128 (debug_schedule_ast): Declare.
11129 (struct scop): Remove schedule. Add original_schedule,
11130 transformed_schedule.
11131 (free_gimple_poly_bb): Remove.
11132 (print_generated_program): Remove.
11133 (debug_generated_program): Remove.
11134 (unify_scattering_dimensions): Remove.
11135 * sese.c (print_edge): ... here.
11136 (print_sese): ... here.
11137 (debug_edge): ... here.
11138 (debug_sese): ... here.
11139 * sese.h (print_edge): Declare.
11140 (print_sese): Declare.
11141 (dump_edge): Declare.
11142 (dump_sese): Declare.
11143
11144 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11145 Sebastian Pop <s.pop@samsung.com>
11146
11147 * Makefile.in: Set ISLVER in site.exp.
11148
11149 2016-01-25 Jakub Jelinek <jakub@redhat.com>
11150
11151 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
11152 DECL_VALUE_EXPR of new_var even for the non-array case. Look
11153 through DECL_VALUE_EXPR for expansion.
11154
11155 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11156
11157 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
11158 the frame info after reload completed.
11159
11160 2016-01-25 Jeff Law <law@redhat.com>
11161
11162 PR tree-optimization/69196
11163 PR tree-optimization/68398
11164 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
11165 tree-ssa-threadupdate.c.
11166 (determine_bb_domination_status): Prototype
11167 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
11168 (determine_bb_domination_status): No longer static.
11169 (valid_jump_thread_path): Remove code to detect characteristics
11170 of the jump thread path not associated with correctness.
11171 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
11172 Correct test for thread path length. Count PHIs for real operands as
11173 statements that need to be copied. Do not count ASSERT_EXPRs.
11174 Look at all the blocks in the thread path. Compute and selectively
11175 filter thread paths based on threading through the latch, threading
11176 a multiway branch or crossing a multiway branch.
11177
11178 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11179
11180 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
11181 decl with __attribute__ ((unused)) annotation.
11182
11183 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
11184
11185 PR target/69421
11186 * tree-vect-stmts.c (vectorizable_condition): Check vectype
11187 of operands is compatible with a statement vectype.
11188
11189 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
11190
11191 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
11192 improve wording for mixed storage order support.
11193
11194 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
11195
11196 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
11197 (vcvt_u64_f64): Likewise.
11198 (vcvta_s64_f64): Likewise.
11199 (vcvta_u64_f64): Likewise.
11200 (vcvtm_s64_f64): Likewise.
11201 (vcvtm_u64_f64): Likewise.
11202 (vcvtn_s64_f64): Likewise.
11203 (vcvtn_u64_f64): Likewise.
11204 (vcvtp_s64_f64): Likewise.
11205 (vcvtp_u64_f64): Likewise.
11206
11207 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
11208
11209 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
11210 (arc_init): Check validity mll64 option.
11211 (arc_save_restore): Use double load/store instruction.
11212 (arc_expand_movmem): Likewise.
11213 (arc_split_move): Don't split if we have double load/store
11214 instructions. Returns a boolean.
11215 (arc_process_double_reg_moves): Change function to return boolean
11216 instead of a sequence of instructions.
11217 (arc_dwarf_register_span): New function.
11218 * config/arc/arc-protos.h (arc_split_move): Change prototype.
11219 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
11220 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
11221 (*movdf_insn): Likewise.
11222 * config/arc/arc.opt (mll64): New option.
11223 * config/arc/predicates.md (even_register_operand): New predicate.
11224 * doc/invoke.texi (ARC Options): Add mll64 documentation.
11225
11226 2016-01-25 Richard Biener <rguenther@suse.de>
11227
11228 PR lto/69393
11229 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
11230 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
11231 DECL_NAMELESS.
11232 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
11233
11234 2016-01-25 Richard Biener <rguenther@suse.de>
11235
11236 PR tree-optimization/69376
11237 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
11238 flag.
11239 (VN_INFO_ANTI_RANGE_P): New inline.
11240 (VN_INFO_RANGE_TYPE): Likewise.
11241 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
11242 SSA_NAME_ANTI_RANGE_P.
11243 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
11244 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11245 Properly query VN_INFO_RANGE_TYPE.
11246
11247 2016-01-25 Nick Clifton <nickc@redhat.com>
11248
11249 PR target/66655
11250 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
11251
11252 2016-01-23 Tom de Vries <tom@codesourcery.com>
11253
11254 PR tree-optimization/69426
11255 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
11256 removed clobber.
11257
11258 2016-01-23 Jakub Jelinek <jakub@redhat.com>
11259
11260 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
11261 "the the" with "the" in the comments.
11262 * ipa-devirt.c (build_type_inheritance_graph,
11263 update_type_inheritance_graph): Likewise.
11264 * tree.c (build_function_type_list_1): Likewise.
11265 * cfgloopmanip.c (scale_loop_profile): Likewise.
11266 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
11267 * gimple-ssa-split-paths.c
11268 (find_block_to_duplicate_for_splitting_paths): Likewise.
11269 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
11270 * expr.c (convert_move): Likewise.
11271 * var-tracking.c (vt_stack_adjustments): Likewise.
11272 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11273 * tree-vrp.c (test_for_singularity): Likewise.
11274
11275 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
11276 directly instead of building a temporary tree.
11277
11278 PR bootstrap/69434
11279 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
11280 remove <algorithm> include.
11281
11282 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11283
11284 PR target/69432
11285 * config/i386/i386.c: Include dojump.h.
11286 (expand_small_movmem_or_setmem,
11287 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
11288 fixes.
11289 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
11290 if dynamic_check != -1.
11291
11292 2016-01-21 Jeff Law <law@redhat.com>
11293
11294 PR middle-end/69347
11295 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
11296 record_temporary_equivalences. Rewritten to avoid unnecessary calls
11297 into dominated_by_p.
11298 (cprop_into_successor_phis): Avoid unnecessary tests.
11299
11300 2016-01-22 Richard Henderson <rth@redhat.com>
11301
11302 PR target/69416
11303 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
11304 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
11305
11306 2016-01-22 Michael Matz <matz@suse.de>
11307
11308 * system.h (string, algorithm): Include only conditionally.
11309 (new): Include always under C++.
11310 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
11311 * final.c (toplevel): Ditto.
11312 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
11313 * genconditions.c (write_header): Make gencondmd.c define
11314 INCLUDE_STRING.
11315 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
11316
11317 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
11318 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
11319
11320 2016-01-22 Christian Bruel <christian.bruel@st.com>
11321
11322 PR target/68674
11323 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
11324
11325 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11326
11327 PR target/69403
11328 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
11329 define_insn_and_split. Ensure operands[1] and operands[0] do not
11330 get assigned the same register.
11331
11332 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11333
11334 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
11335
11336 2016-01-22 Christian Bruel <christian.bruel@st.com>
11337
11338 * config/arm/arm-c.c (arm_pragma_target_parse):
11339 Remove warn_builtin_macro_redefined overwrite.
11340
11341 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
11342
11343 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
11344 flag_non_call_exceptions compatibility.
11345
11346 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11347
11348 PR debug/66668
11349 * dwarf2out.c (add_child_die_after): New function.
11350 (dwarf_qual_info_t): New type.
11351 (dwarf_qual_info): New variable.
11352 (qualified_die_p): New function.
11353 (modified_type_die): For -fdebug-types-section, ensure
11354 canonical order of qualifiers. Put qualified DIEs adjacent
11355 to the corresponding non-qualified type DIE and search there
11356 for existing qualified DIEs.
11357
11358 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
11359
11360 * doc/extend.texi (scalar_storage_order type attribute): Document
11361 restriction on type punning and aliasing, and remove future tense.
11362
11363 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
11364
11365 PR target/69252
11366 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
11367 first stage.
11368
11369 2016-01-21 Jeff Law <law@redhat.com>
11370
11371 PR middle-end/69347
11372 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
11373 useless call to record_temporary_equivalences.
11374 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
11375 allocate 10 slots in the bb_path vector and let it grow as needed.
11376 (fsm_find_control_statement_thread_paths): Similarly for the next_path
11377 vector.
11378
11379 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
11380
11381 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
11382 Detangle.
11383 * configure: Regenerate.
11384
11385 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
11386
11387 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
11388 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
11389
11390 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
11391
11392 PR middle-end/66178
11393 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
11394 drop EXPAND_INITIALIZER.
11395 * rtl.h (contains_symbolic_reference_p): Declare.
11396 * rtlanal.c (contains_symbolic_reference_p): New function.
11397 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
11398 a subtraction into a NOT if symbolic constants are involved.
11399
11400 2016-01-21 Anton Blanchard <anton@samba.org>
11401 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11402
11403 PR target/63354
11404 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
11405 #define.
11406 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
11407 function.
11408
11409 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
11410
11411 * config/microblaze/microblaze.c
11412 (get_branch_target): New.
11413 (insert_wic_for_ilb_runout): New.
11414 (insert_wic): New.
11415 (microblaze_machine_dependent_reorg): New.
11416 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
11417 * config/microblaze/microblaze.md
11418 (UNSPEC_IPREFETCH): Define.
11419 (iprefetch): New pattern
11420 * config/microblaze/microblaze.opt
11421 (mxl-prefetch): New flag.
11422
11423 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
11424
11425 * config/microblaze/microblaze.h
11426 (FIXED_REGISTERS): Update in macro.
11427 (CALL_USED_REGISTERS): Update in macro.
11428
11429 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
11430
11431 PR rtl-optimization/68920
11432 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
11433 moves.
11434
11435 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
11436
11437 PR rtl-optimization/68990
11438 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
11439 pseudo instead of inheritance ones.
11440
11441 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11442 Nick Clifton <nickc@redhat.com>
11443
11444 PR target/69129
11445 PR target/69012
11446 * config/mips/mips.c (mips_compute_frame_info): Initialise
11447 args_size and hard_frame_pointer_offset fields of the frame
11448 structure before calling mips_global_pointer.
11449
11450 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
11451
11452 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
11453 label reference.
11454 * configure: Regenerate.
11455
11456 2016-01-21 Richard Biener <rguenther@suse.de>
11457
11458 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
11459
11460 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
11461
11462 * config/s390/s390.c (s390_asm_declare_function_size): Add code
11463 to actually emit the .size directive.
11464
11465 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
11466 Jakub Jelinek <jakub@redhat.com>
11467
11468 PR target/69187
11469 PR target/65624
11470 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
11471 args array size by one to avoid buffer overflow.
11472
11473 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
11474
11475 * config/s390/s390.md (pool_section_start): Use switch_to_section
11476 to select proper read-only data section instead of hardcoding
11477 .rodata.
11478 (pool_section_end): Use switch_to_section to match the above.
11479
11480 2016-01-21 Richard Biener <rguenther@suse.de>
11481
11482 PR tree-optimization/69378
11483 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
11484 (set_ssa_val_to): Use it for dominance checks taking into
11485 account not executable edges.
11486
11487 2016-01-21 Jakub Jelinek <jakub@redhat.com>
11488
11489 PR c++/69355
11490 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
11491 for bitsize instead of GET_MODE_PRECISION (mode).
11492
11493 2016-01-20 Martin Sebor <msebor@redhat.com>
11494
11495 PR c/52291
11496 * extend.texi (__sync Builtins): Clarify the semantics of
11497 __sync_fetch_and_OP built-ins on pointers.
11498 (__atomic Builtins): Same.
11499
11500 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11501 Sebastian Pop <s.pop@samsung.com>
11502
11503 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
11504 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
11505 (is_valid_rename): Same.
11506 (translate_isl_ast_to_gimple::get_rename): Same.
11507 (translate_isl_ast_to_gimple::rename_all_uses): Same.
11508 (translate_isl_ast_to_gimple::rename_uses): Same.
11509 (get_new_name): Check for close_phi nodes.
11510 (copy_loop_phi_args): Use phi_node_kind.
11511 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
11512 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
11513
11514 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11515 Sebastian Pop <s.pop@samsung.com>
11516
11517 Revert commit r229783.
11518 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11519 Remove use of parameter_rename_map.
11520 (copy_def): Remove.
11521 (copy_internal_parameters): Remove.
11522 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
11523 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
11524 (free_sese_info): Do not free parameter_rename_map.
11525 (set_rename): Do not use parameter_rename_map.
11526 (rename_uses): Update call to set_rename.
11527 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
11528 * sese.h (parameter_rename_map_t): Remove.
11529 (struct sese_info_t): Remove field parameter_rename_map.
11530
11531 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11532 Sebastian Pop <s.pop@samsung.com>
11533
11534 * graphite-isl-ast-to-gimple.c: Fix comment.
11535 * graphite-scop-detection.c (defined_in_loop_p): New.
11536 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
11537 names defined in loop.
11538
11539 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11540 Sebastian Pop <s.pop@samsung.com>
11541
11542 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
11543 Discard unstructured if-then-else regions.
11544
11545 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11546 Sebastian Pop <s.pop@samsung.com>
11547
11548 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
11549 (cleanup_loop_iter_dom): Remove.
11550 (build_loop_iteration_domains): Remove.
11551 (build_scop_context): Remove.
11552 (build_scop_iteration_domain): Remove.
11553 (add_loop_constraints): New.
11554 (build_iteration_domains): New.
11555 (build_poly_scop): Call build_iteration_domains.
11556
11557 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11558 Sebastian Pop <s.pop@samsung.com>
11559
11560 * graphite-scop-detection.c
11561 (scop_detection::harmful_loop_in_region): Free dom and loops.
11562 (scop_detection::loop_body_is_valid_scop): Free bbs.
11563
11564 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11565 Sebastian Pop <s.pop@samsung.com>
11566
11567 * graphite-scop-detection.c (record_loop_in_sese): New.
11568 (gather_bbs::before_dom_children): Call record_loop_in_sese.
11569 (build_scops): Remove call to build_sese_loop_nests.
11570 * sese.c (sese_record_loop): Remove.
11571 (build_sese_loop_nests): Remove.
11572 (new_sese_info): Remove region->loops.
11573 (free_sese_info): Same.
11574 * sese.h (sese_contains_loop): Same.
11575 (build_sese_loop_nests): Remove.
11576 (sese_contains_loop): Remove.
11577
11578 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11579 Sebastian Pop <s.pop@samsung.com>
11580
11581 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
11582 loop_is_valid_in_scop.
11583 (scop_detection::harmful_stmt_in_region): Renamed
11584 harmful_loop_in_region.
11585 Call loop_is_valid_in_scop.
11586
11587 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11588 Sebastian Pop <s.pop@samsung.com>
11589
11590 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
11591 isl_ast_node_mark.
11592
11593 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11594 Sebastian Pop <s.pop@samsung.com>
11595
11596 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
11597 * graphite.h (struct poly_bb): Remove field is_reduction.
11598 (PBB_IS_REDUCTION): Remove.
11599
11600 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11601 Sebastian Pop <s.pop@samsung.com>
11602
11603 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
11604 (add_pdr_constraints): Same.
11605 (scop_get_reads): Same.
11606 (scop_get_must_writes): Same.
11607 (scop_get_may_writes): Same.
11608 (scop_get_original_schedule): Same.
11609 (extend_schedule): Same.
11610 (apply_schedule_on_deps): Same.
11611 (carries_deps): Same.
11612 (compute_deps): Same.
11613 (scop_get_dependences): Same.
11614 * graphite-isl-ast-to-gimple.c
11615 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
11616 * graphite-optimize-isl.c (get_schedule_for_band): Same.
11617 (get_schedule_for_band_list): Same.
11618 (get_schedule_map): Same.
11619 (apply_schedule_map_to_scop): Same.
11620 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11621 (build_loop_iteration_domains): Same.
11622 (add_condition_to_pbb): Same.
11623 (add_param_constraints): Same.
11624 (pdr_add_memory_accesses): Same.
11625 (pdr_add_data_dimensions): Same.
11626
11627 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
11628
11629 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
11630 requirements.
11631
11632 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
11633
11634 * common.opt (feliminate-dwarf2-dups): Replace references to
11635 "DWARF 2" with just "DWARF".
11636 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
11637 * doc/extend.texi: Likewise.
11638 * doc/cpp.texi: Likewise.
11639 * doc/invoke.texi: Likewise.
11640 (Option Summary): Add -gdwarf to list of Debugging Options.
11641 (Debugging Options): Document -gdwarf.
11642 * doc/contrib.texi: Spell "DWARF" like that.
11643
11644 2016-01-21 Jakub Jelinek <jakub@redhat.com>
11645
11646 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
11647 warning. Fix up formatting.
11648
11649 PR middle-end/67653
11650 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
11651 attempt to mark memory input operand addressable and
11652 call prepare_gimple_addressable in that case. Don't adjust
11653 input_location for diagnostics, use error_at instead.
11654
11655 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
11656
11657 * config/rs6000/ppc-auxv.h: New file.
11658 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
11659 (cpu_is): Likewise.
11660 (cpu_supports): Likewise.
11661 * config/rs6000/rs6000.c: include "ppc-auxv.h".
11662 (cpu_is_info): New variable.
11663 (cpu_supports_info): Likewise.
11664 (tcb_verification_symbol): Likewise.
11665 (cpu_builtin_p): Likewise.
11666 (cpu_expand_builtin): New function.
11667 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
11668 (rs6000_init_builtins): Likewise.
11669 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
11670 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
11671 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
11672 * configure: Regenerate.
11673 * config.in: Likewise.
11674 * doc/extend.texi (PowerPC Built-in Functions): Document
11675 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
11676
11677 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
11678
11679 PR target/68609
11680 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
11681 domain check.
11682 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
11683 for V4SFmode.
11684
11685 2016-01-20 Richard Henderson <rth@redhat.com>
11686
11687 PR bootstrap/69343
11688 PR bootstrap/69339
11689 PR tree-opt/68964
11690 Revert:
11691 * tree.c (tm_define_builtin): New.
11692 (find_tm_vector_type): New.
11693 (build_tm_vector_builtins): New.
11694 (build_common_builtin_nodes): Call it.
11695
11696 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
11697
11698 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
11699 (arm_fp_ok): Likewise.
11700 (arm_fp): Likewise.
11701 (arm_crypto): Likewise.
11702
11703 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
11704 Richard Biener <rguenther@suse.de>
11705
11706 PR tree-optimization/69328
11707 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
11708 vectors have same number of elements.
11709 (vectorizable_condition): Fix masked version recognition.
11710
11711 2016-01-20 Richard Biener <rguenther@suse.de>
11712
11713 PR tree-optimization/69345
11714 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
11715 (VN_INFO_PTR_INFO): Likewise.
11716 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
11717 info when it is equal between non-dominating SSA names.
11718 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11719 Make sure to look at original SSA infos.
11720
11721 2016-01-20 Jeff Law <law@redhat.com>
11722
11723 PR target/25114
11724 * config/m68k/predicates.md (pow2_m1_operand): New predicate
11725 extracted from ...
11726 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
11727 (pc_or_label_operand): New predicate.
11728 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
11729 tests for small integers that are 2^n - 1.
11730
11731 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
11732
11733 * doc/invoke.texi (Options Summary): Add '.' after @xref.
11734
11735 2016-01-19 Jeff Law <law@redhat.com>
11736
11737 PR middle-end/69347
11738 * tree-ssa-threadbackwards.c
11739 (fsm_find_control_statement_thread_paths): Do not try to lookup
11740 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
11741
11742 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11743
11744 * doc/lto.texi: Remove text that says only Gold has linker plugin
11745 support.
11746
11747 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
11748
11749 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
11750 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
11751 the DIE accordingly.
11752 (modified_type_die): Add REVERSE parameter and pass it recursively,
11753 as well as to base_type_die. Adjust presence check accordingly.
11754 (base_type_for_mode): Adjust call to modified_type_die.
11755 (add_type_attribute): Add REVERSE parameter and pass it to
11756 modified_type_die.
11757 (generic_parameter_die): Adjust call to add_type_attribute.
11758 (add_scalar_info): Likewise.
11759 (add_subscript_info): Likewise.
11760 (gen_array_type_die): Likewise.
11761 (gen_descr_array_type_die): Likewise.
11762 (gen_entry_point_die): Likewise.
11763 (gen_enumeration_type_die): Likewise.
11764 (gen_formal_parameter_die): Likewise.
11765 (gen_subprogram_die): Likewise.
11766 (gen_variable_die ): Likewise.
11767 (gen_const_die): Likewise.
11768 (gen_field_die): Likewise.
11769 (gen_pointer_type_die): Likewise.
11770 (gen_reference_type_die): Likewise.
11771 (gen_ptr_to_mbr_type_die): Likewise.
11772 (gen_inheritance_die): Likewise.
11773 (gen_subroutine_type_die): Likewise.
11774 (gen_typedef_die): Likewise.
11775 (force_type_die): Adjust call to modified_type_die.
11776
11777 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
11778
11779 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
11780 flow throughout the file. Fix broken link to Objective-C 2.0
11781 documentation.
11782 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
11783 errors.
11784
11785 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
11786
11787 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
11788
11789 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
11790
11791 PR ipa/66223
11792 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
11793 (maybe_record_node): Record cxa_pure_virtual as the only possible
11794 target if there are not ohter candidates.
11795 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
11796
11797 2016-01-19 Richard Biener <rguenther@suse.de>
11798
11799 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
11800 (get_memory_order): Likewise.
11801
11802 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
11803
11804 * tree-vect-stmts.c (vectorizable_store): Check
11805 rhs vectype.
11806
11807 2016-01-19 David Malcolm <dmalcolm@redhat.com>
11808
11809 PR jit/68446
11810 * gcc.c (driver::decode_argv): Add call to
11811 init_opts_obstack before init_options_struct.
11812 * opts.c (init_opts_obstack): Remove idempotency.
11813 (init_options_struct): Replace call to init_opts_obstack
11814 with a gcc_assert to verify that it has already been called.
11815 * toplev.c (toplev::main): Add call to init_opts_obstack before
11816 calls to init_options_struct.
11817 (toplev::finalize): Move cleanup of opts_obstack next to
11818 cleanup of save_decoded_options, clearing the latter, and
11819 save_decoded_options_count.
11820
11821 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11822
11823 PR target/69135
11824 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
11825 attribute to unconditional. Remove %? from output template.
11826
11827 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
11828 Jiong Wang <jiong.wang@arm.com>
11829
11830 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
11831 generated from different expand order.
11832
11833 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
11834
11835 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
11836 Add support for CCMP costing.
11837
11838 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
11839
11840 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
11841 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
11842 (fccmpe<mode>): Likewise.
11843 (fcmp): Rename to fcmp and globalize pattern.
11844 (fcmpe): Likewise.
11845 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
11846 (aarch64_gen_ccmp_next): Add FP support.
11847
11848 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
11849
11850 * target.def (gen_ccmp_first): Update documentation.
11851 (gen_ccmp_next): Likewise.
11852 * doc/tm.texi (gen_ccmp_first): Update documentation.
11853 (gen_ccmp_next): Likewise.
11854 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
11855 expand_ccmp_expr_1. Improve comments.
11856 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
11857 (ccmp_ior<mode>): Remove pattern.
11858 (cmp<mode>): Remove expand.
11859 (cmp): Globalize pattern.
11860 (cstorecc4): Use cc_register.
11861 (mov<mode>cc): Remove ccmp_cc_register check.
11862 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
11863 Simplify after removal of CC_DNE/* modes.
11864 (aarch64_ccmp_mode_to_code): Remove.
11865 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
11866 In 'k' case use integer as condition.
11867 (aarch64_nzcv_codes): Remove inverted cases.
11868 (aarch64_code_to_ccmode): Remove.
11869 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
11870 comparison with CC register to be used in folowing CCMP/branch/CSEL.
11871 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
11872 pattern. Return the comparison with CC register. Invert conditions
11873 when bitcode is OR.
11874 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
11875 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
11876
11877 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
11878
11879 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
11880 instrumented_version.
11881
11882 2016-01-19 Richard Biener <rguenther@suse.de>
11883
11884 PR tree-optimization/69336
11885 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
11886 handled components with get_ref_base_and_extent.
11887 (equal_mem_array_ref_p): Adjust.
11888
11889 2016-01-19 Jakub Jelinek <jakub@redhat.com>
11890
11891 PR debug/65779
11892 * shrink-wrap.c: Include valtrack.h.
11893 (move_insn_for_shrink_wrap): Add DEBUG argument. If
11894 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
11895 in between insn and where it will be moved to. Call
11896 dead_debug_insert_temp.
11897 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
11898 first and dead_debug_local_finish at the end.
11899 For uses and defs bitmap, handle all regs in between REGNO and
11900 END_REGNO, not just the first one.
11901
11902 2016-01-19 Richard Biener <rguenther@suse.de>
11903
11904 PR tree-optimization/69352
11905 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
11906 (equal_mem_array_ref_p): Constrain size and max size properly.
11907 Compare the reverse flag.
11908
11909 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
11910
11911 * ira.c (ira): Update regstat data if we deleted insns.
11912
11913 2016-01-19 Jakub Jelinek <jakub@redhat.com>
11914
11915 PR rtl-optimization/68955
11916 PR rtl-optimization/64557
11917 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
11918 here. Fix up formatting.
11919 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
11920
11921 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
11922
11923 PR lto/69133
11924 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
11925 assume that the node has body.
11926 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
11927 check.
11928
11929 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
11930
11931 * lto-streamer-out.c (lto_output): Do not stream instrumentation
11932 thunks.
11933
11934 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
11935
11936 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
11937 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
11938
11939 2016-01-19 Martin Jambor <mjambor@suse.cz>
11940 Martin Liska <mliska@suse.cz>
11941 Michael Matz <matz@suse.de>
11942
11943 * Makefile.in (OBJS): Add new source files.
11944 (GTFILES): Add hsa.c.
11945 * common.opt (disable_hsa): New variable.
11946 (-Whsa): New warning.
11947 * config.in (ENABLE_HSA): New.
11948 * configure.ac: Treat hsa differently from other accelerators.
11949 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
11950 $enable_offloading.
11951 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
11952 * doc/install.texi (Configuration): Document --with-hsa-runtime,
11953 --with-hsa-runtime-include, --with-hsa-runtime-lib and
11954 --with-hsa-kmt-lib.
11955 * doc/invoke.texi (-Whsa): Document.
11956 (hsa-gen-debug-stores): Likewise.
11957 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
11958 to invoke offload compiler for hsa acclerator.
11959 * opts.c (common_handle_option): Determine whether HSA offloading
11960 should be performed.
11961 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
11962 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
11963 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
11964 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
11965 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
11966 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
11967 GF_OMP_FOR_KIND_GRID_LOOP.
11968 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
11969 (pp_gimple_stmt_1): Likewise.
11970 * gimple-walk.c (walk_gimple_stmt): Likewise.
11971 * gimple.c (gimple_build_omp_grid_body): New function.
11972 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
11973 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
11974 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
11975 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
11976 GF_OMP_TEAMS_GRID_PHONY.
11977 (gimple_statement_omp_single_layout): Updated comments.
11978 (gimple_build_omp_grid_body): New function.
11979 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
11980 (gimple_omp_for_grid_phony): New function.
11981 (gimple_omp_for_set_grid_phony): Likewise.
11982 (gimple_omp_parallel_grid_phony): Likewise.
11983 (gimple_omp_parallel_set_grid_phony): Likewise.
11984 (gimple_omp_teams_grid_phony): Likewise.
11985 (gimple_omp_teams_set_grid_phony): Likewise.
11986 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
11987 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
11988 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
11989 (BUILT_IN_GOMP_TARGET): Updated type.
11990 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
11991 (adjust_for_condition): New function.
11992 (get_omp_for_step_from_incr): Likewise.
11993 (extract_omp_for_data): Moved parts to adjust_for_condition and
11994 get_omp_for_step_from_incr.
11995 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
11996 (fixup_child_record_type): Bail out if receiver_decl is NULL.
11997 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
11998 (scan_omp_parallel): Do not create child functions for phony
11999 constructs.
12000 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
12001 (scan_omp_1_op): Checking assert we are not remapping to
12002 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
12003 (parallel_needs_hsa_kernel_p): New function.
12004 (expand_parallel_call): Register apprpriate parallel child
12005 functions as HSA kernels.
12006 (grid_launch_attributes_trees): New type.
12007 (grid_attr_trees): New variable.
12008 (grid_create_kernel_launch_attr_types): New function.
12009 (grid_insert_store_range_dim): Likewise.
12010 (grid_get_kernel_launch_attributes): Likewise.
12011 (get_target_argument_identifier_1): Likewise.
12012 (get_target_argument_identifier): Likewise.
12013 (get_target_argument_value): Likewise.
12014 (push_target_argument_according_to_value): Likewise.
12015 (get_target_arguments): Likewise.
12016 (expand_omp_target): Call get_target_arguments instead of looking
12017 up for teams and thread limit.
12018 (grid_expand_omp_for_loop): New function.
12019 (grid_arg_decl_map): New type.
12020 (grid_remap_kernel_arg_accesses): New function.
12021 (grid_expand_target_kernel_body): New function.
12022 (expand_omp): Call it.
12023 (lower_omp_for): Do not emit phony constructs.
12024 (lower_omp_taskreg): Do not emit phony constructs but create for them
12025 a temporary variable receiver_decl.
12026 (lower_omp_taskreg): Do not emit phony constructs.
12027 (lower_omp_teams): Likewise.
12028 (lower_omp_grid_body): New function.
12029 (lower_omp_1): Call it.
12030 (grid_reg_assignment_to_local_var_p): New function.
12031 (grid_seq_only_contains_local_assignments): Likewise.
12032 (grid_find_single_omp_among_assignments_1): Likewise.
12033 (grid_find_single_omp_among_assignments): Likewise.
12034 (grid_find_ungridifiable_statement): Likewise.
12035 (grid_target_follows_gridifiable_pattern): Likewise.
12036 (grid_remap_prebody_decls): Likewise.
12037 (grid_copy_leading_local_assignments): Likewise.
12038 (grid_process_kernel_body_copy): Likewise.
12039 (grid_attempt_target_gridification): Likewise.
12040 (grid_gridify_all_targets_stmt): Likewise.
12041 (grid_gridify_all_targets): Likewise.
12042 (execute_lower_omp): Call grid_gridify_all_targets.
12043 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
12044 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
12045 (tree_omp_clause): Added union field dimension.
12046 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
12047 * tree.c (omp_clause_num_ops): Added number of arguments of
12048 OMP_CLAUSE__GRIDDIM_.
12049 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
12050 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
12051 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
12052 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
12053 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
12054 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
12055 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
12056 * tree-pass.h (make_pass_gen_hsail): Declare.
12057 (make_pass_ipa_hsa): Likewise.
12058 * ipa-hsa.c: New file.
12059 * lto-section-in.c (lto_section_name): Add hsa section name.
12060 * lto-streamer.h (lto_section_type): Add hsa section.
12061 * timevar.def (TV_IPA_HSA): New.
12062 * hsa-brig-format.h: New file.
12063 * hsa-brig.c: New file.
12064 * hsa-dump.c: Likewise.
12065 * hsa-gen.c: Likewise.
12066 * hsa.c: Likewise.
12067 * hsa.h: Likewise.
12068 * toplev.c (compile_file): Call hsa_output_brig.
12069 * hsa-regalloc.c: New file.
12070
12071 2016-01-18 Jeff Law <law@redhat.com>
12072
12073 PR tree-optimization/69320
12074 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
12075 ranged object, do nothing if the RHS constant is not [0..1].
12076 (optimize_stmt): Comparing a boolean ranged object against a
12077 constant outside [0..1] results in a compile-time constant.
12078
12079 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
12080 test.
12081
12082 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
12083
12084 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12085 (Option Summary): Update to reflect new section and moved options.
12086 (C++ Dialect Options): Move -fstats to new section.
12087 (Debugging Options): Move all dump, statistics, and other GCC
12088 developer options to new section. Rewrite section introduction
12089 and re-order remaining options to put the more basic ones first.
12090 (Optimization Options): Move -fira-verbose and -flto-report* to
12091 new section.
12092 (Developer Options): New section incorporating moved options.
12093 * doc/cppopts.texi (-dM): Update cross-reference.
12094
12095 2016-01-18 Richard Henderson <rth@redhat.com>
12096
12097 PR target/69176
12098 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
12099 operands to pseudo only if CSE is expected. Split long immediate
12100 operands only after reload, and for the stack pointer.
12101 (*add<GPI>3_pluslong): Remove.
12102 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
12103 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
12104 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
12105 (*add<GPI>3 peepholes): New.
12106 (*add<GPI>3 splitters): New.
12107 * config/aarch64/constraints.md (Upl): New.
12108 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
12109
12110 2016-01-18 Richard Biener <rguenther@suse.de>
12111
12112 PR tree-optimization/69297
12113 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
12114 stmt at most once.
12115 (vect_bb_vectorization_profitable_p): Clear visited flag again.
12116
12117 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12118
12119 PR middle-end/68542
12120 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
12121 of mixind vector and scalar types.
12122 (fold_relational_const): Add handling of vector
12123 comparison with boolean result.
12124 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
12125 comparison of vector operands with boolean result for EQ/NE only.
12126 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
12127 (verify_gimple_cond): Likewise.
12128 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
12129 valid type of VAL.
12130
12131 2016-01-18 Joseph Myers <joseph@codesourcery.com>
12132
12133 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
12134 !TARGET_OCTEON.
12135
12136 2016-01-18 Richard Biener <rguenther@suse.de>
12137
12138 PR middle-end/69308
12139 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
12140
12141 2016-01-18 Tom de Vries <tom@codesourcery.com>
12142
12143 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
12144
12145 2016-01-18 Tom de Vries <tom@codesourcery.com>
12146
12147 * omp-low.c (set_oacc_fn_attrib): Make extern.
12148 * omp-low.h (set_oacc_fn_attrib): Declare.
12149 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
12150 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
12151 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
12152 Add and handle function parameter oacc_kernels_p.
12153 (find_reduc_addr, get_omp_data_i_param): New function.
12154 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
12155 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
12156 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
12157 Calculate dominance info. Skip loops that are not in a kernels region
12158 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
12159 (pass_parallelize_loops::execute): Call parallelize_loops with
12160 oacc_kernels_p argument.
12161 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
12162 New member function.
12163 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
12164 * passes.def: Add argument to pass_parallelize_loops instantation.
12165
12166 2016-01-18 Tom de Vries <tom@codesourcery.com>
12167
12168 * tree-parloops.c (pass_parallelize_loops::execute): Allow
12169 pass_parallelize_loops to be run outside the loop pipeline.
12170
12171 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12172
12173 * tree-scalar-evolution.c (follow_copies_to_constant): New.
12174 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
12175
12176 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12177
12178 PR target/63679
12179 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
12180 using get_ref_base_and_extent.
12181 (equal_mem_array_ref_p): New.
12182 (hashable_expr_equal_p): Add call to previous.
12183
12184 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12185
12186 PR target/63679
12187 * tree-sra.c (disqualified_constants, constant_decl_p): New.
12188 (sra_initialize): Allocate disqualified_constants.
12189 (sra_deinitialize): Free disqualified_constants.
12190 (disqualify_candidate): Update disqualified_constants when appropriate.
12191 (create_access): Scan for constant-pool entries as we go along.
12192 (scalarizable_type_p): Add check against type_contains_placeholder_p.
12193 (maybe_add_sra_candidate): Allow constant-pool entries.
12194 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
12195 (initialize_constant_pool_replacements): New.
12196 (sra_modify_assign): Avoid mangling assignments created by previous,
12197 and don't generate writes into constant pool.
12198 (sra_modify_function_body): Call initialize_constant_pool_replacements.
12199
12200 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12201
12202 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
12203 andnot instruction.
12204 (scalar_chain::convert_op): Likewise.
12205 * config/i386/i386.md (*andndi3_doubleword): New.
12206
12207 2016-01-18 Richard Biener <rguenther@suse.de>
12208
12209 PR tree-optimization/69170
12210 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
12211 building a vector from scalar results of a pattern stmt.
12212
12213 2016-01-18 Jakub Jelinek <jakub@redhat.com>
12214
12215 * haifa-sched.c (autopref_multipass_init): Work around
12216 -Wmaybe-uninitialized warning.
12217
12218 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12219
12220 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
12221 against the constant 0.
12222
12223 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12224
12225 PR tree-optimization/68799
12226 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
12227 look up phi candidates in the statement-candidate map.
12228 (phi_add_costs): Likewise.
12229 (record_phi_increments): Likewise.
12230 (phi_incr_cost): Likewise.
12231 (ncd_with_phi): Likewise.
12232 (all_phi_incrs_profitable): Likewise.
12233
12234 2016-01-17 Jakub Jelinek <jakub@redhat.com>
12235
12236 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
12237 -Wmaybe-uninitialized warning.
12238
12239 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
12240
12241 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12242 (Option Summary): Update to reflect new section and moved options.
12243 (C++ Dialect Options): Move -fvtable-verify and related options.
12244 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
12245 and profiling-related options.
12246 (Optimization Options): Move profile generation options and
12247 -fstack-protector and related options.
12248 (Instrumentation Options): New section incorporating moved options.
12249 (Code Generation Options): Move -finstrument-functions and
12250 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
12251
12252 2016-01-16 Tom de Vries <tom@codesourcery.com>
12253
12254 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
12255
12256 2016-01-16 Tom de Vries <tom@codesourcery.com>
12257
12258 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
12259
12260 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
12261
12262 * hash-table.h (hash_table::empty): Turn into an inline wrapper
12263 that checks whether the table is already empty. Rename the
12264 original implementation to...
12265 (hash_table::empty_slot): ...this new private function.
12266
12267 2016-01-15 David Malcolm <dmalcolm@redhat.com>
12268
12269 PR diagnostic/68899
12270 * diagnostic-show-locus.c (layout::print_source_line): Move x
12271 offset of line until after call to
12272 get_line_width_without_trailing_whitespace.
12273
12274 2016-01-15 Jeff Law <law@redhat.com>
12275
12276 PR tree-optimization/69270
12277 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
12278 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
12279 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
12280 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
12281 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12282 ssa_name_has_boolean_range and constant_boolean_node.
12283
12284 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
12285
12286 PR rtl-optimization/69030
12287 * lra-spills.c (remove_pseudos): Check nrefs and make the function
12288 returning bool.
12289 (spill_pseudos): Delete debug insn for dead pseudo.
12290 (lra_spill): Initiate spill_hard_reg and slots memory separately.
12291
12292 2016-01-15 Jiong Wang <jiong.wang@arm.com>
12293
12294 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
12295 New.
12296 (TYPES_UNOPUS): Likewise.
12297 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
12298 builtin type, from UNOP to UNOPUS.
12299 (lbtruncuv4sf): Likewise.
12300 (lbtruncuv2df): Likewise.
12301 (lrounduv2sf): Likewise.
12302 (lrounduv4sf): Likewise.
12303 (lrounduv2df): Likewise.
12304 (lroundusf): Likewise.
12305 (lroundusf): Likewise.
12306 (lceiluv2sf): Likewise.
12307 (lceiluv4sf): Likewise.
12308 (lceiluv2df): Likewise.
12309 (lceilusf): Likewise.
12310 (lceiludf): Likewise.
12311 (lflooruv2sf): Likewise.
12312 (lflooruv4sf): Likewise.
12313 (lflooruv2df): Likewise.
12314 (lfloorusf): Likewise.
12315 (lfloorudf): Likewise.
12316 (lfrintnuv2sf): Likewise.
12317 (lfrintnuv4sf): Likewise.
12318 (lfrintnuv2df): Likewise.
12319 (lfrintnusf): Likewise.
12320 (lfrintnudf): Likewise.
12321 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
12322 conversion.
12323 (vcvtq_u32_f32): Likewise.
12324 (vcvtq_u64_f64): Likewise.
12325 (vcvta_u32_f32): Likewise.
12326 (vcvtaq_u32_f32): Likewise.
12327 (vcvtaq_u64_f64): Likewise.
12328 (vcvtm_u32_f32): Likewise.
12329 (vcvtmq_u32_f32): Likewise.
12330 (vcvtmq_u64_f64): Likewise.
12331 (vcvtn_u32_f32): Likwise.
12332 (vcvtnq_u32_f32): Likewise.
12333 (vcvtnq_u64_f64): Likewise.
12334 (vcvtp_u32_f32): Likewise.
12335 (vcvtpq_u32_f32): Likewise.
12336 (vcvtpq_u64_f64): Likewise.
12337 (vcvtmd_u64_f64): Likewise.
12338 (vcvtms_u32_f32): Likewise.
12339 (vcvtad_u64_f64): Likewise.
12340 (vcvtas_u32_f32): Likewise.
12341 (vcvtnd_u64_f64): Likewise.
12342 (vcvtns_u32_f32): Likewise.
12343 (vcvtpd_u64_f64): Likewise.
12344 (vcvtps_u32_f32): Likewise.
12345
12346 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12347
12348 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
12349 CSEL of zero_extended registers.
12350
12351 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12352
12353 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12354 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
12355
12356 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12357
12358 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
12359 false when argument string is not found in the attributes table
12360 at all.
12361
12362 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
12363
12364 PR target/68609
12365 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
12366 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
12367 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
12368 precision estimate.
12369
12370 2016-01-15 Richard Biener <rguenther@suse.de>
12371
12372 PR tree-optimization/66856
12373 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
12374 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
12375 (vect_create_new_slp_node): Increment stmt reference count.
12376 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
12377 an SLP tree before swapping operands.
12378 (vect_build_slp_tree): Likewise.
12379 (destroy_bb_vec_info): Free stmt info after SLP instances.
12380 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
12381 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
12382 (STMT_VINFO_NUM_SLP_USES): New macro.
12383
12384 2016-01-15 Richard Biener <rguenther@suse.de>
12385
12386 PR debug/69137
12387 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
12388 (add_linkage_name): ... here.
12389 (gen_typedef_die): Use add_linkage_name_raw instead of
12390 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
12391 if necessary.
12392
12393 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12394
12395 * gimplify.c (oacc_default_clause): Decode reference and pointer
12396 types for both kernels and parallel regions.
12397
12398 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
12399
12400 PR middle-end/69246
12401 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
12402
12403 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12404
12405 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
12406 (convert_scalars_to_vector): Likewise.
12407
12408 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
12409
12410 * doc/extend.texi (Type Traits): Fix grammar.
12411
12412 2016-01-15 Martin Jambor <mjambor@suse.cz>
12413
12414 * tree-inline.c (remap_decl): Use existing dclarations if
12415 remapping a type and prevent_decl_creation_for_types.
12416 (replace_locals_stmt): Do an initial remapping of non-VLA typed
12417 decls first. Do real remapping with
12418 prevent_decl_creation_for_types set.
12419 * tree-inline.h (copy_body_data): New field
12420 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
12421 padding.
12422
12423 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12424
12425 * config/s390/s390.opt (mmvcle): More verbose help text.
12426
12427 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12428
12429 * config/s390/s390.opt: Add period to -mzvector option text.
12430
12431 2016-01-15 Richard Biener <rguenther@suse.de>
12432
12433 PR tree-optimization/68961
12434 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
12435 of invariants in stores again.
12436
12437 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12438
12439 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
12440
12441 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12442
12443 * config/i386/i386.c (ix86_expand_branch): Don't split
12444 DI mode xor instruction to SI mode.
12445
12446 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
12447
12448 PR ipa/68148
12449 * ipa-icf.c (sem_function::merge): Virtual functions may become
12450 reachable even if they address is not taken and there are no
12451 idrect calls.
12452
12453 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
12454
12455 * lto-streamer-out.c (subtract_estimated_size): New function.
12456 (get_symbol_initial_value): Use it.
12457
12458 2016-01-15 Christian Bruel <christian.bruel@st.com>
12459
12460 PR target/65837
12461 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
12462 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
12463 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
12464 use add_builtin_function_ext_scope instead of add_builtin_function.
12465 (neon_set_p, neon_crypto_set_p): Remove.
12466 (arm_init_builtins): Always call arm_init_neon_builtins and
12467 arm_init_crypto_builtins.
12468 (arm_expand_builtin): Check that builtins are allowed for the arch.
12469 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
12470 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
12471 arm_init_neon_builtins call.
12472
12473 2016-01-15 Richard Biener <rguenther@suse.de>
12474
12475 PR tree-optimization/69117
12476 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
12477 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
12478 of the leader conservatively.
12479 (free_scc_vn): Restore original SSA name infos.
12480
12481 2016-01-14 Jeff Law <law@redhat.com>
12482
12483 PR tree-optimization/69270
12484 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
12485 single bit of precision, verify it's also unsigned.
12486 (record_edge_info): Use constant_boolean_node rather than fold_convert
12487 to convert boolean_true/boolean_false to the right type.
12488
12489 2016-01-14 Richard Henderson <rth@redhat.com>
12490
12491 PR rtl-opt/69014
12492 * loop-doloop.c (record_reg_sets): New.
12493 (doloop_optimize): Reject the transform if the sequence
12494 clobbers registers live at the end of the loop block.
12495 (doloop_optimize_loops): Enable df_live if needed.
12496
12497 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12498
12499 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
12500 * config/rs6000/rs6000.c: Likewise.
12501 * config/rs6000/rs6000.h: Likewise.
12502 * config/rs6000/rs6000.md: Likewise.
12503 * doc/extend.texi: Likewsie.
12504
12505 2016-01-14 Jeff Law <law@redhat.com>
12506
12507 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
12508 typo.
12509
12510 2016-01-14 Richard Henderson <rth@redhat.com>
12511
12512 PR c/69272
12513 PR tree-opt/68964
12514 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
12515 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
12516 instead of builtin_decl_declared_p to test for declaration.
12517
12518 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
12519
12520 * doc/loop.texi (Loop Analysis and Representation): Document
12521 loop_depth function.
12522
12523 2016-01-14 Tom de Vries <tom@codesourcery.com>
12524
12525 PR tree-optimization/68773
12526 * omp-low.c (expand_omp_target): Don't set force_output.
12527 * varpool.c (varpool_node::get_create): Same.
12528 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
12529 offload_funcs with force_output.
12530
12531 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12532
12533 PR debug/69244
12534 * lra-eliminations.c (move_plus_up): Don't change anything if either
12535 the outer or inner subreg mode is not MODE_INT.
12536 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
12537 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
12538
12539 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
12540
12541 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
12542 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
12543 reduc_uplus_@var{m}): Remove.
12544 * expr.c (expand_expr_real_2): Remove expansion path for
12545 reduc_[us](min|max|plus) optabs.
12546 * optabs-tree.c (scalar_reduc_to_vector): Remove.
12547 * optabs-tree.h (scalar_reduc_to_vector): Remove.
12548 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
12549 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
12550 * tree-vect-loop.c (vectorizable_reduction): Remove test for
12551 reduc_[us](min|max|plus) optabs.
12552
12553 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
12554
12555 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
12556 (reduc_plus_scal_v2sf): New.
12557 (reduc_smax_v2sf): Rename to...
12558 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
12559 (reduc_smin_v2sf): Rename to...
12560 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
12561
12562 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
12563
12564 * alias.c (compare_base_symbol_refs): New function.
12565 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
12566 it.
12567
12568 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12569
12570 PR middle-end/68146
12571 PR tree-optimization/69155
12572 * tree-complex.c: Include cfganal.h.
12573 (phis_to_revisit): New variable.
12574 (extract_component): Add phiarg_p argument. Assert that returned
12575 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
12576 (update_phi_components): Partly rewrite to use loop over real/imag
12577 components instead of code duplication. If extract_component returns
12578 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
12579 create_tmp_reg into the PHI node instead, and mention the phi triplet
12580 in phis_to_revisit.
12581 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
12582 in phis_to_revisit at the end.
12583
12584 2016-01-14 Richard Biener <rguenther@suse.de>
12585
12586 PR tree-optimization/68060
12587 * tree-vect-loop.c (vect_is_simple_reduction): Check the
12588 outer loop reduction is only used in the inner loop before
12589 detecting a double reduction.
12590
12591 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12592
12593 PR target/68269
12594 * combine.c (expand_field_assignment): Punt if compute_mode is
12595 unsupported scalar mode.
12596
12597 2016-01-14 Richard Biener <rguenther@suse.de>
12598
12599 PR tree-optimization/66856
12600 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
12601 SLP node only if it built successfully.
12602 (vect_analyze_slp_instance): Adjust.
12603
12604 2016-01-14 Jeff Law <law@redhat.com>
12605
12606 PR tree-optimization/69270
12607 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
12608 (record_edge_info): Use it. Convert boolean_{true,false}_node
12609 to the type of op0.
12610
12611 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
12612
12613 PR ipa/66487
12614 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
12615 use block_ultimate_origin
12616 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
12617
12618 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
12619
12620 * doc/invoke.texi (Submodel Options): Rename section to
12621 "Machine-Dependent Options" to better reflect its content.
12622 Rewrite introductory text to remove archaic CPU names.
12623 Update references.
12624
12625 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
12626
12627 * doc/invoke.texi (Code Gen Options): Move section up in file,
12628 before target-specific options. Update menu and option summary
12629 to reflect the new section ordering.
12630
12631 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
12632
12633 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
12634 (C++ Dialect Options): Add cross-reference to -std option.
12635 * doc/standards.texi (C++ Language): Document C++14 support.
12636
12637 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12638
12639 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
12640 for pack/unpack functions for __ibm128.
12641 (PACK_IF): Likewise.
12642 (UNPACK_IF): Likewise.
12643
12644 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12645 support for __ibm128 pack/unpack functions.
12646 (rs6000_invalid_builtin): Likewise.
12647 (rs6000_init_builtins): Likewise.
12648 (rs6000_opt_masks): Likewise.
12649
12650 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
12651 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
12652 functions
12653 (RS6000_BTM_COMMON): Likewise.
12654
12655 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
12656 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
12657 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
12658 128-bit floating point. Add support for the double values to be
12659 in Altivec registers for TF/IF packing and unpacking, but restrict
12660 TD packing sub-fields to be FPR registers. Don't allow overlapped
12661 register support for packing. Allow pack inputs to be memory
12662 locations. Don't build generator functions for unpack<mode>_dm
12663 and unpack<mode>_nodm.
12664 (unpack<mode>_dm): Likewise.
12665 (unpack<mode>_nodm): Likewise.
12666 (pack<mode>): Likewise.
12667
12668 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
12669 built-in functions to pack/unpack explicit __ibm128 values.
12670 (__builtin_unpack_ibm128): Likewise.
12671
12672 * doc/extend.texi (PowerPC Built-in Functions): Document
12673 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
12674
12675 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
12676
12677 PR c/66208
12678 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
12679 Add new arg loc and pass it down as context.
12680 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
12681 to the location to use for the warning.
12682 (check_function_arguments): New arg loc. All callers changed. Pass
12683 it to check_function_nonnull.
12684 * c-common.h (check_function_arguments): Adjust declaration.
12685
12686 2016-01-13 Jakub Jelinek <jakub@redhat.com>
12687
12688 PR tree-optimization/69156
12689 * gimple.c (validate_type): Removed.
12690 (gimple_builtin_call_types_compatible_p): Use
12691 useless_type_conversion_p instead of validate_type.
12692 * value-prof.c (gimple_stringop_fixed_value): Fold
12693 icall_size to correct type.
12694
12695 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
12696
12697 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
12698 effects.
12699
12700 2016-01-13 Richard Henderson <rth@redhat.com>
12701
12702 PR tree-opt/68964
12703 * target.def (builtin_tm_load, builtin_tm_store): Remove.
12704 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
12705 (ix86_builtin_tm_store): Remove.
12706 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
12707 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
12708 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
12709 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
12710 * doc/tm.texi: Rebuild.
12711
12712 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
12713 (BUILT_IN_TM_MEMCPY_RTWN): New.
12714 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
12715 fallback from vector to integer helpers.
12716 (build_tm_load): Handle vector types directly, instead of
12717 via target hook.
12718 (build_tm_store): Likewise.
12719 (expand_assign_tm): Prepare for register types not handled by
12720 the above. Copy them to memory and use memcpy.
12721 * tree.c (tm_define_builtin): New.
12722 (find_tm_vector_type): New.
12723 (build_tm_vector_builtins): New.
12724 (build_common_builtin_nodes): Call it.
12725
12726 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
12727
12728 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
12729 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
12730
12731 2016-01-13 Tom de Vries <tom@codesourcery.com>
12732
12733 PR tree-optimization/69169
12734 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
12735 handled_struct_type param.
12736 (create_variable_info_for, intra_create_variable_infos): Call
12737 create_variable_info_for_1 with extra arg.
12738
12739 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
12740
12741 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
12742 and "armv8.1-a+crc" entries.
12743
12744 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
12745
12746 PR target/69228
12747 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
12748 Change first operand predicate from register_or_constm1_operand
12749 to register_operand.
12750 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
12751 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
12752 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
12753 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
12754 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
12755 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
12756 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
12757 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
12758 comparison with constm1_rtx from vec_prefetch_gen part.
12759
12760 2016-01-13 Richard Biener <rguenther@suse.de>
12761
12762 PR tree-optimization/69013
12763 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
12764 Exchange assert for a test.
12765
12766 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12767
12768 PR target/69247
12769 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
12770
12771 2016-01-13 Richard Biener <rguenther@suse.de>
12772
12773 PR tree-optimization/69242
12774 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
12775 assert with a check.
12776
12777 2016-01-13 Richard Biener <rguenther@suse.de>
12778
12779 PR tree-optimization/69186
12780 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12781 Properly guard vect_update_misalignment_for_peel call.
12782
12783 2016-01-12 Jeff Law <law@redhat.com>
12784
12785 PR tree-optimization/pr67755
12786 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
12787 "need_profile_correction".
12788 (thread_block_1): Initialize new field to false by default. If we
12789 have multiple thread paths through a common joiner to different
12790 final targets, then set new field to true.
12791 (compute_path_counts): Only do count adjustment when it's really
12792 needed.
12793
12794 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
12795
12796 * doc/invoke.texi (Spec Files): Move section down in file, past
12797 all command-line option descriptions.
12798
12799 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12800
12801 PR middle-end/54809
12802 * doc/gty.texi: Remove documentation of mark_hook.
12803 * gengtype.c (struct write_types_data): Remove code to support
12804 mark_hook attribute.
12805 (walk_type): Likewise.
12806 (write_func_for_structure): Likewise.
12807
12808 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
12809
12810 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
12811 Directory Options, and -specs= to Overall Options.
12812 (Overall Options): Adjust similarly. Reorder to group related
12813 options together. Make -specs= cross-reference the spec file details.
12814 (Directory Options): Adjust similarly.
12815
12816 2016-01-12 Jeff Law <law@redhat.com>
12817
12818 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
12819
12820 2016-01-12 Olivier Hainque <hainque@adacore.com>
12821
12822 * gcc.c (spec_undefvar_allowed): New global.
12823 (process_command): Set to true when running for --version or --help,
12824 alone or together.
12825 (getenv_spec_function): When the variable is not defined, use the
12826 variable name as the variable value if we're allowed not to issue
12827 a fatal error.
12828
12829 2016-01-12 Bin Cheng <bin.cheng@arm.com>
12830
12831 PR tree-optimization/68911
12832 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
12833 information computed for expression "init + nit * step".
12834
12835 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
12836
12837 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
12838 about name of GCC executable. Remove deleted node from menu.
12839 (Directory Options) <-B>: Remove cross-reference to deleted node.
12840 (Target Options): Delete section.
12841
12842 2016-01-12 Christian Bruel <christian.bruel@st.com>
12843
12844 PR target/69180
12845 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
12846 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
12847
12848 2016-01-12 Jakub Jelinek <jakub@redhat.com>
12849
12850 PR target/69198
12851 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
12852 aligned_mem is properly set for AVX512-VL floating point masked
12853 stores.
12854
12855 PR target/69175
12856 * ifcvt.c (cond_exec_process_if_block): When removing the last
12857 insn from then_bb, remove also any possible barriers that follow it.
12858
12859 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
12860
12861 PR target/68456
12862 PR target/69226
12863 * config/i386/iamcu.h (SIZE_TYPE): New macro.
12864 (PTRDIFF_TYPE): Likewise.
12865 (WCHAR_TYPE): Likewise.
12866 (WCHAR_TYPE_SIZE): Likewise.
12867 (STDINT_LONG32): Likewise.
12868
12869 2016-01-12 Richard Biener <rguenther@suse.de>
12870
12871 PR tree-optimization/69053
12872 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
12873 convert initial value for cond reductions.
12874
12875 2016-01-12 Richard Biener <rguenther@suse.de>
12876
12877 PR tree-optimization/69007
12878 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
12879 widen_sum after dot_prod and sad.
12880
12881 2016-01-12 Richard Biener <rguenther@suse.de>
12882
12883 PR tree-optimization/69168
12884 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
12885 pattern stmt SLP type.
12886 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
12887 end up unused so cope with that case.
12888
12889 2016-01-12 Richard Biener <rguenther@suse.de>
12890
12891 PR tree-optimization/69157
12892 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
12893 stmts def type only during analyze phase.
12894 (vectorizable_call): Likewise.
12895 (vectorizable_simd_clone_call): Likewise.
12896 (vectorizable_conversion): Likewise.
12897 (vectorizable_assignment): Likewise.
12898 (vectorizable_shift): Likewise.
12899 (vectorizable_operation): Likewise.
12900 (vectorizable_store): Likewise.
12901 (vectorizable_load): Likewise.
12902
12903 2016-01-12 Richard Biener <rguenther@suse.de>
12904
12905 PR tree-optimization/69174
12906 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
12907 space.
12908 (vectorizable_load): Properly compute the number of loads needed
12909 for permuted strided SLP loads and do not spuriously assign
12910 to SLP_TREE_VEC_STMTS.
12911
12912 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
12913
12914 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
12915 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
12916 (MD_EXEC_PREFIX): Remove.
12917 (MD_STARTFILE_PREFIX) Removee.
12918 (FILE_NAME_ABSOLUTE_P): Remove.
12919 (CPP_SPEC): Do not read macros from sys/version.h.
12920 (LINK_COMMAND_SPEC): Remove.
12921 (LOCAL_INCLUDE_DIR): Remove.
12922 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
12923 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
12924 (POST_LINK_SPEC): Define to invoke stubify after linker
12925 (LIBSTDCXX): Remove define
12926 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
12927 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
12928 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
12929 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
12930 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
12931 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
12932 (i386_djgpp_asm_named_section): Add propotype of new procedure
12933
12934 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
12935 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
12936 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
12937 in config/i386/djgpp.h).
12938 (STANDARD_STARTFILE_PREFIX_2): Define identical to
12939 STANDARD_STARTFILE_PREFIX_1.
12940 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
12941 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
12942 installation errors.
12943 (MAX_OFILE_ALIGNMENT): Define to 128.
12944 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
12945
12946 * config/i386/djgpp.c: New file. Add implementation of
12947 i386_djgpp_asm_named_section.
12948
12949 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
12950
12951 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
12952 Add rule for building djgpp.o.
12953
12954 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12955
12956 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
12957 (rtx_is_swappable_p): Reductions are swappable.
12958 (insn_is_swappable_p): V2DF reductions are swappable.
12959
12960 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
12961
12962 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
12963 reloads for other unsupported memory operands.
12964
12965 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12966 Jim Wilson <jim.wilson@linaro.org>
12967
12968 PR target/69194
12969 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
12970 copy_to_mode_reg instead of force_reg.
12971
12972 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
12973
12974 PR target/69225
12975 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
12976 TARGET_80387 is true.
12977
12978 2016-01-11 Jakub Jelinek <jakub@redhat.com>
12979
12980 PR target/69071
12981 * lra-eliminations.c (move_plus_up): Only move plus up
12982 if subreg of the constant can be simplified into constant
12983 and use the simplified subreg of the constant instead of
12984 the original constant.
12985
12986 * fold-const.c (fold_convertible_p): Don't return true
12987 for conversion of VECTOR_TYPE to same sized integral type.
12988 (fold_convert_loc): Fix up formatting. Fold conversion of
12989 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
12990 instead of NOP_EXPR.
12991
12992 PR tree-optimization/69214
12993 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
12994 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12995 Formatting fix.
12996
12997 PR tree-optimization/69207
12998 * tree-vect-slp.c (vect_get_constant_vectors): For
12999 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
13000 fold_convertible_p to vector_type's element type, and always
13001 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
13002
13003 2016-01-11 Richard Biener <rguenther@suse.de>
13004
13005 PR tree-optimization/69173
13006 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
13007 fixup the cycle if all stmts are in a pattern.
13008
13009 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
13010
13011 PR middle-end/68999
13012 * alias.c (base_alias_check): Move check for addresses with
13013 alignment ANDs before the call for compare_base_decls.
13014 (memrefs_conflict_p): Return -1 for different decls
13015 that went through alignment adjustments.
13016
13017 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13018
13019 PR rtl-optimization/68796
13020 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
13021 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
13022 and QImode comparisons against zero with CC_NZmode.
13023 * config/aarch64/iterators.md (short_mask): New mode_attr.
13024
13025 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13026
13027 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
13028 (<avx512>_store<mode>_mask): Likewise.
13029
13030 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
13031 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13032
13033 PR rtl-optimization/68841
13034 * ifcvt.c (struct noce_if_info): Add orig_x field.
13035 (bbs_ok_for_cmove_arith): Add to_rename parameter.
13036 Don't record conflicts on to_rename if it's present.
13037 Allow memory destinations in sets.
13038 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
13039 blocks, passing orig_x to the checks.
13040 (noce_process_if_block): Set if_info->orig_x appropriately.
13041
13042 2016-01-11 Tom de Vries <tom@codesourcery.com>
13043
13044 PR tree-optimization/69069
13045 * tree-parloops.c (create_parallel_loop): Add missing phi args.
13046
13047 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13048
13049 PR rtl-optimization/68920
13050 * config/i386/i386.c (ix86_option_override_internal): Restrict number
13051 of conditional moves for RTL if-conversion to 1 for
13052 TARGET_ONE_IF_CONV_INSN.
13053 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
13054 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
13055 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
13056 parameter to restirct number of conditional moves for
13057 RTL if-conversion.
13058 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
13059 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
13060 conditionl moves.
13061
13062 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
13063
13064 PR bootstrap/69123
13065 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
13066 onepart vars. Fix typo in comment. Fix reversed condition in
13067 unshare test.
13068 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
13069
13070 PR bootstrap/69123
13071 * var-tracking.c (dump_onepart_variable_differences): New.
13072 (dataflow_set_different): If a detailed dump is requested,
13073 delay early returns and dump differences between onepart
13074 variables present before and after, and added variables.
13075
13076 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13077
13078 PR target/69010
13079 * expr.c (expand_expr_real_1): For boolean vector constants
13080 with a scalar mode use const_scalar_mask_from_tree.
13081 (const_scalar_mask_from_tree): New.
13082 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
13083 assigned to a mask type to handle constants.
13084
13085 2016-01-11 Martin Jambor <mjambor@suse.cz>
13086
13087 PR ipa/69044
13088 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
13089 useless parameters if we cannot change function signature.
13090
13091 2016-01-11 Martin Jambor <mjambor@suse.cz>
13092
13093 PR ipa/66616
13094 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
13095 flag.
13096
13097 2016-01-11 Tom de Vries <tom@codesourcery.com>
13098
13099 PR tree-optimization/69109
13100 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
13101 latch with phi.
13102
13103 2016-01-11 Tom de Vries <tom@codesourcery.com>
13104
13105 PR tree-optimization/69108
13106 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
13107 res is not used in a phi.
13108
13109 2016-01-11 Yury Gribov <y.gribov@samsung.com>
13110
13111 PR 67425
13112 * common.opt (frandom-seed): Fix parameter name.
13113 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
13114
13115 2016-01-11 Tom de Vries <tom@codesourcery.com>
13116
13117 PR tree-optimization/69058
13118 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
13119 not supported.
13120
13121 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
13122
13123 * config/arc/arc.opt (mdiv-rem): Add period to the end.
13124 (mcode-density): Likewise.
13125
13126 2016-01-10 Tom de Vries <tom@codesourcery.com>
13127
13128 PR tree-optimization/69062
13129 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
13130 (parallelize_loops): Don't paralelize loop that has phi with address
13131 arg.
13132
13133 2016-01-10 Tom de Vries <tom@codesourcery.com>
13134
13135 PR tree-optimization/69039
13136 * tree-parloops.c (try_create_reduction_list): Only allow single exit
13137 phi for reduction.
13138
13139 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
13140
13141 PR middle-end/68743
13142 * match.pd: Require target has function_c99_misc before doing
13143 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
13144
13145 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
13146
13147 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
13148 use GMPINC.
13149 * configure: Regenerate.
13150
13151 2016-01-09 Jakub Jelinek <jakub@redhat.com>
13152
13153 PR middle-end/50865
13154 PR tree-optimization/69097
13155 * fold-const.h (expr_not_equal_to): New prototype.
13156 * fold-const.c: Include stringpool.h and tree-ssanames.h.
13157 (expr_not_equal_to): New function.
13158 * match.pd (X % -Y is the same as X % Y): Don't optimize
13159 unless X is known not to be equal to minimum or Y is known
13160 not to be equal to -1.
13161 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
13162 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
13163 (simplify_stmt_using_ranges): Adjust caller.
13164 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
13165 substitute_and_fold.
13166
13167 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
13168
13169 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
13170 w/o DECL_NAME.
13171
13172 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13173
13174 PR tree-optimization/69167
13175 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
13176 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
13177 ops[0] comparison.
13178 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
13179
13180 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13181 Richard Biener <rguenther@suse.de>
13182
13183 PR tree-optimization/68707
13184 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
13185 instances that can be handled via vect_load_lanes.
13186
13187 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
13188
13189 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
13190 if we can't determine address equivalence.
13191 * alias.c (compare_base_decl): Update for changed return value of
13192 symtab_node::equal_address_to.
13193
13194 2016-01-08 Jason Merrill <jason@redhat.com>
13195
13196 PR c++/68983
13197 PR c++/67557
13198 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
13199 * expr.c (store_field): Not here.
13200 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
13201 call with TREE_ADDRESSABLE type.
13202 * tree-cfg.c (verify_gimple_call): Adjust.
13203
13204 2016-01-08 Olivier Hainque <hainque@adacore.com>
13205
13206 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
13207 libc_internal.
13208
13209 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13210
13211 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
13212 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
13213 (reduc_smin_v2sf): Rename to...
13214 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
13215 (reduc_splus_v2sf): Rename to...
13216 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
13217
13218 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13219
13220 PR tree-optimization/69162
13221 * gimplify.c (gimplify_va_arg_expr): Encode original type of
13222 valist argument in another argument.
13223 (gimplify_modify_expr): Adjust for the above change. Cleanup.
13224 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
13225 to determine the va_list type, build a MEM_REF instead of
13226 build_fold_indirect_ref.
13227
13228 PR tree-optimization/69172
13229 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
13230 gimple_build.
13231
13232 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
13233
13234 PR tree-optimization/67781
13235 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
13236 and cmpnop in two steps: first the ones not accessed in original
13237 gimple expression in a endian independent way and then the ones not
13238 accessed in the final result in an endian-specific way.
13239
13240 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13241
13242 PR tree-optimization/69083
13243 * tree-vect-slp.c (vect_get_constant_vectors): For
13244 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
13245 element type. If op is fold_convertible_p to vector_type's element
13246 type, use NOP_EXPR instead of VCE.
13247
13248 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
13249
13250 PR rtl-optimization/67778
13251 PR rtl-optimization/68634
13252 PR rtl-optimization/68909
13253 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
13254 block from the stack until done with it. Remove a superfluous
13255 bitmap set. Remove a superfluous bitmap test.
13256
13257 2016-01-07 Martin Sebor <msebor@redhat.com>
13258
13259 PR c/68966
13260 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
13261 constraint on the type of arguments.
13262
13263 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
13264
13265 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
13266 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
13267 unaligned_access on the gcc_options set.
13268 * config/arm/arm.c (arm_option_override_internal): Use
13269 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
13270
13271 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13272
13273 PR target/69140
13274 * config/i386/i386.c (ix86_frame_pointer_required): Enable
13275 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
13276
13277 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13278
13279 Revert
13280 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13281
13282 PR target/69140
13283 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13284 depending on frame_pointer_needed before remaining integer and SSE
13285 registers are saved.
13286
13287 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
13288
13289 PR 1078
13290 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
13291
13292 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13293
13294 PR target/69171
13295 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
13296 Use the "xBm" constraint.
13297 (float<sseintvecmodelower><mode>2<mask_name><round_name):
13298 Likewise.
13299 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
13300 (sse_cvtsi2ssq<round_name>): Likewise.
13301 (sse_cvtss2si<round_name>): Likewise.
13302 (sse_cvtss2siq<round_name>): Likewise.
13303 (sse2_cvtsi2sdq<round_name>): Likewise.
13304 (sse2_cvtsd2si<round_name>): Likewise.
13305 (sse2_cvtsd2siq<round_name>): Likewise.
13306 * config/i386/subst.md (round_nimm_scalar_predicate): New
13307 predicate.
13308
13309 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
13310
13311 PR middle-end/67639
13312 * varasm.c (make_decl_rtl): Mark invalid register vars as
13313 DECL_EXTERNAL.
13314
13315 PR rtl-optimization/66206
13316 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
13317 All callers changed.
13318
13319 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13320
13321 PR tree-optimization/69141
13322 * tree-ssa-pre.c: Include langhooks.h.
13323 (eliminate_dom_walker::before_dom_children): Use
13324 lang_hooks.decl_printable_name instead of
13325 cgraph_node::get ()->name ().
13326
13327 PR middle-end/68960
13328 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
13329 it and DECL_ALIGN too.
13330
13331 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
13332
13333 * config/mips/mips-ftypes.def: Sort to lexicographical order.
13334
13335 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13336
13337 PR target/69140
13338 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13339 depending on frame_pointer_needed before remaining integer and SSE
13340 registers are saved.
13341
13342 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13343
13344 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
13345 mode iterator with VSX_M2.
13346 (*p9_vecstore_<mode>): Likewise.
13347 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
13348 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
13349 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
13350 (define_split for VSX_LE128 stores): Likewise.
13351 (define_peephole2 for TImode LE swaps): Likewise.
13352 (define_split for VSX_LE128 post-reload stores): Likewise.
13353
13354 2016-01-06 Marek Polacek <polacek@redhat.com>
13355
13356 PR sanitizer/69099
13357 * convert.c (convert_to_integer_1): Adjust call to
13358 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
13359 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
13360 EXPR instead of ARG.
13361 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
13362
13363 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13364
13365 PR 1078
13366 * doc/extend.texi (RL78 Variable Attributes): New section.
13367
13368 2016-01-05 Marek Polacek <polacek@redhat.com>
13369
13370 PR c/69104
13371 * builtins.c (get_memmodel): Use expansion point location rather than
13372 the input location. Call warning_at rather than warning.
13373 (expand_builtin_atomic_compare_exchange): Likewise.
13374 (expand_builtin_atomic_load): Likewise.
13375 (expand_builtin_atomic_store): Likewise.
13376 (expand_builtin_atomic_clear): Likewise.
13377
13378 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
13379
13380 PR target/68991
13381 * config/i386/i386.c (ix86_expand_vector_logical_operator):
13382 Replace nonimmediate_operand with vector_operand.
13383 * config/i386/predicates.md (vector_operand): New predicate.
13384 (general_vector_operand): Replace nonimmediate_operand with
13385 vector_operand.
13386 * config/i386/sse.md: Replace nonimmediate_operand with
13387 vector_operand and m constraint with Bm constraint on SSE
13388 patterns with 16-byte memory operand.
13389 * config/i386/subst.md (round_nimm_predicate): Replace
13390 nonimmediate_operand with vector_operand.
13391 (round_saeonly_nimm_predicate): Likewise.
13392 (round_saeonly_nimm_scalar_predicate): New.
13393
13394 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
13395
13396 PR target/68991
13397 * config/i386/constraints.md (Bm): New constraint.
13398 * config/i386/predicates.md (vector_memory_operand): New
13399 predicate.
13400 * config/i386/sse.md: Replace xm with xBm in plusminus and
13401 any_logic patterns.
13402
13403 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13404
13405 PR 1078
13406 * doc/extend.texi (V850 Function Attributes): New section.
13407 (V850 Variable Attributes): New section.
13408
13409 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13410
13411 PR 1078
13412 * doc/extend.texi (MicroBlaze Function Attributes): Document
13413 interrupt_handler and fast_interrupt attributes.
13414
13415 2016-01-05 Sergei Trofimovich <siarheit@google.com>
13416
13417 PR other/60465
13418 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
13419 for local symbolic operands.
13420 * config/ia64/predicates.md (local_symbolic_operand64): New
13421 predicate.
13422
13423 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13424
13425 PR rtl-optimization/68651
13426 * combine.c (combine_simplify_rtx): Canonicalize x + x into
13427 x << 1.
13428
13429 2016-01-05 Nathan Sidwell <nathan@acm.org>
13430
13431 * alias.c (compare_base_decls): Use symtab_node::get.
13432
13433 2016-01-05 Nick Clifton <nickc@redhat.com>
13434
13435 PR target/68770
13436 * ira-costs.c (copy_cost): Initialise the t_icode field of the
13437 secondary_reload_info structure.
13438
13439 PR target/66655
13440 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
13441 decls if weak support is available.
13442
13443 2016-01-04 Martin Sebor <msebor@redhat.com>
13444
13445 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
13446
13447 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
13448
13449 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
13450 OPTION_MASK_P9_DFORM.
13451
13452 * config/rs6000/constraints.md (wo constraint): New constraint for
13453 ISA 3.0 (power9).
13454
13455 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
13456 for wo constraint.
13457 (rs6000_init_hard_regno_mode_ok): Likewise.
13458
13459 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
13460 wo constraint.
13461
13462 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
13463 expanders not to have constraints. Add support for ISA 3.0 xxperm
13464 instruction. Add support for fusing xxlor with xxperm.
13465 (altivec_vperm_<mode>_internal): Likewise.
13466 (altivec_vperm_v8hiv16qi): Likewise.
13467 (altivec_vperm_<mode>v16q): Likewise.
13468 (altivec_vperm_<mode>_uns): Likewise.
13469 (vperm_v8hiv4si): Likewise.
13470 (vperm_v16qiv8hi): Likewise.
13471
13472 * doc/md.texi (RS/6000 constraints): Document wo constraint.
13473
13474 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13475
13476 Update copyright years.
13477
13478 * gcc.c (process_command): Update copyright notice dates.
13479 * gcov-dump.c (print_version): Ditto.
13480 * gcov.c (print_version): Ditto.
13481 * gcov-tool.c (print_version): Ditto.
13482 * gengtype.c (create_file): Ditto.
13483 * doc/cpp.texi: Bump @copying's copyright year.
13484 * doc/cppinternals.texi: Ditto.
13485 * doc/gcc.texi: Ditto.
13486 * doc/gccint.texi: Ditto.
13487 * doc/gcov.texi: Ditto.
13488 * doc/install.texi: Ditto.
13489 * doc/invoke.texi: Ditto.
13490
13491 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13492
13493 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
13494 modes larger than TImode as TImode if NEON is not enabled.
13495
13496 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13497
13498 PR target/69100
13499 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
13500 mode for %f0-%f31 only if TARGET_FPU.
13501
13502 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13503
13504 PR target/69072
13505 * config/sparc/sparc.c (scan_record_type): Take into account subfields
13506 to compute the PACKED_P predicate.
13507 (function_arg_record_value): Minor tweaks.
13508
13509 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13510
13511 * doc/install.texi (--with-multilib-list): Describe the meaning of the
13512 option for arm*-*-* targets.
13513
13514 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
13515
13516 * doc/extend.texi (Common Function Attributes): Move docs for
13517 MSP430-specific attributes to....
13518 (MSP430 Function Attributes): ...here. Delete the redundant
13519 entries and copy-edit the remaining text.
13520 (MSP430 Variable Attributes): Use uniform format for index
13521 entries and add a cross-reference to the corresponding function
13522 attribute docs.
13523
13524 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
13525
13526 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
13527 -finite-math typo.
13528 (x86 Options): Likewise.
13529
13530 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
13531
13532 PR 1078
13533
13534 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
13535 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
13536 to corresponding attribute.
13537
13538 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
13539
13540 * doc/extend.texi (Common Function Attributes) <noplt>: Move
13541 to correct alphabetization of table. Copy-edit and correct
13542 markup.
13543 <stack_protect>: Likewise.
13544 <target_clones>: Likewise.
13545 <simd>: Likewise.
13546 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
13547 Correct punctuation.
13548 (Code Gen Options) <-fno-plt>: Copy-edit.
13549
13550 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13551
13552 PR target/68917
13553 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
13554 SI values. Explicitly convert SI to DI and vice-versa.
13555
13556 2016-01-01 Jakub Jelinek <jakub@redhat.com>
13557
13558 PR tree-optimization/69070
13559 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
13560 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
13561
13562 PR sanitizer/69055
13563 * ubsan.c (ubsan_instrument_float_cast): Call
13564 initialize_sanitizer_builtins.
13565
13566 PR target/69015
13567 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
13568 \f
13569 Copyright (C) 2016 Free Software Foundation, Inc.
13570
13571 Copying and distribution of this file, with or without modification,
13572 are permitted in any medium without royalty provided the copyright
13573 notice and this notice are preserved.