bd9929b802c9b1c4743619571934ee4572f3fd0f
[gcc.git] / gcc / ChangeLog
1 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2
3 PR rtl-optimization/78526
4 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
5 beyond val's precision.
6
7 PR rtl-optimization/78527
8 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
9 out of bounds shift count.
10
11 2016-11-25 Martin Liska <mliska@suse.cz>
12
13 PR web/71666
14 * doc/invoke.texi (-fprofile-use): Fix reference to a section
15 where -fprofile-generate is documented.
16
17 2016-11-25 Martin Liska <mliska@suse.cz>
18
19 PR gcov-profile/78086
20 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
21 not supported by a target. Set priority to 100 if possible.
22 (build_gcov_exit_decl): Likewise.
23
24 2016-11-25 Richard Biener <rguenther@suse.de>
25
26 PR ipa/78515
27 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
28 unary, binary and single RHSs.
29 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
30
31 2016-11-25 Bin Cheng <bin.cheng@arm.com>
32
33 PR middle-end/78507
34 PR middle-end/78510
35 PR middle-end/78517
36 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
37 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
38 and set it to result code if transformation is valid. Use code EQ
39 directly in last simplification case.
40
41 2016-11-25 Richard Biener <rguenther@suse.de>
42
43 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
44 before valueizing return stmts.
45
46 2016-11-24 Richard Biener <rguenther@suse.de>
47
48 PR tree-optimization/78343
49 * passes.def: Add CD-DCE pass after loop splitting.
50 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
51 SCEV init/finalize ...
52 (perform_tree_ssa_dce): ... here. Deal with being
53 executed inside the loop pipeline in aggressive mode.
54
55 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
56
57 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
58
59 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
60
61 PR tree-optimization/77673
62 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
63 (init_symbolic_number): Initialize src field from src parameter.
64 (perform_symbolic_merge): Select most dominated statement as the
65 source statement. Set src field of resulting n structure from the
66 input src with the lowest address.
67 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
68 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
69 of load from src field rather than insertion statement. Cancel
70 optimization if statement analyzed is not dominated by the insertion
71 statement.
72 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
73 dominance information.
74
75 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
76
77 PR ada/67205
78 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
79
80 2016-11-25 Martin Jambor <mjambor@suse.cz>
81
82 PR tree-optimization/70965
83 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
84
85 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
86
87 PR target/78509
88 * config/i386/i386.c (i386_excess_precision): Do not return
89 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
90 EXCESS_PRECISION_TYPE_STANDARD.
91 * target.def (excess_precision): Document that targets should
92 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
93 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
94 Fix typo in first sentence.
95 * doc/tm.texi: Regenerate.
96
97 2016-11-25 Richard Biener <rguenther@suse.de>
98
99 PR tree-optimization/78396
100 * tree-vectorizer.c (vectorize_loops): When the if-converted
101 body contains masked loads or stores do not attempt to
102 basic-block-vectorize it.
103
104 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
105 Alan Hayward <alan.hayward@arm.com>
106 David Sherwood <david.sherwood@arm.com>
107
108 * function.h (spill_slot_alignment): Declare.
109 * function.c (spill_slot_alignment): New function.
110 * lra-spills.c (slot): Add align and size fields.
111 (assign_mem_slot): Use them in the call to assign_stack_local.
112 (add_pseudo_to_slot): Update the fields.
113 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
114
115 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
116 Alan Hayward <alan.hayward@arm.com>
117 David Sherwood <david.sherwood@arm.com>
118
119 * stor-layout.c (layout_type): Allow the caller to set the mode of
120 a float type. Only choose one here if the mode is still VOIDmode.
121 * tree.c (build_common_tree_nodes): Set the type mode of decimal
122 floats before calling layout_type.
123 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
124
125 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
126
127 * tree-tailcall.c (find_tail_calls): Allow calls to reference
128 local variables if all references are known to be direct.
129
130 2016-11-25 Jakub Jelinek <jakub@redhat.com>
131 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
132
133 PR middle-end/78501
134 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
135 non null and it's precision matches precision of lhs's type.
136
137 2016-11-24 Martin Sebor <msebor@redhat.com>
138
139 PR tree-optimization/78476
140 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
141 Add a member.
142 (handle_gimple_call): Adjust signature.
143 (try_substitute_return_value): Remove calls to bounded functions
144 with zero buffer size whose result is known.
145 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
146
147 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
148
149 * varasm.c (assemble_start_function): Wrap align_log definition in
150 ASM_OUTPUT_MAX_SKIP_ALIGN.
151
152 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
153
154 * config/i386/i386.md (wide AND insn to QImode splitter): Use
155 explicit mode macros.
156 (wide OR insn to QImode splitter): Ditto.
157
158 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
159
160 PR rtl-optimization/77541
161 * lra-constraints.c (struct input_reload): Add field match_p.
162 (get_reload_reg): Check modes of input reloads to generate unique
163 value reload pseudo.
164 (match_reload): Add input reload pseudo for the current insn.
165
166 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
167
168 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
169 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
170 architecture levels.
171 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
172 the aarch64_fp16_type_node, not all HFmode types.
173 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
174 (aarch64_scalar_mode_supported_p): Likewise.
175 (aarch64_excess_precision): New.
176 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
177 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
178 (TARGET_C_EXCESS_PRECISION): Likewise.
179
180 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
181
182 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
183 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
184
185 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
186
187 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
188 (<optab>dihf2): Likewise.
189 (aarch64_fp16_<optab><mode>hf2): New.
190
191 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
192
193 PR target/67822
194 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
195
196 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
197
198 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
199 Enable REE at -O2 and higher.
200 * config/sparc/sparc.c (sparc_option_override): Disable it by default
201 in 32-bit mode.
202
203 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
204
205 PR target/48863
206 PR inline-asm/70184
207 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
208 (new_temp_expr_table): Initialise reg_vars_cnt.
209 (free_temp_expr_table): Release reg_vars_cnt.
210 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
211 field of TAB.
212 (find_replaceable_in_bb): Use the above to record register variable
213 write occurrences and cancel replacement across them.
214
215 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
216
217 PR rtl-optimization/78437
218 * ree.c (get_uses): New function.
219 (combine_reaching_defs): When a copy is needed, return false if any
220 reaching use of the source register reads it in a mode larger than
221 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
222
223 2016-11-24 Martin Liska <mliska@suse.cz>
224
225 * gimple-pretty-print.c (dump_edge_probability): New function.
226 (dump_gimple_switch): Dump label edge probabilities.
227 (dump_gimple_cond): Likewise.
228 (dump_gimple_label): Dump
229 (dump_gimple_bb_header): Dump basic block frequency.
230 (pp_cfg_jump): Replace e->dest argument with e.
231 (dump_implicit_edges): Likewise.
232 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
233 Use gimple_bb (at) instead of at->bb.
234
235 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
236
237 * common.opt (flimit-function-alignment): New.
238 * doc/invoke.texi (-flimit-function-alignment): Document.
239 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
240 * final.c (shorten_branches): Set it.
241 * varasm.c (assemble_start_function): Limit alignment if
242 requested.
243
244 2016-11-24 Richard Biener <rguenther@suse.de>
245
246 PR tree-optimization/71595
247 * cfgloopmanip.h (remove_path): Add irred_invalidated and
248 loop_closed_ssa_invalidated parameters, defaulted to NULL.
249 * cfgloopmanip.c (remove_path): Likewise, pass them along to
250 called functions. Only fix irred flags if the caller didn't
251 request state.
252 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
253 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
254 to remove_path.
255
256 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
257
258 PR rtl-optimization/78120
259 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
260 cases, and additionally test against max_seq_cost for speed
261 optimization.
262 (noce_process_if_block): Compute an estimate for the original cost when
263 optimizing for speed, using the minimum of then and else block costs.
264
265 PR rtl-optimization/78120
266 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
267
268 PR rtl-optimization/78120
269 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
270
271 2016-11-24 Bin Cheng <bin.cheng@arm.com>
272
273 * match.pd: Refine type conversion in result expr for below pattern:
274 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
275
276 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
277
278 PR middle-end/78429
279 * tree.h (wi::fits_to_boolean_p): New predicate.
280 (wi::fits_to_tree_p): Use it for boolean types.
281 * tree.c (int_fits_type_p): Likewise.
282
283 2016-11-24 Martin Liska <mliska@suse.cz>
284
285 * print-tree.c (struct bucket): Remove.
286 (print_node): Add new argument which drives whether a tree node
287 is printed briefly or not.
288 (debug_tree): Replace a custom hash table with hash_set<T>.
289 * print-tree.h (print_node): Add the argument.
290
291 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
292
293 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
294
295 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
296
297 PR target/78458
298 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
299 if it is at least NREGS wide.
300
301 2016-11-23 Joseph Myers <joseph@codesourcery.com>
302
303 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
304 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
305 TFmode, IFmode and KFmode.
306
307 2016-11-23 Joseph Myers <joseph@codesourcery.com>
308
309 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
310 pattern.
311
312 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
313
314 * combine.c (change_zero_ext): Only change the mode of a hard register
315 destination if can_change_dest_mode holds for that.
316
317 2016-11-23 Jeff Law <law@redhat.com>
318
319 * varasm.c (assemble_name): Increase buffer size for name.
320
321 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
322
323 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
324
325 * doc/extend.texi: Constify first argument to __builtin_object_size.
326
327 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
328
329 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
330 to be used. Add brackets around macro argument.
331
332 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
333
334 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
335
336 2016-11-23 Jakub Jelinek <jakub@redhat.com>
337
338 PR sanitizer/69278
339 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
340 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
341
342 2016-11-23 Jakub Jelinek <jakub@redhat.com>
343
344 PR middle-end/69183
345 * omp-low.c (build_outer_var_ref): Change lastprivate argument
346 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
347 on worksharing constructs, treat it like clauses on simd construct.
348 Formatting fix.
349 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
350 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
351 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
352 of true as last argument to build_outer_var_ref.
353
354 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
355
356 * config/i386/i386.md (*movqi_internal): Calculate mode
357 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
358 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
359 (*k<logic><mode>): Calculate mode attribute depending on
360 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
361 (*andqi_1): Calculate mode attribute of alternative 3 depending
362 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
363 (kandn<mode>): Calculate mode attribute of alternative 2 depending
364 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
365 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
366 iterator. Calculate mode attribute of alternative 1 depending
367 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
368 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
369 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
370
371 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
372
373 PR middle-end/78153
374 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
375 * tree-vrp.c (extract_range_basic): Handle case for
376 CFN_BUILT_IN_STRLEN.
377
378 2016-11-23 Jeff Law <law@redhat.com>
379
380 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
381
382 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
383 in boolean context warning.
384
385 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
386
387 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
388
389 PR target/63250
390 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
391 (arm_fp16_type_node): ...This, make visibile.
392 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
393 arm_fp16_type_node.
394 (arm_init_simd_builtin_types): Likewise.
395 (arm_init_fp16_builtins): Likewise.
396 * config/arm/arm.c (arm_excess_precision): New.
397 (arm_floatn_mode): Likewise.
398 (TARGET_C_EXCESS_PRECISION): Likewise.
399 (TARGET_FLOATN_MODE): Likewise.
400 (arm_promoted_type): Only promote arm_fp16_type_node.
401 * config/arm/arm.h (arm_fp16_type_node): Declare.
402
403 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
404
405 * config/arm/arm.c (arm_convert_to_type): Delete.
406 (TARGET_CONVERT_TO_TYPE): Delete.
407 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
408 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
409 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
410 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
411 are in fast math mode, and have no single step hardware instruction.
412 (extendhfdf2): Only expand through SFmode if we don't have a
413 single-step hardware instruction.
414 * config/arm/vfp.md (*truncdfhf2): New.
415 (extendhfdf2): Likewise.
416
417 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
418
419 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
420 provides HFmode.
421
422 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
423
424 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
425 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
426 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
427 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
428 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
429 * doc/tm.texi: Regenerate.
430 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
431
432 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
433
434 * toplev.c (init_excess_precision): Delete most logic.
435 * tree.c (excess_precision_type): Rewrite to use
436 TARGET_EXCESS_PRECISION.
437 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
438 more generic fashion.
439 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
440 __STDC_WANT_IEC_60559_TYPES_EXT__.
441
442 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
443
444 * common.opt (fpermitted-flt-eval-methods): New.
445 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
446 * flag_types.h (permitted_flt_eval_methods): New.
447
448 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
449
450 * config/m68k/m68k.c (m68k_excess_precision): New.
451 (TARGET_C_EXCESS_PRECISION): Define.
452
453 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
454
455 * config/s390/s390.c (s390_excess_precision): New.
456 (TARGET_C_EXCESS_PRECISION): Define.
457
458 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
459
460 * config/i386/i386.c (ix86_excess_precision): New.
461 (TARGET_C_EXCESS_PRECISION): Define.
462
463 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
464
465 * target.def (excess_precision): New hook.
466 * target.h (flt_eval_method): New.
467 (excess_precision_type): Likewise.
468 * targhooks.c (default_excess_precision): New.
469 * targhooks.h (default_excess_precision): New.
470 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
471 * doc/tm.texi: Regenerate.
472
473 2016-11-23 Martin Sebor <msebor@redhat.com>
474
475 PR middle-end/78461
476 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
477 set the minimum number of bytes for an unknown string to zero.
478
479 2016-11-23 Martin Jambor <mjambor@suse.cz>
480 Martin Liska <mliska@suse.cz>
481
482 * hsa-builtins.def: New file.
483 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
484 * builtins.def: Include hsa-builtins.def.
485 (DEF_HSA_BUILTIN): New macro.
486 * dumpfile.h (OPTGROUP_OPENMP): Define.
487 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
488 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
489 GF_OMP_FOR_GRID_GROUP_ITER.
490 (gimple_omp_for_grid_phony): Added checking assert.
491 (gimple_omp_for_set_grid_phony): Likewise.
492 (gimple_omp_for_grid_intra_group): New function.
493 (gimple_omp_for_set_grid_intra_group): Likewise.
494 (gimple_omp_for_grid_group_iter): Likewise.
495 (gimple_omp_for_set_grid_group_iter): Likewise.
496 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
497 previosuly only distribute loop was permitted.
498 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
499 (grid_get_kernel_launch_attributes): Support multiple HSA grid
500 dimensions.
501 (grid_expand_omp_for_loop): Likewise and also support standalone
502 distribute constructs. New parameter INTRA_GROUP, updated both users.
503 (grid_expand_target_grid_body): Support standalone distribute
504 constructs.
505 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
506 (pass_data_expand_omp_ssa): Likewise.
507 (pass_data_omp_device_lower): Likewsie.
508 (pass_data_lower_omp): Likewise.
509 (pass_data_diagnose_omp_blocks): Likewise.
510 (pass_data_oacc_device_lower): Likewise.
511 (pass_data_omp_target_link): Likewise.
512 (grid_lastprivate_predicate): New function.
513 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
514 gridified loops.
515 (lower_omp_for): Support standalone distribute constructs.
516 (grid_prop): New type.
517 (grid_safe_assignment_p): Check for assignments to group_sizes, new
518 parameter GRID.
519 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
520 it to callee.
521 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
522 optimization info messages.
523 (grid_find_single_omp_among_assignments): Likewise.
524 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
525 (grid_parallel_clauses_gridifiable): New function.
526 (grid_inner_loop_gridifiable_p): Likewise.
527 (grid_dist_follows_simple_pattern): Likewise.
528 (grid_gfor_follows_tiling_pattern): Likewise.
529 (grid_call_permissible_in_distribute_p): Likewise.
530 (grid_handle_call_in_distribute): Likewise.
531 (grid_dist_follows_tiling_pattern): Likewise.
532 (grid_target_follows_gridifiable_pattern): Support standalone
533 distribute constructs.
534 (grid_var_segment): New enum.
535 (grid_mark_variable_segment): New function.
536 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
537 if a new argument says so.
538 (grid_process_grid_body): New function.
539 (grid_eliminate_combined_simd_part): Likewise.
540 (grid_mark_tiling_loops): Likewise.
541 (grid_mark_tiling_parallels_and_loops): Likewise.
542 (grid_process_kernel_body_copy): Support standalone distribute
543 constructs.
544 (grid_attempt_target_gridification): New grid variable holding overall
545 gridification state. Support standalone distribute constructs and
546 collapse clauses.
547 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
548 * hsa.h (hsa_bb): Add method method append_phi.
549 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
550 occurences in all files too.
551 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
552 (is_a_helper <hsa_insn_br *>::test): New function.
553 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
554 branch instructions.
555 (hsa_insn_signal): Make a direct descendant of
556 hsa_insn_basic. Add memorder constructor parameter and
557 m_memory_order and m_signalop member variables.
558 (hsa_insn_queue): Changed constructor parameters to common form.
559 Added m_segment and m_memory_order member variables.
560 (hsa_summary_t): Add private member function
561 process_gpu_implementation_attributes.
562 (hsa_function_summary): Rename m_binded_function to
563 m_bound_function.
564 (hsa_insn_basic_p): Remove typedef.
565 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
566 (hsa_op_reg_p): Remove typedef.
567 (hsa_function_representation): Change hsa_op_reg_p into plain
568 pointers.
569 (hsa_insn_phi): Removed new and delete operators.
570 (hsa_insn_br): Likewise.
571 (hsa_insn_cbr): Likewise.
572 (hsa_insn_sbr): Likewise.
573 (hsa_insn_cmp): Likewise.
574 (hsa_insn_mem): Likewise.
575 (hsa_insn_atomic): Likewise.
576 (hsa_insn_signal): Likewise.
577 (hsa_insn_seg): Likewise.
578 (hsa_insn_call): Likewise.
579 (hsa_insn_arg_block): Likewise.
580 (hsa_insn_comment): Likewise.
581 (hsa_insn_srctype): Likewise.
582 (hsa_insn_packed): Likewise.
583 (hsa_insn_cvt): Likewise.
584 (hsa_insn_alloca): Likewise.
585 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
586 (process_gpu_implementation_attributes): New function.
587 (link_functions): Move some functionality into it. Adjust after
588 renaming m_binded_functions to m_bound_functions.
589 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
590 to the list of instructions with no output registers.
591 (get_in_type): Return this if it is a register of
592 matching size.
593 (hsa_get_declaration_name): Moved to...
594 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
595 temporary string on an obstack instead from ggc.
596 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
597 down to two overloads.
598 (hsa_allocp_operand_address): Removed.
599 (hsa_allocp_operand_immed): Likewise.
600 (hsa_allocp_operand_reg): Likewise.
601 (hsa_allocp_operand_code_list): Likewise.
602 (hsa_allocp_operand_operand_list): Likewise.
603 (hsa_allocp_inst_basic): Likewise.
604 (hsa_allocp_inst_phi): Likewise.
605 (hsa_allocp_inst_mem): Likewise.
606 (hsa_allocp_inst_atomic): Likewise.
607 (hsa_allocp_inst_signal): Likewise.
608 (hsa_allocp_inst_seg): Likewise.
609 (hsa_allocp_inst_cmp): Likewise.
610 (hsa_allocp_inst_br): Likewise.
611 (hsa_allocp_inst_sbr): Likewise.
612 (hsa_allocp_inst_call): Likewise.
613 (hsa_allocp_inst_arg_block): Likewise.
614 (hsa_allocp_inst_comment): Likewise.
615 (hsa_allocp_inst_queue): Likewise.
616 (hsa_allocp_inst_srctype): Likewise.
617 (hsa_allocp_inst_packed): Likewise.
618 (hsa_allocp_inst_cvt): Likewise.
619 (hsa_allocp_inst_alloca): Likewise.
620 (hsa_allocp_bb): Likewise.
621 (hsa_obstack): New.
622 (hsa_init_data_for_cfun): Initialize obstack.
623 (hsa_deinit_data_for_cfun): Release memory of the obstack.
624 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
625 (hsa_op_reg::operator new): Likewise.
626 (hsa_op_address::operator new): Likewise.
627 (hsa_op_code_list::operator new): Likewise.
628 (hsa_op_operand_list::operator new): Likewise.
629 (hsa_insn_basic::operator new): Likewise.
630 (hsa_insn_phi::operator new): Likewise.
631 (hsa_insn_br::operator new): Likewise.
632 (hsa_insn_sbr::operator new): Likewise.
633 (hsa_insn_cmp::operator new): Likewise.
634 (hsa_insn_mem::operator new): Likewise.
635 (hsa_insn_atomic::operator new): Likewise.
636 (hsa_insn_signal::operator new): Likewise.
637 (hsa_insn_seg::operator new): Likewise.
638 (hsa_insn_call::operator new): Likewise.
639 (hsa_insn_arg_block::operator new): Likewise.
640 (hsa_insn_comment::operator new): Likewise.
641 (hsa_insn_srctype::operator new): Likewise.
642 (hsa_insn_packed::operator new): Likewise.
643 (hsa_insn_cvt::operator new): Likewise.
644 (hsa_insn_alloca::operator new): Likewise.
645 (hsa_init_new_bb): Likewise.
646 (hsa_bb::append_phi): New function.
647 (gen_hsa_phi_from_gimple_phi): Use it.
648 (get_symbol_for_decl): Fix dinstinguishing between
649 global and local functions. Put local variables into a segment
650 according to their attribute or static flag, if there is one.
651 (hsa_insn_br::hsa_insn_br): New.
652 (hsa_insn_br::operator new): Likewise.
653 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
654 (query_hsa_grid_nodim): New function.
655 (multiply_grid_dim_characteristics): Likewise.
656 (gen_get_num_threads): Likewise.
657 (gen_get_num_teams): Reimplemented.
658 (gen_get_team_num): Likewise.
659 (gen_hsa_insns_for_known_library_call): Updated calls to the above
660 helper functions.
661 (get_memory_order_name): Removed.
662 (get_memory_order): Likewise.
663 (hsa_memorder_from_tree): New function.
664 (gen_hsa_ternary_atomic_for_builtin): Renamed to
665 gen_hsa_atomic_for_builtin, can also create signals.
666 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
667 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
668 (hsa_insn_atomic): Fix function comment.
669 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
670 ancestor constructor and initialization of new member variables.
671 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
672 member variables.
673 (hsa_get_host_function): Handle functions with no bound CPU
674 implementation. Fix binded to bound.
675 (get_brig_function_name): Likewise.
676 (HSA_SORRY_ATV): Remove semicolon after macro.
677 (HSA_SORRY_AT): Likewise.
678 (omp_simple_builtin::generate): Add missing semicolons.
679 (hsa_insn_phi::operator new): Removed.
680 (hsa_insn_br::operator new): Likewise.
681 (hsa_insn_cbr::operator new): Likewise.
682 (hsa_insn_sbr::operator new): Likewise.
683 (hsa_insn_cmp::operator new): Likewise.
684 (hsa_insn_mem::operator new): Likewise.
685 (hsa_insn_atomic::operator new): Likewise.
686 (hsa_insn_signal::operator new): Likewise.
687 (hsa_insn_seg::operator new): Likewise.
688 (hsa_insn_call::operator new): Likewise.
689 (hsa_insn_arg_block::operator new): Likewise.
690 (hsa_insn_comment::operator new): Likewise.
691 (hsa_insn_srctype::operator new): Likewise.
692 (hsa_insn_packed::operator new): Likewise.
693 (hsa_insn_cvt::operator new): Likewise.
694 (hsa_insn_alloca::operator new): Likewise.
695 (get_symbol_for_decl): Accept CONST_DECLs, put them to
696 readonly segment.
697 (gen_hsa_addr): Also process CONST_DECLs.
698 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
699 copies.
700 (gen_hsa_unary_operation): Make sure the function does
701 not use bittype source type for firstbit and lastbit operations.
702 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
703 source type.
704 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
705 instruction.
706 (emit_branch_insn): Renamed to emit_cond_branch_insn.
707 Emit the width stored in the class.
708 (emit_generic_branch_insn): New function.
709 (emit_insn): Call emit_generic_branch_insn.
710 (emit_signal_insn): Remove obsolete comment. Update
711 member variable name, pick a type according to profile.
712 (emit_alloca_insn): Remove obsolete comment.
713 (emit_atomic_insn): Likewise.
714 (emit_queue_insn): Get segment and memory order from the IR object.
715 (hsa_brig_section): Make allocate_new_chunk, chunks
716 and cur_chunk provate, add a default NULL parameter to add method.
717 (hsa_brig_section::add): Added a new parameter, store pointer to
718 output data there if it is non-NULL.
719 (emit_function_directives): Use this new parameter instead of
720 calculating the pointer itself, fix function comment.
721 (hsa_brig_emit_function): Add forgotten endian conversion.
722 (hsa_output_kernels): Remove unnecessary building of
723 kernel_dependencies_vector_type.
724 (emit_immediate_operand): Declare.
725 (emit_directive_variable): Also emit initializers of CONST_DECLs.
726 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
727 (verify_function_arguments): Properly detect variadic
728 arguments.
729 * hsa-dump.c (hsa_width_specifier_name): New function.
730 (dump_hsa_insn_1): Dump generic branch instructions, update signal
731 member variable name. Special dumping for queue objects.
732 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
733 m_binded_functions to m_bound_functions. Copy externally visible flag
734 to the node.
735 (ipa_hsa_write_summary): Likewise.
736 (ipa_hsa_read_section): Likewise.
737
738 2016-11-23 Richard Biener <rguenther@suse.de>
739
740 PR tree-optimization/78396
741 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
742 vectorize try vectorizing an if-converted body using BB vectorization.
743
744 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
745 Alan Hayward <alan.hayward@arm.com>
746 David Sherwood <david.sherwood@arm.com>
747
748 * rtlanal.c (subreg_get_info): Use more local variables.
749 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
750 occupies at least one register. Assume that full hard registers
751 have consistent endianness. Share previously-duplicated if block.
752 Rework the main handling so that it operates on independently-
753 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
754 to check lowpart offsets, without trying to find an equivalent
755 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
756 as a final register-endianness correction.
757
758 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
759
760 PR target/77881
761 PR bootstrap/78390
762 PR target/78438
763 PR bootstrap/78477
764 * combine.c (make_compound_operation_int): Do not convert a subreg of
765 a non-constant logical shift right to a zero_extract. Handle the case
766 where some zero bits have been shifted into the range covered by that
767 subreg.
768
769 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
770 Alan Hayward <alan.hayward@arm.com>
771 David Sherwood <david.sherwood@arm.com>
772
773 * rtl.h (subreg_size_offset_from_lsb): Declare.
774 (subreg_offset_from_lsb): New function.
775 (subreg_size_lowpart_offset): Declare.
776 (subreg_lowpart_offset): Turn into an inline function.
777 (subreg_size_highpart_offset): Declare.
778 (subreg_highpart_offset): Turn into an inline function.
779 * emit-rtl.c (subreg_size_lowpart_offset): New function.
780 (subreg_size_highpart_offset): Likewise
781 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
782
783 2016-11-23 Richard Biener <rguenther@suse.de>
784
785 PR tree-optimization/78482
786 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
787 (remove_forwarder_block_with_phi): When merging with a loop
788 header creates a new latch reset number of iteration information
789 of the loop.
790
791 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
792
793 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
794 (*ashrsi3_extend0): ...this. Accept constant integers.
795 (*ashrsi3_extend2): Rename to...
796 (*ashrsi3_extend1): ...this.
797 (*ashrsi3_extend2): New pattern.
798 (*lshrsi3_extend1): Accept constant integers.
799 (*lshrsi3_extend2): Fix condition on operand 2.
800
801 2016-11-23 Martin Liska <mliska@suse.cz>
802
803 * config/i386/i386.c: Initialize function pointer to NULL.
804
805 2016-11-23 Bin Cheng <bin.cheng@arm.com>
806
807 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
808 for A == C1 ? A : C2 to below.
809 * match.pd: Move from above to here:
810 (cond (eq (convert1? x) c1) (convert2? x) c2)
811 -> (cond (eq x c1) c1 c2).
812
813 2016-11-23 Bin Cheng <bin.cheng@arm.com>
814
815 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
816 for A cmp C1 ? A : C2 to below, also simplify remaining code.
817 * match.pd: Move and extend simplification from above to here:
818 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
819 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
820 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
821
822 2016-11-23 Martin Liska <mliska@suse.cz>
823 Martin Jambor <mjambor@suse.cz>
824
825 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
826
827 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
828
829 PR target/78213
830 * opts.c (finish_options): Set -fsyntax-only if running self tests.
831
832 2016-11-23 Richard Biener <rguenther@suse.de>
833
834 PR middle-end/71762
835 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
836 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
837
838 2016-11-23 Richard Biener <rguenther@suse.de>
839
840 PR lto/78472
841 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
842 fields.
843
844 2016-11-23 Richard Biener <rguenther@suse.de>
845 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
846
847 PR tree-optimization/78154
848 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
849 returns it's argument and the argument is nonnull.
850 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
851 ATT_RETNONNULL_NOTHROW_LEAF.
852 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
853 ATTR_RETNONNULL_NOTHROW_LEAF.
854 (BUILT_IN_STPCPY): Likewise.
855 (BUILT_IN_STPNCPY): Likewise.
856 (BUILT_IN_MEMPCPY_CHK): Likewise.
857 (BUILT_IN_STPCPY_CHK): Likewise.
858 (BUILT_IN_STPNCPY_CHK): Likewise.
859 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
860 (BUILT_IN_STRNCAT): Likewise.
861 (BUILT_IN_STRNCPY): Likewise.
862 (BUILT_IN_MEMSET_CHK): Likewise.
863 (BUILT_IN_STRCAT_CHK): Likewise.
864 (BUILT_IN_STRCPY_CHK): Likewise.
865 (BUILT_IN_STRNCAT_CHK): Likewise.
866 (BUILT_IN_STRNCPY_CHK): Likewise.
867
868 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
869
870 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
871 * fold-const.h (tree_expr_nonzero_p) : Declare.
872 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
873
874 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
875
876 * system.h (HAVE_DESIGNATED_INITIALIZERS,
877 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
878 "defined" in macros.
879 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
880 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
881 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
882
883 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
884
885 PR target/60300
886 * config/avr/constraints.md (Csp): Widen range to [-11..6].
887 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
888 of RCALLs in prologue to 3.
889
890 2016-11-22 Michael Collison <michael.collison@arm.com>
891
892 * config/aarch64/aarch64-protos.h
893 (aarch64_and_split_imm1, aarch64_and_split_imm2)
894 (aarch64_and_bitmask_imm): New prototypes
895 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
896 New overloaded function to create bit mask covering the
897 lowest to highest bits set.
898 (aarch64_and_split_imm2): New overloaded functions to create bit
899 mask of zeros between first and last bit set.
900 (aarch64_and_bitmask_imm): New function to determine if a integer
901 is a valid two instruction "and" operation.
902 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
903 allowing wider range of constants with "and" operations.
904 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
905 "and" operator from matching restricted constant range used for
906 ior and xor operators.
907 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
908 for constants in "and" operantions.
909 (UsP constraint): New DImode constraint for constants
910 in "and" operations.
911 * config/aarch64/iterators.md (lconst2): New mode iterator.
912 (LOGICAL2): New code iterator.
913 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
914 predicate.
915 (aarch64_logical_and_operand): New predicate allowing extended
916 constants for "and" operations.
917
918 2016-11-22 Walter Lee <walt@tilera.com>
919
920 * config/tilegx/tilegx.md (trap): New pattern.
921 * config/tilepro/tilepro.md (trap): Likewise.
922
923 2016-11-22 Walter Lee <walt@tilera.com>
924
925 * config/tilegx/tilegx.md (*zero_extract): Use
926 define_insn_and_split instead of define_insn; Handle pos + size >
927 64.
928 (*sign_extract): Likewise.
929
930 2016-11-22 Marek Polacek <polacek@redhat.com>
931
932 PR tree-optimization/78455
933 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
934
935 2016-11-22 Ian Lance Taylor <iant@golang.org>
936
937 PR go/78431
938 PR go/78432
939 * godump.c (go_format_type): Always pass alignment as 1 when
940 calling go_append_padding at end of struct/union.
941
942 2016-11-22 Jakub Jelinek <jakub@redhat.com>
943
944 PR target/78451
945 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
946 _mm512_setzero_hi): Removed.
947 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
948 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
949 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
950 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
951 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
952 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
953 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
954 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
955 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
956 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
957 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
958 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
959 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
960 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
961 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
962 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
963 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
964 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
965 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
966 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
967 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
968 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
969 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
970 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
971 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
972 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
973 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
974 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
975 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
976 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
977 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
978 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
979 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
980 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
981 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
982 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
983 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
984 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
985 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
986 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
987 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
988 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
989 _mm512_setzero_qi or _mm512_setzero_hi.
990 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
991 _mm512_maskz_dbsad_epu8): Formatting fixes.
992 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
993 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
994 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
995 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
996 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
997 _mm512_setzero_qi or _mm512_setzero_hi.
998
999 2016-11-22 Nathan Sidwell <nathan@acm.org>
1000
1001 * gcc-ar.c (main): Fix indentation.
1002 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
1003 * ggc-page.c (move_ptes_to_front): Fix formatting.
1004 * hsa-dump.c (dump_has_cfun): Fix indentation.
1005 * sel-sched-ir.h: Remove trailing blank lines.
1006
1007 2016-11-22 Jakub Jelinek <jakub@redhat.com>
1008 Alexander Monakov <amonakov@ispras.ru>
1009
1010 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
1011 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
1012 (omp_clause_code_name): Add _simt_ name.
1013 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
1014 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
1015 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
1016 (scan_omp_simd): New function.
1017 (scan_omp_1_stmt): Use it in target regions if needed.
1018 (omp_max_vf): Don't max with omp_max_simt_vf.
1019 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
1020 OMP_CLAUSE__SIMT_ is present.
1021 (lower_rec_input_clauses): Compute maybe_simt from presence of
1022 OMP_CLAUSE__SIMT_.
1023 (lower_lastprivate_clauses): Likewise.
1024 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
1025 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
1026 * internal-fn.def (GOMP_USE_SIMT): New internal function.
1027 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
1028
1029 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
1030
1031 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
1032 (expand_GOMP_SIMT_VF): New.
1033 (expand_GOMP_SIMT_LAST_LANE): New.
1034 (expand_GOMP_SIMT_ORDERED_PRED): New.
1035 (expand_GOMP_SIMT_VOTE_ANY): New.
1036 (expand_GOMP_SIMT_XCHG_BFLY): New.
1037 (expand_GOMP_SIMT_XCHG_IDX): New.
1038 * internal-fn.def (GOMP_SIMT_LANE): New.
1039 (GOMP_SIMT_VF): New.
1040 (GOMP_SIMT_LAST_LANE): New.
1041 (GOMP_SIMT_ORDERED_PRED): New.
1042 (GOMP_SIMT_VOTE_ANY): New.
1043 (GOMP_SIMT_XCHG_BFLY): New.
1044 (GOMP_SIMT_XCHG_IDX): New.
1045 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
1046 (create_omp_child_function): ...here. Set "omp target entrypoint"
1047 or "omp declare target" attribute based on is_gimple_omp_offloaded.
1048 (omp_max_simt_vf): New. Use it...
1049 (omp_max_vf): ...here.
1050 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
1051 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
1052 (lower_omp_ordered): Likewise, for "ordered" lowering.
1053 (expand_omp_simd): Add SIMT transforms.
1054 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
1055 (execute_omp_device_lower): New.
1056 (pass_data_omp_device_lower): New.
1057 (pass_omp_device_lower): New pass.
1058 (make_pass_omp_device_lower): New.
1059 * passes.def (pass_omp_device_lower): Position new pass.
1060 * tree-pass.h (PROP_gimple_lomp_dev): Define.
1061 (make_pass_omp_device_lower): Declare.
1062
1063 2016-11-22 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR target/78451
1066 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
1067 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
1068 _mm_setzero_di.
1069 (_mm_maskz_load_epi64): Likewise.
1070 (_mm_setzero_hi): Removed.
1071 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
1072 _mm_setzero_di.
1073 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
1074 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
1075 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
1076 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
1077 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
1078 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
1079 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
1080 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
1081 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
1082 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
1083 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
1084 Likewise.
1085 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
1086 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
1087 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
1088 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
1089 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
1090 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
1091 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
1092 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
1093 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
1094 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
1095 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
1096 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
1097 instead of _mm_setzero_hi.
1098 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
1099 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
1100 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
1101 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
1102 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
1103 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
1104 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
1105 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
1106 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
1107 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
1108 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
1109 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
1110 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
1111 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
1112 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
1113 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
1114 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
1115 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
1116 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
1117 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
1118 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
1119 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
1120 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
1121 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
1122 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
1123 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
1124 _mm_setzero_di.
1125 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
1126 instead of _mm_setzero_hi.
1127 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
1128 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
1129 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
1130 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
1131 _mm_setzero_si128 instead of _mm_setzero_di.
1132 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
1133 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
1134 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
1135 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
1136 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
1137 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
1138 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
1139 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
1140 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
1141 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
1142 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
1143 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
1144 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
1145 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
1146 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
1147 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
1148 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
1149 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
1150 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
1151 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
1152 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
1153 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
1154 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
1155 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
1156 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
1157 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
1158 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
1159 _mm512_maskz_insertf32x8): Formatting fixes.
1160 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
1161 _mm_setzero_si128 instead of _mm_setzero_di.
1162 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
1163 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
1164 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
1165 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
1166 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
1167 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
1168 _mm_setzero_si128 instead of _mm_setzero_di.
1169 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
1170 Likewise in macros.
1171 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
1172 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
1173 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
1174 _mm_setzero_si128 instead of _mm_setzero_hi.
1175 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
1176 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
1177 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
1178 instead of _mm_setzero_di.
1179 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
1180 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
1181 _mm_setzero_hi.
1182 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
1183 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
1184 _mm_setzero_hi.
1185 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
1186 _mm_setzero_di.
1187 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
1188 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
1189 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
1190
1191 2016-11-22 Carl Love <cel@us.ibm.com>
1192
1193 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
1194 equal and vector compare not equal. The vector compares take two
1195 arguments of type vector bool char, vector bool short, vector bool int,
1196 vector bool long long with the same return type.
1197 * doc/extend.texi: Update built-in documentation file for the new
1198 powerpc built-ins.
1199
1200 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
1201
1202 * Makefile.in ($(lang_checks_parallelized)): Fix detection
1203 of -j argument.
1204
1205 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1206
1207 * config.gcc: Allow new rmprofile value for configure option
1208 --with-multilib-list.
1209 * config/arm/t-rmprofile: New file.
1210 * doc/install.texi (--with-multilib-list): Document new rmprofile value
1211 for ARM.
1212
1213 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1214
1215 PR target/78439
1216 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
1217 register operand in alternatives 4,5,6.
1218
1219 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1220
1221 PR target/77904
1222 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
1223 in save register mask if it is needed.
1224
1225 2016-11-22 Jakub Jelinek <jakub@redhat.com>
1226
1227 PR tree-optimization/78436
1228 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
1229 (shift_bytes_in_array, shift_bytes_in_array_right,
1230 merged_store_group::apply_stores): Formatting fixes.
1231 (clear_bit_region): Likewise. Use memset.
1232 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
1233 instead of EXPR and inerted instead of inserted. Use memset instead
1234 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
1235 if shift_amnt is 0.
1236
1237 PR middle-end/78416
1238 * expmed.c (expand_divmod): Use wide_int for computation of
1239 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
1240 Use size <= HOST_BITS_PER_WIDE_INT instead of
1241 HOST_BITS_PER_WIDE_INT >= size.
1242
1243 PR tree-optimization/78445
1244 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
1245 any_complicated_phi, version loop even if flag_tree_loop_if_convert
1246 is 1. Formatting fix.
1247
1248 2016-11-22 Martin Liska <mliska@suse.cz>
1249
1250 PR ipa/78309
1251 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
1252 (sem_function::get_hash): Use the new field.
1253 (sem_function::parse): Remove an argument from ctor.
1254 (sem_variable::parse): Likewise.
1255 (sem_variable::get_hash): Use the new field.
1256 (sem_item_optimizer::read_section): Use new ctor and set hash.
1257 * ipa-icf.h: _hash is removed from sem_item::sem_item,
1258 sem_variable::sem_variable, sem_function::sem_function.
1259
1260 2016-11-21 Jeff Law <law@redhat.com>
1261
1262 PR target/68538
1263 * config/cris/cris.md: Don't call copy_to_mode_reg unless
1264 can_create_pseudo_p is true.
1265
1266 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1267
1268 PR target/68803
1269 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
1270 *rotldi3_insert_7): New define_insns.
1271
1272 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1273
1274 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
1275 so that DImode can be allocated to FP/vector registers in more
1276 cases, and we can avoid direct move operations. If the register
1277 needs reloading, prefer GPRs over FP/vector registers. In the
1278 case of FPR vs. Altivec registers, prefer FPR registers unless we
1279 have the ISA 3.0 reg+offset scalar instructions.
1280 (movdi_internal64): Likewise.
1281
1282 2016-11-21 Jakub Jelinek <jakub@redhat.com>
1283
1284 PR middle-end/67335
1285 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
1286 for tmp simd array if DECL_NAME (parm) is NULL.
1287
1288 2016-11-20 Jeff Law <law@redhat.com>
1289
1290 PR target/25128
1291 * config/m68k/predicates.md (swap_peephole_relational_operator): New
1292 predicate.
1293 * config/m68k/m68k.md (relational tests against 65535/65536): New
1294 peephole2.
1295
1296 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1297
1298 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
1299
1300 2016-11-21 Martin Sebor <msebor@redhat.com>
1301
1302 * doc/invoke.texi (-fprintf-return-value): Document that option
1303 is enabled by default.
1304
1305 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1306
1307 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
1308 for-loop declaration of loop variable.
1309 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
1310 * config/avr/avr.c (avr_popcount_each_byte)
1311 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
1312 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
1313 (avr_expand_epilogue, avr_function_arg_advance)
1314 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
1315 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
1316 (avr_adjust_reg_alloc_order, output_reload_in_const)
1317 (avr_conditional_register_usage, avr_find_unused_d_reg)
1318 (avr_map_decompose, avr_fold_builtin): Same.
1319
1320 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1321
1322 * config/avr/avr.c (avr_popcount): Remove static function.
1323 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
1324
1325 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
1326
1327 * arm.opt (mapcs-float): Delete option.
1328 * arm.c (arm_option_override): Remove hunk relating to
1329 TARGET_APCS_FLOAT.
1330 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
1331
1332 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
1333
1334 * tree-tailcall.c (process_assignment): Simplify the check for
1335 a valid copy, allowing the source to be a local variable as
1336 well as an SSA name.
1337 (find_tail_calls): Allow copies between local variables to follow
1338 the call. Allow the result to be stored in any local variable,
1339 even if it's an aggregate.
1340 (eliminate_tail_call): Check whether the result is an SSA name
1341 before updating its SSA_NAME_DEF_STMT.
1342
1343 2016-11-21 David Malcolm <dmalcolm@redhat.com>
1344
1345 PR preprocessor/78324
1346 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1347 -ftrack-macro-expansion has a value other than 2.
1348
1349 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1350
1351 PR rtl-optimization/78400
1352 * shrink-wrap.c (try_shrink_wrapping_separate): Call
1353 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
1354 and df_update_exit_block_uses.
1355
1356 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1357
1358 PR c++/71973
1359 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
1360 new default-enabled warning..
1361 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
1362 (BT_PTR_CONST_STRING): Updated.
1363 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
1364 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
1365 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
1366 (strftime): Update builtin function.
1367 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
1368 * tree.h (const_tm_ptr_type_node): New type node.
1369 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
1370 const_tm_ptr_type_node.
1371
1372 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1373
1374 PR tree-optimization/78413
1375 * tree-if-conv.c (versionable_outer_loop_p): Require that both
1376 inner and outer loop latches have single predecessors.
1377
1378 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1379
1380 PR target/78093
1381 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
1382 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
1383
1384 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1385
1386 * rtl.h: Adjust prototype.
1387 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
1388 (dead_or_set_regno_p): Likewise.
1389
1390 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1391
1392 * rtl.h: Adjust prototype.
1393 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
1394
1395 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1396
1397 * function.c (contains): Change argument type to rtx_insn *.
1398 (prologue_contains): Likewise.
1399 (epilogue_contains): Likewise.
1400 (prologue_epilogue_contains): Likewise.
1401 * function.h: Adjust prototype.
1402
1403 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1404
1405 * optabs.c (emit_libcall_block): Change argument type to
1406 rtx_insn *.
1407 * optabs.h: Adjust prototype.
1408
1409 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1410
1411 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
1412 (fixup_reorder_chain): Adjust.
1413 * cfgrtl.h: Adjust prototype.
1414
1415 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1416
1417 * rtl.h: Adjust prototype.
1418 * rtlanal.c (replace_label_in_insn): Change argument type to
1419 rtx_insn *.
1420
1421 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1422
1423 * config/v850/v850.c (expand_prologue): Adjust.
1424 (expand_epilogue): Likewise.
1425 * expr.c (init_expr_target): Likewise.
1426 * genrecog.c (print_subroutine): Always make the argument type
1427 rtx_insn *.
1428 * recog.h: Adjust prototype.
1429
1430 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1431
1432 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
1433 up variables to make some rtx_insn *.
1434 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1435 * config/arc/arc.c: Likewise.
1436 * config/arm/arm.c: Likewise.
1437 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
1438 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
1439 Likewise.
1440 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1441
1442 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1443
1444 * config/arm/arm.c (legitimize_pic_address): Change to use
1445 rtx_insn * as the type of variables.
1446 (arm_pic_static_addr): Likewise.
1447 (arm_emit_movpair): Likewise.
1448 * config/c6x/c6x.c (reorg_split_calls): Likewise.
1449 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
1450 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
1451 * config/frv/frv.md: Likewise.
1452 * config/i386/i386-protos.h: Likewise.
1453 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1454 (ix86_split_fp_branch): Likewise.
1455 (predict_jump): Likewise.
1456 * config/ia64/ia64.c: Likewise.
1457 * config/mcore/mcore.c: Likewise.
1458 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1459 * config/s390/s390.c: Likewise.
1460 * config/s390/s390.md: Likewise.
1461 * config/spu/spu.md: Likewise.
1462 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
1463 * lower-subreg.c (resolve_simple_move): Likewise.
1464
1465 2016-11-20 Jeff Law <law@redhat.com>
1466
1467 PR target/48551
1468 * reload.h (struct target_reload): Make x_double_reg_address_ok
1469 be per-mode rather.
1470 * reload.c (find_reloads_address): Check if double_reg_address_ok
1471 is true for the mode of the memory reference.
1472 * reload1.c (init_reload): Initialize double_reg_address_ok for
1473 each mode.
1474
1475 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
1476
1477 PR middle-end/61409
1478 * tree-ssa-uninit.c: Define new global max_phi_args.
1479 (compute_uninit_opnds_pos): Use max_phi_args.
1480 (prune_uninit_phi_opnds): Same.
1481 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
1482 missing NUM_PREDS in function comment.
1483 (can_one_predicate_be_invalidated_p): New.
1484 (can_chain_union_be_invalidated_p): New.
1485 (flatten_out_predicate_chains): New.
1486 (uninit_ops_invalidate_phi_use): New.
1487 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
1488
1489 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1490
1491 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
1492 * match.pd (A /[ex] B CMP C): New simplifications.
1493
1494 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1495
1496 * match.pd (0 / X, X / X, X % X): New simplifications.
1497
1498 2016-11-19 Jakub Jelinek <jakub@redhat.com>
1499
1500 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
1501 when checking if callee's isa flags are subset of caller's isa flags.
1502 Fix comment wording.
1503
1504 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
1505 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
1506 instead and using = 0 instead of &= 0.
1507
1508 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
1509 ix86_add_new_builtins): Formatting fixes.
1510 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
1511 (ix86_get_builtin): Likewise.
1512
1513 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
1514 don't initialize it, don't use it for the case where it isn't
1515 provable %{z} nor using the same argument, instead move merge
1516 argument into a new pseudo and use that as target. Formatting fixes.
1517
1518 2016-11-19 Jeff Law <law@redhat.com>
1519
1520 PR target/25111
1521 * config/m68k/m68k.md (bsetdreg): New pattern.
1522 (bchgdreg, bclrdreg): Likewise.
1523
1524 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
1525
1526 PR target/78426
1527 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1528 instead of force_reg.
1529 (sh_expand_setmem): Likewise.
1530
1531 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
1532
1533 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
1534
1535 2016-11-18 Walter Lee <walt@tilera.com>
1536
1537 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1538 end-of-bundle marker for consecutive barriers.
1539
1540 2016-11-18 Walter Lee <walt@tilera.com>
1541
1542 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1543
1544 2016-11-18 Jakub Jelinek <jakub@redhat.com>
1545
1546 PR middle-end/78419
1547 * multiple_target.c (get_attr_len): Start with argnum and increment
1548 argnum on every arg. Use strchr in a loop instead of counting commas
1549 manually.
1550 (get_attr_str): Increment argnum for every comma in the string.
1551 (separate_attrs): Use for instead of while loop, simplify.
1552 (expand_target_clones): Rename defenition argument to definition.
1553 Free attrs and attr_str even when diagnosing errors. Temporarily
1554 change input_location around targetm.target_option.valid_attribute_p
1555 calls. Don't emit warning or errors if that function fails.
1556
1557 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
1558
1559 PR debug/78191
1560 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
1561 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
1562 abbrev_opt_base_type_end only by increasing die_abbrev, before
1563 any other dies.
1564 (optimize_abbrev_table): Don't change abbrev numbers of
1565 base types and CU or optimize implicit consts in them if
1566 calc_base_type_die_sizes has been called during build_abbrev_table.
1567 (calc_base_type_die_sizes): If abbrev_opt_start, set
1568 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
1569
1570 2016-11-18 Jeff Law <law@redhat.com>
1571
1572 PR target/25112
1573 * config/m68k/m68k.c (moveq feeding equality comparison): New
1574 peepholes.
1575 * config/m68k/predicates.md (addq_subq_operand): New predicate.
1576 (equality_comparison_operator): Likewise.
1577
1578 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1579
1580 * rtlanal.c (load_extend_op): Move to...
1581 * rtl.h: ...here and make inline.
1582
1583 2016-11-18 Terry Guo <terry.guo@arm.com>
1584 Thomas Preud'homme <thomas.preudhomme@arm.com>
1585
1586 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
1587 * config/arm/arm-opts.h: Include arm-flags.h.
1588 (struct arm_arch_core_flag): Define.
1589 (arm_arch_core_flags): Define.
1590 * config/arm/arm-protos.h: Include arm-flags.h
1591 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
1592 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
1593 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
1594 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
1595 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
1596 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
1597 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
1598 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
1599 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
1600 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
1601 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
1602 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
1603 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
1604 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
1605 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
1606 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
1607 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
1608 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
1609 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
1610 ARM_FSET_CPU_SUBSET): Move to ...
1611 * config/arm/arm-flags.h: This new file.
1612 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
1613 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
1614 (TARGET_MODE_SPECS): Define.
1615 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
1616
1617 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1618
1619 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
1620 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
1621 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
1622 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
1623 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
1624 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
1625 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
1626 missing and make value unsigned.
1627 (arm_feature_set): Use unsigned entries instead of unsigned long.
1628
1629 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1630
1631 Re-apply after PR bootstrap/77359 is fixed:
1632 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1633
1634 * explow.c (get_dynamic_stack_size): Take known alignment of stack
1635 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
1636 size needed.
1637
1638 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1639
1640 PR bootstrap/77359
1641 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
1642 variables in functions calling alloca. Also update the ASCII
1643 drawings.
1644 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
1645 (STACK_DYNAMIC_OFFSET): Likewise.
1646 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
1647 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
1648 macros to aix.h.
1649
1650 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1651 Alan Hayward <alan.hayward@arm.com>
1652 David Sherwood <david.sherwood@arm.com>
1653
1654 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
1655 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
1656 (add_const_value_attribute): Likewise.
1657 * explow.c (plus_constant): Likewise.
1658 * expmed.c (expand_mult, make_tree): Likewise.
1659 * expr.c (convert_modes): Likewise.
1660 * loop-doloop.c (doloop_optimize): Likewise.
1661 * postreload.c (reload_cse_simplify_set): Likewise.
1662 * simplify-rtx.c (simplify_const_unary_operation): Likewise
1663 (simplify_binary_operation_1, simplify_const_binary_operation):
1664 Likewise.
1665 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
1666 * wide-int.h: Update documentation to recommend rtx_mode_t
1667 instead of std::make_pair.
1668
1669 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1670 Alan Hayward <alan.hayward@arm.com>
1671 David Sherwood <david.sherwood@arm.com>
1672
1673 * tree.h (SET_DECL_MODE): New macro.
1674 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
1675 (expand_gimple_basic_block): Likewise.
1676 * function.c (split_complex_args): Likeise.
1677 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1678 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
1679 * stor-layout.c (layout_decl, relayout_decl): Likewise.
1680 (finish_bitfield_representative): Likewise.
1681 * tree.c (make_node_stat): Likewise.
1682 * tree-inline.c (remap_ssa_name): Likewise.
1683 (tree_function_versioning): Likewise.
1684 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1685 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1686 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1687 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1688 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1689 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1690 * varasm.c (make_debug_expr_from_rtl): Likewise.
1691
1692 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
1693
1694 PR rtl-optimization/71785
1695 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
1696 (duplicate_computed_gotos): New function.
1697 (pass_duplicate_computed_gotos::execute): Rewrite.
1698
1699 2016-11-17 Jeff Law <law@redhat.com>
1700
1701 PR target/47192
1702 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
1703 barrier prior to deallocating the stack.
1704
1705 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
1708 to make better use of cmem loads in the case where a single bit is
1709 being accessed.
1710 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
1711
1712 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
1713
1714 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
1715 F_AVX5124FMAPS.
1716 (isa_names_table): Handle new features.
1717
1718 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
1719 Andrew Senkevich <andrew.senkevich@intel.com>
1720
1721 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
1722 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
1723 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
1724 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
1725 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
1726 * config/i386/avx5124fmapsintrin.h: New file.
1727 * config/i386/avx5124vnniwintrin.h: Ditto.
1728 * config/i386/constraints.md (h): New constraint.
1729 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
1730 * config/i386/driver-i386.c (host_detect_local_cpu):
1731 Detect avx5124fmaps, avx5124vnniw.
1732 * config/i386/i386-builtin-types.def: Add types
1733 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
1734 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
1735 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
1736 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
1737 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
1738 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
1739 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
1740 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
1741 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
1742 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
1743 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
1744 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
1745 __builtin_ia32_vp4dpwssds_mask): New.
1746 * config/i386/i386-c.c (ix86_target_macros_internal):
1747 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
1748 * config/i386/i386-modes.def: Fixed comment typos, added new
1749 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
1750 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
1751 -mavx5124vnniw.
1752 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
1753 (ix86_option_override_internal): Handle new options.
1754 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
1755 avx5124vnniw.
1756 (ix86_expand_builtin): Handle new builtins.
1757 (ix86_additional_allocno_class_p): New.
1758 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
1759 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
1760 (reg_class): Add MOD4_SSE_REGS.
1761 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
1762 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
1763 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
1764 avx5124vnniwintrin.h.
1765 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
1766 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
1767 (define_mode_iterator IMOD4): New.
1768 (define_mode_attr imod4_narrow): Ditto.
1769 (define_insn "mov<mode>"): Ditto.
1770 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1771 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1772 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1773 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1774 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1775 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1776 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1777 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1778 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1779 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1780 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1781 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1782 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1783 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1784 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1785 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1786 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1787 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1788 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1789 * genmodes.c (mode_size_inline): Extend return type.
1790 * machmode.h (mode_size, mode_base_align): Extend type.
1791
1792 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
1793
1794 PR target/78101
1795 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1796 the appropriate checks for SFmode/DFmode load/stores in GPR
1797 registers.
1798 (fusion_addis_mem_combo_store): Likewise.
1799 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1800 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1801 d-form instructions for traditional Altivec registers.
1802 (emit_fusion_p9_load): Likewise.
1803 (emit_fusion_p9_store): Likewise.
1804 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1805 early clobber from scratch register. Do not match if the register
1806 being stored is the scratch register.
1807 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1808 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1809 instructions for traditional Altivec registers.
1810 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1811 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1812 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1813
1814 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1815
1816 PR target/77933
1817 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1818 being live in the function and lr needing to be saved. Distinguish
1819 between already saved pushable registers and registers to push.
1820 Check for LR being an available pushable register.
1821
1822 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1823
1824 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1825 string input is a string constant.
1826 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1827 via cmpstrnsi even if neither string is constant.
1828
1829 2016-11-17 Jakub Jelinek <jakub@redhat.com>
1830
1831 PR middle-end/78201
1832 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1833 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1834 instead, return false if it is NULL, or doesn't fit into uhwi, or
1835 is larger or equal to targetm.max_anchor_offset.
1836
1837 2016-11-17 Pip Cet <pipcet@gmail.com>
1838 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 PR rtl-optimization/78355
1841 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1842 needs to deal with unaligned accesses.
1843 * doc/tm.texi: Regenerate.
1844 * lra-constraints.c (simplify_operand_subreg): Only invoke
1845 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1846
1847 2016-11-17 David Malcolm <dmalcolm@redhat.com>
1848
1849 * input.c (selftest::test_lexer_string_locations_long_line): New
1850 function.
1851 (selftest::test_lexer_string_locations_raw_string_multiline): New
1852 function.
1853 (selftest::input_c_tests): Call the new functions, via
1854 for_each_line_table_case.
1855
1856 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1857
1858 * config/aarch64/aarch64.md (mov<mode>): Call
1859 aarch64_split_dimode_const_store on DImode constant stores.
1860 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1861 New prototype.
1862 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1863 function.
1864
1865 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1866 Richard Biener <rguenther@suse.de>
1867
1868 PR tree-optimization/77848
1869 * tree-if-conv.c (tree_if_conversion): Always version loops unless
1870 the user specified -ftree-loop-if-convert.
1871
1872 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1873
1874 PR target/77308
1875 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1876 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1877 *thumb2_strd_base_neg): Recognize insn regardless of
1878 current_tune->prefer_ldrd_strd.
1879 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1880 whenever possible.
1881
1882 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1883
1884 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1885 instruction type.
1886
1887 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1888
1889 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1890 for arcem.
1891 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1892 * config/arc/arc-cpus.def (quarkse_em): Add.
1893 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1894 * config/arc/arc-opts.h (FPX_QK): Define.
1895 * config/arc/arc-tables.opt: Regenerate.
1896 * config/arc/arc.c (gen_compare_reg): Change.
1897 (arc_register_move_cost): Avoid Dy,Dx moves.
1898 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1899 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1900 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1901 New expands.
1902 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1903 (fix_truncsfsi2_fpu): Rename.
1904 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1905 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1906 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1907 * config/arc/t-multilib: Regenerate.
1908
1909 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
1910
1911 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1912 appropriate.
1913 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1914 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1915 (avr_rtx_costs_1, extra_constraint_Q): Same.
1916 (avr_address_cost): Use SUBREG_P if possible.
1917
1918 2016-11-17 Richard Biener <rguenther@suse.de>
1919
1920 PR middle-end/78383
1921 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1922 non-local goto into CFG.
1923
1924 2016-11-17 Richard Biener <rguenther@suse.de>
1925
1926 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1927 backward compatibility.
1928 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1929 * tree-if-conv.c (pass_if_conversion::gate): Do not test
1930 flag_tree_loop_if_convert_stores.
1931 (pass_if_conversion::execute): Likewise.
1932
1933 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1934
1935 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1936 const_double code before calling aarch64_float_const_zero_rtx_p.
1937
1938 2016-11-17 Richard Biener <rguenther@suse.de>
1939
1940 PR tree-optimization/78306
1941 * ipa-inline-analysis.c (initialize_inline_failed): Do not
1942 inhibit inlining if function calls cilk_spawn.
1943 (can_inline_edge_p): Likewise.
1944
1945 2016-11-17 Richard Biener <rguenther@suse.de>
1946
1947 PR middle-end/78305
1948 * fold-const.c (negate_expr_p): Fix multiplication case.
1949
1950 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
1951
1952 PR target/78357
1953 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1954 condition.
1955 (TARGET_INIT_LIBFUNCS): Delete definition and...
1956 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1957 comments.
1958
1959 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
1960
1961 * config/netbsd-stdint.h: New.
1962 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1963 (x86_64-*-netbsd*): Likewise.
1964
1965 2016-11-16 Andrew PInski <apinski@cavium.com>
1966
1967 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1968 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1969 flag_aarch64_verbose_cost instead of checking for details dump.
1970 (aarch64_rtx_costs_wrapper): Likewise.
1971
1972 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1973
1974 PR rtl-optimization/78378
1975 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1976 inner only if pos is 0. Fix up formatting.
1977
1978 2016-11-17 Alan Modra <amodra@gmail.com>
1979
1980 PR rtl-optimization/78325
1981 PR rtl-optimization/70890
1982 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1983 for dead regno.
1984
1985 2016-11-16 Jason Merrill <jason@redhat.com>
1986
1987 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1988
1989 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1990 Richard Biener <rguenther@suse.de>
1991
1992 PR tree-optimization/77848
1993 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1994 an outer loop, only save basic block aux information for the inner
1995 loop.
1996 (versionable_outer_loop_p): New function.
1997 (tree_if_conversion): Version the outer loop instead of the inner
1998 one if the pattern will be recognized for outer-loop
1999 vectorization.
2000
2001 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * gcc/bb-reorder.c: Remove 'toplev.h' include.
2004 (pass_partition_blocks::gate): No longer check
2005 user_defined_section_attribute, instead check the function decl
2006 for a section attribute.
2007 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
2008 set user_defined_section_attribute.
2009 * gcc/final.c (rest_of_handle_final): Likewise.
2010 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
2011 * gcc/toplev.h: Remove declaration of
2012 user_defined_section_attribute.
2013
2014 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2015
2016 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2017 Explicitly switch between JR and JRC for the table jump. Adjust
2018 instruction count.
2019
2020 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2021
2022 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
2023 `insn_count' to 11 rather than 16.
2024
2025 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2026
2027 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
2028 `ltu' rather than `leu' operation in the RTL pattern
2029
2030 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2031
2032 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
2033 missing <d> instruction prefixes throughout. Correct
2034 formatting.
2035
2036 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2037
2038 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
2039 rather than R_MIPS_JALR relocation in microMIPS code. Do not
2040 cancel short delay slots in PIC call relaxation.
2041
2042 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2043
2044 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
2045 general register with general register or ARM constant into SP
2046 register.
2047
2048 2016-11-16 Jakub Jelinek <jakub@redhat.com>
2049
2050 PR fortran/78299
2051 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
2052 that loop->header == body_bb if broken_loop.
2053
2054 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
2055
2056 * tree-ssa-math-opts.c (bswap_replace): Remove test
2057 of SLOW_UNALIGNED_ACCESS.
2058
2059 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
2060
2061 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
2062 is selected. Pass -mgomp to offload compiler in OpenMP case.
2063 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
2064 declaration from nvptx.c.
2065 (nvptx_gen_shuffle): Declare.
2066 (nvptx_output_set_softstack): Declare.
2067 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
2068 (need_softstack_decl): New variable.
2069 (need_unisimt_decl): New variable.
2070 (diagnose_openacc_conflict): New. Use it...
2071 (nvptx_option_override): ...here. Handle TARGET_GOMP.
2072 (nvptx_encode_section_info): Handle "shared" attribute.
2073 (write_as_kernel): Restrict to OpenACC target regions.
2074 (init_softstack_frame): New.
2075 (nvptx_init_unisimt_predicate): New.
2076 (write_omp_entry): New. Use it...
2077 (nvptx_declare_function_name): ...here to emit OpenMP target region
2078 entrypoints. Handle TARGET_SOFT_STACK. Call
2079 nvptx_init_unisimt_predicate.
2080 (nvptx_output_set_softstack): New.
2081 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
2082 (nvptx_gen_shuffle): Export.
2083 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
2084 predicate.
2085 (nvptx_print_operand): Fix handling of instruction predicates.
2086 (nvptx_get_unisimt_master): New helper function.
2087 (nvptx_get_unisimt_predicate): Ditto.
2088 (nvptx_call_insn_is_syscall_p): Ditto.
2089 (nvptx_unisimt_handle_set): Ditto.
2090 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
2091 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
2092 (nvptx_handle_shared_attribute): New. Use it...
2093 (nvptx_attribute_table): ... here (new entry).
2094 (nvptx_record_offload_symbol): Handle NULL attributes.
2095 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
2096 (nvptx_simt_vf): New.
2097 (TARGET_SIMT_VF): Define.
2098 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
2099 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
2100 -muniform-simt option is active.
2101 (STACK_SIZE_MODE): Define.
2102 (FIXED_REGISTERS): Adjust.
2103 (SOFTSTACK_SLOT_REGNUM): New.
2104 (SOFTSTACK_PREV_REGNUM): New.
2105 (REGISTER_NAMES): Adjust.
2106 (struct machine_function): New fields.
2107 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
2108 (UNSPEC_VOTE_BALLOT): Ditto.
2109 (UNSPEC_LANEID): Ditto.
2110 (UNSPECV_NOUNROLL): Ditto.
2111 (atomic): New attribute.
2112 (predicable): New attribute. Generate predicated forms via
2113 define_cond_exec.
2114 (br_true): Mark as not predicable.
2115 (br_false): Ditto.
2116 (br_true_uni): Ditto.
2117 (br_false_uni): Ditto.
2118 (return): Ditto.
2119 (trap_if_true): Ditto.
2120 (trap_if_false): Ditto.
2121 (nvptx_fork): Ditto.
2122 (nvptx_forked): Ditto.
2123 (nvptx_joining): Ditto.
2124 (nvptx_join): Ditto.
2125 (nvptx_barsync): Ditto.
2126 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
2127 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
2128 (allocate_stack_<mode>): Remove unused pattern.
2129 (set_softstack_insn): New pattern.
2130 (restore_stack_block): Handle for TARGET_SOFT_STACK.
2131 (nvptx_vote_ballot): New pattern.
2132 (omp_simt_lane): Ditto.
2133 (omp_simt_last_lane): Ditto.
2134 (omp_simt_ordered): Ditto.
2135 (omp_simt_vote_any): Ditto.
2136 (omp_simt_xchg_bfly): Ditto.
2137 (omp_simt_xchg_idx): Ditto.
2138 (nvptx_nounroll): Ditto.
2139 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
2140 (atomic_exchange<mode>): Ditto.
2141 (atomic_fetch_add<mode>): Ditto.
2142 (atomic_fetch_addsf): Ditto.
2143 (atomic_fetch_<logic><mode>): Ditto.
2144 * config/nvptx/nvptx.opt (msoft-stack): New option.
2145 (muniform-simt): Ditto.
2146 (mgomp): Ditto.
2147 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
2148 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
2149 * doc/invoke.texi (msoft-stack): Document.
2150 (muniform-simt): Document
2151 (mgomp): Document.
2152 * doc/tm.texi: Regenerate.
2153 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
2154 * target.def: Define it.
2155 * target-insns.def (omp_simt_lane): New.
2156 (omp_simt_last_lane): New.
2157 (omp_simt_ordered): New.
2158 (omp_simt_vote_any): New.
2159 (omp_simt_xchg_bfly): New.
2160 (omp_simt_xchg_idx): New.
2161
2162 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2163
2164 * config/mips/mips-protos.h (mips_set_text_contents_type): New
2165 prototype.
2166 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
2167 (ASM_OUTPUT_CASE_END): Likewise.
2168 * config/mips/mips.c (mips_set_text_contents_type): New function.
2169 (mips16_emit_constants): Record the pool's initial label number
2170 with the `consttable' insn. Emit a `consttable_end' insn at the end.
2171 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
2172 for `consttable' insns.
2173 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
2174 for `consttable_end' insns.
2175 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
2176 (consttable): Add operand.
2177 (consttable_end): New insn.
2178
2179 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
2180
2181 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
2182 * tree-if-conv.c (tree_if_conversion): Make public.
2183 * * tree-if-conv.h: New file.
2184 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
2185 dynamic alias checks for epilogues.
2186 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
2187 * tree-vect-loop.c: include tree-if-conv.h.
2188 (new_loop_vec_info): Add zeroing orig_loop_info field.
2189 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
2190 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
2191 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
2192 using passed argument.
2193 (vect_transform_loop): Check if created epilogue should be returned
2194 for further vectorization with less vf. If-convert epilogue if
2195 required. Print vectorization success for epilogue.
2196 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
2197 if it is required, pass loop_vinfo produced during vectorization of
2198 loop body to vect_analyze_loop.
2199 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2200 orig_loop_info.
2201 (LOOP_VINFO_ORIG_LOOP_INFO): New.
2202 (LOOP_VINFO_EPILOGUE_P): New.
2203 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
2204 (vect_do_peeling): Change prototype to return epilogue.
2205 (vect_analyze_loop): Add argument of loop_vec_info type.
2206 (vect_transform_loop): Return created loop.
2207
2208 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2209
2210 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
2211 component as used also if LR_REGNO is a live input to the bb.
2212 * df-scan.c (df_get_entry_block_def_set): Return immediately after
2213 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
2214 (df_get_exit_block_use_set): Ditto.
2215 * df.h (df_scan_flags): New enum.
2216 * shrink-wrap.c (try_shrink_wrapping_separate): Set
2217 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
2218 df_update_entry_block_defs and df_update_exit_block_uses
2219 at the start; clear the flag and call those functions at the end.
2220
2221 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2222 Alan Hayward <alan.hayward@arm.com>
2223 David Sherwood <david.sherwood@arm.com>
2224
2225 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
2226 nb_iterations to the number of latch iterations rather than the
2227 number of loop iterations.
2228
2229 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2230 Alan Hayward <alan.hayward@arm.com>
2231 David Sherwood <david.sherwood@arm.com>
2232
2233 * combine.c (maybe_swap_commutative_operands): New function.
2234 (combine_simplify_rtx): Use it.
2235 (change_zero_ext): Likewise.
2236 (make_compound_operation_int): New function, split out of...
2237 (make_compound_operation): ...here. Use
2238 maybe_swap_commutative_operands for both.
2239
2240 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
2241
2242 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
2243 (neon-vfpv3): New FPU, currently an alias for 'neon'.
2244 * arm/arm-tables.opt: Regenerated.
2245 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
2246 neon-vfpv3.
2247 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
2248 and 'neon' are aliases for specific implementations.
2249
2250 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2251 Alan Hayward <alan.hayward@arm.com>
2252 David Sherwood <david.sherwood@arm.com>
2253
2254 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
2255 and use it in the final call to gen_rtx_fmt_ee.
2256 (expand_vec_cond_expr): Update accordingly.
2257 (expand_vec_cmp_expr): Likewise.
2258
2259 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2260 Alan Hayward <alan.hayward@arm.com>
2261 David Sherwood <david.sherwood@arm.com>
2262
2263 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
2264
2265 2016-11-16 Richard Biener <rguenther@suse.de>
2266
2267 PR middle-end/78333
2268 * gimplify.c (gimplify_function_tree): Do not instrument
2269 GNU extern inline functions.
2270
2271 2016-11-16 Martin Liska <mliska@suse.cz>
2272
2273 PR sanitizer/78270
2274 * gimplify.c (gimplify_switch_expr): Always save previous
2275 gimplify_ctxp->live_switch_vars.
2276
2277 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
2278
2279 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
2280 zero_extract operations to allow a movb to occur.
2281 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
2282 * testsuite/gcc.target/arc/movb-2.c: Likewise.
2283 * testsuite/gcc.target/arc/movb-5.c: Likewise.
2284 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
2285 little endian arc.
2286
2287 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2288 Alan Hayward <alan.hayward@arm.com>
2289 David Sherwood <david.sherwood@arm.com>
2290
2291 * expr.c (emit_group_load_1): Tighten check for whether an
2292 access involves only one operand of a CONCAT. Use extract_bit_field
2293 for constants if the bit range does span the whole operand.
2294
2295 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2296 Alan Hayward <alan.hayward@arm.com>
2297 David Sherwood <david.sherwood@arm.com>
2298
2299 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
2300
2301 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2302 Alan Hayward <alan.hayward@arm.com>
2303 David Sherwood <david.sherwood@arm.com>
2304
2305 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
2306 all three iteration counts with an any_* test. Use a single update
2307 for each count. Fix the calculation of nb_iterations_estimate.
2308
2309 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2310
2311 * config/pdp11/pdp11.c: Include dbxout.h.
2312
2313 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2314
2315 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
2316
2317 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2318
2319 PR target/78364
2320 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
2321 proper ranges for an SBFX instruction.
2322 (extzv_t2): Likewise for UBFX.
2323
2324 2016-11-16 Richard Biener <rguenther@suse.de>
2325
2326 PR tree-optimization/78348
2327 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
2328 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
2329 (classify_partition): Set PKIND_MEMCPY if dependence analysis
2330 revealed no dependency, PKIND_MEMMOVE otherwise.
2331
2332 2016-11-16 Jakub Jelinek <jakub@redhat.com>
2333
2334 PR sanitizer/77823
2335 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
2336 it points to non-NULL tree, use it instead of ubsan_create_data.
2337 (instrument_si_overflow): Handle vector signed integer overflow
2338 checking.
2339 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
2340 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
2341 vector IFN_UBSAN_CHECK_*.
2342 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
2343 pass it through to ubsan_build_overflow_builtin.
2344 (expand_neg_overflow, expand_mul_overflow): Likewise.
2345 (expand_vector_ubsan_overflow): New function.
2346 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
2347 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
2348 (expand_arith_overflow): Adjust expand_*_overflow callers.
2349
2350 2016-11-16 Matthias Klose <doko@ubuntu.com>
2351
2352 * doc/install.texi: Remove references to java/libjava.
2353
2354 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
2355
2356 * tree-ssa-coalesce.c (register_default_def): Remove
2357 register_ssa_partition.
2358 (create_outofssa_var_map): Likewise.
2359 * tree-ssa-live.c (register_ssa_partition_check): Remove.
2360 * tree-ssa-live.h (register_ssa_partition): Likewise.
2361
2362 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2363
2364 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
2365 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
2366 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
2367 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
2368 rtx when all sub-rtx are also permanent.
2369 (attr_eq): Simplify.
2370 (attr_copy_rtx): Remove.
2371 (make_canonical, get_attr_value): Use attr_equal_p.
2372 (copy_boolean): Rehash NOT.
2373 (simplify_test_exp_in_temp,
2374 optimize_attrs): Remove call to attr_copy_rtx.
2375 (attr_alt_intersection, attr_alt_union,
2376 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
2377 (make_automaton_attrs): Use attr_eq.
2378
2379 2016-11-15 Matthias Klose <doko@ubuntu.com>
2380
2381 * doc/install.texi: Remove references to java/libjava.
2382 * doc/sourcebuild.texi: Likewise.
2383 * doc/invoke.texi: Likewise.
2384 * doc/standards.texi: Likewise.
2385
2386 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2387 Alan Hayward <alan.hayward@arm.com>
2388 David Sherwood <david.sherwood@arm.com>
2389
2390 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
2391 of VOIDmode.
2392 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2393 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2394 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2395 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2396 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2397 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2398 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2399
2400 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2401 Alan Hayward <alan.hayward@arm.com>
2402 David Sherwood <david.sherwood@arm.com>
2403
2404 * dce.c (check_argument_store): Pass the size instead of
2405 the memory reference.
2406 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
2407
2408 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2409 Alan Hayward <alan.hayward@arm.com>
2410 David Sherwood <david.sherwood@arm.com>
2411
2412 * alias.c (canon_rtx): Use simplify_gen_binary.
2413
2414 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2415 Alan Hayward <alan.hayward@arm.com>
2416 David Sherwood <david.sherwood@arm.com>
2417
2418 * rtl.h (load_extend_op): Declare.
2419 * rtlanal.c (load_extend_op): New function.
2420 (nonzero_bits1): Use it.
2421 (num_sign_bit_copies1): Likewise.
2422 * cse.c (cse_insn): Likewise.
2423 * fold-const.c (fold_single_bit_test): Likewise.
2424 (fold_unary_loc): Likewise.
2425 * fwprop.c (free_load_extend): Likewise.
2426 * postreload.c (reload_cse_simplify_set): Likewise.
2427 (reload_cse_simplify_operands): Likewise.
2428 * combine.c (try_combine): Likewise.
2429 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
2430 subreg_lowpart_p checks.
2431
2432 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2433 Alan Hayward <alan.hayward@arm.com>
2434 David Sherwood <david.sherwood@arm.com>
2435
2436 * combine.c (simplify_shift_const_1): Use the number of bits
2437 in the inner mode to determine the range of the shift.
2438 When handling shifts of vectors, skip any rules that apply
2439 only to scalars.
2440
2441 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2442 Alan Hayward <alan.hayward@arm.com>
2443 David Sherwood <david.sherwood@arm.com>
2444
2445 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
2446 handling VOIDmode.
2447
2448 2016-11-15 Matthias Klose <doko@ubuntu.com>
2449
2450 * doc/install.texi: Remove references to gcj/libjava.
2451 * doc/invoke.texi: Likewise.
2452
2453 2016-11-15 Jeff Law <law@redhat.com>
2454
2455 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
2456 parameter. Callers changed.
2457 (check-subpath_and_update_thread_path): Extracted from
2458 fsm_find_control_statement_thread_paths.
2459 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
2460 (handle_phi, handle_assignment): Allow any constant node, not
2461 just INTEGER_CST.
2462
2463 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
2464
2465 * config/arc/arc-arch.h: New file.
2466 * config/arc/arc-arches.def: Likewise.
2467 * config/arc/arc-cpus.def: Likewise.
2468 * config/arc/arc-options.def: Likewise.
2469 * config/arc/t-multilib: Likewise.
2470 * config/arc/genmultilib.awk: Likewise.
2471 * config/arc/genoptions.awk: Likewise.
2472 * config/arc/arc-tables.opt: Likewise.
2473 * config/arc/driver-arc.c: Likewise.
2474 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
2475 * common/config/arc/arc-common.c (arc_handle_option): Trace
2476 toggled options.
2477 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
2478 options; check for supported cpu against arc-cpus.def file.
2479 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
2480 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
2481 * config/arc/arc-c.def: Add emacs local variables.
2482 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
2483 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
2484 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
2485 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
2486 (DEFAULT_arc_fpu_build): Define.
2487 (DEFAULT_arc_mpy_option): Define.
2488 * config/arc/arc-protos.h (arc_init): Delete.
2489 * config/arc/arc.c (arc_cpu_name): New variable.
2490 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
2491 (arc_arc700, arc_arc600, arc_arc601): New variable.
2492 (arc_init): Add static; remove selection of default tune value,
2493 cleanup obsolete error messages.
2494 (arc_override_options): Make use of .def files for selecting the
2495 right cpu and option configurations.
2496 * config/arc/arc.h (stdbool.h): Include.
2497 (TARGET_CPU_DEFAULT): Define.
2498 (CPP_SPEC): Remove mcpu=NPS400 handling.
2499 (arc_cpu_to_as): Declare.
2500 (EXTRA_SPEC_FUNCTIONS): Define.
2501 (OPTION_DEFAULT_SPECS): Likewise.
2502 (ASM_DEFAULT): Remove.
2503 (ASM_SPEC): Use arc_cpu_to_as.
2504 (DRIVER_SELF_SPECS): Remove deprecated options.
2505 (arc_base_cpu): Declare.
2506 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
2507 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
2508 variable.
2509 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
2510 * config/arc/arc.md (attr_cpu): Remove.
2511 * config/arc/arc.opt (mno-mpy): Deprecate.
2512 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
2513 (mcpu=ARCHS): Remove.
2514 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
2515 Deprecate.
2516 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
2517 (arc_fpu): Use new defines.
2518 (mpy-option): Change to use numeric or string like inputs.
2519 * config/arc/t-arc (driver-arc.o): New target.
2520 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
2521 * config/arc/t-arc-newlib: Delete.
2522 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
2523 * doc/invoke.texi (ARC): Update arc options.
2524
2525 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
2526
2527 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
2528 insn at the beginning of the constant pool.
2529 (mips_insert_insn_pseudos): New function.
2530 (mips_machine_reorg2): Call it.
2531 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
2532 UNSPEC_INSN_PSEUDO enum values.
2533 (insn_pseudo, consttable): New insns.
2534
2535 2016-11-15 Michael Matz <matz@suse.de>
2536
2537 PR missed-optimization/77881
2538 * combine.c (simplify_comparison): Remove useless subregs
2539 also inside the loop, not just after it.
2540 (make_compound_operation): Recognize some subregs as being
2541 masking as well.
2542
2543 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2544 Alan Hayward <alan.hayward@arm.com>
2545 David Sherwood <david.sherwood@arm.com>
2546
2547 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
2548 GET_MODE_SIZE typo.
2549
2550 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2551
2552 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
2553 for using xxinsertw and vinsert{b,h} on ISA 3.0.
2554
2555 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
2556 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
2557 vinsert{b,h} on ISA 3.0.
2558
2559 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2560
2561 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2562 and cmpnop in two steps: first the ones not accessed in original gimple
2563 expression in a endian independent way and then the ones not accessed
2564 in the final result in an endian-specific way.
2565 (bswap_replace): Stop doing big endian adjustment.
2566
2567 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
2568
2569 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
2570 (*ashl<mode>3_doubleword): Ditto.
2571
2572 2016-11-14 Martin Liska <mliska@suse.cz>
2573
2574 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
2575
2576 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
2577 Richard Biener <rguenther@suse.de>
2578
2579 * doc/invoke.texi (fgimple): Document.
2580 * dumpfile.h (TDF_GIMPLE): Add.
2581 * dumpfile.c (dump_options): Add gimple.
2582 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
2583 for TDF_GIMPLE.
2584 (dump_gimple_label): Likewise.
2585 (dump_gimple_phi): Likewise.
2586 (dump_gimple_bb_header): Likewise.
2587 (dump_phi_nodes): Likewise.
2588 (pp_cfg_jump): Likewise. Pass in dump flags.
2589 (dump_implicit_edges): Adjust.
2590 * passes.c (pass_init_dump_file): Do not dump function header
2591 for TDF_GIMPLE.
2592 * tree-cfg.c (dump_function_to_file): Dump function return type
2593 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
2594 GIMPLE stmts.
2595 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
2596 (dump_generic_node): Likewise.
2597 * function.h (struct function): Add pass_startwith member.
2598 * passes.c (execute_one_pass): Implement startwith.
2599 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
2600 and assign proper version for parsed ssa names.
2601 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
2602 * internal-fn.c (expand_PHI): New function.
2603 * internal-fn.h (expand_PHI): Declared here.
2604 * internal-fn.def: New defination for PHI.
2605 * tree-cfg.c (lower_phi_internal_fn): New function.
2606 (build_gimple_cfg): Call it.
2607 (verify_gimple_call): Condition for passing label as arg in internal
2608 function PHI.
2609 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
2610 present PHIs with arguments.
2611
2612 2016-11-14 Martin Liska <mliska@suse.cz>
2613
2614 PR bootstrap/78069
2615 * common.opt: Add prefer-atomic as a new enum value for
2616 -fprofile-update.
2617 * coretypes.h: Likewise.
2618 * doc/invoke.texi: Document the new option value.
2619 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
2620 * tree-profile.c (tree_profiling): Select default value
2621 of -fprofile-update when 'prefer-atomic' is selected.
2622
2623 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2624
2625 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
2626 (cortex_a57_alu_shift): ...here.
2627
2628 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2629
2630 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
2631 Use bfx attribute.
2632 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2633 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2634 (<optab>si3_insn_uxtw): Likewise.
2635 (<optab><mode>3_insn): Likewise.
2636 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
2637 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
2638 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
2639 (<optab><mode>): Likewise.
2640 (insv<mode>): Likewise.
2641 (andim_ashift<mode>_bfiz): Likewise.
2642 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
2643 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2644 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
2645 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
2646 (exynos_m1_alu_p): Likewise.
2647 * config/arm/types.md: Add bfx.
2648 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
2649
2650 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2651
2652 * config/aarch64/aarch64.c (cortexa57_vector_cost):
2653 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
2654
2655 2016-11-14 Richard Biener <rguenther@suse.de>
2656
2657 PR tree-optimization/78312
2658 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
2659 flow-sensitive info.
2660
2661 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
2662
2663 PR target/78093
2664 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
2665 * config/avr/avr.opt (-mabsdata): New option.
2666 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
2667 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
2668 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
2669 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
2670 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
2671 spec depending on AVR_ISA_LDS.
2672 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
2673
2674 2016-11-13 Jakub Jelinek <jakub@redhat.com>
2675
2676 * match.pd: Don't try to compare addresses of variables with
2677 DECL_VALUE_EXPR.
2678
2679 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
2680
2681 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
2682 (propagate_vr_accross_jump_function): Handle unary expressions.
2683 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2684 (load_from_param_1): New.
2685 (load_from_unmodified_param): Factor common part into load_from_param_1.
2686 (load_from_param): New.
2687 (compute_complex_assign_jump_func): Handle unary expressions.
2688 (update_jump_functions_after_inlining): Likewise.
2689 (ipa_write_jump_function): Likewise.
2690 (ipa_read_jump_function): Likewise.
2691
2692 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2693
2694 PR c/35503
2695 * doc/invoke.texi: Document Wrestrict.
2696 * pretty-print.c (pp_format): Add case for "Z" specifier.
2697 (test_pp_format): Test "Z" specifier.
2698
2699 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2700
2701 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
2702 original function needs a static chain.
2703
2704 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
2705
2706 PR target/78336
2707 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
2708 ASM_OUTPUT_DEF.
2709
2710 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2711
2712 PR target/77957
2713 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2714 return early if !optional_tbtab.
2715
2716 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
2717
2718 PR rtl-optimization/59461
2719 * doc/rtl.texi (paradoxical subregs): Add missing word.
2720 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
2721 in modes with precision larger than that of last_set_mode.
2722 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
2723 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
2724 REGs to paradoxical SUBREGs.
2725 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
2726 larger than a word before invoking LOAD_EXTEND_OP on it.
2727
2728 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2729
2730 PR target/78243
2731 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
2732 element order for little endian ordering.
2733
2734 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
2735 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
2736 number.
2737
2738 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
2739
2740 PR target/78310
2741 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
2742 when calculating operand 2.
2743 (rotate to rotatex zext splitter): Ditto.
2744
2745 2016-11-11 Jeff Law <law@redhat.com>
2746
2747 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
2748 function.
2749 (stmt_uses_name_in_undefined_way): New function, extracted from
2750 find_implicit_erroneous_behavior and extended for div/mod case.
2751 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
2752 find_explicit_erroneous_behavior and extended for div/mod case.
2753 (find_implicit_erroneous_behavior): Use new helper function.
2754 (find_explicit_erroneous_behavior): Use new helper function.
2755
2756 2016-11-11 Richard Biener <rguenther@suse.de>
2757
2758 PR tree-optimization/71575
2759 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2760 bogus assert.
2761
2762 2016-11-11 Richard Biener <rguenther@suse.de>
2763
2764 PR middle-end/78295
2765 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2766 about uninitialized destination arg of BIT_INSERT_EXPR.
2767
2768 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
2769
2770 PR c/37998
2771 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2772 terminology. Expand to remove ambiguity.
2773
2774 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2775
2776 PR rtl-optimization/78232
2777 * combine.c (try_combine): Add a big comment about why reusing i2dest
2778 is undesirable.
2779 (change_zero_ext): Do not call simplify_gen_binary, do the
2780 simplifications manually.
2781
2782 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2783
2784 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2785 enable HImode and QImode to go in vector registers by default if
2786 the -mvsx-small-integer option is enabled.
2787 (rs6000_secondary_reload_simple_move): Likewise.
2788 (rs6000_preferred_reload_class): Don't force integer constants to
2789 be loaded into vector registers that we can easily make into
2790 memory (or being created in the GPRs and moved over with direct move).
2791 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2792 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2793 vector extraction on ISA 3.0 when the scalar integer can be
2794 allocated in vector registers. Generate the VEC_SELECT directy,
2795 and don't use UNSPEC's to avoid having the scalar type in a vector
2796 register. Make the expander target registers, and let the
2797 combiner fold in results storing to memory, if the machine
2798 supports stores.
2799 (vsx_extract_<mode>_di): Likewise.
2800 (vsx_extract_<mode>_p9): Likewise.
2801 (vsx_extract_<mode>_di_p9): Likewise.
2802 (vsx_extract_<mode>_store_p9): Likewise.
2803 (vsx_extract_si): Likewise.
2804 (vsx_extract_<mode>_p8): Likewise.
2805 (p9_lxsi<wd>zx): Delete, no longer used.
2806 (p9_stxsi<wd>x): Likewise.
2807 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2808 integers in vector registers for ISA 3.0.
2809 (QHI): Update comment.
2810 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2811 vector extract instructions in sign/zero extend.
2812 (zero_extendhi<mode>): Likewise.
2813 (extendqi<mode>): Likewise.
2814 (extendhi<mode>2): Likewise.
2815 (HImode splitter for load/sign extend in vector register): Likewise.
2816 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2817 optimizing floating point conversions to/from small data types and
2818 rewrite it to support QImode/HImode being allowed in vector
2819 registers on ISA 3.0.
2820 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2821 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2822 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2823 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2824 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2825 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2826 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2827 VSPLITISW on ISA 2.07.
2828 (movhi_internal): Combine movhi_internal and movqi_internal into
2829 one mov<mode>_internal with an iterator. Add support for QImode
2830 and HImode being allowed in vector registers. Make large number
2831 of attributes and constraints easier to read.
2832 (movqi_internal): Likewise.
2833 (mov<mode>_internal): Likewise.
2834 (movdi_internal64): Fix constraint to allow loading -16..15 with
2835 VSPLITISW on ISA 2.07.
2836 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2837 well as DImode.
2838
2839 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
2840
2841 PR rtl-optimization/78241
2842 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2843 but emit initial peel copy if niter expr is not reliable.
2844
2845 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2846
2847 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2848 (maybe_record_trace_start): If the CFI is different on the new and
2849 old paths, print out both to the dump file before ICEing.
2850
2851 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
2852
2853 * target.def (additional_allocno_class_p): New.
2854 * hooks.h (hook_bool_reg_class_t_false): New prototype.
2855 * hooks.c (hook_bool_reg_class_t_false): New.
2856 * ira.c (setup_allocno_and_important_classes): Use the new hook.
2857 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2858 * doc/tm.texi: Update.
2859
2860 2016-11-10 Jason Merrill <jason@redhat.com>
2861
2862 * gengtype.c (new_structure): Append to structures list.
2863 (find_structure): Likewise.
2864
2865 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
2866
2867 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2868 this_dir is 2. Check for this_dir non-zero before dir != this_dir
2869 check.
2870
2871 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2872
2873 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2874 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2875 TRUNC_DIV_EXPR.
2876 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
2877 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2878 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
2879 teams distribute parallel for simd even to distribute and teams
2880 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
2881 OMP_CLAUSE_DEPEND_SINK case.
2882 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2883 (omp_no_lastprivate): Removed.
2884 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2885 (gimplify_omp_for): Likewise.
2886 (computable_teams_clause): Fail for automatic vars from current
2887 function not yet seen in bind expr.
2888 * langhooks.c (lhd_omp_scalar_p): New function.
2889 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2890 * varpool.c (varpool_node::get_create): Set node->offloading
2891 even for DECL_EXTERNAL decls.
2892 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2893 (LANG_HOOKS_OMP_SCALAR_P): Define.
2894 (LANG_HOOKS_DECLS): Use it.
2895
2896 2016-11-10 Martin Liska <mliska@suse.cz>
2897
2898 PR sanitizer/78270
2899 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2900 only when SWITCH_BODY is a BIND_EXPR.
2901
2902 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
2903
2904 PR debug/78112
2905 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2906 on the context only when it has no DIE yet.
2907
2908 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
2909
2910 * arm.h (target_cpus): Delete.
2911 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2912 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2913 (all_architectures): Likewise.
2914 (arm_option_override): Adjust use of CPU enums.
2915 (arm_sched_reorder): Likewise.
2916 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2917 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2918 * arm/genopt.sh (processor_type): Prefix enumeration entries with
2919 TARGET_CPU_.
2920 * arm-tables.opt: Regenerated.
2921
2922 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
2923
2924 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2925 (falkor): New core.
2926 * config/aarch64/aarch64-tune.md: Regenerated.
2927 * config/arm/arm-cores.def (falkor): New core.
2928 * config/arm/arm-tables.opt: Regenerated.
2929 * config/arm/arm-tune.md: Regenerated.
2930 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2931 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2932 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2933 (ARM Options/-mtune): Likewise.
2934
2935 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2936
2937 Revert
2938 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2939
2940 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2941 (propagate_vr_accross_jump_function): Likewise.
2942 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2943 (load_from_param_1): New.
2944 (load_from_unmodified_param): Factor common part into load_from_param_1.
2945 (load_from_param): New.
2946 (compute_complex_assign_jump_func): Handle unary expressions.
2947 (ipa_write_jump_function): Likewise.
2948 (ipa_read_jump_function): Likewise.
2949
2950 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2951
2952 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2953 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2954 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2955 is a const_int.
2956
2957 2016-11-09 David Malcolm <dmalcolm@redhat.com>
2958
2959 * print-rtl-function.c: Include varasm.h.
2960 (print_any_param_name): New function.
2961 (print_param): New function.
2962 (print_rtx_function): Call print_param for each argument.
2963 * print-rtl.c (rtx_writer::finish_directive): New function.
2964 * print-rtl.h (rtx_writer::finish_directive): New decl.
2965
2966 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
2967
2968 PR target/78262
2969 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2970 operand 0 as earlyclobber.
2971 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2972
2973 2016-11-09 Martin Liska <mliska@suse.cz>
2974
2975 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2976
2977 2016-11-09 Jakub Jelinek <jakub@redhat.com>
2978
2979 PR target/77718
2980 * builtins.c (expand_builtin_memcmp): Formatting fix.
2981
2982 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2983 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2984 or of them, renumber other enumerators.
2985 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2986 * doc/invoke.texi: Document -fsanitize=shift-base and
2987 -fsanitize-shift-exponent, document -fsanitize=shift as
2988 having those 2 suboptions.
2989
2990 2016-11-09 Richard Biener <rguenther@suse.de>
2991
2992 * fold-const.c (tree_swap_operands_p): Remove unused arg.
2993 * fold-const.c (tree_swap_operands_p): Likewise.
2994 (fold_binary_loc): Adjust.
2995 (fold_ternary_loc): Likewise.
2996 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2997 * gimple-fold.c (fold_stmt_1): Likewise.
2998 * gimple-match-head.c (gimple_resimplify2): Likewise.
2999 (gimple_resimplify3): Likewise.
3000 (gimple_simplify): Likewise.
3001 * tree-ssa-dom.c (record_equality): Likewise.
3002 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
3003 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3004 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
3005
3006 2016-11-09 Richard Biener <rguenther@suse.de>
3007
3008 * tree-ssa-dom.c (canonicalize_comparison): Remove.
3009 (optimize_stmt): Remove redundant pre-propagation canonicalization
3010 of comparison operand order.
3011
3012 2016-11-09 Martin Liska <mliska@suse.cz>
3013
3014 * fold-const-call.c (fold_const_call): Fix the folding.
3015
3016 2016-11-09 Richard Biener <rguenther@suse.de>
3017
3018 * common.opt (flag_evaluation_order): Remove.
3019 * expr.c (expand_operands): Remove code guarded by
3020 flag_evaluation_order.
3021 * fold-const.c (reorder_operands_p): Remove, it always returns
3022 true.
3023 (negate_expr_p): Remove calls to reorder_operands_p.
3024 (fold_negate_expr): Likewise.
3025 (tree_swap_operands_p): Likewise.
3026 (fold_binary_loc): Likewise.
3027
3028 2016-11-09 Andreas Schwab <schwab@suse.de>
3029
3030 PR target/78254
3031 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
3032 insns operating on a register.
3033
3034 2016-11-09 Richard Biener <rguenther@suse.de>
3035
3036 PR tree-optimization/78007
3037 * tree-vect-stmts.c (vectorizable_bswap): New function.
3038 (vectorizable_call): Call vectorizable_bswap for
3039 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
3040
3041 2016-11-09 Richard Biener <rguenther@suse.de>
3042
3043 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3044 Look at the DR_BASE_ADDRESS object for forcing alignment.
3045
3046 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
3047
3048 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
3049 (propagate_vr_accross_jump_function): Likewise.
3050 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
3051 (load_from_param_1): New.
3052 (load_from_unmodified_param): Factor common part into load_from_param_1.
3053 (load_from_param): New.
3054 (compute_complex_assign_jump_func): Handle unary expressions.
3055 (ipa_write_jump_function): Likewise.
3056 (ipa_read_jump_function): Likewise.
3057
3058 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
3059
3060 PR ipa/78121
3061 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
3062 Also fold constant passed as argument while computing value range.
3063 (propagate_constants_accross_call): Pass param type.
3064 * ipa-prop.c: export ipa_get_callee_param_type.
3065 * ipa-prop.h: export ipa_get_callee_param_type.
3066
3067 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
3068
3069 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
3070 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
3071
3072 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
3073
3074 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
3075 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
3076 ASAN_STACK_MAGIC_MIDDLE.
3077 (asan_global_struct): Increase the size of fields.
3078 (asan_add_global): Add new field constructor.
3079 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
3080 __asan_version_mismatch_check_v8.
3081
3082 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
3083
3084 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
3085 at runtime.
3086
3087 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
3088
3089 PR target/70799
3090 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3091 Handle ASHIFT and LSHIFTRT.
3092 (dimode_scalar_chain::compute_convert_gain): Ditto.
3093 (dimode_scalar_chain::convert_insn): Ditto.
3094
3095 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3096
3097 * gimple-ssa-store-merging.c: Include selftest.h
3098 (verify_array_eq): New function.
3099 (verify_shift_bytes_in_array): Likewise.
3100 (verify_shift_bytes_in_array_right): Likewise.
3101 (verify_clear_bit_region): Likewise.
3102 (verify_clear_bit_region_be): Likewise.
3103 (store_merging_c_tests): Likewise.
3104 * selftest.h (store_merging_c_tests): Declare prototype.
3105 * selftest-run-tests.c (selftest::run_tests): Run
3106 store_merging_c_tests.
3107
3108 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3109
3110 * config/arm/arm.opt (mold-rtx-costs): Delete.
3111 (mnew-generic-costs): Delete.
3112 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
3113 * config/arm/arm.c (arm_rtx_costs_1): Delete.
3114 (arm_size_rtx_costs): Likewise.
3115 (arm_slowmul_rtx_costs): Likewise.
3116 (arm_fastmul_rtx_costs): Likewise.
3117 (arm_xscale_rtx_costs): Likewise.
3118 (arm_9e_rtx_costs): Likewise.
3119 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3120 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3121 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3122 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3123 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3124 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
3125 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
3126 arm_cortex_m7_tune):
3127 Delete rtx_costs field.
3128 (arm_new_rtx_costs): Rename to...
3129 (arm_rtx_costs_internal): ... This.
3130 (arm_rtx_costs): Remove old way of doing rtx costs.
3131
3132 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3133
3134 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
3135 (arm_fastmul_tune): Likewise.
3136 (arm_strongarm_tune): Likewise.
3137 (arm_xscale_tune): Likewise.
3138 (arm_9e_tune): Likewise.
3139 (arm_marvell_pj4_tune): Likewise.
3140 (arm_v6t2_tune): Likewise.
3141 (arm_v6m_tune): Likewise.
3142 (arm_fa726te_tune): Likewise.
3143
3144 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3145
3146 PR tree-optimization/78234
3147 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
3148 in start != 0 case.
3149
3150 2016-11-08 Martin Liska <mliska@suse.cz>
3151
3152 PR testsuite/78242
3153 * dbgcnt.def: Add new debug counter asan_use_after_scope.
3154 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
3155 with a value expr. Do not add artificial variables to
3156 live_switch_vars. Use the debug counter.
3157 (gimplify_target_expr): Use the debug counter.
3158 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
3159 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
3160 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
3161
3162 2016-11-08 Richard Biener <rguenther@suse.de>
3163
3164 * tree-vect-stmts.c (get_group_load_store_type): If the
3165 access is aligned do not trigger peeling for gaps.
3166 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3167 force alignment of vars with DECL_USER_ALIGN.
3168
3169 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
3170
3171 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
3172
3173 2016-11-08 Richard Biener <rguenther@suse.de>
3174
3175 PR tree-optimization/78205
3176 * tree-vect-stmts.c (vectorizable_load): Move check whether
3177 we may run into gaps when BB vectorizing SLP permutations ...
3178 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
3179 here where we can do a more precise check.
3180
3181 2016-11-08 Richard Biener <rguenther@suse.de>
3182
3183 PR tree-optimization/78224
3184 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3185 Split the fallthru edge in case its successor may have PHIs.
3186 Do not free dominance info.
3187
3188 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3189
3190 PR target/78229
3191 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3192 EH info even for bzhi and pdep/pext.
3193
3194 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
3195
3196 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
3197 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
3198
3199 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3200
3201 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
3202 if appropriate.
3203 * config/rs6000/vector.md (div<mode>3): Ditto.
3204
3205 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
3206
3207 * configure.ac (.hidden): Change to conftest_s string. Provide string
3208 for AIX assembler.
3209 (gcc_cv_ld_hidden): Yes for AIX.
3210 * configure: Regenerate.
3211
3212 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
3213
3214 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
3215 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
3216 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
3217 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3218 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
3219 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
3220 from #if to if.
3221 (rs6000_xcoff_visibility): New.
3222 (rs6000_xcoff_declare_function_name): Add visibility support.
3223 (rs6000_xcoff_asm_globalize_decl_name): New.
3224 (rs6000_xcoff_asm_output_aligned_decl_common): New.
3225 (rs6000_asm_weaken_decl): New.
3226 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
3227 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
3228 reference function.
3229
3230 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
3231
3232 PR driver/78206
3233 * incpath.c (remove_dup): Also silently ignore EPERM.
3234
3235 2016-11-07 Martin Jambor <mjambor@suse.cz>
3236
3237 * tree.c (verify_type_variant): Use pointer comparison to check that
3238 TYPE_SIZE_UNIT match.
3239
3240 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3241
3242 PR target/77834
3243 * dse.c (dse_step5): Call scan_reads even if just
3244 insn_info->frame_read. Improve and fix dump file messages.
3245
3246 PR target/78227
3247 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
3248 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
3249
3250 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3251
3252 PR middle-end/35691
3253 * match.pd: Add following two patterns:
3254 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
3255 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
3256
3257 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
3258
3259 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
3260 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
3261 * rtl.h (duplicate_reg_notes): Declare.
3262 * rtlanal.c (duplicate_reg_note): New function.
3263
3264 PR rtl-optimization/77309
3265 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
3266 don't assume an equality comparison for plain COMPARE.
3267 (simplify_comparison): Pass a more accurate code to
3268 make_compound_operation.
3269
3270 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
3271
3272 * target.def (compute_pressure_classes): New target hook.
3273 * doc/tm.texi.in: Document it.
3274 * doc/tm.texi: Regenerate.
3275 * ira.c (setup_pressure_classes): Call target hook if defined.
3276
3277 2016-11-07 David Malcolm <dmalcolm@redhat.com>
3278
3279 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
3280 method.
3281 (rtx_writer::print_rtx): In compact mode, omit trailing operands
3282 that have the default values.
3283 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
3284 method.
3285 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
3286 label string from expected dump.
3287 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
3288 from expected dump.
3289
3290 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3291
3292 PR target/77834
3293 * alias.c (nonoverlapping_memrefs_p): If one decl is
3294 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
3295
3296 2016-11-07 Richard Biener <rguenther@suse.de>
3297
3298 PR target/78229
3299 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3300 EH info.
3301
3302 2016-11-07 Richard Biener <rguenther@suse.de>
3303
3304 PR tree-optimization/78218
3305 * gimple-ssa-store-merging.c
3306 (pass_store_merging::terminate_all_aliasing_chains):
3307 Drop unused argument, fix alias check to also consider uses.
3308 (pass_store_merging::execute): Adjust.
3309
3310 2016-11-07 Richard Biener <rguenther@suse.de>
3311
3312 PR tree-optimization/78228
3313 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
3314 undefined behavior.
3315
3316 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3317
3318 PR target/77822
3319 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
3320 aarch64_simd_shift_imm_<mode> predicate for operand 1.
3321 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
3322 to restrict them to an appropriate range and add FAIL check if the
3323 region they specify is out of range. Delete useless constraint
3324 strings.
3325 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
3326 2 and 3 to restrict their range and add pattern predicate.
3327
3328 2016-11-07 Martin Liska <mliska@suse.cz>
3329
3330 * asan.c (enum asan_check_flags): Move the enum to header file.
3331 (asan_init_shadow_ptr_types): Make type creation more generic.
3332 (shadow_mem_size): New function.
3333 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
3334 Rewritten stack unpoisoning code.
3335 (build_shadow_mem_access): Add new argument return_address.
3336 (instrument_derefs): Instrument local variables if use after scope
3337 sanitization is enabled.
3338 (asan_store_shadow_bytes): New function.
3339 (asan_expand_mark_ifn): Likewise.
3340 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
3341 * asan.h (enum asan_mark_flags): Moved here from asan.c
3342 (asan_protect_stack_decl): Protect all declaration that need
3343 to live in memory.
3344 (asan_sanitize_use_after_scope): New function.
3345 (asan_no_sanitize_address_p): Likewise.
3346 * cfgexpand.c (partition_stack_vars): Consider
3347 asan_sanitize_use_after_scope in condition.
3348 (expand_stack_vars): Likewise.
3349 * common.opt (-fsanitize-address-use-after-scope): New option.
3350 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3351 Explain the parameter.
3352 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
3353 * gimplify.c (build_asan_poison_call_expr): New function.
3354 (asan_poison_variable): Likewise.
3355 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
3356 variables that have address taken.
3357 (gimplify_decl_expr): Likewise.
3358 (gimplify_target_expr): Likewise for C++ temporaries.
3359 (sort_by_decl_uid): New function.
3360 (gimplify_expr): Unpoison all variables for a label we can jump
3361 from outside of a scope.
3362 (gimplify_switch_expr): Unpoison variables defined in the switch
3363 context.
3364 (gimplify_function_tree): Clear asan_poisoned_variables.
3365 (asan_poison_variables): New function.
3366 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
3367 * internal-fn.c (expand_ASAN_MARK): New function.
3368 * internal-fn.def (ASAN_MARK): Declare.
3369 * opts.c (finish_options): Handle -fstack-reuse if
3370 -fsanitize-address-use-after-scope is enabled.
3371 (common_handle_option): Enable address sanitization if
3372 -fsanitize-address-use-after-scope is enabled.
3373 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
3374 New parameter.
3375 * params.h: Likewise.
3376 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
3377 * sanitizer.def: Define __asan_poison_stack_memory and
3378 __asan_unpoison_stack_memory functions.
3379 * asan.c (asan_mark_poison_p): New function.
3380 (transform_statements): Handle asan_mark_poison_p calls.
3381 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
3382
3383 2016-11-07 Tamar Christina <tamar.christina@arm.com>
3384
3385 PR driver/78196
3386 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
3387
3388 2016-11-07 Martin Liska <mliska@suse.cz>
3389
3390 * tree-profile.c (gimple_gen_time_profiler): Set proper type
3391 to time_profiler_counter_ptr.
3392
3393 2016-11-07 Richard Biener <rguenther@suse.de>
3394
3395 PR tree-optimization/37150
3396 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
3397 parameter.
3398 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
3399 (vect_analyze_slp_cost_1): Account for the real number of
3400 permutations emitted and for dead loads.
3401 (vect_transform_slp_perm_load): Add n_perms parameter counting
3402 the number of emitted permutations.
3403 * tree-vect-stmts.c (vectorizable_load): Adjust.
3404
3405 2016-11-07 Richard Biener <rguenther@suse.de>
3406
3407 PR tree-optimization/78189
3408 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
3409 alignment computation.
3410
3411 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
3412
3413 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
3414
3415 2016-11-05 Martin Sebor <msebor@redhat.com>
3416
3417 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
3418 documentation.
3419
3420 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
3421
3422 PR bootstrap/78188
3423 PR c++/71848
3424 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
3425
3426 2016-11-04 Jakub Jelinek <jakub@redhat.com>
3427
3428 PR target/77834
3429 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
3430 doesn't have rtl set.
3431
3432 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3433
3434 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
3435 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
3436 rs6000_gimple_fold_builtin.
3437 (rs6000_gimple_fold_builtin): New function. Add handling for
3438 early expansion of vector addition builtins.
3439
3440 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3441
3442 * expr.h (copy_blkmode_from_reg): Delete.
3443 * expr.c (copy_blkmode_from_reg): Make static.
3444
3445 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3446
3447 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
3448 * combine.c (LOAD_EXTEND_OP): Delete.
3449 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
3450 * cse.c (LOAD_EXTEND_OP): Delete.
3451 * fold-const.c (LOAD_EXTEND_OP): Likewise.
3452 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
3453 * postreload.c (LOAD_EXTEND_OP): Delete.
3454 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
3455 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
3456 (find_reloads): Likewise.
3457 * reload1.c (eliminate_regs_1): Likewise.
3458 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
3459 (num_sign_bit_copies1): Likewise.
3460
3461 2016-11-04 David Malcolm <dmalcolm@redhat.com>
3462
3463 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
3464 (selftest::ix86_test_dumping_hard_regs): New function.
3465 (selftest::ix86_run_selftests): New function.
3466 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
3467 selftest::ix86_run_selftests.
3468 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
3469 * doc/tm.texi: Regenerate
3470 * selftest-rtl.h: New file.
3471 * rtl-tests.c: Include "selftest-rtl.h".
3472 (selftest::assert_rtl_dump_eq): Make non-static.
3473 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
3474 (selftest::test_dumping_regs): Update comment.
3475 * selftest-run-tests.c: Include "target.h".
3476 (selftest::run_tests): If non-NULL, call
3477 targetm.run_target_selftests.
3478 * target.def (run_target_selftests): New hook.
3479
3480 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3481
3482 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
3483 representative core for this architecture.
3484 * config/arm/arm-cores.def (cortex-m33): Define new processor.
3485 * config/arm/arm-tables.opt: Regenerate.
3486 * config/arm/arm-tune.md: Likewise.
3487 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
3488 valid -mcpu options.
3489 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
3490
3491 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3492
3493 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
3494 representative core for this architecture.
3495 * config/arm/arm-cores.def (cortex-m23): Define new processor.
3496 * config/arm/arm-tables.opt: Regenerate.
3497 * config/arm/arm-tune.md: Likewise.
3498 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
3499 this tuning parameters apply to in the comment.
3500 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
3501 valid -mcpu options.
3502 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
3503
3504 2016-11-04 Bin Cheng <bin.cheng@arm.com>
3505
3506 * fold-const.c (fold_cond_expr_with_comparison): Remove call
3507 to pedantic_non_lvalue_loc. Remove useless code for lvalue
3508 where cond_expr can't be a lvalue.
3509
3510 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
3511
3512 * config/arc/arc.c (arc_process_double_reg_moves): Use
3513 gen_dexcl_2op call.
3514 * config/arc/arc.md (movsi_insn): Disable unsupported move
3515 instructions for ARCv2 cores.
3516 (movdi): Use prepare_move_operands.
3517 (movsf, movdf): Use move_dest_operand predicate.
3518 * config/arc/constraints.md (Chs): Enable when barrel shifter is
3519 present.
3520 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
3521 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
3522 also a destination.
3523 (dexcl_3op_peep2_insn_nores): Likewise.
3524 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
3525 (LINK_COMMAND_SPEC): Remove.
3526
3527 2016-11-04 Richard Biener <rguenther@suse.de>
3528
3529 PR middle-end/78185
3530 * loop-invariant.c (find_exits): Record entering inner
3531 loops as possibly exiting to handle infinite sub-loops.
3532 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
3533 (fill_always_executed_in_1): Honor infinite child loops.
3534
3535 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3536
3537 PR target/78192
3538 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
3539 has already been adjusted for endianness, so don't adjust it any
3540 further.
3541
3542 PR target/77993
3543 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
3544 ICmode unless we have standard PowerPC floating point.
3545 * config/rs6000/rs6000.md (FP iterator): Likewise.
3546 (FMOVE128 iterator): Likewise.
3547
3548 2016-11-03 Jakub Jelinek <jakub@redhat.com>
3549 Alexandre Oliva <aoliva@redhat.com>
3550 Jason Merrill <jason@redhat.com>
3551
3552 PR debug/28767
3553 PR debug/56974
3554 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
3555 langhook.
3556 * langhooks.c (lhd_type_dwarf_attribute): New function.
3557 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
3558 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
3559 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
3560 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
3561 (check_qualified_type, check_aligned_type): Call it.
3562 * dwarf2out.c (modified_type_die): Don't use type_main_variant
3563 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3564 check_base_type and check_lang_type.
3565 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
3566 return early. For pointer-to-data-member add DW_AT_use_location
3567 attribute.
3568 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
3569 if needed.
3570 (gen_type_die_with_usage): Don't use type_main_variant
3571 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3572 check_base_type and check_lang_type. Formatting fixes. Call
3573 get_debug_type langhook.
3574
3575 2016-11-03 Jason Merrill <jason@redhat.com>
3576
3577 * tree.c (check_lang_type): New.
3578 (check_qualified_type): Use it.
3579 (check_aligned_type): Use it.
3580 * tree.h: Declare it.
3581
3582 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
3583
3584 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
3585 (arm*-freebsd*): Likewise.
3586 (arm*-*-netbsdelf*): Likewise.
3587 (arm*-*-linux*): Likewise.
3588 (arm*-*-uclinux*eabi*): Likewise.
3589 (arm*-*-phoenix*): Likewise.
3590 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
3591 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
3592 specified. Default to arm6 if target_cpu_cname is not set.
3593 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
3594 default cpu has been correctly configured.
3595 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
3596 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
3597 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
3598 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
3599 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3600 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
3601 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3602
3603 2016-11-03 Jiong Wang <jiong.wang@arm.com>
3604
3605 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
3606 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
3607 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
3608 (output_cfa_loc): Support DW_CFA_val_expression.
3609 (output_cfa_loc_raw): Likewise.
3610 (output_cfi): Likewise.
3611 (output_cfi_directive): Likewise.
3612 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
3613 (dw_cfi_oprnd2_desc): Likewise.
3614 (mem_loc_descriptor): Recognize new pattern generated for value
3615 expression.
3616
3617 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
3618
3619 PR rtl-optimization/78186
3620 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
3621 well, when converting to IOR.
3622
3623 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
3624
3625 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
3626 (vec_interleave_highv8qi): Likewise.
3627
3628 2016-11-03 Martin Liska <mliska@suse.cz>
3629
3630 * profile.c (instrument_values): Fix coding style.
3631 (branch_prob): Use renamed function.
3632 * tree-profile.c (init_ic_make_global_vars): Likewise.
3633 (gimple_init_edge_profiler): Rename to
3634 gimple_init_gcov_profiler.
3635 tree_time_profiler_counter variable declaration.
3636 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
3637 emission.
3638 * value-prof.h: Remove an argument.
3639
3640 2016-11-03 Richard Biener <rguenther@suse.de>
3641
3642 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
3643 symtab_node::get_create.
3644
3645 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3646
3647 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
3648 Move comments into more natural position.
3649
3650 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
3651
3652 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
3653 (PTRDIFF_TYPE): Define as int.
3654
3655 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3656
3657 * ccmp.c (expand_ccmp_expr_1): Adjust.
3658 (expand_ccmp_expr): Likewise.
3659 (expand_ccmp_next): Likewise.
3660 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
3661 (aarch64_gen_ccmp_first): Likewise.
3662 * doc/tm.texi: Regenerate.
3663 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
3664 (gen_ccmp_next): Likewise.
3665
3666 2016-11-03 Bin Cheng <bin.cheng@arm.com>
3667
3668 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
3669 (vect_is_simple_reduction): Swap cond_reduction by inversion.
3670
3671 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
3672
3673 * config/i386/i386.c (ix86_init_libfuncs): New. Call
3674 darwin_rename_builtins here.
3675 (ix86_expand_divmod_libfunc): New.
3676 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
3677 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
3678
3679 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3680 Nathan Sidwell <nathan@acm.org>
3681
3682 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
3683
3684 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
3685
3686 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
3687 New function.
3688 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
3689 to format MODE_INT and MODE_PARTIAL_INT literals.
3690
3691 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
3692
3693 PR target/78168
3694 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
3695 NULL if TARGET_SPE_ABI.
3696
3697 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3698
3699 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
3700 clear padding bits even when they're less than a byte.
3701
3702 2016-11-02 Richard Biener <rguenther@suse.de>
3703
3704 * gimple-ssa-store-merging.c: Include gimplify-me.h.
3705 (imm_store_chain_info::output_merged_stores): Force base_addr
3706 to be proper GIMPLE for a MEM_REF address.
3707 (pass_store_merging::execute): Restrict negative bitpos
3708 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
3709 check. Take into account non-NULL_TREE offset if the base
3710 is already addressable.
3711
3712 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3713
3714 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
3715 New pattern.
3716 (aarch64_be_crypto_sha1hv4si): New pattern.
3717
3718 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
3719
3720 * config/aarch64/aarch64.md (add<mode>3): Remove
3721 redundant code. Don't split frame based additions.
3722
3723 2016-11-02 Richard Biener <rguenther@suse.de>
3724
3725 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
3726 redundant val and dest members.
3727 (store_immediate_info::store_immediate_info): Adjust.
3728 (merged_store_group::merged_store_group): Adjust.
3729 (merged_store_group::apply_stores): Likewise.
3730 (struct imm_store_chain_info): Add base_addr field.
3731 (imm_store_chain_info::imm_store_chain_info): New constructor.
3732 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
3733 (imm_store_chain_info::output_merged_store): Likewise. Use
3734 addr_base which is already the address.
3735 (imm_store_chain_info::output_merged_stores): Likewise.
3736 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
3737 imm_store_chain_info instead of base. Fix alias check.
3738 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
3739 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
3740 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
3741 use the address of the base and adjust for other changes.
3742
3743 2016-11-02 Martin Liska <mliska@suse.cz>
3744
3745 * fold-const-call.c (host_size_t_cst_p): Test whether
3746 t is convertible to size_t.
3747
3748 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3749
3750 PR tree-optimization/78170
3751 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
3752 introduced by native_encode_expr on little-endian as well.
3753
3754 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3755
3756 PR tree-optimization/78162
3757 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
3758 as invalid.
3759
3760 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3761
3762 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
3763 function comment.
3764 (aarch64_next_callee_save): Likewise.
3765 (aarch64_pushwb_single_reg): Likewise.
3766 (aarch64_gen_storewb_pair): Likewise.
3767 (aarch64_push_regs): Likewise.
3768 (aarch64_gen_loadwb_pair): Likewise.
3769 (aarch64_pop_regs): Likewise.
3770 (aarch64_gen_store_pair): Likewise.
3771 (aarch64_gen_load_pair): Likewise.
3772 (aarch64_save_callee_saves): Likewise.
3773 (aarch64_restore_callee_saves): Likewise.
3774
3775 2016-11-02 Richard Biener <rguenther@suse.de>
3776
3777 PR tree-optimization/78035
3778 PR tree-optimization/77964
3779 * gimple-pretty-print.c (pp_points_to_solution): Print
3780 vars_contains_interposable.
3781 * tree-ssa-alias.c: Include varasm.h.
3782 (ptrs_compare_unequal): Check vars_contains_interposable and
3783 decl_binds_to_current_def_p.
3784 (dump_points_to_solution): Dump vars_contains_interposable.
3785 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3786 flag.
3787 * tree-ssa-structalias.c: Include varasm.h.
3788 (set_uids_in_ptset): Record whether vars contains a
3789 not decl_binds_to_current_def_p variable in vars_contains_interposable.
3790 (ipa_escaped_pt): Update initializer.
3791
3792 2016-11-02 Richard Biener <rguenther@suse.de>
3793
3794 PR tree-optimization/78047
3795 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3796 fake field at offset zero conservatively regarding to may_have_pointers.
3797
3798 2016-11-02 Richard Biener <rguenther@suse.de>
3799
3800 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3801 infer_value_range on stmt ops and update value-ranges.
3802 Dump visited stmts and blocks.
3803 (evrp_dom_walker::push_value_range): Dump changes.
3804 (evrp_dom_walker::pop_value_range): Likewise.
3805 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3806
3807 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3808
3809 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3810 rtx_insn *.
3811 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3812
3813 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3814
3815 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3816 and adjust for that.
3817 * cfgrtl.h (delete_insn_chain): Adjust prototype.
3818
3819 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3820
3821 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3822 to rtx_insn *.
3823 (transcode_memory_rtx): Likewise.
3824 (move_to_acc): Likewise.
3825 (move_from_acc): Likewise.
3826 (move_acc_to_reg): Likewise.
3827 (move_to_x): Likewise.
3828 (move_to_hl): Likewise.
3829 (move_to_de): Likewise.
3830 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3831 (rs6000_emit_savres_rtx): Likewise.
3832 (rs6000_emit_prologue): Likewise.
3833 * reorg.c (update_reg_unused_notes): Likewise.
3834 * rtl.h (remove_note): Adjust prototype.
3835 * rtlanal.c (remove_note): Make argument type rtx_insn *.
3836
3837 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3838
3839 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3840 variables so some can be rtx_insn *.
3841 (alpha_emit_xfloating_libcall): Likewise.
3842 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3843 (mips_legitimize_tls_address): Likewise.
3844 * optabs.c (expand_binop): Likewise.
3845 * reload1.c (gen_reload): Likewise.
3846
3847 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3848
3849 * reorg.c (relax_delay_slots): Split up the trial variable.
3850
3851 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3852
3853 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3854 of variables rtx_insn *.
3855 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3856 (legitimize_tls_address): Likewise.
3857 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3858 (bfin_gen_bundles): Likewise.
3859 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3860 (c6x_reorg): Likewise.
3861 * config/frv/frv.c (frv_reorder_packet): Likewise.
3862 * config/i386/i386.c (ix86_split_idivmod): Likewise.
3863 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3864 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3865 * config/mn10300/mn10300.c: Likewise.
3866 * config/rl78/rl78.c: Likewise.
3867 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3868 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3869 (sh_expand_cmpnstr): Likewise.
3870 (sh_expand_strlen): Likewise.
3871 (sh_expand_setmem): Likewise.
3872 * config/sh/sh.md: Likewise.
3873 * emit-rtl.c (emit_pattern_before): Likewise.
3874 * except.c: Likewise.
3875 * final.c: Likewise.
3876 * jump.c: Likewise.
3877
3878 2016-11-01 Jason Merrill <jason@redhat.com>
3879
3880 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3881 a COND_EXPR with constant condition.
3882
3883 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3884
3885 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3886 and its initialization.
3887
3888 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3889
3890 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3891 HAVE_AS_LEB128.
3892
3893 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3894
3895 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3896 argument, don't call add_linkage_name if it is true.
3897 (gen_variable_die): For C++ inline static data members, consider the
3898 initial call when old_die is NULL to be declaration and call
3899 add_name_and_src_coords_attributes in that case with true as
3900 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
3901 (gen_member_die): For C++ inline static data members, emit a
3902 definition DIE right away in DW_TAG_compile_unit context.
3903
3904 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3905
3906 PR target/78166
3907 * config/pa/pa.md: Add new shift/add patterns to handle
3908 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3909
3910 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
3911
3912 * config/xtensa/xtensa-protos.h
3913 (xtensa_use_return_instruction_p): New prototype.
3914 * config/xtensa/xtensa.c (xtensa_current_frame_size,
3915 xtensa_callee_save_size): Remove.
3916 (struct machine_function): Add new fields: current_frame_size,
3917 callee_save_size, frame_laid_out and epilogue_done.
3918 (compute_frame_size, xtensa_expand_prologue,
3919 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3920 cfun->machine->callee_save_size and xtensa_current_frame_size
3921 with cfun->machine->current_frame_size.
3922 (compute_frame_size): Update cfun->machine->frame_laid_out and
3923 don't update frame layout after reload completion.
3924 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3925 instead of zeroing xtensa_current_frame_size.
3926 (xtensa_use_return_instruction_p): New function.
3927 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3928 declaration.
3929 (INITIAL_ELIMINATION_OFFSET): Use return value of
3930 compute_frame_size instead of xtensa_current_frame_size value.
3931 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3932 function xtensa_use_return_instruction_p instead of inline code.
3933
3934 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3935
3936 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3937 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3938 * dwarf2out.c (rnglist_idx): New variable.
3939 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3940 (DEBUG_RNGLISTS_SECTION): Define.
3941 (ranges_base_label): New variable.
3942 (size_of_die) <case dw_val_class_range_list>: If using
3943 DW_FORM_rnglistx, count size of uleb128 of range list index.
3944 (value_format) <case dw_val_class_range_list>: For
3945 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3946 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3947 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3948 (add_ranges_num): Remove useless prototype. Don't multiply
3949 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
3950 for new fields added to dw_ranges struct.
3951 (add_ranges): Add maybe_new_sec argument and pass it
3952 through to add_ranges_num.
3953 (note_rnglist_head): New function.
3954 (add_ranges_by_labels): Pass true as maybe_new_sec to
3955 add_ranges_num, call note_rnglist_head on the head of the list.
3956 (output_ranges): Add function comment. Switch to
3957 .debug_ranges section here and emit .Ldebug_ranges0 label.
3958 (index_rnglists, output_rnglists): New functions.
3959 (gen_subprogram_die): Formatting fixes.
3960 (add_high_low_attributes): Don't divide offsets
3961 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
3962 first list element or when pointing into the middle of
3963 a list. Pass true as second argument to add_ranges on the
3964 first block fragment after cold/hot section switch.
3965 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3966 section instead of .debug_ranges. Initialize
3967 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3968 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3969 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
3970 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3971 Call output_rnglists for -gdwarf-5.
3972 (dwarf2out_c_finalize): Clear rnglist_idx.
3973
3974 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
3975
3976 * combine.c (simplify_compare_const): Add gcc_fallthrough.
3977
3978 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
3979 Tamar Christina <tamar.christina@arm.com>
3980
3981 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3982 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3983 (vmaxnmq_f32): Likewise.
3984 (vminnm_f32): Likewise.
3985 (vminnmq_f32): Likewise.
3986 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3987 (vminnm): Likewise.
3988 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3989 expander.
3990
3991 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3992
3993 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3994 binary floating point types supported by the hardware except for
3995 double.
3996 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3997 vector instruction for optimizing extracting a SImode from a
3998 V4SImode vector and converting it to floating point.
3999 (vsx_xvcvuxwdp_df): Likewise.
4000 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
4001 registers to be any VSX register. Move stores to the end of the
4002 constraints.
4003 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
4004 to optimize extracting a SImode from a V4SImode vector and
4005 converting it to a binary floating point type supported by the
4006 hardware. Use the vector converts instead of extracting the
4007 element, sign extending it, and then converting it to double.
4008 Other floating point types than double first convert to double,
4009 then the double is converted to that type.
4010 (vsx_extract_si_<uns>float_<mode>): Likewise.
4011
4012 2016-10-31 Andrew Pinski <apinski@cavium.com>
4013
4014 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
4015 Rewrite handling of part num to handle the case where
4016 multiple implementers share the same part num.
4017
4018 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4019 Jakub Jelinek <jakub@redhat.com>
4020
4021 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
4022 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
4023
4024 2016-10-31 Jakub Jelinek <jakub@redhat.com>
4025
4026 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
4027 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
4028 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
4029 (is_cu_die, is_unit_die): Likewise.
4030 (should_move_die_to_comdat, break_out_comdat_types): Adjust
4031 comments for DWARF5 DW_UT_type units.
4032 (output_compilation_unit_header): Add UT argument, output
4033 start of DWARF5 .debug_info section header.
4034 (output_comp_unit): Add dwo_id argument. Adjust
4035 output_compilation_unit_header caller, for DW_UT_split_compile
4036 emit dwo_id field, otherwise padding1. Emit padding2 field.
4037 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
4038 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
4039 (output_skeleton_debug_sections): Add dwo_id argument, for
4040 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
4041 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
4042 DW_UT_type or DW_UT_split_type units rather than .debug_types.
4043 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
4044 DW_TAG_compile_unit for skeleton unit die. Don't add
4045 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
4046 address to output_comp_unit and output_skeleton_debug_sections.
4047
4048 * dwarf2out.c (debug_line_str_section): New variable.
4049 (debug_line_str_hash): Likewise.
4050 (DEBUG_LINE_STR_SECTION): Define.
4051 (set_indirect_string): Handle DW_FORM_line_strp like
4052 DW_FORM_strp.
4053 (find_string_form): Fix up formatting.
4054 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
4055 Fix up indentation.
4056 (output_die): Handle DW_FORM_line_strp.
4057 (DWARF5_USE_DEBUG_LINE_STR): Define.
4058 (output_line_string): New function.
4059 (output_file_names): Add -gdwarf-5 support.
4060 (output_line_info): Likewise.
4061 (init_sections_and_labels): Initialize debug_line_str_section.
4062 (output_indirect_string): Change 2nd argument from void *
4063 to enum dwarf_form form, compare with form rather than
4064 DW_FORM_strp.
4065 (output_indirect_strings): Pass DW_FORM_strp to
4066 output_indirect_string traversion.
4067 (dwarf2out_finish): Output .debug_line_str strings.
4068 (dwarf2out_c_finalize): Clear debug_line_str_section and
4069 debug_line_str_hash.
4070
4071 2016-10-31 Tom Tromey <tom@tromey.com>
4072
4073 PR debug/77315
4074 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
4075 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
4076 DW_OP_GNU_push_tls_address case.
4077 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
4078
4079 2016-10-31 Jakub Jelinek <jakub@redhat.com>
4080
4081 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
4082 for frame_offset_rel bit.
4083 (struct array_descr_info): Add rank field.
4084 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
4085 and placeholder_seen fields.
4086 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
4087 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
4088 DW_OP_pick 1 into DW_OP_over.
4089 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
4090 gen_variant_part): Clear placeholder_{arg,seen}.
4091 (loc_list_from_tree_1): Drop const from context argument.
4092 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
4093 (loc_list_for_address_of_addr_expr_of_indirect_ref,
4094 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
4095 context argument.
4096 (add_scalar_info): Drop const from context argument. Handle
4097 context->placeholder_arg.
4098 (add_bound_info): Drop const from context argument.
4099 (gen_descr_array_type_die): Drop const from ctx variable.
4100 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
4101 attribute and use a single DW_TAG_generic_subrange instead of
4102 7 DW_TAG_subrange_type for assumed rank arrays.
4103
4104 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
4105 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
4106 from bool to 1-bit uchar bitfield. Add num_assigned and
4107 offset_emitted bitfields.
4108 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
4109 for dw_val_class_lineptr and dw_val_class_macptr. Handle
4110 dw_val_class_loclistsptr.
4111 (new_addr_loc_descr): Fix up formatting.
4112 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
4113 (add_AT_low_high_pc): Fix up formatting.
4114 (add_AT_loclistsptr): New function.
4115 (AT_lbl): Allow dw_val_class_loclistsptr.
4116 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
4117 Handle dw_val_class_loclistsptr.
4118 (loc_list_idx): New variable.
4119 (output_loclists_offsets, assign_location_list_indexes): New
4120 functions.
4121 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
4122 add size_of_uleb128 of the index. Drop never used
4123 dwarf_split_debug_info AT_index handling. Handle
4124 dw_val_class_loclistsptr.
4125 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
4126 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
4127 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
4128 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
4129 DW_FORM_loclistx indexes.
4130 (output_attr_index_or_value): Fix up formatting. Don't handle
4131 dw_val_class_loc_list here.
4132 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
4133 For dw_val_class_loc_list call output_loc_list_offset rather than
4134 output_attr_index_or_value.
4135 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
4136 or .debug_loclists.dwo section name for debug_loc_section.
4137 (resolve_addr_in_expr): Formatting fix.
4138 (index_location_lists): Likewise.
4139 (dwarf2out_finish): If there are any location lists, for
4140 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
4141 index_location_lists only if have_location_lists. Call
4142 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
4143 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
4144 -gsplit-dwarf also emit offset table.
4145
4146 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
4147 (size_of_die, value_format, output_die): Use
4148 DW_FORM_data16 for 128-bit dw_val_class_const_double or
4149 dw_val_class_wide_int.
4150
4151 * dwarf2out.c (dwarf_op): Renamed to ...
4152 (dwarf_OP): ... this.
4153 (convert_descriptor_to_mode, scompare_loc_descriptor,
4154 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
4155 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
4156 callers.
4157 (dwarf_AT, dwarf_TAG): New functions.
4158 (check_die): Disallow DW_AT_call_all_calls next to
4159 DW_AT_GNU_all_call_sites.
4160 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
4161 and attributes instead of the corresponding GNU tag and attributes.
4162 (gen_subprogram_die): Likewise. Emit call site information even
4163 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
4164 DW_AT_defaulted in comment.
4165 (resolve_addr): Handle DW_AT_call_origin attribute on
4166 DW_TAG_call_site DIE like DW_AT_abstract_origin on
4167 DW_TAG_GNU_call_site DIE.
4168
4169 * dwarf2out.c (dwarf_op): New function.
4170 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
4171 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
4172 (output_loc_operands, output_loc_operands_raw): Likewise.
4173 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
4174 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
4175 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
4176 if dwarf_version < 5.
4177 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
4178 DW_OP_GNU_xxx.
4179 (scompare_loc_descriptor, ucompare_loc_descriptor,
4180 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
4181 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
4182 optimize_location_into_implicit_ptr): Likewise. Only punt for
4183 !dwarf_strict if dwarf_version < 5.
4184 (string_cst_pool_decl): Adjust comment.
4185 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
4186
4187 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
4188 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
4189 (struct dw_val_node): Add val_file_implicit field.
4190 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
4191 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
4192 output_die): Handle dw_val_class_const_implicit,
4193 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
4194 (abbrev_die_table): Change into va_gc vec.
4195 (abbrev_die_table_allocated, abbrev_die_table_in_use,
4196 ABBREV_DIE_TABLE_INCREMENT): Remove.
4197 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
4198 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
4199 variables.
4200 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
4201 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
4202 vectors.
4203 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
4204 functions.
4205 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
4206 the implicit value.
4207 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
4208 vec.
4209 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
4210 unit. Call optimize_abbrev_table.
4211 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
4212 abbrev_die_table being a va_gc vec.
4213
4214 PR tree-optimization/77860
4215 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
4216 also integral complex and vector constants.
4217
4218 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
4219 optimize_macinfo_range, save_macinfo_strings): Replace
4220 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
4221 (output_macinfo): Likewise. Emit .debug_macro* rather than
4222 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
4223 (init_sections_and_labels): Use .debug_macro* labels rather than
4224 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
4225 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
4226 or DW_AT_GNU_macros for -gdwarf-5.
4227
4228 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
4229
4230 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
4231
4232 2016-09-11 Le-Chun Wu <lcwu@google.com>
4233 Mark Wielaard <mjw@redhat.com>
4234
4235 * common.opt (Wshadow=global): New option. Default for -Wshadow.
4236 (Wshadow=local): New option.
4237 (Wshadow-local): Hidden alias for -Wshadow=local.
4238 (Wshadow=compatible-local): New option.
4239 (Wshadow-compatible-local): Hidden alias for
4240 -Wshadow=compatible-local.
4241 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
4242 Wshadow=compatible-local.
4243
4244 2016-10-31 Bin Cheng <bin.cheng@arm.com>
4245
4246 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
4247 Check slp defs for COND_EXPR by swapping/inverting operands if the
4248 new parameter SWAP indicates so.
4249 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
4250 is isomorphic to the first stmt via swapping/inverting. Store swap
4251 information in the new parameter SWAP.
4252 (vect_build_slp_tree): New local array SWAP and pass it to function
4253 vect_build_slp_tree_1. Cleanup result handling code for function
4254 call to vect_get_and_check_slp_defs. Skip operand swapping if the
4255 order of operands has been fixed as indicated by SWAP[i].
4256
4257 2016-10-31 Bin Cheng <bin.cheng@arm.com>
4258
4259 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
4260 unnecessary data dependence check after visited store stmt.
4261
4262 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4263
4264 PR tree-optimization/71915
4265 PR tree-optimization/71490
4266 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
4267 stride_type field.
4268 (find_basis_for_base_expr): Require stride types to match when
4269 seeking a basis.
4270 (alloc_cand_and_find_basis): Record the stride type.
4271 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
4272 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
4273 the expressions having those types.
4274 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
4275 (create_mul_ssa_cand): Likewise.
4276 (create_mul_imm_cand): Likewise.
4277 (create_add_ssa_cand): Likewise.
4278 (create_add_imm_cand): Likewise.
4279 (legal_cast_p_1): Change interface to accept types rather than the
4280 expressions having those types.
4281 (legal_cast_p): Pass types to legal_cast_p_1.
4282 (slsr_process_cast): Pass stride type to
4283 alloc_cand_and_find_basis.
4284 (slsr_process_copy): Likewise.
4285 (dump_candidate): Display stride type when a cast exists.
4286 (create_add_on_incoming_edge): Introduce a cast when necessary for
4287 the stride type.
4288 (analyze_increments): Change the code checking for invalid casts
4289 to rely on the stride type, and update the documentation and
4290 example. Change the code checking for pointer multiplies to rely
4291 on the stride type.
4292 (insert_initializers): Introduce a cast when necessary for the
4293 stride type. Use the stride type for the type of the initializer.
4294
4295 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4296
4297 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
4298
4299 2016-10-29 Jakub Jelinek <jakub@redhat.com>
4300
4301 PR rtl-optimization/77919
4302 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
4303 into memory if both modes are complex and their inner modes have the
4304 same precision. If the two modes are different complex modes, convert
4305 each part separately and generate a new CONCAT.
4306
4307 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
4308
4309 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
4310
4311 2016-10-29 Jakub Jelinek <jakub@redhat.com>
4312
4313 PR target/78148
4314 * gimple-ssa-store-merging.c
4315 (imm_store_chain_info::output_merged_store): Use build_aligned_type
4316 instead of SET_TYPE_ALIGN on shared integral type.
4317
4318 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
4319
4320 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
4321 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
4322 Adjust comment.
4323
4324 2016-10-28 Jeff Law <law@redhat.com>
4325
4326 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
4327 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
4328
4329 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4330
4331 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
4332
4333 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4334
4335 * target.def (min_arithmetic_precision): New hook.
4336 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
4337 * doc/tm.texi: Regenerate.
4338 * internal-fn.c (expand_arith_overflow): Adjust handling of target
4339 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
4340 * targhooks.c (default_min_arithmetic_precision): New function.
4341 * targhooks.h (default_min_arithmetic_precision): Declare.
4342 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
4343 (sparc_min_arithmetic_precision): New function.
4344
4345 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
4346
4347 PR target/71847
4348 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
4349 Swap commutative operands in new RTL if needed. Handle zero_ext
4350 in the set_dest.
4351 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
4352 PATTERN (insn).
4353
4354 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4355 Kugan Vivekanandarajah <kuganv@linaro.org>
4356 Jim Wilson <jim.wilson@linaro.org>
4357
4358 PR tree-optimization/43721
4359 * target.def: New hook expand_divmod_libfunc.
4360 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
4361 * doc/tm.texi: Regenerate.
4362 * internal-fn.def: Add new entry for DIVMOD ifn.
4363 * internal-fn.c (expand_DIVMOD): New.
4364 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
4365 targhooks.h.
4366 (widen_mul_stats): Add new field divmod_calls_inserted.
4367 (target_supports_divmod_p): New.
4368 (divmod_candidate_p): Likewise.
4369 (convert_to_divmod): Likewise.
4370 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
4371 renumber_gimple_stmt_uids at beginning of function. Call
4372 convert_to_divmod and record stats for divmod.
4373 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
4374 TARGET_EXPAND_DIVMOD_LIBFUNC.
4375 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
4376 divmod_simode.
4377
4378 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4379 Segher Boessenkool <segher@kernel.crashing.org>
4380
4381 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
4382 swapping the arms of the branch.
4383 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
4384 sequence for the generic signed-signed-signed case.
4385
4386 2016-10-28 Jeff Law <law@redhat.com>
4387
4388 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
4389 fallthru comment.
4390 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4391
4392 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
4393
4394 PR rtl-optimization/78029
4395 * function.c (prologue_contains, epilogue_contains): New functions.
4396 (record_prologue_seq, record_epilogue_seq): New functions.
4397 * function.h (prologue_contains, epilogue_contains,
4398 record_prologue_seq, record_epilogue_seq): New declarations.
4399 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
4400 mixing prologue and epilogue insns.
4401 (init_deps): Initialize the new fields in struct deps_desc.
4402 * sched-int.h (struct deps_desc): New fields last_prologue,
4403 last_epilogue, and last_logue_was_epilogue.
4404 * shrink-wrap.c (emit_common_heads_for_components): Record all
4405 emitted prologue and epilogue insns.
4406 (emit_common_tails_for_components): Ditto.
4407 (insert_prologue_epilogue_for_components): Ditto.
4408
4409 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4410
4411 PR middle-end/22141
4412 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
4413 * common.opt (fstore-merging): New Optimization option.
4414 * opts.c (default_options_table): Add entry for
4415 OPT_ftree_store_merging.
4416 * fold-const.h (can_native_encode_type_p): Declare prototype.
4417 * fold-const.c (can_native_encode_type_p): Define.
4418 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
4419 (PARAM_MAX_STORES_TO_MERGE): Likewise.
4420 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
4421 * passes.def: Insert pass_tree_store_merging.
4422 * tree-pass.h (make_pass_store_merging): Declare extern
4423 prototype.
4424 * gimple-ssa-store-merging.c: New file.
4425 * doc/invoke.texi (Optimization Options): Document
4426 -fstore-merging.
4427 (--param documentation): Document store-merging-allow-unaligned
4428 and max-stores-to-merge.
4429
4430 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
4431
4432 PR middle-end/72747
4433 * gimplify.c (gimplify_init_constructor): Move emit of constructor
4434 assignment to earlier in the if/else logic.
4435
4436 2016-10-28 Richard Biener <rguenther@suse.de>
4437
4438 PR middle-end/78128
4439 PR middle-end/71002
4440 * fold-const.c (make_bit_field_ref): Only adjust alias set
4441 when the original alias set was zero.
4442
4443 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4444
4445 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
4446 (s390_adjust_loops): New function.
4447 (s390_reorg): Invoke s390_adjust_loops.
4448 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
4449 ("osc_break"): New insn definition.
4450
4451 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4452
4453 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
4454 * config.gcc: Support alternate archXX cpu levels with
4455 --with-arch= and --with-tune=.
4456 * config/s390/linux.h: Translate new archXX cpu levels to the
4457 original names when calling GAS.
4458 * config/s390/tpf.h: Likewise.
4459 * doc/invoke.texi: Document the alternate cpu level names.
4460
4461 2016-10-28 Jakub Jelinek <jakub@redhat.com>
4462
4463 PR rtl-optimization/77919
4464 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
4465 MEM if mode1 is not a complex mode.
4466
4467 PR rtl-optimization/78132
4468 * ree.c (combine_reaching_defs): Give up if copy_needed and
4469 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
4470
4471 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
4472
4473 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
4474
4475 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4476
4477 * config/rs6000/constraints.md (wH constraint): Add new
4478 constraints for allowing 32-bit integers (and eventually 8/16-bit
4479 integers) into the vector registers.
4480 (wI constraint): Likewise.
4481 (wJ constraint): Likewise.
4482 (wK constraint): Likewise.
4483 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
4484 -mvsx-small-integer as a default option for ISA 2.07
4485 (i.e. power8).
4486 (POWERPC_MASKS): Likewise.
4487 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
4488 switch to turn off small integer support in vector registers.
4489 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
4490 test for -mupper-regs-di, since it is already done with the
4491 reg_add[mode].scalar_in_vsx_p. Add support for the switch
4492 -mvsx-small-integer.
4493 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
4494 constraints.
4495 (rs6000_setup_reg_addr_masks): Likewise.
4496 (rs6000_init_hard_regno_mode_ok): Likewise.
4497 (rs6000_option_override_internal): Add consistency checks for
4498 -mvsx-small-integer.
4499 (rs6000_secondary_reload_simple_move): SImode is a simple move if
4500 -mvsx-small-integer.
4501 (rs6000_secondary_reload): Use std::swap.
4502 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
4503 VSX_REGS for small integers in vector registers, since there is no
4504 D-FORM address mode for such types.
4505 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
4506 (rs6000_opt_masks): Add -mvsx-small-integer.
4507 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
4508 support.
4509 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
4510 extracts can be done on ISA 2.07.
4511 (vsx_extract_<mode>): Add support for small integers in vsx
4512 registers.
4513 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
4514 longer support V4SImode in this pattern.
4515 (vsx_extract_si): New insn to support extraction of SImode in ISA
4516 2.07 using either xxextractuw or vspltw.
4517 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
4518 longer support V4SImode in this pattern.
4519 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
4520 wJ, and wK constraints.
4521 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
4522 storing SDmode with VSX instructions.
4523 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
4524 GPR load and before the FPR and VSX loads. Remove ??, ! from the
4525 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
4526 small integers in vector registers.
4527 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
4528 load and before the FPR and VSX loads. Remove ??, ! from the
4529 constraints. Add VEXTSW2D support for small integers in vector
4530 registers.
4531 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
4532 integers in vector registers.
4533 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
4534 move instead of using an UNSPEC.
4535 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
4536 integers in vector registers.
4537 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
4538 move instead of using an UNSPEC.
4539 (movsi_internal1): Add support for -mvsx-small-integer. Align
4540 columns so that it is more readable.
4541 (SImode splitter for ISA 3.0 constants): Add splitter for
4542 -128..127 constants that can easily be constructed on ISA 3.0.
4543 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
4544 constraints.
4545
4546 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4547
4548 PR middle-end/78025
4549 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
4550 functions.
4551
4552 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4553
4554 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
4555 PIC_OFFSET_TABLE_REGNUM twice.
4556
4557 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4558
4559 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
4560 support for constant operand for OP.
4561
4562 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4563
4564 * dwarf2out.c (gen_member_die): Only reparent_child instead of
4565 splice_child_die if child doesn't have DW_AT_specification attribute.
4566
4567 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4568
4569 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
4570 (TARGET_HAVE_LDREXBH): Likewise.
4571 (TARGET_HAVE_LDACQ): Likewise.
4572
4573 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4574
4575 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
4576 logic to to decide whether to copy over old value to register for new
4577 value.
4578 * config/arm/sync.md: Add comments explaning why mode and code
4579 attribute are not defined in iterators.md
4580 (thumb1_atomic_op_str): New code attribute.
4581 (thumb1_atomic_newop_str): Likewise.
4582 (thumb1_atomic_fetch_op_str): Likewise.
4583 (thumb1_atomic_fetch_newop_str): Likewise.
4584 (thumb1_atomic_fetch_oldop_str): Likewise.
4585 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
4586 mirror the more restrictive constraints of the Thumb-1 insns after
4587 split compared to Thumb-2 counterpart insns.
4588 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
4589 in sync with non atomic version.
4590 (atomic_nand<mode>): Likewise.
4591 (atomic_fetch_<sync_optab><mode>): Likewise.
4592 (atomic_fetch_nand<mode>): Likewise.
4593 (atomic_<sync_optab>_fetch<mode>): Likewise.
4594 (atomic_nand_fetch<mode>): Likewise.
4595 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
4596 in sync with atomic version.
4597 (thumb1_subsi3_insn): Likewise.
4598 (thumb1_andsi3_insn): Likewise.
4599 (thumb1_iorsi3_insn): Likewise.
4600 (thumb1_xorsi3_insn): Likewise.
4601
4602 2016-10-27 Nick Clifton <nickc@redhat.com>
4603
4604 * plugin.c (register_plugin_info): Produce an error message if the
4605 plugin is not found in the hash table.
4606
4607 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4608
4609 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
4610 New pattern.
4611
4612 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
4613
4614 PR target/78056
4615 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
4616 define builtin functions from the bdesc_spe_predicates or
4617 bdesc_spe_evsel arrays if the builtin mask is not compatible with
4618 the current compiler configuration.
4619 (paired_init_builtins): Modify loop to not define define builtin
4620 functions from the bdesc_paried_preds array if the builtin mask is
4621 not compatible with the current compiler configuration.
4622 (altivec_init_builtins): Modify loops to not define the
4623 __builtin_altivec_stxvl function nor the builtin functions from
4624 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
4625 builtin mask is not compatible with the current compiler
4626 configuration.
4627
4628 2016-10-26 Jeff Law <law@redhat.com>
4629
4630 * config/sh/sh.c (output_branch): Add missing fallthru comments.
4631 (gen_shl_and): Likewise.
4632 * config/sh/sh.md (movsicc): Add missing fallthru comments.
4633
4634 * config/mips/mips.c (mips16_constant_cost): Add missing
4635 fallthru comments.
4636 (mips16_build_call_stub): Increase buffer size. Adjust
4637 fallthru comment.
4638
4639 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4640
4641 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
4642 INSN_UIDs for all insns in compact mode.
4643 (rtx_writer::print_rtx): Likewise.
4644 * print-rtl.h (rtx_writer::flag_compact): Update comment.
4645 * rtl-tests.c (selftest::test_dumping_insns): Update expected
4646 output to include INSN_UID.
4647 (selftest::test_uncond_jump): Likewise.
4648
4649 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
4650
4651 * haifa-sched.c (call_used_regs_num): Rename to...
4652 (call_saved_regs_num): ...this.
4653 (fixed_regs_num): New variable.
4654 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
4655 regs not call_used.
4656 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
4657
4658 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4659
4660 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
4661 class rtx_writer.
4662 * print-rtl.c (outfile): Delete global.
4663 (sawclose): Likewise.
4664 (indent): Likewise.
4665 (in_call_function_usage): Likewise.
4666 (flag_compact): Likewise.
4667 (flag_simple): Likewise.
4668 (rtx_writer::rtx_writer): New ctor.
4669 (print_rtx_operand_code_0): Convert to...
4670 (rtx_writer::print_rtx_operand_code_0): ...this.
4671 (print_rtx_operand_code_e): Convert to...
4672 (rtx_writer::print_rtx_operand_code_e): ...this.
4673 (print_rtx_operand_codes_E_and_V): Convert to...
4674 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
4675 (print_rtx_operand_code_i): Convert to...
4676 (rtx_writer::print_rtx_operand_code_i): ...this.
4677 (print_rtx_operand_code_r): Convert to...
4678 (rtx_writer::print_rtx_operand_code_r): ...this.
4679 (print_rtx_operand_code_u): Convert to...
4680 (rtx_writer::print_rtx_operand_code_u): ...this.
4681 (print_rtx_operand): Convert to...
4682 (rtx_writer::print_rtx_operand): ...this.
4683 (print_rtx): Convert to...
4684 (rtx_writer::print_rtx): ...this.
4685 (print_inline_rtx): Rewrite in terms of class rtx_writer.
4686 (debug_rtx): Likewise.
4687 (print_rtl): Convert to...
4688 (rtx_writer::print_rtl): ...this.
4689 (print_rtl): Reimplement in terms of class rtx_writer.
4690 (print_rtl_single): Rewrite in terms of class rtx_writer.
4691 (print_rtl_single_with_indent): Convert to..
4692 (rtx_writer::print_rtl_single_with_indent): ...this.
4693 (print_simple_rtl): Rewrite in terms of class rtx_writer.
4694 * print-rtl.h (flag_compact): Delete decl.
4695 (class rtx_writer): New class.
4696 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
4697 class rtx_writer.
4698
4699 2016-10-26 Jeff Law <law@redhat.com>
4700
4701 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
4702 fallthru.
4703
4704 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
4705 (check_if_valid_sleep_operand): Add missing fallthru comment.
4706 (arc_register_move_cost): Increase buffer size.
4707 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
4708 comment.
4709 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
4710
4711 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
4712 comment. Add gcc_unreachable for path that should never happen.
4713
4714 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
4715 fallthru comment.
4716
4717 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4718 Martin Liska <mliska@suse.cz>
4719
4720 PR fortran/77973
4721 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
4722 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
4723 on outer context if any.
4724
4725 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4726
4727 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
4728 by increment rather than double it.
4729 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
4730 emit a space before args[4].
4731 (END): Don't emit a space before with_arg.
4732
4733 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4734
4735 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
4736 Baseline only alternatives to (i) hold store atomic success value in a
4737 return register rather than a scratch register, (ii) use a low register
4738 for it and to (iii) ensure the cbranchsi insn generated by the split
4739 respect the constraints of Thumb-1 cbranchsi4_insn and
4740 cbranchsi4_scratch.
4741 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
4742 constraints must match those in atomic_compare_and_swap.
4743 (cbranchsi4_scratch): Likewise.
4744
4745 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4746
4747 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4748 variable. Add the new parameter to the insn generator. Set that
4749 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
4750 return value from the negation of that parameter for Thumb-1, keeping
4751 the logic unchanged otherwise except for using bdst as the destination
4752 register of the compare_and_swap insn.
4753 (arm_split_compare_and_swap): Add explanation about how is the value
4754 returned to the function comment. Rename scratch variable to
4755 neg_bval. Adapt initialization of variables holding operands to the
4756 new operand numbers. Use return register to hold result of store
4757 exclusive for Thumb-1, scratch register otherwise. Construct the
4758 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
4759 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
4760 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
4761 for strongly ordered compare_and_swap.
4762 * config/arm/predicates.md (cc_register_operand): New predicate.
4763 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
4764 match_operand with the new predicate to accept either the CC flag or a
4765 destination register for the boolean return value, restricting it to
4766 CC flag only via constraint. Adapt operand numbers accordingly.
4767
4768 2016-10-26 Jeff Law <law@redhat.com>
4769
4770 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4771
4772 * config/frv/frv.c (comparison_string): Do not fall through after
4773 an error.
4774
4775 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4776 comment.
4777 (expand_one_builtin): Add missing break.
4778
4779 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4780 (m32c_legitimate_address_p): Likewise.
4781
4782 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4783
4784 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4785
4786 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4787 fallthru comment.
4788
4789 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4790 fallthru comment.
4791
4792 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4793
4794 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4795 comment.
4796 (rl78_asm_ctor_dtor): Increase buffer size.
4797
4798 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4799 buffer size.
4800 (xstormy16_asm_output_constructor): Likewise.
4801
4802 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4803 size.
4804
4805 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4806 comment to silence warning.
4807
4808 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4809 (spu_legitimate_address_p): Fix logic error and add missing fallthru
4810 comment.
4811
4812 2016-10-26 Michael Matz <matz@suse.de>
4813
4814 PR tree-optimization/78060
4815 PR tree-optimization/78061
4816 PR tree-optimization/78088
4817 * tree-ssa-loop-split.c (easy_exit_values): New function.
4818 (tree_ssa_split_loops): Use it.
4819 (compute_new_first_bound): Change order of operations,
4820 fix invalid use of types.
4821
4822 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
4823
4824 gen-pass-instances.awk is sensitive to the order in which
4825 passes are added; passes that appear later have to be added first.
4826
4827 PR target/71676
4828 PR target/71678
4829 * config/avr/avr-passes.def: Swap order of directives for
4830 gen-pass-instances.awk.
4831
4832 2016-10-25 Jeff Law <law@redhat.com>
4833
4834 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4835 (vax_notice_update_cc): Likewise.
4836
4837 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4838
4839 * config.gcc (sparc*-*-solaris2*): Adjust.
4840 (sparc64-*-linux*): Likewise.
4841 * config/sparc/default-64.h: Rename to...
4842 * config/sparc/default64.h: ...this.
4843 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4844 with TARGET_ARCH64.
4845 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4846 * config/sparc/sparc.h: Minor tweaks.
4847 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4848 TARGET_ARCH32 throughout. Minor various tweaks throughout.
4849
4850 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4851
4852 * input.c (fcache::file_patch): Add comment about lifetime.
4853 (selftest::cpp_reader_ptr): New class.
4854 (selftest::lexer_test): Convert m_parser from cpp_reader *
4855 to a cpp_reader_ptr, and move m_tempfile to after it.
4856 (selftest::lexer_test::lexer_test): Update for above reordering.
4857 (lexer_test::~lexer_test): Move cleanup of m_parser to
4858 cpp_reader_ptr's dtor.
4859
4860 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4861
4862 * toplev.c (toplev::main): Remove call to
4863 location_adhoc_data_fini.
4864
4865 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4866
4867 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4868 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
4869
4870 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4871
4872 * ggc-tests.c (forcibly_ggc_collect): Rename to...
4873 (selftest::forcibly_ggc_collect): ...this, and remove "static".
4874 (test_basic_struct): Update for above renaming.
4875 (test_length): Likewise.
4876 (test_union): Likewise.
4877 (test_finalization): Likewise.
4878 (test_deletable_global): Likewise.
4879 (test_inheritance): Likewise.
4880 (test_chain_next): Likewise.
4881 (test_user_struct): Likewise.
4882 (test_tree_marking): Likewise.
4883 * selftest-run-tests.c (selftest::run_tests): Call
4884 selftest::forcibly_ggc_collect at the end of the selftests.
4885 * selftest.h (selftest::forcibly_ggc_collect): New decl.
4886
4887 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4888
4889 PR target/78102
4890 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4891 * optabs.c (expand_vec_cond_expr): For comparison codes
4892 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4893 (expand_vec_cmp_expr): For comparison codes
4894 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4895 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4896 Add enum tree_code argument.
4897 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4898 inline functions.
4899 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
4900 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4901 fallback.
4902 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
4903 NE_EXPR, attempt to use vcondeq_optab as fallback.
4904 * tree-vect-generic.c (expand_vector_comparison,
4905 expand_vector_divmod, expand_vector_condition): Adjust
4906 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4907 * tree-vect-stmts.c (vectorizable_condition,
4908 vectorizable_comparison): Likewise.
4909 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4910 check_bool_pattern, search_type_for_mask_1): Likewise.
4911 * expr.c (do_store_flag): Likewise.
4912 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4913 @code{vcondeq@var{m}@var{n}}): Document.
4914 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4915 New expanders.
4916
4917 2016-10-25 Jeff Law <law@redhat.com>
4918
4919 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4920 comment.
4921 (v850_output_aligned_bss): Add missing break.
4922
4923 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4924
4925 2016-10-25 Martin Liska <mliska@suse.cz>
4926
4927 PR sanitizer/78106
4928 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4929 statements as they can also contain possibly a freeing call.
4930
4931 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
4932 Martin Liska <mliska@suse.cz>
4933
4934 PR ipa/78099
4935 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4936 * ipa-icf.c (sem_function::get_hash): Add target optimization
4937 node to hash.
4938
4939 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
4940
4941 PR target/78041
4942 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4943 Remove partial overlap check for shift by 1.
4944 (ashldi3_neon): Likewise.
4945
4946 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4947
4948 * config/arm/constraints.md (Q constraint): Document its use for
4949 Thumb-1.
4950 (Pf constraint): New constraint for relaxed, consume or relaxed memory
4951 models.
4952 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4953 alternatives to allow any register when memory model matches Pf and
4954 thus lda is used, but only low registers otherwise. Use unpredicated
4955 output template for Thumb-1 targets.
4956 (atomic_store<mode>): Likewise for stl.
4957 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4958 whose output template does not have predication.
4959 (arm_load_acquire_exclusive<mode>): Likewise.
4960 (arm_load_exclusivesi): Likewise.
4961 (arm_load_acquire_exclusivesi): Likewise.
4962 (arm_store_release_exclusive<mode>): Likewise.
4963 (arm_store_exclusive<mode>): Use unpredicated output template for
4964 Thumb-1 targets.
4965
4966 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4967
4968 * internal-fn.def (LAUNDER): New internal function.
4969 * internal-fn.c (expand_LAUNDER): New function.
4970
4971 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4972 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4973
4974 New avr target pass to work around performance loss by PR fix.
4975
4976 PR target/71676
4977 PR target/71678
4978 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4979 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4980 * config/avr/predicates.md (extend_operator): New.
4981 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4982 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4983 (make_avr_pass_casesi): New prototypes.
4984 * config/avr/avr.c (print-rtl.h): Include it.
4985 (pass_data avr_pass_data_casesi): Data for new pass.
4986 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4987 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4988 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4989 (avr_optimize_casesi): New functions.
4990
4991 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4992 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4993
4994 PR target/71676
4995 PR target/71678
4996 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4997
4998 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4999
5000 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
5001 DW_AT_rvalue_reference attributes.
5002
5003 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
5004
5005 * doc/invoke.text (Wint-in-bool-context): Update documentation.
5006 * value-prof.c (stringop_block_profile): Fix a warning.
5007
5008 2016-10-24 Martin Sebor <msebor@redhat.com>
5009
5010 PR middle-end/77735
5011 * builtins.c (string_length): New function.
5012 (c_strlen): Use string_length. Correctly handle wide strings.
5013 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
5014 functions.
5015 (target_int_max): Call target_max_value.
5016 (format_result::knownrange): New data member.
5017 (fmtresult::fmtresult): Define default constructor.
5018 (format_integer): Use it and set format_result::knownrange.
5019 Handle global constants.
5020 (format_floating_max): Add third argument.
5021 (format_floating): Recompute maximum value for %a for each argument.
5022 (get_string_length): Use fmtresult default ctor.
5023 (format_string): Set format_result::knownrange.
5024 (format_directive): Check format_result::knownrange.
5025 (add_bytes): Same. Correct caret placement in diagnostics.
5026 (pass_sprintf_length::compute_format_length): Set
5027 format_result::knownrange.
5028 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
5029
5030 2016-10-24 Jakub Jelinek <jakub@redhat.com>
5031
5032 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
5033 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
5034
5035 2016-10-24 Ximin Luo <infinity0@pwned.gg>
5036
5037 PR debug/77985
5038 * dwarf2out.c (file_table_relative_p): Remove.
5039 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
5040 also for absolute paths.
5041 * doc/tm.texi: Update.
5042 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
5043 * target.def (force_at_comp_dir): Remove hook.
5044 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
5045
5046 2016-10-24 Richard Biener <rguenther@suse.de>
5047
5048 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
5049 backedges when identifying the single predecessor to take
5050 conditional info from. Use SCEV to get at ranges for loop IVs.
5051 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
5052 avoid false warning.
5053
5054 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
5055
5056 PR target/78093
5057 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
5058 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
5059 (avr_address_tiny_absdata_p): New static function.
5060 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
5061 it to determine validity of constant addresses.
5062 (avr_attribute_table) [absdata]: New variable attribute...
5063 (avr_handle_absdata_attribute): ...and handler.
5064 (avr_decl_absdata_p): New static function.
5065 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
5066 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
5067 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
5068
5069 2016-10-24 Richard Biener <rguenther@suse.de>
5070
5071 PR tree-optimization/78076
5072 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
5073 also on the loop tree root.
5074
5075 2016-10-24 Jakub Jelinek <jakub@redhat.com>
5076
5077 * config/i386/i386.c (ix86_fold_builtin): Handle
5078 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
5079 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
5080 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
5081 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
5082
5083 2016-10-24 Martin Liska <mliska@suse.cz>
5084
5085 PR sanitizer/77966
5086 * opts.c (finish_options): Skip conditionally.
5087
5088 2016-10-23 Martin Sebor <msebor@redhat.com>
5089
5090 PR target/77837
5091 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
5092 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
5093
5094 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
5095
5096 * config/sparc/sparc.md (cpu_feature): Minor tweak.
5097 (enabled): Likewise.
5098 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
5099 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
5100 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
5101 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
5102 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
5103 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
5104
5105 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
5106
5107 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
5108 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
5109
5110 2016-10-21 Andrew Pinski <apinski@cavium.com>
5111
5112 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
5113 integer constants.
5114 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
5115 implementer_id to unsigned char.
5116 Change part_no to unsigned int.
5117 (AARCH64_BIG_LITTLE): New define.
5118 (INVALID_IMP): New define.
5119 (INVALID_CORE): New define.
5120 (cpu_data): Change the last element's implementer_id and part_no to
5121 integers.
5122 (valid_bL_string_p): Rewrite to ..
5123 (valid_bL_core_p): this for integers instead of strings.
5124 (parse_field): New function.
5125 (contains_string_p): Rewrite to ...
5126 (contains_core_p): this for integers and only for the part_no.
5127 (host_detect_local_cpu): Rewrite handling of implementation and
5128 par num to be integers; simplifying the code.
5129
5130 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
5131
5132 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
5133 value range for pointers in more cases.
5134
5135 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
5136
5137 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
5138 Add extra argument to allow emitting the move immediate.
5139 Use add/sub with positive immediate.
5140 (aarch64_add_constant): Add inline function.
5141 (aarch64_add_sp): Likewise.
5142 (aarch64_sub_sp): Likewise.
5143 (aarch64_expand_prologue): Call aarch64_sub_sp.
5144 (aarch64_expand_epilogue): Call aarch64_add_sp.
5145 Decide when to leave out move.
5146 (aarch64_output_mi_thunk): Call aarch64_add_constant.
5147
5148 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
5149
5150 * config/aarch64/aarch64.c (aarch64_layout_frame):
5151 Align FP callee-saves.
5152
5153 2016-10-21 Jakub Jelinek <jakub@redhat.com>
5154
5155 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
5156 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
5157 Formatting fixes.
5158 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5159 _rdseed64_step): Likewise.
5160 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
5161
5162 PR target/78057
5163 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
5164 and tree-ssanames.h.
5165 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
5166 with INTEGER_CST argument.
5167 (ix86_gimple_fold_builtin): New function.
5168 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5169
5170 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
5171 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
5172 (ranges_table_allocated, ranges_table_in_use,
5173 ranges_by_label_allocated, ranges_by_label_in_use,
5174 RANGES_TABLE_INCREMENT): Removed.
5175 (add_ranges_num): Use vec_safe_push into ranges_table.
5176 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
5177 (output_ranges): Adjust for ranges_table and ranges_by_label
5178 conversion from arrays to vec.
5179 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
5180 conversion from arrays to vec.
5181 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
5182 ranges_table_in_use, ranges_by_label_allocated and
5183 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
5184
5185 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
5186 if needed. Re-add origin_die variable and its initialization.
5187
5188 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
5189 even for -fstack-reuse=none, or for volatile vars etc.
5190
5191 2016-10-21 David Malcolm <dmalcolm@redhat.com>
5192
5193 * print-rtl-function.c (flag_compact): Move extern decl to...
5194 * print-rtl.h (flag_compact): ...here.
5195 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
5196 (ASSERT_RTL_DUMP_EQ): New macro.
5197 (selftest::test_dumping_regs): New function.
5198 (selftest::test_dumping_insns): New function.
5199 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
5200 the insns.
5201 (selftest::rtl_tests_c_tests): Call the new test functions.
5202
5203 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5204
5205 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5206 (outgoing_edges_match): Likewise.
5207 (try_crossjump_to_edge): Likewise.
5208 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5209 (rtl_tidy_fallthru_edge): Likewise.
5210 * rtl.h (tablejump_p): Adjust prototype.
5211 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
5212
5213 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5214
5215 * rtl.h (label_ref_label): New function.
5216 (set_label_ref_label): New function.
5217 (LABEL_REF_LABEL): Delete.
5218 * alias.c (rtx_equal_for_memref_p): Adjust.
5219 * cfgbuild.c (make_edges): Likewise.
5220 (purge_dead_tablejump_edges): Likewise.
5221 * cfgexpand.c (convert_debug_memory_address): Likewise.
5222 * cfgrtl.c (patch_jump_insn): Likewise.
5223 * combine.c (distribute_notes): Likewise.
5224 * cse.c (hash_rtx_cb): Likewise.
5225 (exp_equiv_p): Likewise.
5226 (fold_rtx): Likewise.
5227 (check_for_label_ref): Likewise.
5228 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5229 (cselib_hash_rtx): Likewise.
5230 * emit-rtl.c (mark_label_nuses): Likewise.
5231 * explow.c (convert_memory_address_addr_space_1): Likewise.
5232 * final.c (output_asm_label): Likewise.
5233 (output_addr_const): Likewise.
5234 * gcse.c (add_label_notes): Likewise.
5235 * genconfig.c (walk_insn_part): Likewise.
5236 * genrecog.c (validate_pattern): Likewise.
5237 * ifcvt.c (cond_exec_get_condition): Likewise.
5238 (noce_emit_store_flag): Likewise.
5239 (noce_get_alt_condition): Likewise.
5240 (noce_get_condition): Likewise.
5241 * jump.c (maybe_propagate_label_ref): Likewise.
5242 (mark_jump_label_1): Likewise.
5243 (redirect_exp_1): Likewise.
5244 (rtx_renumbered_equal_p): Likewise.
5245 * lra-constraints.c (operands_match_p): Likewise.
5246 * print-rtl.c (print_value): Likewise.
5247 * reload.c (find_reloads): Likewise.
5248 * reload1.c (set_label_offsets): Likewise.
5249 * reorg.c (get_branch_condition): Likewise.
5250 * rtl-tests.c (test_uncond_jump): Likewise.
5251 * rtl.c (rtx_equal_p_cb): Likewise.
5252 (rtx_equal_p): Likewise.
5253 * rtlanal.c (reg_mentioned_p): Likewise.
5254 (rtx_referenced_p): Likewise.
5255 (get_condition): Likewise.
5256 * varasm.c (const_hash_1): Likewise.
5257 (compare_constant): Likewise.
5258 (const_rtx_hash_1): Likewise.
5259 (output_constant_pool_1): Likewise.
5260
5261 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5262
5263 PR target/71627
5264 * reload.c (find_valid_class_1): Allow regclass if atleast one
5265 regno in regclass is ok. Compute and use rclass size based on
5266 actually available regnos for mode in rclass.
5267
5268 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
5269
5270 * config/sparc/sparc-modes.def (CCV): New.
5271 (CCXV): Likewise.
5272 * config/sparc/predicates.md (v_comparison_operator): New.
5273 (icc_comparison_operator): Add support for CCV/CCXV.
5274 (xcc_comparison_operator): Likewise.
5275 * config/sparc/sparc.c (output_cbranch): Likewise.
5276 (sparc_print_operand): Likewise.
5277 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5278 (uaddvdi4): New expander.
5279 (addvdi4): Likewise.
5280 (uaddvdi4_sp32): New instruction.
5281 (addvdi4_sp32): Likewise.
5282 (uaddvsi4): New expander.
5283 (addvsi4): Likewise.
5284 (cmp_ccc_plus_sltu_set): New instruction.
5285 (cmp_ccv_plus): Likewise.
5286 (cmp_ccxv_plus): Likewise.
5287 (cmp_ccv_plus_set): Likewise.
5288 (cmp_ccxv_plus_set): Likewise.
5289 (cmp_ccv_plus_sltu_set): Likewise.
5290 (uaddvdi4): New expander.
5291 (subvdi4): Likewise.
5292 (usubdi4_sp32): New instruction.
5293 (subvdi4_sp32): Likewise.
5294 (usubvsi4): New expander.
5295 (subvsi4): Likewise.
5296 (cmpsi_minus_sltu_set): New instruction.
5297 (cmp_ccv_minus): Likewise.
5298 (cmp_ccxv_minus): Likewise.
5299 (cmp_ccv_minus_set): Likewise.
5300 (cmp_ccxv_minus_set): Likewise.
5301 (cmp_ccv_minus_sltu_set): Likewise.
5302 (unegvdi3): New expander.
5303 (negvdi3): Likewise.
5304 (unegdi3_sp32): New instruction.
5305 (negvdi3_sp32): Likewise.
5306 (unegvsi3): New expander.
5307 (negvsi3): Likewise.
5308 (cmp_ccc_neg_sltu_set): New instruction.
5309 (cmp_ccv_neg): Likewise.
5310 (cmp_ccxv_neg): Likewise.
5311 (cmp_ccv_neg_set): Likewise.
5312 (cmp_ccxv_neg_set): Likewise.
5313 (cmp_ccv_neg_sltu_set): Likewise.
5314
5315 * tree-ssa-loop-split.c: Remove trailing spaces.
5316 * match.pd: Likewise.
5317
5318 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5319
5320 PR rtl-optimization/78038
5321 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
5322 be deduced to set REG through the RTL structure.
5323 (make_defs_and_copies_lists): Return false on a failing get_defs call.
5324
5325 2016-10-21 Richard Biener <rguenther@suse.de>
5326
5327 PR tree-optimization/78051
5328 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
5329 and mark replaced if folding did something.
5330
5331 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
5332
5333 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
5334 and "protected" in visibility types.
5335 (rs6000_xcoff_declare_function_name): Fix formatting.
5336 (rs6000_xcoff_declare_object_name): Fix formatting.
5337
5338 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
5339
5340 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
5341 and IX86_BUILTIN_HUGE_VALQ here ...
5342 (ix86_expand_builtin): ... not here.
5343
5344 2016-10-20 Jakub Jelinek <jakub@redhat.com>
5345
5346 * doc/gty.texi (for_user): Use @item next to @findex.
5347
5348 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
5349
5350 PR target/78037
5351 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
5352 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
5353 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
5354 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
5355 __builtin_ia32_lzcnt_u16.
5356 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
5357 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
5358 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
5359 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
5360 (bmi_tzcnt_<mode>): New expander.
5361 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5362 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
5363 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
5364 (lzcnt_<mode>): New expander.
5365 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5366 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
5367 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
5368 (UINT64_FTYPE_UINT64): New.
5369 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
5370 (__builtin_ia32_lzcnt_u16): New description.
5371 (__builtin_ia32_lzcnt_u32): Ditto.
5372 (__builtin_ia32_lzcnt_u64): Ditto.
5373 (__builtin_ctzs): Remove description.
5374 (__builtin_ia32_tzcnt_u16): New description.
5375 (__builtin_ia32_tzcnt_u32): Ditto.
5376 (__builtin_ia32_tzcnt_u64): Ditto.
5377 * config/i386/i386.c (ix86_expand_args_builtin): Handle
5378 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
5379
5380 2016-10-20 Martin Liska <mliska@suse.cz>
5381
5382 PR lto/78049
5383 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
5384 comparison with STMT_UID_NOT_IN_RANGE.
5385 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
5386 LTRANS.
5387
5388 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
5389
5390 * compare-elim.c (conforming_compare): Accept UNSPECs.
5391 (find_comparison_dom_walker::before_dom_children): Deal with
5392 instructions both using and killing the flags register.
5393 (equivalent_reg_at_start): New function extracted from...
5394 (try_eliminate_compare): ...here. Use it and add support for
5395 registers and UNSPECs as second operand of the compare.
5396 * config/visium/visium-modes.def (CCV): New.
5397 * config/visium/predicates.md (visium_v_comparison_operator): New.
5398 (visium_branch_operator): Deal with CCV mode.
5399 * config/visium/visium.c (visium_select_cc_mode): Likewise.
5400 (output_cbranch): Likewise.
5401 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5402 (uaddv<mode>4): New expander.
5403 (addv<mode>4): Likewise.
5404 (add<mode>3_insn_set_carry): New instruction.
5405 (add<mode>3_insn_set_overflow): Likewise.
5406 (addsi3_insn_set_overflow): Likewise.
5407 (usubv<mode>4): New expander.
5408 (subv<mode>4): Likewise.
5409 (sub<mode>3_insn_set_carry): New instruction.
5410 (sub<mode>3_insn_set_overflow): Likewise.
5411 (subsi3_insn_set_overflow): Likewise.
5412 (unegv<mode>3): New expander.
5413 (negv<mode>3): Likewise.
5414 (neg<mode>2_insn_set_overflow): New instruction.
5415 (addv_tst<mode>): Likewise.
5416 (subv_tst<mode>): Likewise.
5417 (negv_tst<mode>): Likewise.
5418 (cbranch<mode>4_addv_insn): New splitter and instruction.
5419 (cbranch<mode>4_subv_insn): Likewise.
5420 (cbranch<mode>4_negv_insn): Likewise.
5421
5422 2016-10-20 Richard Biener <rguenther@suse.de>
5423
5424 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
5425 Handle decls possibly not bound.
5426 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
5427 nothing_id for decls that might not be bound if we are interested
5428 for the address.
5429 (get_constraint_for_component_ref): Deal with that.
5430
5431 2016-10-20 Michael Matz <matz@suse.de>
5432
5433 Loop splitting.
5434 * common.opt (-fsplit-loops): New flag.
5435 * passes.def (pass_loop_split): Add.
5436 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
5437 (enable_fdo_optimizations): Add loop splitting.
5438 * timevar.def (TV_LOOP_SPLIT): Add.
5439 * tree-pass.h (make_pass_loop_split): Declare.
5440 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
5441 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
5442 * tree-ssa-loop-split.c: New file.
5443 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
5444 * doc/invoke.texi (fsplit-loops): Document.
5445 * doc/passes.texi (Loop optimization): Add paragraph about loop
5446 splitting.
5447
5448 2016-10-20 Richard Biener <rguenther@suse.de>
5449
5450 * cgraphunit.c (analyze_functions): Set node->definition to
5451 false to signal symbol removal to debug_hooks->late_global_decl.
5452 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
5453 WPA signal symbol removal to the debuginfo machinery.
5454 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
5455 using early_finised to guard the we're called for symbol
5456 removal case look at the symtabs definition flag.
5457 (gen_variable_die): Remove redundant check.
5458
5459 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5460
5461 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
5462
5463 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5464
5465 PR tree-optimization/53979
5466 * match.pd ((a ^ b) | a -> a | b): New pattern.
5467
5468 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
5469
5470 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
5471 config/pa/pa64-hpux-lib.h.
5472 (PA_CRTBEGIN_HACK): Likewise.
5473 (DTOR_LIST_BEGIN): Likewise.
5474
5475 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5476
5477 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5478 register only if "in" and "out" are different registers.
5479
5480 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
5481
5482 * omp-low.c (pass_oacc_device_lower::gate): New method.
5483 (execute): Always call execute_oacc_device_lower.
5484
5485 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5486
5487 PR tree-optimization/77916
5488 PR tree-optimization/77937
5489 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
5490 stopgap fix.
5491 (insert_initializers): Requirement of initializer for -1 should be
5492 based on pointer-typedness of the candidate basis.
5493
5494 2016-10-19 Bin Cheng <bin.cheng@arm.com>
5495
5496 PR tree-optimization/78005
5497 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5498 upper (included) bound for niters of prolog loop.
5499 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
5500 Compute niters of scalar loop above which vectorized loop is
5501 preferred, as well as the upper (included) bound for the niters.
5502 (vect_do_peeling): Record niter bound for loops accordingly.
5503
5504 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5505
5506 PR lto/77458
5507 * tree-core.h (enum tree_index): Put the complex types after their
5508 component types.
5509 * tree-streamer.c (verify_common_node_recorded): New function.
5510 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
5511
5512 2016-10-19 Martin Liska <mliska@suse.cz>
5513
5514 * cgraph.h (cgraph_edge::binds_to_current_def_p):
5515 Replace NULL with false as a return value.
5516
5517 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5518
5519 PR tree-optimization/78024
5520 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5521 don't clear BB_VISITED after processing.
5522
5523 2016-10-19 Richard Biener <rguenther@suse.de>
5524
5525 * domwalk.c (dom_walker::walk): Use RPO order.
5526
5527 2016-10-19 Richard Biener <rguenther@suse.de>
5528
5529 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
5530 stmts_to_remove.
5531 (evrp_dom_walker::~evrp_dom_walker): Free it.
5532 (evrp_dom_walker::stmts_to_remove): Add.
5533 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
5534 whose output we fully propagate for removal. Propagate
5535 into BB destination PHI arguments.
5536 (execute_early_vrp): Remove queued stmts. Dump value ranges
5537 before stmt removal.
5538
5539 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
5540
5541 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
5542 * passes.def: Add two instances of pass_walloca.
5543 * tree-pass.h (make_pass_walloca): New.
5544 * gimple-ssa-warn-alloca.c: New file.
5545 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
5546 -Wvla-larger-than= options.
5547
5548 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
5549
5550 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
5551 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
5552
5553 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
5554
5555 * config/rs6000/altivec.h (vec_xl_len): New macro.
5556 (vec_xst_len): New macro.
5557 (vec_cmpnez): New macro.
5558 (vec_cntlz_lsbb): New macro.
5559 (vec_cnttz_lsbb): New macro.
5560 (vec_xlx): New macro.
5561 (vec_xrx): New macro.
5562 (vec_all_nez): New C++ predicate template.
5563 (vec_any_eqz): New C++ predicate template.
5564 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
5565 conditional compilation.
5566 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
5567 conditional compilation.
5568 (vec_all_nez): New macro.
5569 (vec_any_eqz): New macro.
5570 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
5571 compilation.
5572 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
5573 compilation.
5574 * config/rs6000/vector.md (VI): Moved this mode iterator
5575 definition from altivec.md to vector.md.
5576 (UNSPEC_NEZ_P): New value.
5577 (vector_ne_<mode>_p): New expansion for implementation of
5578 vec_all_ne and vec_any_eq built-in functions.
5579 (vector_nez_<mode>_p): New expansion for implementation of
5580 vec_all_nez and vec_any_eqz built-in functions.
5581 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
5582 and vec_any_eq built-in function.
5583 (cr6_test_for_zero): New commentary to explain this expansion.
5584 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
5585 (cr6_test_for_lt): New commentary to explain this expansion.
5586 (cr6_test_for_lt_reverse): New commentary to explain this
5587 expansion.
5588 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5589 overloaded function prototypes for vec_all_ne, vec_all_nez,
5590 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
5591 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
5592 built-in functions.
5593 (altivec_resolve_overloaded_builtin): Modify the handling of
5594 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
5595 the compiler is configured to support TARGET_P9_VECTOR.
5596 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
5597 to explain the special processing that is given to predicate
5598 built-ins introduced using this macro.
5599 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
5600 the special processing given to predicate built-ins introduced
5601 using this macro.
5602 (BU_VSX_P): Likewise.
5603 (BU_P8V_AV_P): Likewise.
5604 (BU_P9V_AV_P): Likewise.
5605 (BU_P9V_AV_X): New macro.
5606 (BU_P9V_64BIT_AV_X): New macro.
5607 (BU_P9V_VSX_3): New macro.
5608 (BU_P9V_OVERLOAD_P): New macro.
5609 (LXVL): New BU_P9V_64BIT_VSX_2.
5610 (VEXTUBLX): New BU_P9V_AV_2.
5611 (VEXTUBRX): Likewise.
5612 (VEXTUHLX): Likewise.
5613 (VEXTUHRX): Likewise.
5614 (VEXTUWLX): Likewise.
5615 (VEXTUWRX): Likewise.
5616 (STXVL): New BU_P9V_64BIT_AV_X.
5617 (VCLZLSBB): New BU_P9V_AV_1.
5618 (VCTZLSBB): Likewise.
5619 (CMPNEB): New BU_P9V_AV_2.
5620 (CMPNEH): Likewise.
5621 (CMPNEW): Likewise.
5622 (CMPNEF): Likewise.
5623 (CMPNED): Likewise.
5624 (VCMPNEB_P): New BU_P9V_AV_P.
5625 (VCMPNEH_P): Likewise.
5626 (VCMPNEW_P): Likewise.
5627 (VCMPNED_P): Likewise.
5628 (VCMPNEFP_P): Likewise.
5629 (VCMPNEDP_P): Likewise.
5630 (CMPNEZB): New BU_P9V_AV_2.
5631 (CMPNEZH): Likewise.
5632 (CMPNEZW): Likewise.
5633 (VCMPNEZB_P): New BU_P9V_AV_P.
5634 (VCMPNEZH_P): Likewise.
5635 (VCMPNEZW_P): Likewise.
5636 (LXVL): New BU_P9V_OVERLOAD_2.
5637 (STXVL): New BU_P9V_OVERLOAD_3.
5638 (VEXTULX): New BU_P9V_OVERLOAD_2.
5639 (VEXTURX): Likewise.
5640 (CMPNEZ): Likewise.
5641 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
5642 (VCMPNE_P): Likewise.
5643 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
5644 (VCTZLSBB): Likewise.
5645 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
5646 comment to explain mode used for scratch register.
5647 (altivec_expand_stxvl_builtin): New function.
5648 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
5649 (altivec_init_builtins): Add initialized variable
5650 void_ftype_v16qi_pvoid_long and use this type to define the
5651 built-in function __builtin_altivec_stxvl.
5652 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
5653 (UNSPEC_STXVL): New value.
5654 (UNSPEC_VCLZLSBB): New value.
5655 (UNSPEC_VCTZLSBB): New value.
5656 (UNSPEC_VEXTUBLX): New value.
5657 (UNSPEC_VEXTUHLX): New value.
5658 (UNSPEC_VEXTUWLX): New value.
5659 (UNSPEC_VEXTUBRX): New value.
5660 (UNSPEC_VEXTUHRX): New value.
5661 (UNSPEC_VEXTUWRX): New value.
5662 (UNSPEC_VCMPNEB): New value.
5663 (UNSPEC_VCMPNEZB): New value.
5664 (UNSPEC_VCMPNEH): New value.
5665 (UNSPEC_VCMPNEZH): New value.
5666 (UNSPEC_VCMPNEW): New value.
5667 (UNSPEC_VCMPNEZW): New value.
5668 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5669 vector of integer modes.
5670 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5671 vector of float or double modes.
5672 (*vector_nez_<mode>_p): New insn for vector test all not equal or
5673 zero.
5674 (lxvl): New expand for load VSX vector with length.
5675 (*lxvl): New insn for load VSX vector with length.
5676 (stxvl): New expand for store VSX vector with length.
5677 (*stxvl): New insn for store VSX vector with length.
5678 (vcmpneb): New insn for vector of byte compare not equal.
5679 (vcmpnezb): New insn for vector of byte compare not equal or zero.
5680 (vcmpneh): New insn for vector of half word compare not equal.
5681 (vcmpnezh): New insn for vector of half word compare not equal or
5682 zero.
5683 (vcmpnew): New insn for vector of word compare not equal.
5684 (vcmpne<VSs>): New insn for vector of float or double compare not
5685 equal.
5686 (vcmpnezw): New insn for vector of word compare not equal or zero.
5687 (vclzlsbb): New insn for vector count leading zero
5688 least-significant bits byte.
5689 (vctzlsbb): New insn for vector count trailing zero least
5690 signficant bits byte.
5691 (vextublx): New insn for vector extract unsigned byte left
5692 indexed.
5693 (vextubrx): New insn for vector extract unsigned byte right
5694 indexed.
5695 (vextuhlx): New insn for vector extract unsigned half word left
5696 indexed.
5697 (vextuhrx): New insn for vector extract unsigned half word right
5698 indexed.
5699 (vextuwlx): New insn for vector extract unsigned word left
5700 indexed.
5701 (vextuwrx): New insn for vector extract unsigned word right
5702 indexed.
5703 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
5704 clarify intent of this constant.
5705 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
5706 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
5707 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
5708 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
5709 and vec_xrx functions.
5710
5711 2016-10-18 Andrew Pinski <apinski@cavium.com>
5712
5713 PR tree-opt/65950
5714 * predict.c (is_exit_with_zero_arg): New function.
5715 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
5716 as nottaken.
5717
5718 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
5719
5720 PR target/77991
5721 * config/i386/i386.c (legitimize_tls_address)
5722 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
5723 convert dest to Pmode if different than Pmode.
5724
5725 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5726
5727 PR tree-optimization/77916
5728 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
5729 stopgap fix, as pointers with -1 increment are still broken.
5730
5731 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
5732
5733 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
5734 mapping class decoration from here...
5735 (rs6000_xcoff_encode_section): ...to here.
5736
5737 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
5738 if shrink-wrapping and optimizing for speed.
5739
5740 2016-10-18 Richard Biener <rguenther@suse.de>
5741
5742 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5743 not visited but non-executable predecessors. Return taken edge.
5744 Simplify conditions and refactor propagation vs. folding step.
5745
5746 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
5747
5748 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
5749 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
5750 (rs6000_get_separate_components): Assert we do not have those
5751 strategies selected.
5752
5753 2016-10-18 Richard Biener <rguenther@suse.de>
5754
5755 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
5756 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
5757 clearing.
5758 (substitute_and_fold_dom_walker): Adjust constructor.
5759 (substitute_and_fold_dom_walker::before_dom_children): Remove
5760 do_dce flag and handling (always true).
5761 (substitute_and_fold): Likewise.
5762 * tree-vrp.c (vrp_finalize): Adjust.
5763 (execute_early_vrp): Remove final BB_VISITED clearing.
5764 * tree-ssa-ccp.c (ccp_finalize): Adjust.
5765 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5766 * ira.c (ira): Call clear_bb_flags.
5767
5768 2016-10-18 Richard Biener <rguenther@suse.de>
5769
5770 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5771 get at the operand to look at with TREE_OPERAND for generic
5772 sub-nodes.
5773
5774 2016-10-18 David Malcolm <dmalcolm@redhat.com>
5775
5776 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5777 copy_md_ptr_loc.
5778 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5779 (write_test_expr): Use rtx_reader_ptr for calls to
5780 fprint_c_condition.
5781 (write_attr_value): Likewise.
5782 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5783 call to print_md_ptr_loc.
5784 (write_one_condition): Likewise for calls to print_c_condition.
5785 * genconstants.c: Include "statistics.h" and "vec.h".
5786 (main): Update for conversion to member functions.
5787 * genemit.c (emit_c_code): Use rtx_reader_ptr for
5788 call to print_md_ptr_loc.
5789 * genenums.c: Include "statistics.h" and "vec.h".
5790 (main): Update for conversion of traverse_enum_types to a method.
5791 * genmddeps.c: Include "statistics.h" and "vec.h".
5792 * genoutput.c (process_template): Use rtx_reader_ptr for call to
5793 print_md_ptr_loc.
5794 * genpreds.c (write_predicate_subfunction): Likewise.
5795 (write_predicate_expr): Likewise for calls to print_c_condition.
5796 * genrecog.c (print_test): Likewise.
5797 * gensupport.c (process_rtx): Likewise for calls to
5798 copy_md_ptr_loc and join_c_conditions.
5799 (alter_test_for_insn): Likewise for call to join_c_conditions.
5800 (process_substs_on_one_elem): Likewise.
5801 (gen_mnemonic_setattr): Update for move of string_obstack to a
5802 field of rtx_reader.
5803 (mnemonic_htab_callback): Likewise. Fix formatting.
5804 (gen_mnemonic_attr): Likewise.
5805 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5806 to print_c_condition.
5807 * read-md.c: Include "statistics.h" and "vec.h".
5808 (string_obstack): Convert this global to field "m_string_obstack"
5809 of class rtx_reader.
5810 (ptr_locs): Likewise, as "m_ptr_locs".
5811 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5812 (joined_conditions): Likewise, as "m_joined_conditions".
5813 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5814 (md_constants): Likewise, as "m_md_constants".
5815 (enum_types): Likewise, as "m_enum_types".
5816 (set_md_ptr_loc): Convert to...
5817 (rtx_reader::set_md_ptr_loc): ...member function.
5818 (get_md_ptr_loc): Convert to...
5819 (rtx_reader::get_md_ptr_loc): ...member function.
5820 (copy_md_ptr_loc): Convert to...
5821 (rtx_reader::copy_md_ptr_loc): ...member function.
5822 (fprint_md_ptr_loc): Convert to...
5823 (rtx_reader::fprint_md_ptr_loc): ...member function.
5824 (print_md_ptr_loc): Convert to...
5825 (rtx_reader::print_md_ptr_loc): ...member function.
5826 (join_c_conditions): Convert to...
5827 (rtx_reader::join_c_conditions): ...member function.
5828 (fprint_c_condition): Convert to...
5829 (rtx_reader::fprint_c_condition): ...member function.
5830 (print_c_condition): Convert to...
5831 (rtx_reader::print_c_condition): ...member function.
5832 (read_name): Convert to...
5833 (rtx_reader::read_name): ...member function.
5834 (read_escape): Convert to...
5835 (rtx_reader::read_escape): ...member function.
5836 (read_quoted_string): Convert to...
5837 (rtx_reader::read_quoted_string): ...member function.
5838 (read_braced_string): Convert to...
5839 (rtx_reader::read_braced_string): ...member function.
5840 (read_string): Convert to...
5841 (rtx_reader::read_string): ...member function.
5842 (read_skip_construct): Convert to...
5843 (rtx_reader::read_skip_construct): ...member function.
5844 (handle_constants): Convert to...
5845 (rtx_reader::handle_constants): ...member function.
5846 (traverse_md_constants): Convert to...
5847 (rtx_reader::traverse_md_constants): ...member function.
5848 (handle_enum): Convert to...
5849 (rtx_reader::handle_enum): ...member function.
5850 (lookup_enum_type): Convert to...
5851 (rtx_reader::lookup_enum_type): ...member function.
5852 (traverse_enum_types): Convert to...
5853 (rtx_reader::traverse_enum_types): ...member function.
5854 (rtx_reader::rtx_reader): Move initializations
5855 of various former global data from rtx_reader::read_md_files to
5856 here, as fields, along with the call to unlock_std_streams.
5857 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5858 the new fields.
5859 (rtx_reader::read_md_files): Move initializations of various
5860 global data from here to the ctor.
5861 * read-md.h (read_name): Convert to...
5862 (rtx_reader::read_name): ...member function.
5863 (rtx_reader::read_escape): New method decl.
5864 (read_quoted_string): Convert to...
5865 (rtx_reader::read_quoted_string): ...member function.
5866 (rtx_reader::read_braced_string): New method decl.
5867 (read_string): Convert to...
5868 (rtx_reader::read_string): ...member function.
5869 (rtx_reader::read_skip_construct): New method decl.
5870 (rtx_reader::set_md_ptr_loc): New method decl.
5871 (rtx_reader::get_md_ptr_loc): New method decl.
5872 (copy_md_ptr_loc): Convert to...
5873 (rtx_reader::copy_md_ptr_loc): ...member function.
5874 (fprint_md_ptr_loc): Convert to...
5875 (rtx_reader::fprint_md_ptr_loc): ...member function.
5876 (print_md_ptr_loc): Convert to...
5877 (rtx_reader::print_md_ptr_loc): ...member function.
5878 (rtx_reader::lookup_enum_type): New method decl.
5879 (rtx_reader::traverse_enum_types): New method decl.
5880 (rtx_reader::handle_constants): New method decl.
5881 (traverse_md_constants): Convert to...
5882 (rtx_reader::traverse_md_constants): ...member function.
5883 (rtx_reader::handle_enum): New method decl.
5884 (rtx_reader::join_c_conditions): New method decl.
5885 (fprint_c_condition): Convert to...
5886 (rtx_reader::fprint_c_condition): ...member function.
5887 (print_c_condition): Convert to...
5888 (rtx_reader::print_c_condition): ...member function.
5889 (rtx_reader::apply_iterator_to_string): New method decl.
5890 (rtx_reader::copy_rtx_for_iterators): New method decl.
5891 (rtx_reader::read_conditions): New method decl.
5892 (rtx_reader::record_potential_iterator_use): New method decl.
5893 (rtx_reader::read_mapping): New method decl.
5894 (rtx_reader::read_rtx): New method decl.
5895 (rtx_reader::read_rtx_code): New method decl.
5896 (rtx_reader::read_rtx_operand): New method decl.
5897 (rtx_reader::read_nested_rtx): New method decl.
5898 (rtx_reader::read_rtx_variadic): New method decl.
5899 (rtx_reader::get_string_obstack): New method.
5900 (rtx_reader::get_md_constants): New method.
5901 (string_obstack): Convert global variable decl to...
5902 (rtx_reader::m_string_obstack): ...this new field.
5903 (rtx_reader::m_ptr_locs): New field.
5904 (rtx_reader::m_ptr_loc_obstack): New field.
5905 (rtx_reader::m_joined_conditions): New field.
5906 (rtx_reader::m_joined_conditions_obstack): New field.
5907 (rtx_reader::m_md_constants): New field.
5908 (rtx_reader::m_enum_types): New field.
5909 * read-rtl.c (apply_iterator_to_string): Convert to...
5910 (rtx_reader::apply_iterator_to_string): ...member function.
5911 (copy_rtx_for_iterators): Convert to...
5912 (rtx_reader::copy_rtx_for_iterators): ...member function.
5913 (add_condition_to_string): Use rtx_reader_ptr for
5914 calls join_c_conditions.
5915 (apply_iterators): Use rtx_reader_ptr for calls to
5916 join_c_conditions and copy_rtx_for_iterators.
5917 (read_conditions): Convert to...
5918 (rtx_reader::read_conditions): ...member function.
5919 (record_potential_iterator_use): Convert to...
5920 (rtx_reader::record_potential_iterator_use): ...member function.
5921 (read_mapping): Convert to...
5922 (rtx_reader::read_mapping): ...member function.
5923 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5924 (read_rtx): Convert to...
5925 (rtx_reader::read_rtx): ...member function.
5926 (read_rtx_code): Convert to...
5927 (rtx_reader::read_rtx_code): ...member function.
5928 (read_rtx_operand): Convert to...
5929 (rtx_reader::read_rtx_operand): ...member function. Update for move
5930 of string_obstack to a field.
5931 (read_nested_rtx): Convert to..
5932 (rtx_reader::read_nested_rtx): ...member function.
5933 (read_rtx_variadic): Convert to..
5934 (rtx_reader::read_rtx_variadic): ...member function.
5935
5936 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5937
5938 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5939
5940 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5941
5942 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5943 for pointer type too.
5944 (ipcp_update_vr): set_ptr_nonnull for pointer.
5945
5946 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5947
5948 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5949 pt_solution_singleton_p.
5950 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5951 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5952 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5953 pointer nonnull computed by VRP.
5954 Also Conservatively set pt.null to 1.
5955 (pt_solution_reset): Conservatively set pt.null to 1.
5956 (pt_solution_singleton_or_null_p): Renamed from
5957 pt_solution_singleton_p.
5958 * tree-ssanames.h (set_ptr_nonnull): Declare.
5959 (get_ptr_nonnull): Likewise.
5960 * tree-ssanames.c (set_ptr_nonnull): New.
5961 (get_ptr_nonnull): Likewise.
5962 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5963 (evrp_dom_walker::before_dom_children): Likewise.
5964
5965 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5966
5967 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5968 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5969 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5970 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5971 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5972 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5973 (rs6000_option_override_internal): Clear it if ABI_AIX.
5974 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5975 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5976
5977 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5978
5979 * gimple-ssa-strength-reduction.c (record_increment): Remove
5980 garbage comment.
5981
5982 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5983
5984 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5985 that the result is non-zero if it is true.
5986 (maybe_expand_shift): New wrapper around expand_shift_1.
5987 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5988
5989 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5990
5991 PR tree-optimization/77916
5992 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5993 Don't allow a MINUS_EXPR for pointer arithmetic for either known
5994 or unknown strides.
5995 (record_increment): Increments of -1 for unknown strides just use
5996 a multiply initializer like other negative values.
5997 (analyze_increments): Remove stopgap solution for -1 increment
5998 applied to pointer arithmetic.
5999
6000 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
6001
6002 * dominance.c (dom_info::dom_info): Add new constructor for region
6003 which is vector of basic blocks.
6004 (dom_init): New method to initialize members common for both
6005 constructors.
6006 (dom_info::dom_info): Invoke dom_init for partial initialization.
6007 (dom_info::get_idom): Add check to corner cases on basic blocks which
6008 are not in region.
6009 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
6010 to detect unreachable bbs.
6011 (dom_info::calc_idoms): Likewise.
6012 (compute_dom_fast_query_in_region): New function.
6013 (calculate_dominance_info_for_region): Likewise.
6014 (free_dominance_info_for_region): Likewise.
6015 * dominance.h: Add prototypes for introduced region-based functions
6016 * tree-if-conv.c (build_region): New function.
6017 (if_convertible_loop_p_1): Invoke local version of post-dominators
6018 calculation before basic block predication with subsequent freeing
6019 post-dominator info.
6020 (tree_if_conversion): Remove free of post-dominator info
6021 (pass_if_conversion::execute): Delete detection of infinite loops
6022 and fake edges to exit block since post-dominator calculation is
6023 performed per if-converted loop only.
6024
6025 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
6026
6027 PR target/77308
6028 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
6029 register explicitly.
6030 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
6031 optimizing for size.
6032
6033 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6034
6035 * config/aarch64/aarch64.c: Delete inclusion of
6036 cortex-a57-fma-steering.h.
6037 (aarch64_override_options): Delete call
6038 to aarch64_register_fma_steering.
6039 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
6040 * config/aarch64/cortex-a57-fma-steering.h: Delete.
6041 * config/aarch64/aarch64-passes.def: New file.
6042 * config/aarch64/cortex-a57-fma-steering.c
6043 (aarch64_register_fma_steering): Delete definition.
6044 (make_pass_fma_steering): Remove static qualifier.
6045 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
6046 (cortex-a57-fma-steering.o): Remove dependency on
6047 cortex-a57-fma-steering.h.
6048
6049 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
6050
6051 * explow.c (validize_mem): Do not modify the argument in-place.
6052
6053 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
6054
6055 * tree-streamer.c (record_common_node): Explicitly list expected
6056 tree codes.
6057
6058 2016-10-17 Richard Biener <rguenther@suse.de>
6059
6060 PR tree-optimization/77988
6061 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
6062
6063 2016-10-17 Marek Polacek <polacek@redhat.com>
6064
6065 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
6066
6067 2016-10-17 Richard Biener <rguenther@suse.de>
6068
6069 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
6070 before using it.
6071
6072 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6073
6074 PR tree-optimization/71636
6075 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
6076
6077 2016-10-17 Richard Biener <rguenther@suse.de>
6078
6079 * gimplify.c (gimplify_function_tree): Do not move the outer
6080 binds block.
6081
6082 2016-10-17 Jakub Jelinek <jakub@redhat.com>
6083
6084 * langhooks.h (struct lang_hooks_for_decls): Remove
6085 function_decl_explicit_p, function_decl_deleted_p and
6086 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
6087 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
6088 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
6089 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
6090 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
6091 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
6092 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
6093 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
6094 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
6095 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
6096 * langhooks.c (lhd_decl_dwarf_attribute): New function.
6097 * dwarf2out.c (gen_subprogram_die): Use
6098 lang_hooks.decls.decl_dwarf_attribute instead of
6099 lang_hooks.decls.function_decl_*.
6100
6101 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
6102
6103 PR ada/37139
6104 PR ada/67205
6105 * common.opt (-ftrampolines): New option.
6106 * doc/invoke.texi (Code Gen Options): Document it.
6107 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
6108 * doc/tm.texi: Regenerate.
6109 * builtins.def: Add init_descriptor and adjust_descriptor.
6110 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
6111 on platforms with descriptors.
6112 (expand_builtin_init_descriptor): New function.
6113 (expand_builtin_adjust_descriptor): Likewise.
6114 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
6115 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
6116 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
6117 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
6118 Set STATIC_CHAIN_REG_P on the static chain register, if any.
6119 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
6120 (expand_call): Likewise. Move around call to prepare_call_address
6121 and pass all flags to it.
6122 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
6123 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
6124 (gimple_call_set_by_descriptor): New setter.
6125 (gimple_call_by_descriptor_p): New getter.
6126 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
6127 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
6128 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
6129 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6130 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
6131 * rtl.h (STATIC_CHAIN_REG_P): New macro.
6132 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
6133 * target.def (custom_function_descriptors): New POD hook.
6134 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
6135 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
6136 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
6137 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
6138 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
6139 (build_common_builtin_nodes): Initialize init_descriptor and
6140 adjust_descriptor.
6141 * tree-nested.c: Include target.h.
6142 (struct nesting_info): Add 'any_descr_created' field.
6143 (get_descriptor_type): New function.
6144 (lookup_element_for_decl): New function extracted from...
6145 (create_field_for_decl): Likewise.
6146 (lookup_tramp_for_decl): ...here. Adjust.
6147 (lookup_descr_for_decl): New function.
6148 (convert_tramp_reference_op): Deal with descriptors.
6149 (build_init_call_stmt): New function extracted from...
6150 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
6151 * defaults.h (FUNCTION_ALIGNMENT): Define.
6152 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
6153 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6154 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
6155 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
6156 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
6157
6158 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
6159
6160 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
6161 constants in CONST_VECTORs.
6162
6163 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
6164
6165 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
6166 register as destination of bmask.
6167 (vector_init_bshuffle): Likewise.
6168 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
6169 (bmaskdi_vis): Enable only in 64-bit mode.
6170
6171 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6172
6173 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
6174 make LR a separately shrink-wrapped component unless savres_strategy
6175 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
6176 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
6177 wrapping when not both {SAVE,REST}_INLINE_GPRS.
6178
6179 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
6180
6181 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
6182 and keep looping on failure.
6183
6184 2016-10-14 David Malcolm <dmalcolm@redhat.com>
6185
6186 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
6187 set.
6188 (print_rtx_function): Update example in comment for...
6189 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
6190 non-virtual pseudos with a '%' sigil followed by the regno, offset
6191 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
6192 pseudo is dumped as "%0".
6193
6194 2016-10-14 Jakub Jelinek <jakub@redhat.com>
6195
6196 PR middle-end/77959
6197 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
6198 return a MEM.
6199
6200 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
6201
6202 * config/sparc/sparc-passes.def: New file.
6203 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
6204 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
6205 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
6206
6207 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
6208
6209 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
6210 loop peel to loops with exit test at the beginning.
6211
6212 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
6213
6214 PR rtl-optimization/68212
6215 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
6216 frequency when computing scale factor for peeled copies.
6217 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
6218 values for switch/peel blocks/edges.
6219
6220 2016-10-14 Pedro Alves <palves@redhat.com>
6221
6222 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
6223
6224 2016-10-14 Catherine Moore <clm@codesourcery.com>
6225
6226 * config/mips/mips.c (mips_prepare_pch_save): Initialize
6227 micromips_globals to zero.
6228
6229 2016-10-14 Richard Biener <rguenther@suse.de>
6230
6231 PR tree-optimization/77979
6232 * tree-vrp.c (compare_name_with_value): Handle released SSA names
6233 in the equivalency sets.
6234 (compare_names): Likewise.
6235
6236 2016-10-14 Martin Liska <mliska@suse.cz>
6237
6238 * builtins.h(target_char_cst_p): Declare the function.
6239 * builtins.c (fold_builtin_memchr): Remove.
6240 (target_char_cst_p): Move the function from gimple-fold.c.
6241 (fold_builtin_3): Do not call the function.
6242 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
6243 (gimple_fold_builtin): Call the function.
6244 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
6245
6246 2016-10-14 Martin Liska <mliska@suse.cz>
6247
6248 * builtins.c (fold_builtin_strcmp): Remove function.
6249 (fold_builtin_strncmp): Likewise.
6250 (fold_builtin_2): Remove call of the function.
6251 (fold_builtin_3): Likewise.
6252 * fold-const-call.c (fold_const_call): Add constant folding
6253 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
6254 * fold-const-call.h (build_cmp_result): Declare the function.
6255 * gimple-fold.c (gimple_load_first_char): New function.
6256 (gimple_fold_builtin_string_compare): Likewise.
6257 (gimple_fold_builtin): Call the function.
6258
6259 2016-10-14 Nathan Sidwell <nathan@acm.org>
6260
6261 * gcov-io.c (gcov_open): Deconstify 'mode'.
6262
6263 2016-10-14 Martin Liska <mliska@suse.cz>
6264
6265 * fold-const.c (c_getstr): Support of properly \0-terminated
6266 string constants. New argument is added.
6267 * fold-const.h: New argument is added.
6268
6269 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6270
6271 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
6272 New function.
6273 (aarch64_print_hint_for_core): Likewise.
6274 (aarch64_print_hint_for_arch): Likewise.
6275 (aarch64_validate_march): Use it. Fix indentation in type signature.
6276 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
6277 (aarch64_validate_mtune): Likewise.
6278 (aarch64_handle_attr_arch): Likewise.
6279 (aarch64_handle_attr_cpu): Likewise.
6280 (aarch64_handle_attr_tune): Likewise.
6281
6282 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6283
6284 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
6285 and udivmod_optab.
6286
6287 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
6288
6289 * config/m68k/m68k.c (m68k_option_override): Check
6290 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
6291 instead of stack_limit_rtx.
6292
6293 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6294
6295 * dwarf2out.c (gen_member_die): Handle inline static data member
6296 definitions.
6297
6298 2016-10-13 Nathan Sidwell <nathan@acm.org>
6299
6300 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
6301 gcov_var.mode. Remove unnecessary fstat.
6302
6303 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
6304
6305 PR bootstrap/77962
6306 * function.c (thread_prologue_and_epilogue_insns): Call all
6307 make_*logue_seq in the same order as traditional. Call them
6308 all a second time if shrink_wrapped_separate.
6309
6310 2016-10-13 Marek Polacek <polacek@redhat.com>
6311
6312 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
6313 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
6314 use -Wno-error.
6315
6316 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6317
6318 PR tree-optimization/77937
6319 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
6320 to infinite when we have a pointer with an increment of -1.
6321
6322 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6323
6324 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
6325 into ...
6326 * memmodel.h: This file.
6327 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
6328 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
6329 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
6330 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
6331 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
6332 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
6333 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
6334 compare-elim.c, config/aarch64/aarch64-builtins.c,
6335 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
6336 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
6337 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
6338 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
6339 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
6340 config/darwin.c, config/epiphany/epiphany.c,
6341 config/epiphany/mode-switch-use.c,
6342 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
6343 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6344 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
6345 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6346 config/m68k/m68k.c, config/mcore/mcore.c,
6347 config/microblaze/microblaze.c, config/mmix/mmix.c,
6348 config/mn10300/mn10300.c, config/moxie/moxie.c,
6349 config/msp430/msp430.c, config/nds32/nds32-cost.c,
6350 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
6351 config/nds32/nds32-memory-manipulation.c,
6352 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
6353 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
6354 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
6355 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
6356 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
6357 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
6358 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6359 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6360 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
6361 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
6362 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
6363 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
6364 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
6365 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
6366 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
6367 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
6368 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
6369 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
6370 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
6371 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6372 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
6373 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
6374 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
6375 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
6376 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
6377 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
6378 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
6379 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
6380 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
6381 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
6382 var-tracking.c, varasm.c: Include memmodel.h.
6383 * genattrtab.c (write_header): Include memmodel.h in generated file.
6384 * genautomata.c (main): Likewise.
6385 * gengtype.c (open_base_files): Likewise.
6386 * genopinit.c (main): Likewise.
6387 * genconditions.c (write_header): Include memmodel.h earlier in
6388 generated file.
6389 * genemit.c (main): Likewise.
6390 * genoutput.c (output_prologue): Likewise.
6391 * genpeep.c (main): Likewise.
6392 * genpreds.c (write_insn_preds_c): Likewise.
6393 * genrecog.c (write_header): Likewise.
6394 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
6395
6396 2016-10-13 David Malcolm <dmalcolm@redhat.com>
6397
6398 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
6399 for new "compact" param of print_rtx_function. Check for "cinsn"
6400 rather than "insn".
6401 * print-rtl-function.c (flag_compact): New decl.
6402 (print_rtx_function): Add param "compact" and use it to set
6403 flag_compact, adding a description of the effect to the leading
6404 comment, and updating the example output.
6405 * print-rtl.c (flag_compact): New variable.
6406 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
6407 mode.
6408 (print_rtx_operand_code_i): When printing source locations, wrap
6409 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
6410 (print_rtx_operand_code_r): Don't print regnos for hard regs and
6411 virtuals in compact mode.
6412 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
6413 apart from in LABEL_REFs.
6414 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
6415 Don't print basic block ids in compact mode.
6416 (print_rtx): In compact mode, prefix the code of insns with "c",
6417 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
6418 * print-rtl.h (print_rtx_function): Add "compact" param.
6419
6420 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6421
6422 * arm.h (TARGET_VFP): Delete.
6423 (TARGET_VFPD32): Remove references to TARGET_VFP.
6424 (TARGET_VFP3, TARGET_VFP5): Likewise.
6425 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
6426 (TARGET_NEON_FP16): Likewise.
6427 (TARGET_FMA): Likewise.
6428 (TARGET_CRYPTO): Likewise.
6429 (TARGET_NEON): Likewise.
6430 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6431 (FUNCTION_ARG_REGNO_P): Likewise.
6432 * arm.c (arm_option_check_internal): Likewise.
6433 (arm_option_override): Likewise.
6434 (use_return_insn): Likewise.
6435 (arm_function_value_regno_p): Likewise.
6436 (arm_apply_result_size): Likewise.
6437 (use_vfp_abi): Likewise.
6438 (arm_legitimate_address_outer_p): Likewise.
6439 (thumb2_legitimate_address_p): Likewise.
6440 (arm_legitimate_index_p): Likewise.
6441 (thumb2_legitimate_index_p): Likewise.
6442 (arm_legitimate_address): Likewise.
6443 (arm_get_vfp_saved_size): Likewise.
6444 (arm_emit_vfp_multi_reg_pop): Likewise.
6445 (arm_get_frame_offsets): Likewise.
6446 (arm_save_coproc_regs): Likewise.
6447 (arm_hard_regno_mode_ok): Likewise.
6448 (arm_expand_epilogue_apcs_frame): Likewise.
6449 (arm_expand_epilogue): Likewise.
6450 (arm_file_start): Likewise.
6451 (arm_conditional_register_usage): Likewise.
6452 (arm_validize_comparison): Use vfp_compare_operand directly.
6453 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
6454 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
6455 unsupported usage.
6456 (arm_atomic_assign_expand_fenv): Likewise.
6457 * arm.md (divsf3): Likewise.
6458 (arm_negsi2): Likewise.
6459 (absdf2): Likewise.
6460 (arm_movdi): Likewise.
6461 (arm_movt): Likewise.
6462 (cbranchsf4): Change predicate to vfp_compare_operand.
6463 (cbranchdf4): Change predicate to vfp_compare_operand.
6464 (cstorehf4): Change predicate to vfp_compare_operand.
6465 (cstoresf4): Change predicate to vfp_compare_operand.
6466 (cstoredf4): Change predicate to vfp_compare_operand.
6467 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
6468 (movhi_insn_arch4, movhi_bytes): Likewise.
6469 * constraints.md (Dt): Likewise.
6470 (Dp): Likewise.
6471 * iterators.md (SDF): Likewise.
6472 * predicates.md (arm_float_compare_operand): Delete.
6473 (const_double_vcvt_power_of_two_reciprocal): Remove references to
6474 TARGET_VFP.
6475 (const_double_vcvt_power_of_two): Likewise.
6476 * thumb2.md thumb2_movsi_insn): Likewise.
6477 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
6478 (movhf_vfp): Likewise.
6479 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
6480 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6481 (movsf_vfp, thumb2_movsf_vfp): Likewise.
6482 (movdf_vfp, thumb2_movdf_vfp): Likewise.
6483 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
6484 (subsf3_vfp, divsf3_vfp): Likewise.
6485 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
6486 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
6487 (mulsf3negsfsubsf_vfp): Likewise.
6488 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
6489 (floatunssisf2, sqrtsf2_vfp): Likewise.
6490 (movcc_vfp): Likewise.
6491 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
6492 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
6493 (push_multi_vfp): Likewise.
6494 (set_fpscr, get_fpscr): Likewise.
6495 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
6496
6497 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6498
6499 * arm.h (TARGET_VFP): Unconditionally define to 1.
6500 (arm_fpu_desc): Remove 'model' field.
6501 (TARGET_FPU_MODEL): Delete.
6502 * arm.c (all_fpus): Don't initialize the model field.
6503 (arm_can_inline_p): Don't check the FPU model.
6504 * arm-fpus.def: Remove redundant model field from all FPU
6505 descriptions.
6506
6507 2016-10-13 Richard Biener <rguenther@suse.de>
6508
6509 PR middle-end/77826
6510 * genmatch.c (struct capture): Add value_match member.
6511 (commutate): Preserve value_match.
6512 (lower_opt_convert): Likewise.
6513 (lower_cond): Likewise.
6514 (replace_id): Likewise.
6515 (struct dt_operand): Add value_match member.
6516 (decision_tree::cmp_node): Compare it.
6517 (decision_tree::insert_operand): Honor it when finding and
6518 when appending a DT_MATCH.
6519 (dt_operand::gen_match_op): Generate a type check after
6520 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
6521 (parser::get_internal_capture_id): New helper.
6522 (parser::finish_match_operand): New function lowering @@<id>.
6523 (parser::parse_capture): Parse @@<id> as value-match.
6524 (parser::parse_expr): Use get_internal_capture_id.
6525 (parser::parse_simplify): Call finish_match_operand.
6526 (walk_captures): New helper.
6527 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
6528 of operand_equal_p.
6529 ((X /[ex] A) * A -> X): Likewise.
6530 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
6531 convert[12] and value-matching.
6532 ((A | B) & (A | C) -> A | (B & C)): Likewise.
6533 ((X | Y) | Y -> X | Y): Likewise.
6534 ((X ^ Y) ^ Y -> X): Likewise.
6535 (A - (A & B) -> ~B & A): Likewise.
6536 ((T)(P + A) - (T)P -> (T) A): Likewise.
6537 ((T)P - (T)(P + A) -> -(T) A): Likewise.
6538 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
6539 * doc/match-and-simplify.texi: Amend capture section.
6540
6541 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6542
6543 * config/arc/arc.md (umul_600): Remove predicated variant.
6544 (umul64_600): Likewise.
6545
6546 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6547
6548 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
6549
6550 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6551
6552 * tree-vect-loop.c (loop_niters_no_overflow): New func.
6553 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
6554 no-overflow information to vect_do_peeling_for_loop_bound and
6555 vect_gen_vector_loop_niters.
6556
6557 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6558
6559 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
6560 iterates 1 time.
6561
6562 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6563
6564 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
6565 adjust_vec automatically.
6566 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
6567 param exit_bb to guard_to.
6568 (slpeel_checking_verify_cfg_after_peeling):
6569 (set_prologue_iterations):
6570 (create_lcssa_for_virtual_phi): New func which is factored out from
6571 slpeel_tree_peel_loop_to_edge.
6572 (slpeel_tree_peel_loop_to_edge):
6573 (iv_phi_p): New func.
6574 (vect_can_advance_ivs_p): Call iv_phi_p.
6575 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
6576 new gimple stmts in basic block.
6577 (vect_gen_niters_for_prolog_loop): Rename to...
6578 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
6579 adjust implementation.
6580 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
6581 sizetype if necessary.
6582 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
6583 it to external function.
6584 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
6585 (vect_gen_vector_loop_niters_mult_vf): New.
6586 (slpeel_update_phi_nodes_for_loops): New.
6587 (slpeel_update_phi_nodes_for_guard1): Reimplement.
6588 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
6589 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
6590 * tree-vect-loop.c (vect_build_loop_niters): Move to file
6591 tree-vect-loop-manip.c
6592 (vect_generate_tmps_on_preheader): Delete.
6593 (vect_transform_loop): Rename vectorization_factor to vf. Call
6594 vect_do_peeling instead of vect_do_peeling-* functions.
6595 * tree-vectorizer.h (vect_do_peeling): New decl.
6596 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
6597 (vect_do_peeling_for_loop_bound): Delete.
6598 (vect_do_peeling_for_alignment): Delete.
6599
6600 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6601
6602 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
6603 duplicated loop after its preheader and after the original loop.
6604
6605 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6606
6607 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
6608 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
6609
6610 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6611
6612 * tree-vect-loop.c (vectorizable_live_operation): Support handling
6613 for live variable outside loop but not in lcssa form.
6614
6615 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6616
6617 * cfg.c (reset_original_copy_tables): New func.
6618 * cfg.h (reset_original_copy_tables): New decl.
6619
6620 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6621
6622 PR c/77946
6623 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
6624 public_flag.
6625 * varasm.c (default_binds_local_p_3): Formatting fix.
6626
6627 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6628
6629 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
6630 style issue.
6631 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
6632 Remove useless code.
6633
6634 2016-10-13 Martin Liska <mliska@suse.cz>
6635
6636 PR tree-optimization/77943
6637 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
6638 a different EH landing pads.
6639
6640 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6641
6642 PR target/77957
6643 * hooks.h (hook_tree_void_null): Declare.
6644 * hooks.c (hook_tree_void_null): New function.
6645 * langhooks.c (lhd_return_null_tree_v): Remove.
6646 * langhooks-def.h (lhd_return_null_tree_v): Remove.
6647 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
6648 set y to const0_rtx.
6649 * function.c (stack_protect_epilogue): Likewise.
6650 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
6651 if TARGET_THREAD_SSP_OFFSET is defined.
6652 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6653 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6654 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6655 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6656 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6657 (ix86_stack_protect_guard): New function.
6658
6659 2016-10-13 Richard Biener <rguenther@suse.de>
6660
6661 * dwarf2out.c (tree_add_const_value_attribute): Do not try
6662 rtl_for_decl_init during early phase.
6663 (gen_variable_die): Do not create locations during early phase.
6664 (gen_label_die): Likewise.
6665 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
6666 twice.
6667
6668 2016-10-12 Richard Biener <rguenther@suse.de>
6669
6670 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
6671 try_add_new_range and made to eturn new range.
6672 (evrp_dom_walker::before_dom_children): Push op1 value range before
6673 pushing op0 value range.
6674
6675 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6676
6677 PR tree-optimization/77937
6678 * gimple-ssa-strength-reduction.c (analyze_increments): Use
6679 POINTER_TYPE_P on the candidate type to determine whether
6680 candidates in this chain require pointer arithmetic.
6681
6682 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
6683
6684 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
6685 correction if the type is smaller than a word.
6686 (visium_select_cc_mode): Add ... fall through ... comment.
6687
6688 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6689
6690 * config/rs6000/rs6000.c (machine_function): Add new fields
6691 gpr_is_wrapped_separately and lr_is_wrapped_separately.
6692 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
6693 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
6694 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
6695 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
6696 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
6697 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
6698 (rs6000_get_separate_components): New function.
6699 (rs6000_components_for_bb): New function.
6700 (rs6000_disqualify_components): New function.
6701 (rs6000_emit_prologue_components): New function.
6702 (rs6000_emit_epilogue_components): New function.
6703 (rs6000_set_handled_components): New function.
6704 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
6705 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
6706 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
6707 (rs6000_emit_epilogue): Don't emit GPR restores if
6708 gpr_is_wrapped_separately for that register. Don't make a
6709 REG_CFA_RESTORE note for registers we did not restore, either.
6710
6711 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6712
6713 * function.c (thread_prologue_and_epilogue_insns): Call
6714 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
6715 if it has possibly changed. Compute the split_prologue_seq and
6716 epilogue_seq later, too.
6717 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
6718 (dump_components): New function.
6719 (struct sw): New struct.
6720 (SW): New function.
6721 (init_separate_shrink_wrap): New function.
6722 (fini_separate_shrink_wrap): New function.
6723 (place_prologue_for_one_component): New function.
6724 (spread_components): New function.
6725 (disqualify_problematic_components): New function.
6726 (emit_common_heads_for_components): New function.
6727 (emit_common_tails_for_components): New function.
6728 (insert_prologue_epilogue_for_components): New function.
6729 (try_shrink_wrapping_separate): New function.
6730 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
6731
6732 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6733
6734 * regrename.c (build_def_use): Invalidate chains that have a
6735 REG_CFA_RESTORE on some instruction.
6736
6737 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6738
6739 * dce.c (delete_unmarked_insns): Don't delete instructions with
6740 a REG_CFA_RESTORE note.
6741
6742 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6743
6744 * common.opt (-fshrink-wrap-separate): New flag.
6745 * doc/invoke.texi: Document it.
6746 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
6747 * doc/tm.texi: Regenerate.
6748 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
6749 * target.def (shrink_wrap): New hook vector.
6750 (get_separate_components, components_for_bb, disqualify_components,
6751 emit_prologue_components, emit_epilogue_components,
6752 set_handled_components): New hooks.
6753
6754 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6755
6756 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
6757 vector return by reference only if -Wpsabi.
6758 (rs6000_pass_by_reference): Similarly, for argument passing.
6759
6760 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6761
6762 * function-tests.c: Include "print-rtl.h".
6763 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
6764 function, and verify what is dumped.
6765 * print-rtl-function.c (print_edge): New function.
6766 (begin_any_block): New function.
6767 (end_any_block): New function.
6768 (can_have_basic_block_p): New function.
6769 (print_rtx_function): Track the basic blocks of insns in the
6770 chain, wrapping those that are within blocks within "(block)"
6771 directives. Remove the "(cfg)" directive.
6772
6773 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6774
6775 * selftest.c (selftest::read_file): New function.
6776 (selftest::test_read_file): New function.
6777 (selftest::selftest_c_tests): Call test_read_file.
6778 * selftest.h (selftest::read_file): New decl.
6779
6780 2016-10-12 Richard Biener <rguenther@suse.de>
6781
6782 PR debug/77947
6783 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6784 function context.
6785
6786 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
6787
6788 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6789
6790 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6791 dwarf2out_assembly_start.
6792
6793 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6794
6795 * Makefile.in (SELFTEST_FLAGS): New variable.
6796 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6797
6798 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6799 early_finish hook.
6800
6801 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
6802
6803 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6804 dumped in RTL dumps.
6805
6806 2016-10-12 Martin Liska <mliska@suse.cz>
6807
6808 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6809 (gimple_fold_builtin_memory_op): Use the function.
6810 (gimple_fold_builtin_strchr): Likewise.
6811 (gimple_fold_builtin_strcat): Likewise.
6812 (gimple_build): Likewise.
6813
6814 2016-10-12 Nathan Sidwell <nathan@acm.org>
6815
6816 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6817
6818 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6819
6820 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6821 equivalent 32-bit constant (modulo 2**32) when that yields
6822 smaller instructions.
6823 (size_of_int_loc_descriptor): Update accordingly.
6824
6825 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6826
6827 * dwarf2out.c (dwarf2out_early_global_decl): For nested
6828 functions, call dwarf2out_decl on the parent function first.
6829
6830 2016-10-12 Richard Biener <rguenther@suse.de>
6831
6832 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6833 on the conversion.
6834
6835 2016-10-12 Richard Biener <rguenther@suse.de>
6836
6837 * tree-ssa-propagate.c
6838 (substitute_and_fold_dom_walker::before_dom_children): Do not
6839 ignore ASSERT_EXPRs but only preserve them.
6840 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6841 that have been propagated into.
6842 (vrp_finalize): Enable DCE for substitute_and_fold.
6843
6844 2016-10-12 Richard Biener <rguenther@suse.de>
6845
6846 PR tree-optimization/77920
6847 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6848 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6849 (simplify_abs_using_ranges): Likewise.
6850 (simplify_conversion_using_ranges): Likewise.
6851 (simplify_stmt_using_ranges): Adjust.
6852
6853 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6854
6855 PR tree-optimization/77929
6856 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6857 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6858
6859 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6860
6861 PR target/77934
6862 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6863 needs a base register for arg 1.
6864
6865 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6866
6867 * common.opt (Wimplicit-fallthrough) Turn into alias to
6868 -Wimplicit-fallthrough=3. Remove EnabledBy.
6869 (Wimplicit-fallthrough=): New option.
6870 * gimplify.c (warn_implicit_fallthrough_r): Use
6871 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6872 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6873 to -Wimplicit-fallthrough=3.
6874 (-Wimplicit-fallthrough=): Document.
6875
6876 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6877
6878 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6879 and GEU in DImode if TARGET_SUBXC.
6880 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6881 (seqdi<W:mode>_zero_subxc): Delete.
6882 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6883 (neg_seqdi<W:mode>_zero_vis3): Delete.
6884 (plus_seqdi<W:mode>_zero): Likewise.
6885 (minus_seqdi<W:mode>_zero): Likewise.
6886 (plus_plus_sltu<W:mode>): Accept only register.
6887 (addx<W:mode>): Likewise.
6888 (plus_sltu<W:mode>_vis3): Likewise.
6889 (plus_plus_sltu<W:mode>_vis3): Likewise.
6890 (neg_sgeu<W:mode>_vis3): Delete.
6891 (minus_sgeu<W:mode>_vis3): Likewise.
6892 (addxc<W:mode>): Accept only registers.
6893 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6894 (minus_neg_sltu<W:mode>_subxc): Accept only register.
6895 (neg_plus_sltu<W:mode>_subxc): Likewise.
6896 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6897 (minus_minus_sltu<W:mode>_subxc): Accept only register.
6898 (sgeu<W:mode>_insn_subxc): Delete.
6899 (plus_sgeu<W:mode>_subxc): Likewise.
6900 (subxc<W:mode>): Accept only register.
6901 (scc splitter): Split always GEU again.
6902
6903 2016-10-11 Jeff Law <law@redhat.com>
6904
6905 PR tree-optimization/77424
6906 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6907 dead conditionals. Assert that all e->aux fields are NULL.
6908
6909 2016-10-11 David Malcolm <dmalcolm@redhat.com>
6910
6911 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
6912 operand-printing "switch" statement into...
6913 (print_rtx_operand_code_0): ...this new function, ...
6914 (print_rtx_operand_code_e): ...this new function, ...
6915 (print_rtx_operand_codes_E_and_V): ...this new function, ...
6916 (print_rtx_operand_code_i): ...this new function, ...
6917 (print_rtx_operand_code_r): ...this new function, ...
6918 (print_rtx_operand_code_u): ...this new function, ...
6919 (print_rtx_operand): ...and this new function.
6920
6921 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
6922
6923 * config/alpha/alpha-passes.def: New file.
6924 * config/alpha/t-alpha: New file.
6925 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6926 (make_pass_handle_trap_shadows): New prototype.
6927 (make_pass_align_insns): Ditto.
6928 * config/alpha/alpha.c (alpha_option_override): Don't register
6929 passes here.
6930 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6931
6932 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6933
6934 PR target/77924
6935 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6936 distinct __ibm128 IBM extended double type if long doubles are
6937 128-bits and the default format for long double is IEEE 128-bit.
6938
6939 2016-10-11 Richard Biener <rguenther@suse.de>
6940
6941 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6942 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6943 (verify_die): New function.
6944 (dwarf2out_finish): Call it.
6945 (output_line_info): Handle case of -gsplit-dwarf without
6946 DWARF2_ASM_LINE_DEBUG_INFO.
6947
6948 2016-10-11 Richard Biener <rguenther@suse.de>
6949
6950 PR debug/77931
6951 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6952 sub-chains of BLOCK_VARS and gimple_bind_vars.
6953
6954 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6955
6956 * config/i386/znver1.md : Fix imov/imovx load type reservations.
6957
6958 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6959
6960 * config/sparc/sparc.opt (msubxc): New option.
6961 * doc/invoke.texi (SPARC options): Document it and tidy up.
6962 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6963 * doc/tm.texi: Regenerate.
6964 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6965 (CCNZ): ...this.
6966 (CCX_NOOV): Rename into...
6967 (CCXNZ): ...this.
6968 (CCC): New.
6969 (CCXC): Likewise.
6970 * config/sparc/predicates.m (fcc_register_operand): Simplify.
6971 (fcc0_register_operand): Likewise.
6972 (icc_register_operand): New.
6973 (icc_or_fcc_register_operand): Simplify.
6974 (nz_comparison_operator): New.
6975 (c_comparison_operator): Likewise.
6976 (noov_compare_operator): Rename into...
6977 (icc_comparison_operator): ...this. Use above predicates.
6978 (noov_compare64_operator): Rename into...
6979 (v9_comparison_operator): ...this and tidy up.
6980 (fcc_comparison_operator): New.
6981 (icc_or_fcc_comparison_operator): Likewise.
6982 (v9_register_compare_operator): Rename info...
6983 (v9_register_comparison_operator): ...this.
6984 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6985 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6986 for Niagara-7.
6987 (sparc_fixed_condition_code_regs): New function.
6988 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
6989 renaming and add support for CCC/CCXC.
6990 (output_cbranch): Likewise.
6991 (sparc_print_operand): Likewise.
6992 (gen_v9_scc): Remove obsolete assertion.
6993 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
6994 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
6995 (output_cbcond): Remove bogus handling of CC modes.
6996 (sparc_register_move_cost): Return 100 for NO_REGS.
6997 * config/sparc/sparc.md (W): New mode iterator.
6998 (length): Adjust for noov_compare64_operator renaming.
6999 (cmpsi_sne): New instruction.
7000 (cmpdi_sne): Likewise.
7001 (seqdi_special): Delete.
7002 (seqdi_special): Likewise.
7003 (snesi<P:mode>_special): Likewise.
7004 (snedi_special): Likewise.
7005 (snedi_special_vis3): Likewise.
7006 (snesi patterns): Use W iterator.
7007 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
7008 (sltu patterns): Likewise.
7009 (sgeu patterns): Likewise.
7010 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
7011 (normal_branch): Use icc_comparison_operator predicate.
7012 (inverted_branch): Likewise.
7013 (cbcond_sp32): Use comparison_operator predicate.
7014 (cbcond_sp64): Likewise.
7015 (normal_int_branch_sp64): Adjust for renaming
7016 (inverted_int_branch_sp64): Likewise.
7017 (mov<I:mode>_cc_reg_sp64): Likewise.
7018 (movsf_cc_reg_sp6): Likewise.
7019 (movdf_cc_reg_sp64): Likewise.
7020 (movtf_cc_reg_hq_sp64): Likewise.
7021 (movtf_cc_reg_sp64): Likewise.
7022 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
7023 (movsf_cc_v9): Likewise.
7024 (movdf_cc_v9): Likewise.
7025 (movtf_cc_hq_v9): Likewise.
7026 (movtf_cc_v9): Likewise.
7027 (adddi3): Call gen_adddi3_sp32.
7028 (adddi3_insn_sp32): Rename to...
7029 (adddi3_sp32): ...this. Accept only register_operand as operand #1
7030 and use CCCmode for the carry.
7031 (addx_extend_sp32): Use CCCmode for the carry.
7032 (addx_extend_sp64): Delete.
7033 (adddi3_extend_sp32): Use CCCmode for the carry.
7034 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
7035 (subdi3): Call gen_subdi3_sp32.
7036 (subdi3_insn_sp32): Rename to...
7037 (subdi3_sp32): ...this and use CCmode for the carry.
7038 (subx_extend_sp32): Use CCCmode for the carry.
7039 (subx_extend_sp64): Delete.
7040 (subdi3_extend_sp32): Use CCmode for the carry.
7041 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
7042 (negdi3): Call gen_negdi3_sp32.
7043 (negdi3_sp32): Use CCCmode for the carry.
7044 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
7045 (cmp_nz_ashift_1): Use CCNZ mode.
7046 (cmp_nz_set_ashift_1): Likewise.
7047 (ctrapsi4): Use comparison_operator predicate.
7048 (ctrapdi4): Likewise.
7049 (trapsi_insn): Use icc_comparison_operator predicate.
7050 (trapdi_insn): Likewise.
7051 (edge8 patterns): Use CCNZmode.
7052 (edge16 patterns): Likewise.
7053 (edge32 patterns): Likewise.
7054
7055 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
7056
7057 * config/visium/visium-modes.def (CC_NOOV): Rename into...
7058 (CCNZ): ...this.
7059 (CC_BTST): Rename into...
7060 (CCC): ...this.
7061 * config/visium/predicates.md (real_add_operand): New.
7062 (visium_btst_operator): Rename into...
7063 (visium_equality_comparison_operator): ...this.
7064 (visium_noov_operator): Rename into...
7065 (visium_nz_comparison_operator): ...this.
7066 (visium_c_comparison_operator): New.
7067 (visium_branch_operator): Adjust and deal with all CC modes.
7068 * config/visium/visium.c (visium_adjust_cost): Adjust.
7069 (visium_split_double_add): Use the *_set_carry patterns.
7070 (visium_select_cc_mode): Add support for CCC mode and adjust.
7071 (output_cbranch): Adjust and use the carry-based operators for
7072 floating-point comparisons.
7073 * config/visium/visium.md (flags_subst_arith): Adjust.
7074 (addsi3_insn_set_carry): New instruction.
7075 (subsi3_insn_set_carry): Likewise.
7076 (negsi2_insn_set_carry): Likewise.
7077 (btst): Adjust.
7078 (cmp<mode>_sne): Likewise.
7079 (cbranch<mode>4): Use ordered_comparison_operator.
7080 (cbranch<mode>4_insn): Likewise.
7081 (cbranchsi4_btst_insn): Adjust.
7082
7083 2016-10-11 Tom de Vries <tom@codesourcery.com>
7084
7085 PR middle-end/77558
7086 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
7087 special-casing.
7088
7089 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
7090
7091 * tree.h (build_complex_type): Add second parameter with default.
7092 * tree.c (build_complex_type): Add NAMED second parameter and adjust
7093 recursive call. Create a TYPE_DECL only if NAMED is true.
7094 (build_common_tree_nodes): Pass true in calls to build_complex_type.
7095
7096 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
7097
7098 New avr-passes.def to register AVR specific passes.
7099
7100 * config/avr/avr-passes.def: New file.
7101 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
7102 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
7103 (make_avr_pass_recompute_note): New proto.
7104 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
7105 (avr_pass_recompute_notes): Use anonymous namespace.
7106 (avr_register_passes): Remove function...
7107 (avr_option_override): ...and its call.
7108
7109 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
7110
7111 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
7112 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
7113 PTF_AVOID_BRANCHLIKELY_SPEED for others.
7114 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
7115 flags.
7116 * config/mips/mips.c (mips_option_override): Enable the branch
7117 likely depending on the tune flags and optimization level.
7118 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
7119 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
7120 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
7121 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
7122
7123 2016-10-11 Richard Biener <rguenther@suse.de>
7124
7125 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
7126 (output_function): Properly stream the whole block tree.
7127 * lto-streamer-in.c (input_function): Likewise.
7128
7129 2016-10-11 Marek Polacek <polacek@redhat.com>
7130
7131 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
7132
7133 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
7134
7135 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
7136 (evrp_dom_walker::before_dom_children): Infer and push new value
7137 ranges for x in y < x.
7138
7139 2016-10-10 Joseph Myers <joseph@codesourcery.com>
7140
7141 PR target/77586
7142 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
7143 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7144 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
7145 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
7146 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
7147 (IA64_NO_LIBGCC_TFMODE): Likewise.
7148
7149 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
7150
7151 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
7152 copying.
7153
7154 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
7155
7156 * config.gcc: Add aarch64-*-freebsd* support.
7157 * config.host: Likewise.
7158 * config/aarch64/aarch64-freebsd.h: New file.
7159 * config/aarch64/t-aarch64-freebsd: Ditto.
7160
7161 2016-10-10 Jeff Law <law@redhat.com>
7162
7163 PR tree-optimization/71947
7164 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
7165 B with A within a single statement.
7166
7167 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7168
7169 PR tree-optimization/77824
7170 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
7171 zero cost for copies.
7172 (find_candidates_dom_walker::before_dom_children): Replace
7173 MODIFY_EXPR with SSA_NAME.
7174 (replace_mult_candidate): Likewise.
7175 (replace_profitable_candidates): Likewise.
7176
7177 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7178
7179 * config/s390/s390.h: Wrap more macros args in brackets and fix
7180
7181 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
7182
7183 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
7184
7185 2016-10-10 Andreas Schwab <schwab@suse.de>
7186
7187 PR target/77738
7188 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
7189 pseudo is not DImode.
7190
7191 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
7192
7193 * common/config/arc/arc-common.c (arc_option_optimization_table):
7194 Remove compact casesi option.
7195 * config/arc/arc.c (arc_override_options): Use compact casesi
7196 option only for pre-ARCv2 cores.
7197 * doc/invoke.texi (mcompact-casesi): Update text.
7198
7199 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7200
7201 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
7202 Add macro to say we can efficiently handle overlapping unaligned
7203 loads.
7204 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
7205 poor code for processors older than p8.
7206
7207 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
7208
7209 * gen-pass-instances.awk: Remove GNUism.
7210
7211 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7212
7213 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
7214 NULL of (*ipcp_transformations)][node->uid].
7215
7216 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
7217
7218 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7219 (MALLOC_ABI_ALIGNMENT): Define.
7220
7221 2016-10-09 Jakub Jelinek <jakub@redhat.com>
7222
7223 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
7224 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
7225 VAR_OR_FUNCTION_DECL_P macros.
7226 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
7227 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
7228 chkp_find_bounds_1): Likewise.
7229 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
7230 * hsa-gen.c (get_symbol_for_decl): Likewise.
7231 * cgraphunit.c (check_global_declaration, analyze_functions,
7232 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
7233 Likewise.
7234 * gimple-fold.c (can_refer_decl_in_current_unit_p,
7235 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
7236 Likewise.
7237 * tree.c (set_decl_section_name, copy_node_stat,
7238 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
7239 merge_dllimport_decl_attributes, handle_dll_attribute,
7240 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
7241 verify_type): Likewise.
7242 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
7243 find_explicit_erroneous_behavior): Likewise.
7244 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
7245 * ipa.c (process_references): Likewise.
7246 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
7247 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
7248 notice_global_symbol, assemble_variable, mark_decl_referenced,
7249 build_constant_desc, output_constant_def_contents, do_assemble_alias,
7250 make_decl_one_only, default_section_type_flags,
7251 categorize_decl_for_section, default_encode_section_info): Likewise.
7252 * trans-mem.c (requires_barrier): Likewise.
7253 * gimple-expr.c (mark_addressable): Likewise.
7254 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
7255 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
7256 expand_debug_expr): Likewise.
7257 * tree-dump.c (dequeue_and_dump): Likewise.
7258 * ubsan.c (instrument_bool_enum_load): Likewise.
7259 * tree-pretty-print.c (print_declaration): Likewise.
7260 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7261 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
7262 * asan.c (asan_protect_global, instrument_derefs): Likewise.
7263 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
7264 pass_build_ssa::execute): Likewise.
7265 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
7266 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
7267 Likewise.
7268 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
7269 Likewise.
7270 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
7271 can_be_nonlocal, remap_decls, copy_debug_stmt,
7272 initialize_inlined_parameters, add_local_variables,
7273 reset_debug_binding, replace_locals_op): Likewise.
7274 * dse.c (can_escape): Likewise.
7275 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
7276 Likewise.
7277 * tree-diagnostic.c (default_tree_printer): Likewise.
7278 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
7279 unpack_ts_decl_with_vis_value_fields,
7280 lto_input_ts_decl_common_tree_pointers): Likewise.
7281 * builtins.c (builtin_save_expr, fold_builtin_expect,
7282 readonly_data_expr): Likewise.
7283 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
7284 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
7285 Likewise.
7286 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
7287 * gimplify.c (force_constant_size, gimplify_bind_expr,
7288 gimplify_decl_expr, gimplify_var_or_parm_decl,
7289 gimplify_compound_lval, gimplify_init_constructor,
7290 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
7291 gimplify_type_sizes): Likewise.
7292 * cgraphbuild.c (record_reference, record_type_list, mark_address,
7293 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
7294 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
7295 remove_unused_locals): Likewise.
7296 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
7297 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
7298 * function.c (instantiate_expr, instantiate_decls_1,
7299 setjmp_vars_warning, add_local_decl): Likewise.
7300 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
7301 Likewise.
7302 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
7303 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
7304 optimize_va_list_gpr_fpr_size): Likewise.
7305 * tree-nrv.c (pass_nrv::execute): Likewise.
7306 * tsan.c (instrument_expr): Likewise.
7307 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
7308 * vtable-verify.c (verify_bb_vtables): Likewise.
7309 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
7310 get_ref_base_and_extent): Likewise.
7311 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
7312 Likewise.
7313 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
7314 analyze_all_variable_accesses): Likewise.
7315 * tree-nested.c (get_nonlocal_debug_decl,
7316 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
7317 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
7318 get_local_debug_decl, convert_local_omp_clauses,
7319 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
7320 Likewise.
7321 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
7322 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
7323 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
7324 dbxout_symbol, dbxout_common_check): Likewise.
7325 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
7326 string_constant): Likewise.
7327 * hsa.c (hsa_get_declaration_name): Likewise.
7328 * passes.c (rest_of_decl_compilation): Likewise.
7329 * tree-ssanames.c (make_ssa_name_fn): Likewise.
7330 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
7331 pack_ts_decl_with_vis_value_fields,
7332 write_ts_decl_common_tree_pointers): Likewise.
7333 * stor-layout.c (place_field): Likewise.
7334 * symtab.c (symtab_node::maybe_create_reference,
7335 symtab_node::verify_base, symtab_node::make_decl_local,
7336 symtab_node::copy_visibility_from,
7337 symtab_node::can_increase_alignment_p): Likewise.
7338 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
7339 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
7340 fortran_common, add_location_or_const_value_attribute,
7341 add_scalar_info, add_linkage_name, set_block_abstract_flags,
7342 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
7343 optimize_one_addr_into_implicit_ptr,
7344 optimize_location_into_implicit_ptr): Likewise.
7345 * gimple-low.c (record_vars_into): Likewise.
7346 * ipa-visibility.c (update_vtable_references): Likewise.
7347 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
7348 Likewise.
7349 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
7350 DFS::DFS_write_tree_body, write_symbol): Likewise.
7351 * langhooks.c (lhd_warn_unused_global_decl,
7352 lhd_set_decl_assembler_name): Likewise.
7353 * attribs.c (decl_attributes): Likewise.
7354 * except.c (output_ttype): Likewise.
7355 * varpool.c (varpool_node::get_create, ctor_for_folding,
7356 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
7357 * fold-const.c (fold_unary_loc): Likewise.
7358 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7359 ipa_find_agg_cst_from_init): Likewise.
7360 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
7361 expand_omp_target, lower_omp_regimplify_p,
7362 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
7363 find_link_var_op): Likewise.
7364 * tree-chrec.c (chrec_contains_symbols): Likewise.
7365 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
7366 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
7367 execute_fixup_cfg): Likewise.
7368
7369 PR tree-optimization/77901
7370 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
7371 if ranges[i].exp is SSA_NAME when looking for >= and only when
7372 ranges[i].exp is NULL or SSA_NAME when looking for the other
7373 comparison.
7374
7375 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7376
7377 * ipa-cp.c (ipcp_alignment_lattice): Remove.
7378 (ipcp_param_lattices): Remove field alignment.
7379 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
7380 (set_all_contains_variable): Remove call to
7381 ipcp_alignment_lattice::set_to_bottom.
7382 (initialize_node_lattices): Likewise.
7383 (propagate_alignment_accross_jump_function): Remove.
7384 (propagate_constants_accross_call): Remove call to
7385 propagate_alignment_accross_jump_function.
7386 (ipcp_store_alignment_results): Remove.
7387 (ipcp_driver): Remove call to ipcp_store_alignment_results.
7388 (propagate_bits_accross_jump_function): Handle ancestor jump function.
7389 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
7390 pretty-printing of alignment jump function.
7391 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
7392 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
7393 alignments and remove computing ipa_alignment jump function.
7394 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
7395 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
7396 (ipa_read_jump_function): Remove reading of ipa_alignment.
7397 (write_ipcp_transformation_info): Remove streaming for alignment
7398 propagation summary.
7399 (read_ipcp_transformation_info): Remove reading of alignment
7400 propagation summary.
7401 (ipcp_update_alignments): Remove.
7402 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
7403 type.
7404 (ipcp_transform_function): Remove call to ipcp_update_alignments()
7405 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
7406 * ipa-prop.h (ipa_alignment): Remove.
7407 (ipa_jump_func): Remove field alignment.
7408 (ipcp_transformation_summary): Remove field alignments.
7409 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
7410 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
7411 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
7412
7413 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
7414
7415 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
7416
7417 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
7418 change.
7419 (visium_expand_fp_cstore): Likewise.
7420
7421 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7422
7423 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
7424 * diagnostic.c (warning_at_rich_loc_n): New function.
7425 (diagnostic_n_impl_richloc): Likewise.
7426 (diagnostic_n_impl): Move most of the function to
7427 diagnostic_n_impl_richloc and call it.
7428
7429 2016-10-08 Jakub Jelinek <jakub@redhat.com>
7430
7431 * gen-pass-instances.awk: Rewritten.
7432 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
7433 $(PASSES_EXTRA) after passes.def to the script.
7434 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
7435 * config/i386/i386-passes.def: New file.
7436 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
7437 make_pass_stv): Declare.
7438 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
7439 false.
7440 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
7441 or !TARGET_64BIT.
7442 (pass_stv::clone, pass_stv::set_pass_param): New methods.
7443 (pass_stv::timode_p): New non-static data member.
7444 (ix86_option_override): Don't register passes here.
7445
7446 * doc/invoke.texi: Document accepting Else, fallthrough.
7447
7448 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
7449 style changes.
7450
7451 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
7452 FALLTHRU comment styles.
7453
7454 2016-10-07 Andrew Pinski <apinski@cavium.com>
7455
7456 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
7457 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
7458 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
7459 Likewise.
7460 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
7461 Likewise.
7462 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
7463 Likewise.
7464 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
7465 (AARCH64_ARCH): Likewise.
7466 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
7467 Likewise.
7468 (AARCH64_CORE): Likewise.
7469 (AARCH64_ARCH): Likewise.
7470 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
7471 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7472 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
7473 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7474 (AARCH64_ARCH): Likewise.
7475 (AARCH64_CORE): Likewise.
7476 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
7477 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
7478 (AARCH64_CORE): Likewise.
7479 (AARCH64_ARCH): Likewise.
7480
7481 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7482
7483 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
7484 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
7485 floating point type infrastructre, and -mfloat128 that enables the
7486 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
7487 if -mfloat128-type. Define __ibm128 to be long double by default.
7488 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
7489 the IEEE 128-bit floating point type infrastructure should
7490 automatically be enabled.
7491 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
7492 instead of -mfloat128 to enable KFmode.
7493 (rs6000_option_override_internal): Split the option -mfloat128
7494 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
7495 systems, automatically set -mfloat128-type, but don't enable it on
7496 other operating systems. Move setting the long double size and
7497 IEEE quad support before the IEEE 128-bit floating point changes.
7498 (rs6000_init_builtins): Do not create a unique type for __ibm128
7499 if long double is IBM extended double, instead rely on __ibm128
7500 being defined as 'long double'. If -mfloat128-type and not
7501 -mfloat128, create the KFmode type with an undocumented __ieee128
7502 keyword.
7503 (rs6000_init_libfuncs): Use -mfloat128-type instead of
7504 -mfloat128 for tests about the types, but keep tests for
7505 -mfloat128 to enable the keyword support.
7506 (rs6000_complex_function_value): Likewise.
7507 (rs6000_scalar_mode_supported_p): Likewise.
7508 (rs6000_floatn_mode): Likewise.
7509 (rs6000_c_mode_for_suffix): Likewise.
7510 (rs6000_opt_masks): Add -mfloat128-type.
7511 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
7512 -mfloat128-type being split from -mfloat128. Add
7513 -mfloat128-hardware, which was missing.
7514 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
7515 -mfloat128 and -mfloat128-type:
7516 (-mfloat128-type): Likewise.
7517 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
7518 that 64-bit Linux systems with enable -mfloat128-type by default
7519 on VSX systems.
7520 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
7521 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
7522 -mfloat128-type instead of -mfloat128.
7523 (FLOAT128_2REG_P): Likewise.
7524 (MASK_FLOAT128_TYPE): Likewise.
7525 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7526 (RS6000_BTM_FLOAT128): Likewise.
7527 (TARGET_FLOAT128): Poison old identifiers.
7528 (OPTION_MASK_FLOAT128): Likewise.
7529 (MASK_FLOAT128): Likewise.
7530 * config/rs6000/rs6000.md (FP): Likewise.
7531 (FLOAT128): Likewise.
7532 (fix_trunc<mode>di2): Likewise.
7533 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7534 (floatdi<mode>2): Likewise.
7535 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
7536 (neg<mode>2, FLOAT128 iterator): Likewise.
7537 (abs<mode>2, FLOAT128 iterator): Likewise.
7538 (ieee_128bit_negative_zero): Likewise.
7539 (ieee_128bit_vsx_neg<mode>2): Likewise.
7540 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7541 (ieee_128bit_vsx_abs<mode>2): Likewise.
7542 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7543 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7544 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7545 (extendiftf2): Likewise.
7546 (extendifkf2): Likewise.
7547 (extendtfkf2): Likewise.
7548 (trunciftf2): Likewise.
7549 (truncifkf2): Likewise.
7550 (trunckftf2): Likewise.
7551 (trunctfif2): Likewise.
7552 (extendkftf2): Likewise.
7553 (trunctfkf2): Likewise.
7554
7555 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7556
7557 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
7558 before merging in bytes to pass down to real_from_target.
7559
7560 2016-10-07 Richard Biener <rguenther@suse.de>
7561
7562 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
7563 required hack.
7564 (substitute_and_fold_dom_walker::before_dom_children):
7565 Substitute and fold before pass specific folding to avoid
7566 feeding that with SSA names that will be later released.
7567 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
7568 introduced by folding and visited by evaluate_stmt called during
7569 ccp_fold_stmt.
7570 (likely_value): Likewise.
7571 (evaluate_stmt): Likewise.
7572 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
7573 (simplify_div_or_mod_using_ranges): Likewise.
7574 (simplify_min_or_max_using_ranges): Likewise.
7575 (simplify_abs_using_ranges): Likewise.
7576 (simplify_conversion_using_ranges): Likewise.
7577 (simplify_float_conversion_using_ranges): Likewise.
7578 (simplify_stmt_using_ranges): Likewise.
7579
7580 2016-10-07 Marek Polacek <polacek@redhat.com>
7581
7582 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
7583 FALLTHROUGH_LABEL_P here...
7584 (warn_implicit_fallthrough_r): ...not here.
7585
7586 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
7587
7588 PR tree-optimization/77880
7589 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
7590 necessary.
7591
7592 2016-10-07 Marek Polacek <polacek@redhat.com>
7593
7594 PR c++/77803
7595 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
7596
7597 2016-10-07 Richard Biener <rguenther@suse.de>
7598
7599 * bitmap.h: Document constraints on bitmap modification while
7600 iterating over it.
7601
7602 2016-10-07 Richard Biener <rguenther@suse.de>
7603
7604 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
7605 * bitmap.h (bmp_iter_set): When advancing to the next element
7606 check that we didn't remove the current one.
7607 (bmp_iter_and): Likewise.
7608 (bmp_iter_and_compl): Likewise.
7609 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
7610 we currently iterate on but keep a one-level queue.
7611 * sched-deps.c (remove_from_deps): Do not clear current bit
7612 but keep a one-level queue.
7613
7614 2016-10-07 Jakub Jelinek <jakub@redhat.com>
7615
7616 PR tree-optimization/77664
7617 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
7618 for the other ranges.
7619 (optimize_range_tests_diff): Fix up formatting.
7620 (optimize_range_tests_var_bound): New function.
7621 (optimize_range_tests): Use it.
7622
7623 2016-10-07 Martin Liska <mliska@suse.cz>
7624
7625 * coverage.c (build_gcov_exit_decl): Fix priority what
7626 should be really 99.
7627
7628 2016-10-07 Richard Biener <rguenther@suse.de>
7629
7630 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
7631 vars in gimple_bind_vars but not in BLOCK_VARS.
7632
7633 2016-10-07 Richard Biener <rguenther@suse.de>
7634
7635 PR tree-optimization/77879
7636 * tree-ssa-structalias.c (handle_const_call): Properly handle
7637 NRV return slots.
7638 (handle_pure_call): Likewise.
7639
7640 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7641
7642 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
7643 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
7644 possible overflow.
7645
7646 2016-10-06 Andrew Pinski <apinski@cavium.com>
7647
7648 * config/aarch64/aarch64-cores.def: Add a comment before each
7649 set of cores.
7650
7651 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7652
7653 PR tree-optimization/77862
7654 * tree-vrp.c (add_equivalence): Use get_value_range so that
7655 num_vr_values is checked before accessing vr_values.
7656
7657 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7658
7659 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7660 POINTER_TYPE_P.
7661
7662 2016-10-05 Jeff Law <law@redhat.com>
7663
7664 PR tree-optimization/71661
7665 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
7666 removal of a forwarder exposes a new natural loop.
7667
7668 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
7669
7670 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
7671 Introduce ssesuffix variable.
7672 (<mask_codefor><code><mode>3<mask_name>): Ditto.
7673 (*<code><mode>3): Ditto.
7674
7675 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
7676
7677 * postreload.c (reload_cse_simplify): Skip also USE when detecting
7678 noop move.
7679
7680 2016-10-06 Richard Biener <rguenther@suse.de>
7681
7682 PR tree-optimization/77855
7683 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
7684 instead of removing the current item while iterating over the set
7685 which is not safe.
7686
7687 2016-10-06 James Clarke <jrtc27@jrtc27.com>
7688 Eric Botcazou <ebotcazou@adacore.com>
7689
7690 PR target/77759
7691 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
7692 (classify_registers): Don't set it
7693 (function_arg_slotno): Don't initialize and test it. Tidy up.
7694
7695 2016-10-06 Richard Biener <rguenther@suse.de>
7696
7697 PR tree-optimization/77839
7698 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
7699 lattice transition.
7700
7701 2016-10-06 Martin Liska <mliska@suse.cz>
7702
7703 * gcc.c: Set -fprofile-update=atomic when profiling is
7704 enabled and -pthread is set. Warn when one combines
7705 -pthread and -fprofile-update=single for an app using
7706 profiling code.
7707
7708 2016-10-06 Martin Liska <mliska@suse.cz>
7709
7710 PR bootstrap/77788
7711 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
7712 * gimple-ssa-strength-reduction.c (slsr_process_cast):
7713 Initialize a pointer to NULL.
7714 (slsr_process_copy): Likewise.
7715 * input.c (location_get_source_line): Likewise.
7716 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7717
7718 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
7719
7720 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
7721 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
7722 (ix86_handle_option): Deleted handle of OPT_mpcommit.
7723 * config.gcc: Deleted pcommitintrin.h
7724 * config/i386/pcommitintrin.h: Deleted file.
7725 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
7726 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
7727 detection.
7728 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
7729 __PCOMMIT__.
7730 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
7731 (PTA_PCOMMIT): Deleted define.
7732 (ix86_option_override_internal): Deleted handle of option.
7733 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
7734 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
7735 __builtin_ia32_pcommit): Deleted.
7736 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
7737 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
7738 (pcommit): Deleted instruction.
7739 * config/i386/i386.opt: Mention -mpcommit deprecation.
7740 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
7741
7742 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
7743
7744 PR target/77874
7745 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
7746 Remove wrong assert.
7747 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
7748 Use <round_constraint> as operand 1 constraint.
7749
7750 2016-10-05 Jakub Jelinek <jakub@redhat.com>
7751
7752 PR sanitizer/66343
7753 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
7754 (ubsan_instrument_float_cast): And not here.
7755
7756 PR sanitizer/66343
7757 * ubsan.c (ubsan_ids): New GTY(()) array.
7758 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
7759 instead of static local counters.
7760
7761 2016-10-05 Martin Sebor <msebor@redhat.com>
7762
7763 PR bootstrap/77819
7764 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
7765 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
7766 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
7767 (default_printf_pointer_format): Define function.
7768 * targhooks.c (linux_printf_pointer_format): Define new function.
7769 * targhooks.h (linux_printf_pointer_format): Declare.
7770 (gnu_libc_printf_pointer_format): Remove declaration.
7771
7772 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7773
7774 * fold-const.c (native_encode_real): Fix logic for selecting offset
7775 to write to when BYTES_BIG_ENDIAN.
7776
7777 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
7778
7779 * builtins.c (fold_builtin_strchr): Remove function.
7780 (fold_builtin_strrchr): Likewise.
7781 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7782 * gimple-fold.c (target_char_cst_p): New function.
7783 (gimple_fold_builtin_strchr) Add more foldings.
7784 (gimple_fold_builtin): Add index, strrchr, rindex cases.
7785
7786 2016-10-05 Richard Biener <rguenther@suse.de>
7787
7788 PR middle-end/77863
7789 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7790 capture ids in c-exprs.
7791
7792 2016-10-05 Richard Biener <rguenther@suse.de>
7793
7794 PR middle-end/77826
7795 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7796 with types_match for GIMPLE code gen to handle type mismatched
7797 constants properly.
7798 (dt_operand::gen): Adjust.
7799 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7800 and constant A.
7801
7802 2016-10-05 Richard Biener <rguenther@suse.de>
7803
7804 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7805
7806 2016-10-05 Richard Biener <rguenther@suse.de>
7807
7808 PR middle-end/77842
7809 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7810
7811 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
7812
7813 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7814 version check to protect only DW_TAG_imported_module generation.
7815
7816 2016-10-05 Richard Biener <rguenther@suse.de>
7817
7818 PR middle-end/55152
7819 * match.pd (min(a,-a) -> -abs(a)): New pattern.
7820
7821 2016-10-04 Ian Lance Taylor <iant@golang.org>
7822
7823 * explow.c (allocate_dynamic_stack_space): Call
7824 do_pending_stack_adjust before handling flag_split_stack.
7825
7826 2016-10-04 David Malcolm <dmalcolm@redhat.com>
7827
7828 * genattrtab.c (make_internal_attr): Supply dummy column number to
7829 file_location ctor.
7830 (main): Likewise.
7831 * genoutput.c (init_insn_for_nothing): Likewise.
7832 * gensupport.c (add_define_attr): Likewise.
7833 * read-md.c (message_at_1): Print column number.
7834 (fatal_with_file_and_line): Likewise.
7835 (rtx_reader::read_char): Track column numbers.
7836 (rtx_reader::unread_char): Likewise.
7837 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7838 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7839 (rtx_reader::handle_file): Initialize m_read_md_colno.
7840 (rtx_reader::get_current_location): Supply column number to
7841 file_location ctor.
7842 * read-md.h (struct file_location): Add field "colno".
7843 (file_location::file_location): Likewise.
7844 (rtx_reader::get_colno): New accessor.
7845 (rtx_reader::m_read_md_colno): New field.
7846 (rtx_reader::m_last_line_colno): New field.
7847
7848 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7849
7850 * doc/extend.texi (Java Exceptions): Remove.
7851 (java_interface): Remove.
7852
7853 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
7854
7855 PR tree-optimization/77808
7856 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7857 and addr are different before copying points-to information.
7858
7859 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
7860
7861 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7862 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7863 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7864 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7865
7866 2016-10-04 Richard Biener <rguenther@suse.de>
7867
7868 PR tree-optimization/77399
7869 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7870 verify the target can convert.
7871
7872 2016-10-04 Richard Biener <rguenther@suse.de>
7873
7874 PR middle-end/77833
7875 * explow.c (plus_constant): Verify the mode of the constant
7876 pool offset before calling plus_constant.
7877
7878 2016-10-04 Richard Biener <rguenther@suse.de>
7879
7880 PR middle-end/77407
7881 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7882 type support, mark with :C.
7883 (X / -X -> -1): Mark with :C.
7884
7885 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7886
7887 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7888 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7889 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7890 * doc/tm.texi: Regenerated.
7891 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7892 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7893 * config/darwin.h (JCR_SECTION_NAME): Remove.
7894 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7895 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7896 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7897 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7898 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7899 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7900
7901 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7902
7903 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7904 between "because" and "param" in dump message in call to fprintf.
7905
7906 2016-10-03 Jeff Law <law@redhat.com>
7907
7908 PR tree-optimization/71550
7909 PR tree-optimization/71403
7910 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7911 (profitable_jump_thread_path): Also return boolean indicating if
7912 the realized path will create an irreducible loop.
7913 Remove loop depth tests from 71403.
7914 (fsm_find_control_statement_thread_paths): Remove loop depth tests
7915 from 71403. If threading will create an irreducible loop, then
7916 throw away loop iteration and related information.
7917
7918 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
7919
7920 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7921 -Woverloaded-virtual checks for warning options.
7922 * configure: Regenerate.
7923
7924 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7925
7926 PR preprocessor/77699
7927 * input.c (maybe_grow): Don't allocate one byte extra headroom.
7928 (get_next_line): Return false on error.
7929 (read_next_line): Removed, use get_next_line instead.
7930 (read_line_num): Don't copy the line.
7931 (location_get_source_line): Don't use static data.
7932 (selftest::test_reading_source_line): Add more test cases.
7933
7934 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7935
7936 Revert
7937 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7938
7939 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7940 (noce_process_if_block): Use it.
7941
7942 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7943
7944 * doc/invoke.texi: Update -Wint-in-bool-context.
7945
7946 2016-10-02 Jakub Jelinek <jakub@redhat.com>
7947
7948 * dwarf2out.c (output_fde, output_call_frame_info,
7949 dwarf2out_do_cfi_startproc, set_indirect_string,
7950 gen_internal_sym, output_die, output_line_info): Use
7951 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7952 ASM_GENERATE_INTERNAL_LABEL output.
7953
7954 2016-10-01 Richard Biener <rguenther@suse.de>
7955
7956 PR middle-end/77798
7957 * genmatch.c (get_operand_type): Add operand position arg
7958 and handle COND_EXPR comparison operand with fixed boolean_type_node.
7959 (expr::gen_transform): Adjust.
7960 (dt_simplify::gen_1): Likewise.
7961
7962 2016-10-01 Jakub Jelinek <jakub@redhat.com>
7963
7964 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7965 comments. Simplify asserts, remove unnecessary conditions.
7966 Formatting fixes.
7967 (*<code><mode>3): Likewise.
7968
7969 2016-09-30 Jakub Jelinek <jakub@redhat.com>
7970
7971 * doc/invoke.texi (-Wregister): Document.
7972
7973 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7974
7975 * configure.ac: Split CHECKING_P into CHECKING_P and
7976 ENABLE_EXTRA_CHECKING.
7977 * configure: Regenerated.
7978 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7979 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7980
7981 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
7982
7983 PR other/31566
7984 * gcc.c (process_command): For @filename handling, output
7985 the correct name if the file does not exist.
7986
7987 2016-09-30 Marek Polacek <polacek@redhat.com>
7988
7989 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7990 * config/alpha/predicates.md: Likewise.
7991
7992 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7993
7994 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7995 (noce_process_if_block): Use it.
7996
7997 2016-09-30 Martin Liska <mliska@suse.cz>
7998
7999 * doc/invoke.texi: Document asan-use-after-return that
8000 it's disabled by default in runtime.
8001
8002 2016-09-30 Richard Biener <rguenther@suse.de>
8003
8004 * tree-vrp.c (intersect_ranges): If we failed to handle
8005 the intersection choose a constant singleton range if available.
8006
8007 2016-09-30 Richard Biener <rguenther@suse.de>
8008
8009 PR tree-optimization/77399
8010 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
8011 float <-> int conversions.
8012
8013 2016-09-30 Alan Modra <amodra@gmail.com>
8014
8015 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
8016
8017 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
8018
8019 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
8020 ext_level before calling CPUID with 0x80000008.
8021 Simplify xgetbv checks.
8022
8023 2016-09-29 David Malcolm <dmalcolm@redhat.com>
8024
8025 * Makefile.in (OBJS): Add print-rtl-function.o.
8026 * print-rtl-function.c: New file.
8027 * print-rtl.h (print_rtx_function): New decl.
8028
8029 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
8030
8031 PR target/77756
8032 * config/i386/cpuid.h (__get_cpuid_count): New.
8033 (__get_cpuid): Rename __level to __leaf.
8034
8035 2016-09-29 Marek Polacek <polacek@redhat.com>
8036
8037 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
8038
8039 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
8040
8041 PR target/77718
8042 * builtins.c (expand_builtin_memcmp): Don't swap args unless
8043 result is only being compared with zero.
8044
8045 2016-09-29 Marek Polacek <polacek@redhat.com>
8046
8047 * dwarf2out.c (loc_descriptor): Add fall through comment.
8048 (add_const_value_attribute): Likewise.
8049
8050 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
8051
8052 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
8053 with "v6t2". Move "arch" attribute above "pool_range".
8054 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
8055 with "v6t2".
8056 (*thumb2_movhi_vfp): Likewise.
8057 (*arm_movhi_fp16): Likewise.
8058 (*thumb2_movhi_fp16): Likewise.
8059 (*arm_movsi_vfp): Remove "arch" attribute.
8060 (*thumb2_movsi_vfp): Likewise.
8061
8062 2016-09-29 Martin Liska <mliska@suse.cz>
8063
8064 * doc/extend.texi: Remove limitation of Objective C for
8065 __attribute__((constructor)) and __attribute__((destructor)).
8066
8067 2016-09-29 Richard Biener <rguenther@suse.de>
8068
8069 PR tree-optimization/77768
8070 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8071 Handle stores to readonly memory when removing redundant stores.
8072
8073 2016-09-29 Richard Biener <rguenther@suse.de>
8074
8075 PR middle-end/77407
8076 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
8077 X / -X -> -1 simplifications.
8078
8079 2016-09-29 Richard Biener <rguenther@suse.de>
8080
8081 PR middle-end/55152
8082 * match.pd: Add max(a,-a) -> abs(a) pattern.
8083 * tree-ssa-phiopt.c (minmax_replacement): Disable for
8084 HONOR_SIGNED_ZEROS types.
8085
8086 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
8087
8088 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
8089 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
8090
8091 2016-09-29 Richard Biener <rguenther@suse.de>
8092
8093 * tree-vrp.c (set_defs_to_varying): New helper avoiding
8094 writing to vr_const_varying.
8095 (vrp_initialize): Call it.
8096 (vrp_visit_stmt): Likewise.
8097 (evrp_dom_walker::before_dom_children): Likewise.
8098
8099 2016-09-29 Richard Biener <rguenther@suse.de>
8100
8101 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
8102 constructors with vector elements.
8103
8104 2016-09-29 Richard Biener <rguenther@suse.de>
8105
8106 PR tree-optimization/77768
8107 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
8108 with stores to a place we know has a constant value.
8109
8110 2016-09-29 Alan Modra <amodra@gmail.com>
8111
8112 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
8113 * doc/invoke.texi: Document it.
8114 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
8115 (rs6000_passes_float): Comment.
8116 (rs6000_passes_long_double): New static var.
8117 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
8118 (init_cumulative_args): Set up to emit fp .gnu_attribute for
8119 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
8120 to include fp values returned in vectors.
8121 Set rs6000_passes_long_double.
8122 (rs6000_function_arg_advance_1): Likewise for function args.
8123 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
8124 and SPE. Emit long double tag value too.
8125 (rs6000_opt_vars): Add gnu-attr.
8126 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
8127 * configure: Regenerate.
8128 * config.in: Regenerate.
8129
8130 2016-09-28 Jakub Jelinek <jakub@redhat.com>
8131
8132 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
8133 of 0 < x.
8134 (format_floating, format_string, format_directive,
8135 get_destination_size, pass_sprintf_length::handle_gimple_call):
8136 Likewise.
8137
8138 2016-09-28 Jakub Jelinek <jakub@redhat.com>
8139
8140 * gimple-ssa-sprintf.c: Fix comment formatting.
8141 (format_integer): Use is_gimple_assign.
8142 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
8143 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
8144 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
8145 (pass_sprintf_length::execute): Use is_gimple_call.
8146
8147 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
8148
8149 * gimple-fold.c (gimple_fold_builtin): After failing to fold
8150 strchr, also try the generic folding.
8151
8152 2016-09-28 Martin Sebor <msebor@redhat.com>
8153
8154 PR c/77762
8155 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
8156 Fix typos.
8157
8158 2016-09-28 Martin Sebor <msebor@redhat.com>
8159
8160 PR middle-end/77683
8161 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
8162 length modifier is not expected.
8163 (format_floating): Ignore l length modifier and fail gracefuly
8164 when it isn't one of the other expected ones.
8165
8166 2016-09-28 Martin Sebor <msebor@redhat.com>
8167
8168 PR bootstrap/77753
8169 * varasm.c (assemble_addr_to_section): Increase local buffer size.
8170
8171 2016-09-27 Richard Biener <rguenther@suse.de>
8172
8173 * dwarf2out.c (cu_die_list): New global.
8174 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
8175 main_comp_unit_die to cu_die_list if we created it.
8176 Move break_out_includes ...
8177 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
8178 the cu_die_list.
8179
8180 2016-09-28 Richard Biener <rguenther@suse.de>
8181
8182 * dwarf2out.c (struct die_struct): Add removed flag.
8183 (lookup_type_die): If the DIE is marked as removed, clear
8184 TYPE_SYMTAB_DIE and return NULL.
8185 (lookup_decl_die): If the DIE is marked as removed, remove it
8186 from the hash and return NULL.
8187 (mark_removed): New helper.
8188 (prune_unused_types_prune): Call it for removed DIEs.
8189 (gen_subprogram_die): Move the premark_used_types call to after
8190 DIEs for the functions scopes are generated.
8191 (process_scope_var): Do not re-create pruned types or type decls.
8192 Make sure to also re-parent type decls.
8193 (dwarf2out_finish): Move unused type pruning and debug_types
8194 handling ...
8195 (dwarf2out_early_finish): ... here.
8196
8197 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
8198
8199 * config/arc/arc-c.c: New file.
8200 * config/arc/arc-c.def: Likewise.
8201 * config/arc/t-arc: Likewise.
8202 * config.gcc: Include arc-c.o as c and cpp object.
8203 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
8204 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
8205 arc_cpu_cpp_builtins.
8206
8207 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
8208
8209 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
8210 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
8211
8212 2016-09-28 Nathan Sidwell <nathan@acm.org>
8213
8214 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
8215 printing.
8216
8217 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
8218
8219 PR tree-optimization/61056
8220 * gimple-fold.c (gimple_fold_builtin_strchr):
8221 New function to optimize strchr (s, 0) to strlen.
8222 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
8223
8224 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
8225
8226 PR tree-optimization/77724
8227 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
8228 Add tree_fits_shwi_p check.
8229
8230 2016-09-27 Jakub Jelinek <jakub@redhat.com>
8231
8232 * auto-inc-dec.c (try_merge): Remove break after return.
8233 * cselib.c (autoinc_split): Likewise.
8234 * explow.c (promote_mode): Likewise.
8235 * fixed-value.c (fixed_arithmetic): Likewise.
8236 * hsa.c (hsa_internal_fn::get_arity): Likewise.
8237 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
8238 * trans-mem.c (get_attrs_for): Likewise.
8239 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
8240 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
8241 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
8242 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
8243 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
8244 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
8245 * config/cris/cris.c (cris_op_str): Likewise.
8246 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
8247 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
8248
8249 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
8250
8251 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
8252 IFN_GOACC_REDUCTION_CODES): New.
8253 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
8254 ifn_goacc_reduction_kind): Use them.
8255 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
8256 of internal functions, when applicable.
8257
8258 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
8259
8260 * config/mips/constraints.md (d): Fix documentation.
8261 * doc/md.texi (Machine Constraints): Update accordingly.
8262
8263 2016-09-27 Richard Biener <rguenther@suse.de>
8264
8265 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
8266 cur_line_info_table initialization ...
8267 (dwarf2out_assembly_start): ... here.
8268
8269 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
8270
8271 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
8272 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
8273 (*thumb2_movhi_vfp): Likewise.
8274 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
8275 template. Expand predicable attribute to mark VMOV.F16 as not
8276 predicable. Add "arch" attribute.
8277 (*thumb2_movhi_fp16): Likewise.
8278 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
8279 (*thumb2_movsi_vfp): Add "arch" attribute.
8280
8281 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
8282
8283 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
8284 VAR_DECL string.
8285
8286 2016-09-27 Marek Polacek <polacek@redhat.com>
8287
8288 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
8289 comment.
8290
8291 * config/c6x/c6x.h: Adjust fall through comment.
8292 * config/sh/sh.c (final_prescan_insn): Likewise.
8293 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
8294 (visium_expand_fp_cstore): Likewise.
8295
8296 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8297
8298 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
8299 expected by -Wimplicit-fallthrough.
8300 (thumb1_size_rtx_costs): Likewise.
8301 (thumb2_reorg): Likewise.
8302 (tls_mentioned_p): Add "Fall through" comment.
8303 (thumb2_reorg): Likewise.
8304 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
8305 comment form expected by -Wimplicit-fallthrough.
8306
8307 2016-09-27 Martin Liska <mliska@suse.cz>
8308
8309 PR gcov-profile/46266
8310 * input.h (RESERVED_LOCATION_P): New macro.
8311 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
8312 instread of comparison with UNKNOWN_LOCATION.
8313
8314 2016-09-27 Richard Biener <rguenther@suse.de>
8315
8316 PR tree-optimization/77745
8317 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8318 When removing redundant stores make sure to check compatibility
8319 of the TBAA state for downstream accesses.
8320 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
8321 value-numbering virtual operands for store matches.
8322
8323 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8324
8325 PR target/51244
8326 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
8327 movrt patterns. Match them before anything else in the SET case.
8328
8329 2016-09-27 Martin Liska <mliska@suse.cz>
8330
8331 PR gcov-profile/7970
8332 PR gcov-profile/16855
8333 PR gcov-profile/44779
8334 * coverage.c (build_gcov_exit_decl): New function.
8335 (coverage_obj_init): Call the function and generate __gcov_exit
8336 destructor.
8337 * doc/gcov.texi: Document when __gcov_exit function is called.
8338
8339 2016-09-27 Marek Polacek <polacek@redhat.com>
8340
8341 PR bootstrap/77751
8342 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8343 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
8344 -Wno-error instead of -Wno-implicit-fallthrough.
8345
8346 2016-09-27 Martin Liska <mliska@suse.cz>
8347
8348 PR bootstrap/77749
8349 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
8350
8351 2016-09-27 Jakub Jelinek <jakub@redhat.com>
8352
8353 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
8354 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
8355 comments. Remove break after return.
8356 (ix86_fp_compare_code_to_integer, has_dispatch,
8357 ix86_simd_clone_usable): Remove break after return.
8358
8359 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8360
8361 PR rlt-optimization/77714
8362 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
8363 REG_EQUAL note.
8364
8365 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
8366
8367 PR ipa/77677
8368 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
8369 extract_range_from_unary_expr to convert value_range.
8370 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
8371 (extract_range_from_unary_expr): This.
8372 * tree-vrp.h (extract_range_from_unary_expr): Declare.
8373
8374 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
8375
8376 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
8377
8378 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8379
8380 * config/i386/i386.c (ix86_print_operand)
8381 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
8382 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
8383 (epilogue_renumber): Likewise.
8384
8385 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
8386
8387 PR middle-end/77719
8388 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
8389 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
8390
8391 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
8392
8393 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
8394 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
8395 is_mm_seq_cst, is_mm_sync): Move to ...
8396 * memmodel.h: This. New file.
8397 * builtins.c: Include memmodel.h.
8398 * optabs.c: Likewise.
8399 * tsan.c: Likewise.
8400 * config/aarch64/aarch64.c: Likewise.
8401 * config/alpha/alpha.c: Likewise.
8402 * config/arm/arm.c: Likewise.
8403 * config/i386/i386.c: Likewise.
8404 * config/ia64/ia64.c: Likewise.
8405 * config/mips/mips.c: Likewise.
8406 * config/rs6000/rs6000.c: Likewise.
8407 * config/sparc/sparc.c: Likewise.
8408 * genconditions.c: Include memmodel.h in generated file.
8409 * genemit.c: Likewise.
8410 * genoutput.c: Likewise.
8411 * genpeep.c: Likewise.
8412 * genpreds.c: Likewise.
8413 * genrecog.c: Likewise.
8414
8415 2016-09-26 David Malcolm <dmalcolm@redhat.com>
8416
8417 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
8418 "c" instead when parsing characters. Move operand parsing into...
8419 (read_rtx_operand): ...this new function, renaming "i" to "idx",
8420 and tightening the scope of various locals.
8421
8422 2016-09-26 Liu Hao <lh_mouse@126.com>
8423
8424 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
8425
8426 2016-09-26 Marek Polacek <polacek@redhat.com>
8427
8428 * system.h: Use __has_attribute to check whether the fallthrough
8429 attribute is supported.
8430
8431 2016-09-26 Marek Polacek <polacek@redhat.com>
8432
8433 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
8434 gimple_call_internal_p.
8435 * ipa-split.c (find_return_bb): Likewise.
8436 (execute_split_functions): Likewise.
8437 * omp-low.c (dump_oacc_loop_part): Likewise.
8438 (oacc_loop_xform_head_tail): Likewise.
8439 * predict.c (predict_loops): Likewise.
8440 * sanopt.c (pass_sanopt::execute): Likewise.
8441 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
8442 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
8443 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
8444 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
8445 (expand_ifn_va_arg): Likewise.
8446 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8447 (optimize_mask_stores): Likewise.
8448 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
8449 (vect_transform_stmt): Likewise.
8450 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
8451 * tsan.c (instrument_memory_accesses): Likewise.
8452
8453 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8454 Alexander Monakov <amonakov@ispras.ru>
8455
8456 * regrename.c (rename_chains): Check
8457 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
8458 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
8459 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8460
8461 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8462
8463 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
8464 (s390_sched_score): Likewise.
8465
8466 2016-09-26 Martin Liska <mliska@suse.cz>
8467
8468 * doc/gcov.texi: Update program output of gcov tool.
8469
8470 2016-09-26 Martin Liska <mliska@suse.cz>
8471
8472 PR gcov-profile/23332
8473 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
8474 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
8475 * value-prof.c (dump_histogram_value): Do not handle
8476 HIST_TYPE_CONST_DELTA.
8477 (stream_in_histogram_value): Likewise.
8478 (gimple_find_values_to_profile): Likewise.
8479 * value-prof.h (enum hist_type): Likewise.
8480
8481 2016-09-26 Martin Liska <mliska@suse.cz>
8482
8483 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
8484 from default sanitize recover values.
8485 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
8486 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
8487 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
8488 consistent.
8489 * opts.c (finish_options): Do a generic loop over options
8490 that can be recovered.
8491 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
8492 SANITIZE_RETURN.
8493 (common_handle_option): Likewise.
8494 * opts.h: Declare can_recover to sanitizer_opts_s.
8495
8496 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
8497
8498 * target.def(elf_flags_numeric): Change documentation to present tense.
8499 * doc/tm.texi: Regenerate.
8500
8501 2016-09-26 Marek Polacek <polacek@redhat.com>
8502
8503 PR c/7652
8504 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8505 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
8506 -Wno-switch-fallthrough.
8507 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
8508 (expand_builtin): Likewise.
8509 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
8510 * convert.c (convert_to_real_1): Likewise.
8511 (convert_to_integer_1): Likewise.
8512 * final.c (output_alternate_entry_point): Likewise.
8513 * genattrtab.c (make_canonical): Likewise.
8514 (write_test_expr): Likewise.
8515 * genpreds.c (validate_exp): Likewise.
8516 * gimple-ssa-strength-reduction.c
8517 (find_candidates_dom_walker::before_dom_children): Likewise.
8518 * godump.c (go_format_type): Likewise.
8519 * reload1.c (elimination_effects): Likewise.
8520 * resource.c (mark_referenced_resources): Likewise.
8521 (mark_set_resources): Likewise.
8522 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
8523 * varasm.c (output_addressed_constants): Likewise.
8524
8525 2016-09-26 Marek Polacek <polacek@redhat.com>
8526
8527 PR c/7652
8528 * common.opt (Wimplicit-fallthrough): New option.
8529 * doc/extend.texi: Document statement attributes and the fallthrough
8530 attribute.
8531 * doc/invoke.texi: Document -Wimplicit-fallthrough.
8532 * gimple.h (gimple_call_internal_p): New function.
8533 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
8534 (struct label_entry): New struct.
8535 (find_label_entry): New function.
8536 (case_label_p): New function.
8537 (collect_fallthrough_labels): New function.
8538 (last_stmt_in_scope): New function.
8539 (should_warn_for_implicit_fallthrough): New function.
8540 (warn_implicit_fallthrough_r): New function.
8541 (maybe_warn_implicit_fallthrough): New function.
8542 (expand_FALLTHROUGH_r): New function.
8543 (expand_FALLTHROUGH): New function.
8544 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
8545 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
8546 (gimplify_label_expr): New function.
8547 (gimplify_case_label_expr): Set location.
8548 (gimplify_expr): Call gimplify_label_expr.
8549 * internal-fn.c (expand_FALLTHROUGH): New function.
8550 * internal-fn.def (FALLTHROUGH): New internal function.
8551 * langhooks.c (lang_GNU_OBJC): New function.
8552 * langhooks.h (lang_GNU_OBJC): Declare.
8553 * system.h (gcc_fallthrough): Define.
8554 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
8555 * tree.h (FALLTHROUGH_LABEL_P): Define.
8556
8557 2016-09-26 Richard Biener <rguenther@suse.de>
8558
8559 * dwarf2out.c (stripattributes): Remove unused function.
8560 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
8561 Push dwarf_split_debug_info handling into init_sections_and_labels.
8562 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
8563 (DEBUG_MACRO_SECTION_FLAGS): Remove.
8564 (debug_macinfo_section_name): New global.
8565 (output_macinfo): Use debug_macinfo_section_name.
8566 (init_sections_and_labels): Split out section and label generation
8567 from dwarf2out_init. Set debug_macinfo_section_name.
8568 (dwarf2out_init): Move text section label generation and emission
8569 to ...
8570 (dwarf2out_assembly_start): ... here.
8571 (dwarf2out_finish): Call init_sections_and_labels before DWARF
8572 output starts.
8573
8574 2016-09-26 Richard Biener <rguenther@suse.de>
8575
8576 PR debug/77692
8577 * cgraphunit.c (analyze_functions): Before early removing
8578 global vars calls the late_global_decl debug handler mark
8579 the variable as readonly.
8580
8581 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8582
8583 PR target/51244
8584 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
8585 (sh_rtx_costs): Handle SET of movt and movrt patterns.
8586 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
8587 declare new overloads.
8588 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
8589 operand.
8590
8591 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8592
8593 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
8594 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
8595
8596 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
8597
8598 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
8599 * configure: Regenerate.
8600
8601 2016-09-24 Marek Polacek <polacek@redhat.com>
8602
8603 PR c/77490
8604 * doc/invoke.texi: Document -Wbool-operation.
8605
8606 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8607
8608 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
8609 * config/rs6000/rs6000.c (expand_block_compare): New function used by
8610 cmpmemsi pattern to do builtin expansion of memcmp ().
8611 (compute_current_alignment): Add helper function for
8612 expand_block_compare used to compute alignment as the compare proceeds.
8613 (select_block_compare_mode): Used by expand_block_compare to select
8614 the mode used for reading the next chunk of bytes in the compare.
8615 (do_load_for_compare): Used by expand_block_compare to emit the load
8616 insns for the compare.
8617 (rs6000_emit_dot_insn): Moved this function to avoid a forward
8618 reference from expand_block_compare ().
8619 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
8620 prototype for this function.
8621 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
8622 target option for controlling how much code inline expansion of
8623 memcmp() will be allowed to generate.
8624
8625 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8626
8627 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
8628 hook_bool_mode_false, hook_bool_mode_true,
8629 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8630 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8631 hook_bool_const_rtx_insn_const_rtx_insn_true,
8632 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
8633 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
8634 hook_bool_const_tree_hwi_hwi_const_tree_false,
8635 hook_bool_const_tree_hwi_hwi_const_tree_true,
8636 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
8637 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8638 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
8639 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
8640 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
8641 hook_bool_const_tree_true, hook_bool_tree_tree_false,
8642 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
8643 hook_bool_rtx_insn_true, hook_bool_rtx_false,
8644 hook_bool_uintp_uintp_false,
8645 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
8646 hook_rtx_tree_int_null, hook_uint_mode_0,
8647 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
8648 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
8649 hook_constcharptr_const_rtx_insn_null,
8650 hook_constcharptr_const_tree_const_tree_null,
8651 hook_constcharptr_int_const_tree_null,
8652 hook_constcharptr_int_const_tree_const_tree_null,
8653 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
8654 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
8655 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
8656
8657 * vec.h (vNULL): Extend comment to say = vNULL initialization
8658 isn't needed for static vars.
8659
8660 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
8661 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
8662 = vNULL initialization of file scope vec.
8663 * passes.c (pass_tab, enabled_pass_uid_range_tab,
8664 disabled_pass_uid_range_tab): Likewise.
8665 * haifa-sched.c (sched_luids, h_i_d): Likewise.
8666 * tree-chkp-opt.c (check_infos): Likewise.
8667 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
8668
8669 * vec.h (vnull::operator vec): Add constexpr keyword for
8670 C++11 and later.
8671
8672 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
8673
8674 PR tree-optimization/77654
8675 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
8676 to duplicate_ssa_name_ptr_info.
8677
8678 2016-09-23 David Malcolm <dmalcolm@redhat.com>
8679
8680 PR preprocessor/77672
8681 * input.c (selftest::test_lexer_string_locations_simple): Update
8682 test to expect location information of the terminator character
8683 at the location of the final closing quote.
8684 (selftest::test_lexer_string_locations_hex): Likewise.
8685 (selftest::test_lexer_string_locations_oct): Likewise.
8686 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
8687 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
8688 (selftest::test_lexer_string_locations_ucn4): Likewise.
8689 (selftest::test_lexer_string_locations_ucn8): Likewise.
8690 (selftest::test_lexer_string_locations_u8): Likewise.
8691 (selftest::test_lexer_string_locations_utf8_source): Likewise.
8692 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
8693 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
8694 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
8695 (selftest::test_lexer_string_locations_macro): Likewise.
8696 (selftest::test_lexer_string_locations_long_line): Likewise.
8697
8698 2016-09-23 Richard Biener <rguenther@suse.de>
8699
8700 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
8701 virtual definition to virtual use if the call devirtualizes
8702 to a const or pure function.
8703 (visit_use): Also visit calls we can devirtualize to a
8704 const or pure function.
8705
8706 2016-09-23 Richard Biener <rguenther@suse.de>
8707
8708 PR tree-optimization/77697
8709 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
8710 signal error if we have sth ternary or unhandled.
8711
8712 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8713
8714 * config/arm/arm_neon.h (vabd_f16): New.
8715 (vabdq_f16): New.
8716 (vabs_f16): New.
8717 (vabsq_f16): New.
8718 (vadd_f16): New.
8719 (vaddq_f16): New.
8720 (vcage_f16): New.
8721 (vcageq_f16): New.
8722 (vcagt_f16): New.
8723 (vcagtq_f16): New.
8724 (vcale_f16): New.
8725 (vcaleq_f16): New.
8726 (vcalt_f16): New.
8727 (vcaltq_f16): New.
8728 (vceq_f16): New.
8729 (vceqq_f16): New.
8730 (vceqz_f16): New.
8731 (vceqzq_f16): New.
8732 (vcge_f16): New.
8733 (vcgeq_f16): New.
8734 (vcgez_f16): New.
8735 (vcgezq_f16): New.
8736 (vcgt_f16): New.
8737 (vcgtq_f16): New.
8738 (vcgtz_f16): New.
8739 (vcgtzq_f16): New.
8740 (vcle_f16): New.
8741 (vcleq_f16): New.
8742 (vclez_f16): New.
8743 (vclezq_f16): New.
8744 (vclt_f16): New.
8745 (vcltq_f16): New.
8746 (vcltz_f16): New.
8747 (vcltzq_f16): New.
8748 (vcvt_f16_s16): New.
8749 (vcvt_f16_u16): New.
8750 (vcvt_s16_f16): New.
8751 (vcvt_u16_f16): New.
8752 (vcvtq_f16_s16): New.
8753 (vcvtq_f16_u16): New.
8754 (vcvtq_s16_f16): New.
8755 (vcvtq_u16_f16): New.
8756 (vcvta_s16_f16): New.
8757 (vcvta_u16_f16): New.
8758 (vcvtaq_s16_f16): New.
8759 (vcvtaq_u16_f16): New.
8760 (vcvtm_s16_f16): New.
8761 (vcvtm_u16_f16): New.
8762 (vcvtmq_s16_f16): New.
8763 (vcvtmq_u16_f16): New.
8764 (vcvtn_s16_f16): New.
8765 (vcvtn_u16_f16): New.
8766 (vcvtnq_s16_f16): New.
8767 (vcvtnq_u16_f16): New.
8768 (vcvtp_s16_f16): New.
8769 (vcvtp_u16_f16): New.
8770 (vcvtpq_s16_f16): New.
8771 (vcvtpq_u16_f16): New.
8772 (vcvt_n_f16_s16): New.
8773 (vcvt_n_f16_u16): New.
8774 (vcvtq_n_f16_s16): New.
8775 (vcvtq_n_f16_u16): New.
8776 (vcvt_n_s16_f16): New.
8777 (vcvt_n_u16_f16): New.
8778 (vcvtq_n_s16_f16): New.
8779 (vcvtq_n_u16_f16): New.
8780 (vfma_f16): New.
8781 (vfmaq_f16): New.
8782 (vfms_f16): New.
8783 (vfmsq_f16): New.
8784 (vmax_f16): New.
8785 (vmaxq_f16): New.
8786 (vmaxnm_f16): New.
8787 (vmaxnmq_f16): New.
8788 (vmin_f16): New.
8789 (vminq_f16): New.
8790 (vminnm_f16): New.
8791 (vminnmq_f16): New.
8792 (vmul_f16): New.
8793 (vmul_lane_f16): New.
8794 (vmul_n_f16): New.
8795 (vmulq_f16): New.
8796 (vmulq_lane_f16): New.
8797 (vmulq_n_f16): New.
8798 (vneg_f16): New.
8799 (vnegq_f16): New.
8800 (vpadd_f16): New.
8801 (vpmax_f16): New.
8802 (vpmin_f16): New.
8803 (vrecpe_f16): New.
8804 (vrecpeq_f16): New.
8805 (vrnd_f16): New.
8806 (vrndq_f16): New.
8807 (vrnda_f16): New.
8808 (vrndaq_f16): New.
8809 (vrndm_f16): New.
8810 (vrndmq_f16): New.
8811 (vrndn_f16): New.
8812 (vrndnq_f16): New.
8813 (vrndp_f16): New.
8814 (vrndpq_f16): New.
8815 (vrndx_f16): New.
8816 (vrndxq_f16): New.
8817 (vrsqrte_f16): New.
8818 (vrsqrteq_f16): New.
8819 (vrecps_f16): New.
8820 (vrecpsq_f16): New.
8821 (vrsqrts_f16): New.
8822 (vrsqrtsq_f16): New.
8823 (vsub_f16): New.
8824 (vsubq_f16): New.
8825
8826 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8827
8828 * config.gcc (extra_headers): Add arm_fp16.h
8829 * config/arm/arm_fp16.h: New.
8830 * config/arm/arm_neon.h: Include "arm_fp16.h".
8831
8832 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8833
8834 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8835 variants).
8836 (vmulf): New (v8hf, v4hf variants).
8837 (vfma): New (v8hf, v4hf variants).
8838 (vfms): New (v8hf, v4hf variants).
8839 (vsub): New (v8hf, v4hf variants).
8840 (vcage): New (v8hf, v4hf variants).
8841 (vcagt): New (v8hf, v4hf variants).
8842 (vcale): New (v8hf, v4hf variants).
8843 (vcalt): New (v8hf, v4hf variants).
8844 (vceq): New (v8hf, v4hf variants).
8845 (vcgt): New (v8hf, v4hf variants).
8846 (vcge): New (v8hf, v4hf variants).
8847 (vcle): New (v8hf, v4hf variants).
8848 (vclt): New (v8hf, v4hf variants).
8849 (vceqz): New (v8hf, v4hf variants).
8850 (vcgez): New (v8hf, v4hf variants).
8851 (vcgtz): New (v8hf, v4hf variants).
8852 (vcltz): New (v8hf, v4hf variants).
8853 (vclez): New (v8hf, v4hf variants).
8854 (vabd): New (v8hf, v4hf variants).
8855 (vmaxf): New (v8hf, v4hf variants).
8856 (vmaxnm): New (v8hf, v4hf variants).
8857 (vminf): New (v8hf, v4hf variants).
8858 (vminnm): New (v8hf, v4hf variants).
8859 (vpmaxf): New (v4hf variant).
8860 (vpminf): New (v4hf variant).
8861 (vpadd): New (v4hf variant).
8862 (vrecps): New (v8hf, v4hf variants).
8863 (vrsqrts): New (v8hf, v4hf variants).
8864 (vabs): New (v8hf, v4hf variants).
8865 (vneg): New (v8hf, v4hf variants).
8866 (vrecpe): New (v8hf, v4hf variants).
8867 (vrnd): New (v8hf, v4hf variants).
8868 (vrnda): New (v8hf, v4hf variants).
8869 (vrndm): New (v8hf, v4hf variants).
8870 (vrndn): New (v8hf, v4hf variants).
8871 (vrndp): New (v8hf, v4hf variants).
8872 (vrndx): New (v8hf, v4hf variants).
8873 (vrsqrte): New (v8hf, v4hf variants).
8874 (vmul_lane): Add v4hf and v8hf variants.
8875 (vmul_n): Add v4hf and v8hf variants.
8876 (vext): New (v8hf, v4hf variants).
8877 (vcvts): New (v8hi, v4hi variants).
8878 (vcvts): New (v8hf, v4hf variants).
8879 (vcvtu): New (v8hi, v4hi variants).
8880 (vcvtu): New (v8hf, v4hf variants).
8881 (vcvts_n): New (v8hf, v4hf variants).
8882 (vcvtu_n): New (v8hi, v4hi variants).
8883 (vcvts_n): New (v8hi, v4hi variants).
8884 (vcvtu_n): New (v8hf, v4hf variants).
8885 (vbsl): New (v8hf, v4hf variants).
8886 (vcvtas): New (v8hf, v4hf variants).
8887 (vcvtau): New (v8hf, v4hf variants).
8888 (vcvtms): New (v8hf, v4hf variants).
8889 (vcvtmu): New (v8hf, v4hf variants).
8890 (vcvtns): New (v8hf, v4hf variants).
8891 (vcvtnu): New (v8hf, v4hf variants).
8892 (vcvtps): New (v8hf, v4hf variants).
8893 (vcvtpu): New (v8hf, v4hf variants).
8894
8895 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8896
8897 * config/arm/arm-builtins.c (hf_UP): New.
8898 (si_UP): New.
8899 (vfp_builtin_data): New. Update comment.
8900 (enum arm_builtins): Include "arm_vfp_builtins.def".
8901 (ARM_BUILTIN_VFP_PATTERN_START): New.
8902 (arm_init_vfp_builtins): New.
8903 (arm_init_builtins): Add arm_init_vfp_builtins.
8904 (arm_expand_vfp_builtin): New.
8905 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
8906 long line.
8907 * config/arm/arm_vfp_builtins.def: New file.
8908 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8909 (arm-builtins.o): Likewise.
8910
8911 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8912
8913 PR ipa/77677
8914 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8915 from constant while creating value range.
8916
8917 2016-09-23 Renlin Li <renlin.li@arm.com>
8918
8919 * ira.c (ira): Move ira_use_lra_p initialization code to ...
8920 (ira_init_once): Here.
8921
8922 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
8923 Jakub Jelinek <jakub@redhat.com>
8924
8925 * hooks.h (hook_uint_uintp_false): Rename to...
8926 (hook_bool_uint_uintp_false): ... this.
8927 * hooks.c (hook_uint_uintp_false): Rename to...
8928 (hook_bool_uint_uintp_false): ... this.
8929 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8930 instead of hook_uint_uintp_false.
8931
8932 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8933
8934 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8935 (arm_init_builtins): Move body of a loop to the standalone
8936 function arm_init_neon_builtin.
8937 (arm_expand_neon_builtin_1): New. Update comment. Function body
8938 moved from arm_neon_builtin with some white-space fixes.
8939 (arm_expand_neon_builtin): Move code into the standalone function
8940 arm_expand_neon_builtin_1.
8941
8942 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8943
8944 * config/arm/iterators.md (VCVTHI): New.
8945 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
8946 (NEON_VAGLTE): New.
8947 (VFM_LANE_AS): New.
8948 (VH_CVTTO): New.
8949 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
8950 (V_HALF): Add V4HF. Fix white-space.
8951 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
8952 (V_s_elem): Likewise.
8953 (V_sz_elem): Fix white-space.
8954 (V_elem_ch): Likewise.
8955 (VH_elem_ch): New.
8956 (scalar_mul_constraint): Add V8HF and V4HF.
8957 (Is_float_mode): Fix white-space.
8958 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
8959 (q): Add HF. Fix white-space.
8960 (float_sup): New.
8961 (float_SUP): New.
8962 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8963 (neon_vfm_lane_as): New.
8964 * config/arm/neon.md (add<mode>3_fp16): New.
8965 (sub<mode>3_fp16): New.
8966 (mul<mode>3add<mode>_neon): New.
8967 (fma<VH:mode>4_intrinsic): New.
8968 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8969 (fmsub<VH:mode>4_intrinsic): New.
8970 (<absneg_str><mode>2): New.
8971 (neon_v<absneg_str><mode>): New.
8972 (neon_v<fp16_rnd_str><mode>): New.
8973 (neon_vrsqrte<mode>): New.
8974 (neon_vpaddv4hf): New.
8975 (neon_vadd<mode>): New.
8976 (neon_vsub<mode>): New.
8977 (neon_vmulf<mode>): New.
8978 (neon_vfma<VH:mode>): New.
8979 (neon_vfms<VH:mode>): New.
8980 (neon_vc<cmp_op><mode>): New.
8981 (neon_vc<cmp_op><mode>_fp16insn): New
8982 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8983 (neon_vca<cmp_op><mode>): New.
8984 (neon_vca<cmp_op><mode>_fp16insn): New.
8985 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8986 (neon_vc<cmp_op>z<mode>): New.
8987 (neon_vabd<mode>): New.
8988 (neon_v<maxmin>f<mode>): New.
8989 (neon_vp<maxmin>fv4hf: New.
8990 (neon_<fmaxmin_op><mode>): New.
8991 (neon_vrecps<mode>): New.
8992 (neon_vrsqrts<mode>): New.
8993 (neon_vrecpe<mode>): New (VH variant).
8994 (neon_vdup_lane<mode>_internal): New.
8995 (neon_vdup_lane<mode>): New.
8996 (neon_vcvt<sup><mode>): New (VCVTHI variant).
8997 (neon_vcvt<sup><mode>): New (VH variant).
8998 (neon_vcvt<sup>_n<mode>): New (VH variant).
8999 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
9000 (neon_vcvt<vcvth_op><sup><mode>): New.
9001 (neon_vmul_lane<mode>): New.
9002 (neon_vmul_n<mode>): New.
9003 * config/arm/unspecs.md (UNSPEC_VCALE): New
9004 (UNSPEC_VCALT): New.
9005 (UNSPEC_VFMA_LANE): New.
9006 (UNSPECS_VFMS_LANE): New.
9007
9008 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9009
9010 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
9011 ("*extzv<mode><clobbercc_or_nocc>"):
9012 Correct a typo in a comment.
9013 Merged patterns.
9014 ("*insv<mode>_zEC12", "*insv<mode>_z10")
9015 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
9016 ("*insv<mode>_zEC12_appendbitsleft")
9017 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
9018 ("*insv<mode>_z10_appendbitsleft"): Ditto.
9019 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
9020 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
9021 Provide pattern with operands switched.
9022 ("*pre_z10_extv<mode>"):
9023 Use new subst patterns.
9024 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
9025 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
9026 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
9027 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
9028 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
9029 ("*<risbg_n>_sidi_ior_and_lshiftrt")
9030 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
9031 New patterns.
9032 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
9033 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
9034 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
9035 on zEC12.
9036 ("SINT"): New mode_iterator with SI, HI, QI.
9037 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
9038 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
9039 duplication.
9040
9041 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9042
9043 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
9044 new interface of s390_contiguous_bitmask_p.
9045 ("contiguous_bitmask_nowrap_operand"): New predicate.
9046 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
9047 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
9048 of s390_contiguous_bitmask_p.
9049 ("NxxDw"): Rename NxxDq constraint to NxxDw.
9050 ("NxxSw"): New constraint.
9051 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
9052 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
9053 interface.
9054 (s390_contiguous_bitmask_nowrap_p): Export.
9055 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
9056 former s390_contiguous_bitmask_p.
9057 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
9058 detect contiguous bit ranges with wraparound. Change signature to
9059 return START and END position instead of POS and LENGTH.
9060 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
9061 ranges with wraparound.
9062 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
9063 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
9064 Adapt to new signature of s390_contiguous_bitmask_p.
9065
9066 2016-09-23 Bin Cheng <bin.cheng@arm.com>
9067
9068 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
9069 (create_intersect_range_checks): New.
9070 (vect_create_cond_for_alias_checks): Call above function.
9071
9072 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9073
9074 * config/arm/iterators.md (Code iterators): Fix some white-space
9075 in the comments.
9076 (GLTE): New.
9077 (ABSNEG): New
9078 (FCVT): Moved from vfp.md.
9079 (VCVT_HF_US_N): New.
9080 (VCVT_SI_US_N): New.
9081 (VCVT_HF_US): New.
9082 (VCVTH_US): New.
9083 (FP16_RND): New.
9084 (absneg_str): New.
9085 (FCVTI32typename): Moved from vfp.md.
9086 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
9087 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
9088 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
9089 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
9090 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
9091 (vcvth_op): New.
9092 (fp16_rnd_str): New.
9093 (fp16_rnd_insn): New.
9094 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
9095 (UNSPEC_VCVT_HF_U_N): New.
9096 (UNSPEC_VCVT_SI_S_N): New.
9097 (UNSPEC_VCVT_SI_U_N): New.
9098 (UNSPEC_VCVTH_S): New.
9099 (UNSPEC_VCVTH_U): New.
9100 (UNSPEC_VCVTA_S): New.
9101 (UNSPEC_VCVTA_U): New.
9102 (UNSPEC_VCVTM_S): New.
9103 (UNSPEC_VCVTM_U): New.
9104 (UNSPEC_VCVTN_S): New.
9105 (UNSPEC_VCVTN_U): New.
9106 (UNSPEC_VCVTP_S): New.
9107 (UNSPEC_VCVTP_U): New.
9108 (UNSPEC_VCVTP_S): New.
9109 (UNSPEC_VCVTP_U): New.
9110 (UNSPEC_VRND): New.
9111 (UNSPEC_VRNDA): New.
9112 (UNSPEC_VRNDI): New.
9113 (UNSPEC_VRNDM): New.
9114 (UNSPEC_VRNDN): New.
9115 (UNSPEC_VRNDP): New.
9116 (UNSPEC_VRNDX): New.
9117 * config/arm/vfp.md (<absneg_str>hf2): New.
9118 (neon_vabshf): New.
9119 (neon_v<fp16_rnd_str>hf): New.
9120 (neon_vrndihf): New.
9121 (addhf3): New.
9122 (subhf3): New.
9123 (divhf3): New.
9124 (mulhf3): New.
9125 (*mulsf3neghf_vfp): New.
9126 (*negmulhf3_vfp): New.
9127 (*mulsf3addhf_vfp): New.
9128 (*mulhf3subhf_vfp): New.
9129 (*mulhf3neghfaddhf_vfp): New.
9130 (*mulhf3neghfsubhf_vfp): New.
9131 (fmahf4): New.
9132 (neon_vfmahf): New.
9133 (fmsubhf4_fp16): New.
9134 (neon_vfmshf): New.
9135 (*fnmsubhf4): New.
9136 (*fnmaddhf4): New.
9137 (neon_vsqrthf): New.
9138 (neon_vrsqrtshf): New.
9139 (FCVT): Move to iterators.md.
9140 (FCVTI32typename): Likewise.
9141 (neon_vcvth<sup>hf): New.
9142 (neon_vcvth<sup>si): New.
9143 (neon_vcvth<sup>_nhf_unspec): New.
9144 (neon_vcvth<sup>_nhf): New.
9145 (neon_vcvth<sup>_nsi_unspec): New.
9146 (neon_vcvth<sup>_nsi): New.
9147 (neon_vcvt<vcvth_op>h<sup>si): New.
9148 (neon_<fmaxmin_op>hf): New.
9149
9150 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9151
9152 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
9153 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
9154 ("*insv<mode>_zEC12_appendbitsleft")
9155 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
9156 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
9157
9158 2016-09-23 Jakub Jelinek <jakub@redhat.com>
9159
9160 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
9161 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
9162 construct values without normalization.
9163 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
9164 static local lhs_ops to vNULL.
9165
9166 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9167 Jiong Wang <jiong.wang@arm.com>
9168
9169 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
9170 available when FP16 instructions are available.
9171 (output_move_vfp): Add support for 16-bit data moves.
9172 (arm_validize_comparison): Fix some white-space. Support HFmode
9173 by conversion to SFmode.
9174 * config/arm/arm.md (truncdfhf2): Fix a comment.
9175 (extendhfdf2): Likewise.
9176 (cstorehf4): New.
9177 (movsicc): Fix some white-space.
9178 (movhfcc): New.
9179 (movsfcc): Fix some white-space.
9180 (*cmovhf): New.
9181 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
9182 instructions are available.
9183 (*thumb2_movhi_vfp): Likewise.
9184 (*arm_movhi_fp16): New.
9185 (*thumb2_movhi_fp16): New.
9186 (*movhf_vfp_fp16): New.
9187 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
9188 (*movhf_vfp): Likewise.
9189 (extendhfsf2): Enable when VFP FP16 instructions are available.
9190 (truncsfhf2): Enable when VFP FP16 instructions are available.
9191
9192 2016-09-23 Martin Liska <mliska@suse.cz>
9193
9194 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
9195
9196 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9197
9198 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
9199 V4HF modes.
9200 (arm_evpc_neon_vtrn): Likewise.
9201 (arm_evpc_neon_vrev): Likewise.
9202 (arm_evpc_neon_vext): Likewise.
9203 * config/arm/arm_neon.h (vbsl_f16): New.
9204 (vbslq_f16): New.
9205 (vdup_n_f16): New.
9206 (vdupq_n_f16): New.
9207 (vdup_lane_f16): New.
9208 (vdupq_lane_f16): New.
9209 (vext_f16): New.
9210 (vextq_f16): New.
9211 (vmov_n_f16): New.
9212 (vmovq_n_f16): New.
9213 (vrev64_f16): New.
9214 (vrev64q_f16): New.
9215 (vtrn_f16): New.
9216 (vtrnq_f16): New.
9217 (vuzp_f16): New.
9218 (vuzpq_f16): New.
9219 (vzip_f16): New.
9220 (vzipq_f16): New.
9221 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
9222 (vdup_lane): New (v8hf, v4hf variants).
9223 (vext): New (v8hf, v4hf variants).
9224 (vbsl): New (v8hf, v4hf variants).
9225 * config/arm/iterators.md (VDQWH): New.
9226 (VH): New.
9227 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
9228 (Scalar_mul_8_16): Fix white-space.
9229 (Is_d_reg): Add V4HF and V8HF.
9230 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
9231 (neon_vdup_lane<mode>): New.
9232 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
9233 (*neon_vtrn<mode>_insn): Likewise.
9234 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
9235 (*neon_vzip<mode>_insn): Likewise
9236 (neon_vuzp<mode>_internal): Likewise.
9237 (*neon_vuzp<mode>_insn): Likewise
9238 * config/arm/vec-common.md (vec_perm_const<mode>): New.
9239
9240 2016-09-23 Jiong Wang <jiong.wang@arm.com>
9241 Matthew Wahab <matthew.wahab@arm.com>
9242
9243 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
9244 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
9245 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
9246 available. Also fix some white-space.
9247 * config/arm/vfp.md (*arm_movhi_vfp): New.
9248 (*thumb2_movhi_vfp): New.
9249
9250 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9251
9252 * config/arm/arm-c.c (arm_cpu_builtins): Define
9253 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
9254 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
9255
9256 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9257
9258 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
9259 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
9260 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
9261 arm_v8_2a_fp16_neon_hw.
9262 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
9263 arm_v8_2a_neon.
9264
9265 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9266
9267 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
9268 arm_fp16_alternative_ok and arm_fp16_none_ok.
9269
9270 2016-09-23 Martin Liska <mliska@suse.cz>
9271
9272 * ipa-icf.c (sem_variable::merge): Replace adress with address.
9273
9274 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9275
9276 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
9277 ("armv8.2-a"): New.
9278 ("armv8.2-a+fp16"): New.
9279 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
9280 (FL2_FP16INST): New.
9281 (FL2_FOR_ARCH8_2A): New.
9282 * config/arm/arm-tables.opt: Regenerate.
9283 * config/arm/arm.c (arm_arch8_2): New.
9284 (arm_fp16_inst): New.
9285 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
9286 for incompatible fp16-format settings.
9287 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
9288 (TARGET_NEON_FP16INST): New.
9289 (arm_arch8_2): Declare.
9290 (arm_fp16_inst): Declare.
9291 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
9292 march=armv8.2-a and march=armv8.2-a+fp16.
9293 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
9294 and armv8.2-a+fp16.
9295 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
9296 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
9297
9298 2016-09-23 Martin Liska <mliska@suse.cz>
9299
9300 * doc/extend.texi: Remove fused-madd from i386 target options.
9301
9302 2016-09-23 Martin Liska <mliska@suse.cz>
9303
9304 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9305 Handle movbe.
9306
9307 2016-09-23 Martin Liska <mliska@suse.cz>
9308
9309 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9310 Handle crc32.
9311
9312 2016-09-23 Martin Liska <mliska@suse.cz>
9313
9314 PR target/71652
9315 * config/i386/i386.c (ix86_option_override_internal): Change
9316 signature and return false when there's an error related to
9317 arch string.
9318 (release_options_strings): New function.
9319 (ix86_valid_target_attribute_tree): Call the function.
9320
9321 2016-09-23 Jakub Jelinek <jakub@redhat.com>
9322
9323 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
9324 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
9325 (gen_hsa_ctor_assignment): Likewise.
9326 * print-tree.c (print_node): Likewise.
9327 * tree-dump.c (dequeue_and_dump): Likewise.
9328 * tree-sra.c (sra_modify_constructor_assign): Likewise.
9329 * expr.c (store_constructor): Likewise.
9330 * fold-const.c (operand_equal_p): Likewise.
9331 * tree-pretty-print.c (dump_generic_node): Likewise.
9332 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
9333 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
9334
9335 2016-09-23 Richard Biener <rguenther@suse.de>
9336
9337 * hooks.h (hook_uint_uintp_false): Declare.
9338
9339 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9340
9341 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
9342 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
9343
9344 2016-09-22 Martin Sebor <msebor@redhat.com>
9345
9346 PR target/77676
9347 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
9348 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
9349 (target_int_min): Correct computation.
9350 (format_integer): Use long long as the argument for the ll length
9351 modifier.
9352 (format_floating): Use target_int_max().
9353 (get_string_length): Same.
9354 (format_string): Avoid setting the bounded flag for strings
9355 of unknown length.
9356 (try_substitute_return_value): Avoid setting range info when
9357 the result isn't bounded.
9358 * varasm.c (assemble_name): Increase buffer size.
9359
9360 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
9361 Terry Guo <terry.guo@arm.com>
9362
9363 * target.def (elf_flags_numeric): New target hook.
9364 * targhooks.h (default_asm_elf_flags_numeric): New.
9365 * varasm.c (default_asm_elf_flags_numeric): New.
9366 (default_elf_asm_named_section): Use new target hook.
9367 * config/arm/arm.opt (mpure-code): New.
9368 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
9369 * config/arm/arm.c (arm_asm_init_sections): Add section
9370 attribute to default text section if -mpure-code.
9371 (arm_option_check_internal): Diagnose use of option with
9372 non supported targets and/or options.
9373 (arm_asm_elf_flags_numeric): New.
9374 (arm_function_section): New.
9375 (arm_elf_section_type_flags): New.
9376 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
9377 for -mpure-code.
9378 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
9379 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
9380
9381 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
9382
9383 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
9384
9385 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9386
9387 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
9388 * rtl.h: Adjust prototype.
9389
9390 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9391
9392 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
9393 (prev_active_insn): Likewise.
9394 (active_insn_p): Likewise.
9395 * rtl.h: Adjust prototypes.
9396 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
9397 * config/arc/arc.md: Likewise.
9398 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
9399 (branch_needs_nop_p): Likewise.
9400 (use_skip_p): Likewise.
9401 * config/sh/sh.c (gen_block_redirect): Likewise.
9402 (split_branches): Likewise.
9403 * reorg.c (optimize_skip): Likewise.
9404 (fill_simple_delay_slots): Likewise.
9405 (fill_slots_from_thread): Likewise.
9406 (relax_delay_slots): Likewise.
9407 * resource.c (mark_target_live_regs): Likewise.
9408
9409 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9410
9411 * config/cris/cris.c (cris_asm_output_case_end): Change argument
9412 type to rtx_insn *.
9413 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
9414 (prev_nonnote_nondebug_insn): Likewise.
9415 * config/cris/cris-protos.h: Adjust prototype.
9416 * rtl.h: Likewise.
9417 * jump.c (rtx_renumbered_equal_p): Adjust.
9418
9419 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9420
9421 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
9422 * rtl.h: Adjust prototype.
9423 * config/sh/sh.md: Adjust.
9424 * dwarf2out.c (add_var_loc_to_decl): Likewise.
9425
9426 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9427
9428 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
9429 (prev_nondebug_insn): Likewise.
9430 * loop-doloop.c (doloop_condition_get): Likewise.
9431 * rtl.h: Adjust prototype.
9432 * cfgloop.h: Likewise.
9433
9434 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9435
9436 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
9437 (prev_nonnote_insn): Likewise.
9438 * jump.c (reversed_comparison_code_parts): Likewise.
9439 (reversed_comparison): Likewise.
9440 * rtl.h: Adjust prototypes.
9441 * config/arc/arc.md: Adjust.
9442 * cse.c (find_comparison_args): Likewise.
9443 * reorg.c (redundant_insn): Change return type to rtx_insn *.
9444 (fix_reg_dead_note): Change argument type to rtx_insn *.
9445 (delete_prior_computation): Likewise.
9446 (delete_computation): Likewise.
9447 (fill_slots_from_thread): Adjust.
9448 (relax_delay_slots): Likewise.
9449 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9450 (simplify_relational_operation_1): Likewise.
9451 (simplify_ternary_operation): Likewise.
9452
9453 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9454
9455 * config/arc/arc-protos.h (arc_label_align): Change type of
9456 variables from rtx to rtx_insn *.
9457 * config/arc/arc.c (arc_label_align): Likewise.
9458 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
9459 * config/bfin/bfin.c (workaround_speculation): Likewise.
9460 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
9461 (find_last_same_clock): Likewise.
9462 (reorg_split_calls): Likewise.
9463 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
9464 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
9465 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
9466 (same_cmp_following_p): Likewise.
9467 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
9468 (same_cmp_following_p): Likwise.
9469 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
9470 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
9471 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
9472 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
9473 (rl78_alloc_physical_registers_cmp): Likewise.
9474 (rl78_alloc_physical_registers_umul): Likewise.
9475 (rl78_calculate_death_notes): Likewise.
9476 * config/s390/s390-protos.h (s390_label_align): Likewise.
9477 * config/s390/s390.c (s390_label_align): Likewise.
9478 * config/sh/sh.c (barrier_align): Likewise.
9479 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
9480 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
9481 (emit_cbcond_nop): Likewise.
9482
9483 2016-09-22 Martin Liska <mliska@suse.cz>
9484
9485 PR ipa/77653
9486 * ipa-icf.c (sem_variable::merge): Yield merge operation if
9487 alias address matters, not necessarily address of original.
9488
9489 2016-09-22 Richard Biener <rguenther@suse.de>
9490
9491 PR middle-end/77697
9492 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
9493 fold fails.
9494
9495 2016-09-22 Richard Biener <rguenther@suse.de>
9496
9497 PR middle-end/77677
9498 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
9499 from constant folding results.
9500 (gimple_resimplify2): Likewise.
9501 (gimple_resimplify3): Likewise.
9502
9503 2016-09-22 Richard Biener <rguenther@suse.de>
9504
9505 PR middle-end/77678
9506 * expr.c (expand_expr_real_1): Guard array access against negative
9507 offset.
9508
9509 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9510
9511 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
9512 of MPFR_RNDN.
9513 (format_floating): Likewise.
9514
9515 2016-09-22 Jakub Jelinek <jakub@redhat.com>
9516
9517 PR fortran/77665
9518 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
9519 for all IFN_GOMP_SIMD_* internal fns, not just for
9520 IFN_GOMP_SIMD_ORDERED_*.
9521
9522 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9523
9524 PR target/77670
9525 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
9526 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
9527 instructions when you want to invert the test.
9528 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
9529 correct order for XXSEL.
9530 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
9531 for using XSCMP{EQ,GT,GE}DP.
9532
9533 2016-09-21 David Malcolm <dmalcolm@redhat.com>
9534
9535 * genconstants.c (main): Introduce noop_reader and convert call
9536 to read_md_files to a method call.
9537 * genenums.c (main): Likewise.
9538 * genmddeps.c (main): Likewise.
9539 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
9540 rtx_reader_ptr->get_top_level_filename ().
9541 (write_tm_preds_h): Likewise.
9542 (write_insn_preds_c): Likewise.
9543 * gensupport.c (class gen_reader): New subclass of rtx_reader.
9544 (rtx_handle_directive): Convert to...
9545 (gen_reader::handle_unknown_directive): ...this.
9546 (init_rtx_reader_args_cb): Convert return type from bool to
9547 rtx_reader *. Create a gen_reader instance, using it for the
9548 call to read_md_files. Return it if no errors occur.
9549 (init_rtx_reader_args): Convert return type from bool to
9550 rtx_reader *.
9551 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9552 (init_rtx_reader_args_cb): Likewise.
9553 * read-md.c (struct file_name_list): Move to class rtx_reader.
9554 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
9555 (read_md_filename): Delete in favor of
9556 rtx_reader::m_read_md_filename.
9557 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
9558 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
9559 (base_dir): Delete in favor of rtx_reader::m_base_dir.
9560 (first_dir_md_include): Delete in favor of
9561 rtx_reader::m_first_dir_md_include.
9562 (last_dir_md_include_ptr): Delete in favor of
9563 rtx_reader::m_last_dir_md_include_ptr.
9564 (max_include_len): Delete.
9565 (rtx_reader_ptr): New.
9566 (fatal_with_file_and_line): Use get_filename and get_lineno
9567 accessors of rtx_reader_ptr.
9568 (require_char_ws): Likewise.
9569 (rtx_reader::read_char): New method, based on ::read_char.
9570 (rtx_reader::unread_char): New method, based on ::unread_char.
9571 (read_escape): Use get_filename and get_lineno accessors of
9572 rtx_reader_ptr.
9573 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
9574 (read_string): Use get_filename and get_lineno accessors of
9575 rtx_reader_ptr.
9576 (rtx_reader::rtx_reader): New ctor.
9577 (rtx_reader::~rtx_reader): New dtor.
9578 (handle_include): Convert from a function to...
9579 (rtx_reader::handle_include): ...this method, converting
9580 handle_directive from a callback to a virtual function.
9581 (handle_file): Likewise, converting to...
9582 (rtx_reader::handle_file): ...this method.
9583 (handle_toplevel_file): Likewise, converting to...
9584 (rtx_reader::handle_toplevel_file): ...this method.
9585 (rtx_reader::get_current_location): New method.
9586 (parse_include): Convert from a function to...
9587 (rtx_reader::add_include_path): ...this method, dropping redundant
9588 update to unused max_include_len.
9589 (read_md_files): Convert from a function to...
9590 (rtx_reader::read_md_files): ...this method, converting
9591 handle_directive from a callback to a virtual function.
9592 (noop_reader::handle_unknown_directive): New method.
9593 * read-md.h (directive_handler_t): Delete this typedef.
9594 (in_fname): Delete.
9595 (read_md_file): Delete.
9596 (read_md_lineno): Delete.
9597 (read_md_filename): Delete.
9598 (class rtx_reader): New class.
9599 (rtx_reader_ptr): New decl.
9600 (class noop_reader): New subclass of rtx_reader.
9601 (read_char): Reimplement in terms of rtx_reader::read_char.
9602 (unread_char): Reimplement in terms of rtx_reader::unread_char.
9603 (read_md_files): Delete.
9604 * read-rtl.c (read_rtx_code): Update for deletion of globals
9605 read_md_filename and read_md_lineno.
9606
9607 2016-09-21 Jason Merrill <jason@redhat.com>
9608
9609 * input.h (from_macro_definition_at): New.
9610
9611 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9612
9613 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
9614
9615 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9616
9617 PR tree-optimization/77550
9618 * tree-vect-stmts.c (create_array_ref): Change parameters.
9619 (get_group_alias_ptr_type): New function.
9620 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
9621
9622 2016-09-21 Marek Polacek <polacek@redhat.com>
9623
9624 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
9625 Add falls through comment.
9626
9627 2016-09-21 Richard Biener <rguenther@suse.de>
9628
9629 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
9630 (replace_child): Likewise.
9631 (remove_child_TAG): Adjust.
9632 (move_marked_base_types): Likewise.
9633 (prune_unused_types_prune): Clear die_sib of removed children.
9634
9635 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
9636
9637 PR target/77326
9638 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
9639 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
9640
9641 2016-09-21 Richard Biener <rguenther@suse.de>
9642
9643 PR tree-optimization/77648
9644 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
9645 with complex RHS.
9646 (make_transitive_closure_constraints): Adjust comment.
9647 (make_any_offset_constraints): New function.
9648 (handle_rhs_call): Make sure to first expand a pointer to all
9649 subfields before transitively closing it.
9650 (handle_const_call): Likewise. Properly expand returned
9651 pointers as well.
9652 (handle_pure_call): Likewise.
9653
9654 2016-09-21 Richard Biener <rguenther@suse.de>
9655 Jakub Jelinek <jakub@redhat.com>
9656
9657 PR tree-optimization/77621
9658 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
9659 group at non-vectorizable stmts.
9660
9661 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9662
9663 PR tree-optimization/72835
9664 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
9665 (make_new_ssa_for_all_defs): Likewise.
9666 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
9667
9668 2016-09-20 Martin Sebor <msebor@redhat.com>
9669
9670 PR middle-end/49905
9671 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
9672 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
9673 * config/linux.c (gnu_libc_printf_pointer_format): New function.
9674 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
9675 * config/sol2.c (solaris_printf_pointer_format): New function.
9676 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
9677 options.
9678 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
9679 * doc/tm.texi: Regenerate.
9680 * gimple-fold.h (get_range_strlen): New function.
9681 (get_maxval_strlen): Declare existing function.
9682 * gimple-fold.c (get_range_strlen): Add arguments and compute both
9683 maximum and minimum.
9684 (get_range_strlen): Define overload.
9685 (get_maxval_strlen): Adjust.
9686 * gimple-ssa-sprintf.c: New file and pass.
9687 * passes.def (pass_sprintf_length): Add new pass.
9688 * targhooks.h (default_printf_pointer_format): Declare new function.
9689 (gnu_libc_printf_pointer_format): Same.
9690 (solaris_libc_printf_pointer_format): Same.
9691 * targhooks.c (default_printf_pointer_format): Define new function.
9692 * tree-pass.h (make_pass_sprintf_length): Declare new function.
9693 * print-tree.c: Increase buffer size.
9694
9695 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9696
9697 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
9698
9699 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9700
9701 * common.opt: New option -fipa-vrp.
9702 * ipa-cp.c (ipa_get_vr_lat): New.
9703 (ipcp_vr_lattice::print): Likewise.
9704 (print_all_lattices): Call ipcp_vr_lattice::print.
9705 (ipcp_vr_lattice::meet_with): New.
9706 (ipcp_vr_lattice::meet_with_1): Likewise.
9707 (ipcp_vr_lattice::top_p): Likewise.
9708 (ipcp_vr_lattice::bottom_p): Likewsie.
9709 (ipcp_vr_lattice::set_to_bottom): Likewise.
9710 (set_all_contains_variable): Call VR set_to_bottom.
9711 (initialize_node_lattices): Init VR lattices.
9712 (propagate_vr_accross_jump_function): New.
9713 (propagate_constants_accross_call): Call
9714 propagate_vr_accross_jump_function.
9715 (ipcp_store_vr_results): New.
9716 (ipcp_driver): Handle VR.
9717 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
9718 (ipa_set_jf_unknown): Likewise.
9719 (ipa_compute_jump_functions_for_edge): Likewise.
9720 (ipa_node_params_t::duplicate): Likewise.
9721 (ipa_write_jump_function): Likewise.
9722 (ipa_read_jump_function): Likewise.
9723 (write_ipcp_transformation_info): Likewise.
9724 (read_ipcp_transformation_info): Likewise.
9725 (ipcp_update_vr): New.
9726 (ipcp_transform_function): Handle VR.
9727 * ipa-prop.h (struct ipa_vr): New.
9728 * cgraph.c: Include tree-vrp.h.
9729 * cgraphunit.c: Likewise.
9730 * ipa-utils.c: Likewise.
9731 * ipa.c: Likewise.
9732 * opts.c: Likewise.
9733 * toplev.c: Likewise.
9734 * ipa-devirt.c: Likewise.
9735 * ipa-inline-transform.c: Likewise.
9736 * ipa-inline.c: Likewise.
9737 * ipa-profile.c: Likewise.
9738
9739 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9740
9741 * doc/invoke.texi: Document -fdump-tree-evrp.
9742 * passes.def: Define new pass_early_vrp.
9743 * timevar.def: Define new TV_TREE_EARLY_VRP.
9744 * tree-pass.h (make_pass_early_vrp): New.
9745 * tree-ssa-propagate.c: Make replace_uses_in non static.
9746 * tree-ssa-propagate.h: Export replace_uses_in.
9747 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
9748 (extract_range_from_assert): Factor out
9749 extract_range_for_var_from_comparison_expr.
9750 (vrp_initialize_lattice): New.
9751 (vrp_initialize): Factor out vrp_initialize_lattice.
9752 (vrp_valueize): Fix it to reject complex value ranges.
9753 (vrp_free_lattice): New.
9754 (evrp_dom_walker::before_dom_children): Likewise.
9755 (evrp_dom_walker::after_dom_children): Likewise.
9756 (evrp_dom_walker::push_value_range): Likewise.
9757 (evrp_dom_walker::pop_value_range): Likewise.
9758 (execute_early_vrp): Likewise.
9759 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
9760 (make_pass_early_vrp): New.
9761
9762 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9763
9764 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
9765 instead of exact_log2.
9766
9767 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9768
9769 PR target/77621
9770 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9771 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9772 (ix86_add_stmt_cost): Penalize DFmode vector operations
9773 for !TARGET_VECTORIZE_DOUBLE.
9774
9775 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
9776
9777 * doc/invoke.texi (Warning Options): Simplify language.
9778 (Optimize Options): Complete sentence.
9779
9780 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
9781
9782 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
9783 early_finish hook.
9784
9785 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9786
9787 PR target/71395
9788 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9789 inits on power8 and above, use the VMRGEW instruction instead of a
9790 permute.
9791
9792 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9793 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9794 initialization.
9795
9796 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9797
9798 * config/aarch64/arm_neon.h
9799 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9800 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9801 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9802
9803 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9804
9805 * config/var/vax.h (ELIMINABLE_REGS): Define.
9806 (INITIAL_ELIMINATION_OFFSET): Define.
9807
9808 2016-09-20 Jakub Jelinek <jakub@redhat.com>
9809
9810 PR middle-end/77624
9811 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9812 cast to void * if the cast is from some other pointer type.
9813
9814 2016-09-20 Richard Biener <rguenther@suse.de>
9815
9816 PR tree-optimization/77646
9817 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9818 a VDEF.
9819
9820 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9821
9822 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9823 attributes to all inlined functions and make them extern.
9824
9825 2016-09-20 Richard Biener <rguenther@suse.de>
9826
9827 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9828 hook.
9829 * debug.c (do_nothing_debug_hooks): Adjust.
9830 * dbxout.c (dbx_debug_hooks): Likewise.
9831 * sdbout.c (sdb_debug_hooks): Likewise.
9832 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9833 (dwarf2out_finish): Move producer, filename and
9834 path annotation ...
9835 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
9836 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9837
9838 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9839
9840 PR c++/77434
9841 * doc/invoke.texi: Document -Wint-in-bool-context.
9842
9843 PR middle-end/77421
9844 * dwarf2out.c (output_loc_operands): Fix an assertion.
9845
9846 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9847
9848 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9849 (CR_DECIMAL_DIG): New macro.
9850
9851 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9852
9853 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9854 element.
9855
9856 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
9857
9858 PR rtl-optimization/77416
9859 * lra-remat.c (operand_to_remat): Process hard coded insn
9860 registers.
9861
9862 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9863
9864 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9865 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9866
9867 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9868
9869 * target.def (lra_p): Wordsmithing.
9870 * doc/tm.texi: Regenerate.
9871
9872 2016-09-19 Jakub Jelinek <jakub@redhat.com>
9873 Jan Hubicka <jh@suse.cz>
9874
9875 PR target/77587
9876 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9877 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9878 Call ultimate_alias_target just once, not up to 4 times.
9879
9880 2016-09-19 Richard Biener <rguenther@suse.de>
9881
9882 * dwarf2out.c (early_dwarf_finished): New global.
9883 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9884 is false.
9885 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9886 if called from LTO exit early.
9887 (dwarf2out_late_global_decl): When being during the early
9888 debug phase do not add locations but only const value attributes.
9889 Adjust the way we generate early DIEs for LTO.
9890
9891 2016-09-19 Richard Biener <rguenther@suse.de>
9892
9893 PR middle-end/77605
9894 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9895 proper niter to bound the loops.
9896
9897 2016-09-19 Richard Biener <rguenther@suse.de>
9898
9899 PR tree-optimization/77514
9900 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9901 search for folded stmt.
9902
9903 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
9904
9905 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9906 * tree-pass.h (make_pass_early_thread_jumps): Declare.
9907 * tree-ssa-threadbackward.c (fsm_find_thread_path,
9908 fsm_find_thread_path, profitable_jump_thread_path,
9909 fsm_find_control_statement_thread_paths,
9910 find_jump_threads_backwards): Add speed_p parameter.
9911 (pass_data_early_thread_jumps): New pass.
9912 (make_pass_early_thread_jumps): New function.
9913
9914 2016-09-17 Andreas Schwab <schwab@suse.de>
9915
9916 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9917 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9918
9919 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
9920
9921 * recog.c (rest_of_handle_split_after_reload): Delete.
9922 (pass_split_after_reload::gate): New method.
9923 (pass_split_after_reload::execute): Call split_all_insns directly.
9924
9925 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
9926
9927 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9928 parameters for functions taking long long arguments.
9929
9930 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9931
9932 PR target/77613
9933 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9934 splat with truncate.
9935
9936 2016-09-16 Jason Merrill <jason@redhat.com>
9937
9938 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9939 New.
9940 * hwint.c (exact_log2): Use pow2p_hwi.
9941 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9942 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9943 * builtins.c (get_object_alignment_2, get_object_alignment)
9944 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9945 least_bit_hwi.
9946 * calls.c (compute_argument_addresses, store_one_arg): Use
9947 least_bit_hwi.
9948 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9949 * combine.c (force_to_mode): Use least_bit_hwi.
9950 (contains_muldiv, find_split_point, combine_simplify_rtx)
9951 (simplify_if_then_else, simplify_set, force_to_mode)
9952 (if_then_else_cond, simplify_and_const_int_1)
9953 (simplify_compare_const): Use pow2p_hwi.
9954 * cse.c (fold_rtx): Use pow2p_hwi.
9955 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9956 Use least_bit_hwi.
9957 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9958 (init_expmed_one_conv): Use pow2p_hwi.
9959 * expr.c (is_aligning_offset): Use pow2p_hwi.
9960 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9961 (fold_binary_loc): Use pow2p_hwi.
9962 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9963 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9964 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9965 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9966 Use least_bit_hwi.
9967 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9968 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9969 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9970 * omp-low.c (oacc_loop_fixed_partitions)
9971 (oacc_loop_auto_partitions): Use least_bit_hwi.
9972 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9973 * stor-layout.c (place_field): Use least_bit_hwi.
9974 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9975 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9976 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9977 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9978 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9979 * tree-vect-data-refs.c (vect_analyze_group_access_1)
9980 (vect_grouped_store_supported, vect_grouped_load_supported)
9981 (vect_permute_load_chain, vect_shift_permute_load_chain)
9982 (vect_transform_grouped_load): Use pow2p_hwi.
9983 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9984 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9985 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9986 least_bit_hwi.
9987 * tsan.c (instrument_expr): Use least_bit_hwi.
9988 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9989
9990 2016-09-16 Andreas Schwab <schwab@suse.de>
9991
9992 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9993 OFFSET, not offset.
9994 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9995
9996 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9997
9998 PR target/77526
9999 * combine.c (rest_of_handle_combine): If any edges have been purged,
10000 free dominators if available.
10001
10002 2016-09-16 Jakub Jelinek <jakub@redhat.com>
10003 Eric Botcazou <ebotcazou@adacore.com>
10004
10005 PR middle-end/77594
10006 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
10007 through into expand_addsub_overflow after expand_neg_overflow.
10008
10009 2016-09-15 David Malcolm <dmalcolm@redhat.com>
10010
10011 * diagnostic-show-locus.c
10012 (selftest::test_fixit_insert_containing_newline): New function.
10013 (selftest::test_fixit_replace_containing_newline): New function.
10014 (selftest::diagnostic_show_locus_c_tests): Call the above.
10015
10016 2016-09-15 Bin Cheng <bin.cheng@arm.com>
10017
10018 PR tree-optimization/77503
10019 * tree-vect-loop.c (vectorizable_reduction): Record reduction
10020 code for CONST_COND_REDUCTION at analysis stage and use it at
10021 transform stage.
10022 * tree-vectorizer.h (struct _stmt_vec_info): New field.
10023 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
10024 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
10025 field.
10026
10027 2016-09-15 Richard Biener <rguenther@suse.de>
10028
10029 PR middle-end/77544
10030 * fold-const.c (split_tree): Do not split constant ~X.
10031
10032 2016-09-15 Jakub Jelinek <jakub@redhat.com>
10033
10034 PR rtl-optimization/77425
10035 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
10036 is NULL.
10037
10038 PR middle-end/77475
10039 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
10040 use %qs instead of %s where desirable, use argument instead of arg in
10041 the diagnostic wording, add list of supported strategies and
10042 spellcheck hint.
10043 (ix86_option_override_internal): Emit target("m...") instead of
10044 option("m...") in the diagnostic. Use %qs instead of %s in invalid
10045 -march/-mtune option diagnostic. Add list of supported arches/tunings
10046 and spellcheck hint. Remove prefix, suffix and sw variables, use
10047 main_args_p ? "..." : "..." in diagnostics to make translation
10048 possible.
10049
10050 2016-09-15 Richard Biener <rguenther@suse.de>
10051
10052 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
10053 extra offset argument.
10054 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
10055 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
10056 to reflect new offset parameter.
10057 * doc/tm.texi: Regenerate.
10058 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
10059 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
10060 offset argument.
10061 (darwin_asm_output_dwarf_offset): Likewise.
10062 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
10063 argument.
10064 (darwin_asm_output_dwarf_offset): Pass offset argument through.
10065 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
10066 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
10067
10068 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
10069
10070 PR fortran/72743
10071 * ipa-icf.c (set_alias_uids): New function.
10072 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
10073 all the merged variable's referring aliases.
10074
10075 2016-09-15 Richard Biener <rguenther@suse.de>
10076
10077 PR tree-optimization/77514
10078 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
10079 only forced_stmts sequence.
10080
10081 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
10082
10083 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
10084 * cfgexpand.c (update_alias_info_with_stack_vars): Use
10085 FOR_EACH_SSA_NAME to iterate over SSA variables.
10086 (pass_expand::execute): Likewise.
10087 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
10088 * tree-cfg.c (dump_function_to_file): Likewise.
10089 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
10090 (update_ssa): Likewise.
10091 * tree-ssa-alias.c (dump_alias_info): Likewise.
10092 * tree-ssa-ccp.c (ccp_finalize): Likewise.
10093 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
10094 (create_outofssa_var_map): Likewise.
10095 (coalesce_ssa_name): Likewise.
10096 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
10097 * tree-ssa-pre.c (compute_avail): Likewise.
10098 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
10099 (scc_vn_restore_ssa_info): Likewise.
10100 (free_scc_vn): Likwise.
10101 (run_scc_vn): Likewise.
10102 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
10103 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
10104 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10105 * tree-ssa.c (verify_ssa): Likewise.
10106
10107 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
10108
10109 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
10110 and mips64r2 as default 32-bit and 64-bit architectures.
10111 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
10112 as default 32-bit and 64-bit architectures.
10113
10114 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
10115
10116 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
10117 of succ edge.
10118
10119 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10120
10121 * target.def (lra_p): Change commentary (for the manual) for the
10122 new default.
10123 * doc/tm.texi: Regenerate.
10124
10125 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10126
10127 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
10128 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
10129 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
10130 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
10131
10132 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10133
10134 * targhooks.c (default_lra_p): Return true instead of false.
10135
10136 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10137
10138 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
10139 hook_bool_void_false.
10140 * config/avr/avr.c: Ditto.
10141 * config/bfin/bfin.c: Ditto.
10142 * config/c6x/c6x.c: Ditto.
10143 * config/cr16/cr16.c: Ditto.
10144 * config/cris/cris.c: Ditto.
10145 * config/epiphany/epiphany.c: Ditto.
10146 * config/fr30/fr30.c: Ditto.
10147 * config/frv/frv.c: Ditto.
10148 * config/h8300/h8300.c: Ditto.
10149 * config/ia64/ia64.c: Ditto.
10150 * config/iq2000/iq2000.c: Ditto.
10151 * config/lm32/lm32.c: Ditto.
10152 * config/m32c/m32c.c: Ditto.
10153 * config/m32r/m32r.c: Ditto.
10154 * config/m68k/m68k.c: Ditto.
10155 * config/mcore/mcore.c: Ditto.
10156 * config/microblaze/microblaze.c: Ditto.
10157 * config/mmix/mmix.c: Ditto.
10158 * config/mn10300/mn10300.c: Ditto.
10159 * config/moxie/moxie.c: Ditto.
10160 * config/msp430/msp430.c: Ditto.
10161 * config/nios2/nios2.c: Ditto.
10162 * config/nvptx/nvptx.c: Ditto.
10163 * config/pa/pa.c: Ditto.
10164 * config/pdp11/pdp11.c: Ditto.
10165 * config/rl78/rl78.c: Ditto.
10166 * config/sparc/sparc.c: Ditto.
10167 * config/spu/spu.c: Ditto.
10168 * config/stormy16/stormy16.c: Ditto.
10169 * config/tilegx/tilegx.c: Ditto.
10170 * config/tilepro/tilepro.c: Ditto.
10171 * config/v850/v850.c: Ditto.
10172 * config/vax/vax.c: Ditto.
10173 * config/visium/visium.c: Ditto.
10174 * config/xtensa/xtensa.c: Ditto.
10175
10176 2016-09-14 Jakub Jelinek <jakub@redhat.com>
10177
10178 PR sanitizer/68260
10179 * tsan.c: Include target.h.
10180 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
10181 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
10182 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
10183 BUILT_IN_ATOMIC_TEST_AND_SET entries.
10184 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
10185
10186 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10187 Martin Liska <mliska@suse.cz>
10188
10189 PR middle-end/77574
10190 * predict.c (force_edge_cold): Add braces to a condition.
10191
10192 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10193
10194 PR rtl-optimization/77289
10195 * lra-constraints.c (get_final_hard_regno): Removed.
10196 (get_hard_regno): Add new parameter final_p.
10197 (get_reg_class): Directly call lra_get_elimination_hard_regno.
10198 (operands_match_p): Adjust call to get_hard_regno.
10199 (uses_hard_regs_p): Likewise.
10200 (process_alt_operands): Likewise.
10201
10202 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
10203
10204 PR target/70713
10205 * config/msp430/msp430.c (msp430_start_function): Emit an error
10206 if a function is both weak and specifies an interrupt number.
10207
10208 2016-09-13 Jakub Jelinek <jakub@redhat.com>
10209
10210 PR tree-optimization/77454
10211 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
10212 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
10213 Formatting fix.
10214
10215 2016-09-13 Tamar Christina <tamar.christina@arm.com>
10216
10217 * config/aarch64/aarch64-builtins.c
10218 (aarch64_init_simd_builtins): Fix builtin type signature printing.
10219
10220 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
10221
10222 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
10223 SFmode and SCmode arguments by reference.
10224
10225 2016-09-13 David Malcolm <dmalcolm@redhat.com>
10226
10227 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
10228 Rename to...
10229 (selftest::test_one_liner_fixit_insert_before): ...this, and update
10230 for renaming of add_fixit_insert to add_fixit_insert_before.
10231 (selftest::test_one_liner_fixit_insert_after): New function.
10232 (selftest::test_one_liner_fixit_validation_adhoc_locations):
10233 Update for renaming of add_fixit_insert to add_fixit_insert_before.
10234 (selftest::test_one_liner_many_fixits): Likewise.
10235 (selftest::test_diagnostic_show_locus_one_liner): Update for
10236 renaming, call new test function.
10237 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
10238 renaming of add_fixit_insert to add_fixit_insert_before.
10239 (selftest::test_fixit_consolidation): Likewise.
10240 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
10241 Likewise.
10242 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
10243 (selftest::test_applying_fixits_insert_before): ...this.
10244 (selftest::test_applying_fixits_insert): Update for renaming of
10245 add_fixit_insert to add_fixit_insert_before.
10246 (selftest::test_applying_fixits_insert_after): New function.
10247 (selftest::test_applying_fixits_insert_after_at_line_end): New
10248 function.
10249 (selftest::test_applying_fixits_insert_after_failure): New function.
10250 (selftest::test_applying_fixits_multiple): Update for renaming of
10251 add_fixit_insert to add_fixit_insert_before.
10252 (selftest::change_line): Likewise.
10253 (selftest::test_applying_fixits_unreadable_file): Likewise.
10254 (selftest::test_applying_fixits_line_out_of_range): Likewise.
10255 (selftest::test_applying_fixits_column_validation): Likewise.
10256 (selftest::test_applying_fixits_column_validation): Likewise.
10257 (selftest::edit_context_c_tests): Update for renamed test function;
10258 call new test functions.
10259
10260 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
10261
10262 PR tree-optimization/77536
10263 PR rtl-optimization/68212
10264 * config/rs6000/rs6000.md (div->recip splitter): Remove
10265 optimize_insn_for_speed_p condition.
10266
10267 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
10268
10269 * optabs.c (prepare_cmp_insn): Update documentation comment.
10270
10271 2016-09-13 Jakub Jelinek <jakub@redhat.com>
10272 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10273
10274 PR middle-end/77475
10275 * opts.h (candidates_list_and_hint): Declare.
10276 * opts-common.c (candidates_list_and_hint): New function.
10277 (cmdline_handle_error): Use it.
10278
10279 2016-09-12 David Malcolm <dmalcolm@redhat.com>
10280
10281 * edit-context.c (edited_line::get_len): New accessor.
10282 (edited_file::print_diff): Split out hunk-printing into...
10283 (edited_file::print_diff_hunk): New method.
10284 (edited_file::print_diff_line): New method.
10285
10286 2016-09-12 Andrew Pinski <apinski@cavium.com>
10287
10288 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
10289 New tuning option.
10290 * config/aarch64/aarch64.c (thunderx_tunings): Enable
10291 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
10292 (aarch64_operands_ok_for_ldpstp): Return false if
10293 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
10294 was SImode and the alignment is less than 8 byte.
10295 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
10296
10297 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
10298
10299 PR target/77570
10300 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
10301
10302 2016-09-12 Marek Polacek <polacek@redhat.com>
10303
10304 * doc/extend.texi: Use lowercase "boolean".
10305 * doc/invoke.texi: Likewise.
10306 * doc/md.texi: Likewise.
10307 * target.def: Likewise.
10308 * doc/tm.texi: Regenerated.
10309
10310 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10311
10312 PR middle-end/77426
10313 * expmed.c (synth_mult): Delete duplicate mode check.
10314
10315 2016-09-10 Tom de Vries <tom@codesourcery.com>
10316
10317 PR C/71602
10318 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
10319 va_list type only.
10320 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
10321 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
10322
10323 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
10324
10325 PR rtl-optimization/77289
10326 * lra-constraints.c (get_final_hard_regno): Add support for non hard
10327 register numbers. Remove support for subregs.
10328 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
10329 (get_reg_class): Delete removed get_final_hard_regno() argument.
10330 (uses_hard_regs_p): Call get_final_hard_regno().
10331
10332 2016-09-09 Martin Sebor <msebor@redhat.com>
10333
10334 PR c/77520
10335 PR c/77521
10336 * pretty-print.c (pp_quoted_string): New function.
10337 (pp_format): Call it for %c and %s directives.
10338
10339 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10340
10341 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
10342 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
10343 INITIAL_ELIMINATION_OFFSET) : Update documentation.
10344 * target.def (frame_pointer_required, can_eliminate): Likewise.
10345 * doc/tm.texi: Regenerated.
10346 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
10347 ELIMINABLE_REGS.
10348 * df-scan.c (df_hard_reg_init): Likewise.
10349 * ira.c (ira_setup_eliminable_regset): Likewise.
10350 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
10351 init_elim_table): Likewise.
10352 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
10353 set_initial_elim_offsets, update_eliminables,
10354 init_elim_table): Likewise.
10355 * rtlanal.c (get_initial_register_offset): Likewise.
10356 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10357 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10358 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10359 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10360 * config/fr30/fr30.h: Fix comment.
10361 * config/frv/frv.c: Likewise.
10362 * config/frv/frv.h: Likewise.
10363 * config/ft32/ft32.h: Likewise.
10364 * config/visium/visium.h: Likewise.
10365 * config/pa/pa64-linux.h: Likewise.
10366 * config/v850/v850.h: Likewise.
10367 * config/cris/cris.c: Likewise.
10368 * config/ia64/ia64.h: Likewise.
10369 * config/moxie/moxie.h: Likewise.
10370 * config/m32r/m32r.h: Likewise.
10371
10372 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
10373
10374 PR target/77267
10375 * config.in: Regenerate.
10376 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
10377 New macro.
10378 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
10379 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
10380 static-libmpxwrappers case.
10381 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
10382 MPX_LD_AS_NEEDED_GUARD_POP.
10383 * configure: Regenerate.
10384 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
10385 defined if linker support "--push-state"/"--pop-state".
10386
10387 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10388
10389 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
10390
10391 2016-09-09 Joseph Myers <joseph@codesourcery.com>
10392
10393 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
10394 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
10395 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
10396 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
10397 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
10398 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
10399 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
10400 Document.
10401 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
10402 width macros from TS 18661-1.
10403 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
10404
10405 2016-09-08 Jakub Jelinek <jakub@redhat.com>
10406
10407 PR fortran/77516
10408 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
10409 OMP_CLAUSE_SAFELEN_EXPR.
10410
10411 2016-09-07 David Malcolm <dmalcolm@redhat.com>
10412
10413 * Makefile.in (OBJS): Add substring-locations.o.
10414 * langhooks-def.h (class substring_loc): New forward decl.
10415 (lhd_get_substring_location): New decl.
10416 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
10417 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
10418 * langhooks.c (lhd_get_substring_location): New function.
10419 * langhooks.h (class substring_loc): New forward decl.
10420 (struct lang_hooks): Add field get_substring_location.
10421 * substring-locations.c: New file, taking definition of
10422 format_warning_va and format_warning_at_substring from
10423 c-family/c-format.c, making them non-static.
10424 * substring-locations.h (class substring_loc): Move class here
10425 from c-family/c-common.h. Add and rewrite comments.
10426 (format_warning_va): New decl.
10427 (format_warning_at_substring): New decl.
10428 (get_source_location_for_substring): Add comment.
10429
10430 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
10431
10432 * config/i386/i386.c: Add 'U' suffix to processor feature bits
10433 to avoid -Wnarrowing warning.
10434 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
10435 * opts.c: Likewise for SANITIZER_OPT bitmasks.
10436
10437 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
10438
10439 * config/aarch64/aarch64.c (aarch64_legitimize_address):
10440 Avoid use of base_offset if offset already in range.
10441
10442 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
10443
10444 * config/sh/sh-protos.h (struct sh_atomic_model,
10445 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10446 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10447 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
10448 * config/sh/sh.h (struct sh_atomic_model,
10449 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10450 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10451 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
10452 Guard with __cplusplus.
10453
10454 2016-09-06 Jakub Jelinek <jakub@redhat.com>
10455
10456 PR target/69255
10457 * config/i386/i386.c (ix86_expand_builtin): For builtin with
10458 unsupported or unknown ISA, use expand_call.
10459
10460 2016-09-06 Martin Liska <mliska@suse.cz>
10461
10462 PR gcov-profile/77378
10463 PR gcov-profile/77466
10464 * tree-profile.c (tree_profiling): Detect whether target can use
10465 -fprofile-update=atomic.
10466
10467 2016-09-06 Richard Biener <rguenther@suse.de>
10468
10469 PR tree-optimization/77479
10470 * tree-vrp.c (update_value_range): Extend overflow handling to
10471 VARYING.
10472
10473 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10474
10475 PR target/77476
10476 * config/i386/i386.md (isa): Add x64_avx512bw.
10477 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
10478 (kmov_isa): New mode attr.
10479 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
10480 (*zero_extend<mode>si2): Likewise.
10481 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
10482
10483 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
10484
10485 * doc/invoke.texi (SPU Options): nops -> NOPs.
10486 (x86 Options): Ditto.
10487
10488 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10489
10490 PR middle-end/77475
10491 * toplev.c (process_options): Temporarily set input_location
10492 to UNKNOWN_LOCATION around targetm.target_option.override () call.
10493
10494 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
10495
10496 PR rtl-optimization/77452
10497 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
10498 inner-mode reference to a CONST_VECTOR constant in the constant pool.
10499
10500 2016-09-05 Marek Polacek <polacek@redhat.com>
10501
10502 PR c/77423
10503 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
10504
10505 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10506
10507 PR other/77421
10508 * gensupport.c (alter_output_for_subst_insn): Remove redundant
10509 *insn_out == '*' test. Don't copy unnecessary to yet another
10510 memory buffer, and don't leak it.
10511
10512 PR rtl-optimization/77425
10513 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
10514
10515 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
10516
10517 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
10518
10519 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10520
10521 * common.opt (fdiagnostics-generate-patch): New option.
10522 * diagnostic.c: Include "edit-context.h".
10523 (diagnostic_initialize): Initialize context->edit_context_ptr.
10524 (diagnostic_finish): Delete context->edit_context_ptr.
10525 (diagnostic_report_diagnostic): Add fix-it hints from the
10526 diagnostic to context->edit_context_ptr, if any.
10527 * diagnostic.h (class edit_context): Add forward decl.
10528 (struct diagnostic_context): Add field "edit_context_ptr".
10529 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10530 -fdiagnostics-generate-patch.
10531 (-fdiagnostics-generate-patch): New item.
10532 * toplev.c: Include "edit-context.h".
10533 (process_options): Set global_dc->edit_context_ptr to a new
10534 edit_context if the options need one.
10535 (toplev::main): Handle -fdiagnostics-generate-patch by using
10536 global_dc->edit_context_ptr.
10537
10538 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10539
10540 PR c/65467
10541 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
10542 map and firstprivate clauses on target construct for _Atomic
10543 qualified decls.
10544 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
10545 on target construct for _Atomic qualified decls.
10546 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
10547 decls.
10548 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
10549 _Atomic qualified arguments not mentioned in uniform clause.
10550
10551 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10552
10553 * Makefile.in (OBJS-libcommon): Add edit-context.o.
10554 * diagnostic-color.c (color_dict): Add "diff-filename",
10555 "diff-hunk", "diff-delete", and "diff-insert".
10556 (parse_gcc_colors): Update default value of GCC_COLORS in comment
10557 to reflect above changes.
10558 * doc/invoke.texi (-fdiagnostics-color): Update description of
10559 default GCC_COLORS, and of the supported capabilities.
10560 * edit-context.c: New file.
10561 * edit-context.h: New file.
10562 * input.c (struct fcache): Add field "missing_trailing_newline".
10563 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
10564 true.
10565 (add_file_to_cache_tab): Likewise.
10566 (fcache::fcache): Likewise.
10567 (get_next_line): Update c->missing_trailing_newline.
10568 (location_missing_trailing_newline): New function.
10569 * input.h (location_missing_trailing_newline): New decl.
10570 * selftest-run-tests.c (selftest::run_tests): Call
10571 edit_context_c_tests.
10572 * selftest.h (edit_context_c_tests): New decl.
10573
10574 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10575 Richard Biener <rguenth@suse.de>
10576
10577 PR tree-optimization/77444
10578 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
10579 as steptype, remove redundant initialization.
10580
10581 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10582
10583 PR sanitizer/77396
10584 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
10585 (sanopt_optimize_walker): Optimize away
10586 __asan_before_dynamic_init (...) followed by
10587 __asan_after_dynamic_init () without intervening memory loads/stores.
10588 * ipa-pure-const.c (special_builtin_state): Handle
10589 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
10590 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
10591
10592 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10593
10594 * cfg.c (free_original_copy_tables): Replace second assignment of
10595 bb_copy = NULL by bb_original = NULL.
10596
10597 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10598
10599 PR other/77421
10600 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
10601 assignment added in r216794.
10602
10603 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10604
10605 * Makefile.in (OBJS): Add typed-splay-tree.o.
10606 * selftest-run-tests.c (selftest::run_tests): Call
10607 typed_splay_tree_c_tests.
10608 * selftest.h (typed_splay_tree_c_tests): New decl.
10609 * typed-splay-tree.c: New file.
10610 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
10611 (typed_splay_tree::max): New method.
10612 (typed_splay_tree::min): New method.
10613 (typed_splay_tree::foreach): New method.
10614 (typed_splay_tree::closure): New struct.
10615 (typed_splay_tree::inner_foreach_fn): New function.
10616
10617 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10618
10619 * ipa-cp.c (ipcp_store_bits_results): Change option name from
10620 -fipa-cp-bit to -fipa-bit-cp.
10621
10622 2016-09-01 Martin Sebor <msebor@redhat.com>
10623
10624 PR tree-optimization/71831
10625 * tree-object-size.h: Return bool instead of the size and add
10626 argument for the size.
10627 * tree-object-size.c (compute_object_offset): Update signature.
10628 (addr_object_size): Same.
10629 (compute_builtin_object_size): Return bool instead of the size
10630 and add argument for the size. Handle POINTER_PLUS_EXPR when
10631 optimization is disabled.
10632 (expr_object_size): Adjust.
10633 (plus_stmt_object_size): Adjust.
10634 (pass_object_sizes::execute): Adjust.
10635 * builtins.c (fold_builtin_object_size): Adjust.
10636 * doc/extend.texi (Object Size Checking): Update.
10637 * ubsan.c (instrument_object_size): Adjust.
10638
10639 2016-09-01 Martin Sebor <msebor@redhat.com>
10640
10641 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
10642 it fits the output of the formatted function regardless of its
10643 arguments.
10644 * genmodes.c (parser::parse_expr): Same.
10645 * gimplify.c (gimplify_asm_expr): Same.
10646 * passes.c (pass_manager::register_one_dump_file): Same.
10647 * print-tree.c (print_node): Same.
10648
10649 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10650
10651 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
10652
10653 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10654
10655 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
10656
10657 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10658
10659 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
10660 * config/rs6000/vector.md: Ditto.
10661 * config/rs6000/vsx.md: Ditto.
10662
10663 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10664
10665 * ipa-inline-analysis.c (param_change_prob): Get to the base object
10666 first in all cases.
10667
10668 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10669
10670 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
10671 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
10672 *return_and_restore_gpregs_<mode>_r11,
10673 *return_and_restore_gpregs_<mode>_r12,
10674 *return_and_restore_gpregs_<mode>_r1,
10675 *return_and_restore_fpregs_<mode>_r11,
10676 *return_and_restore_fpregs_<mode>_r12,
10677 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
10678 directly instead of via the "l" constraint. Renumber operands.
10679 Fix whitespace.
10680
10681 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10682
10683 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
10684 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
10685 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
10686 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
10687 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
10688 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
10689 *call_value_nonlocal_darwin64, reload_macho_picbase,
10690 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
10691 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
10692 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
10693 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
10694 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
10695 *save_fpregs_<mode>_r1): Ditto.
10696 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
10697 *return_and_restore_gpregs_spe): Ditto.
10698
10699 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10700
10701 * config/rs6000/rs6000.md
10702 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
10703 the use of the link register.
10704 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
10705
10706 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10707 Michael Meissner <meissner@linux.vnet.ibm.com>
10708
10709 PR target/72827
10710 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
10711 reg+reg addressing for TImode.
10712 (rs6000_legitimate_address_p): Only allow register indirect
10713 addressing for TImode, even without TARGET_QUAD_MEMORY.
10714
10715 2016-09-01 Richard Biener <rguenther@suse.de>
10716
10717 PR middle-end/77436
10718 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
10719 check whether the result fits the desired result type.
10720
10721 2016-09-01 Nathan Sidwell <nathan@acm.org>
10722
10723 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
10724
10725 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
10726
10727 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
10728 New function.
10729 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
10730
10731 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10732
10733 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
10734 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
10735 for comparisons of integer ZERO_EXTEND against zero.
10736
10737 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10738
10739 * config/i386/i386.c (ix86_option_override_internal): Also disable the
10740 STV pass if -mstackrealign is enabled.
10741
10742 2016-08-31 Ilya Verbin <iverbin@gmail.com>
10743
10744 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
10745 AVX512IFMA.
10746
10747 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10748
10749 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
10750 (layout_range::intersects_line_p): New method.
10751 (test_range_contains_point_for_single_point): Rename to...
10752 (test_layout_range_for_single_point): ...this, and add testing
10753 for layout_range::intersects_line_p.
10754 (test_range_contains_point_for_single_line): Rename to...
10755 (test_layout_range_for_single_line): ...this, and add testing
10756 for layout_range::intersects_line_p.
10757 (test_range_contains_point_for_multiple_lines): Rename to...
10758 (test_layout_range_for_multiple_lines): ...this, and add testing
10759 for layout_range::intersects_line_p.
10760 (layout::layout): Populate m_fixit_hints.
10761 (layout::get_expanded_location): Handle the case of a line-span
10762 for a fix-it hint.
10763 (layout::validate_fixit_hint_p): New method.
10764 (get_line_span_for_fixit_hint): New function.
10765 (layout::calculate_line_spans): Add spans for fixit-hints.
10766 (layout::should_print_annotation_line_p): New method.
10767 (layout::print_any_fixits): Drop param "richloc", instead using
10768 validated fixits in m_fixit_hints. Add "const" to hint pointers.
10769 (diagnostic_show_locus): Avoid printing blank annotation lines.
10770 (selftest::test_diagnostic_context::test_diagnostic_context):
10771 Initialize show_column and start_span.
10772 (selftest::test_diagnostic_context::start_span_cb): New static
10773 function.
10774 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10775 (selftest::diagnostic_show_locus_c_tests): Update for function
10776 renamings. Call test_diagnostic_show_locus_fixit_lines.
10777
10778 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10779
10780 PR tree-optimization/73714
10781 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10782
10783 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10784
10785 * selftest.c: Move "namespace selftest {" to top of file,
10786 removing explicit "selftest::" qualifiers throughout.
10787
10788 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10789
10790 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10791 New types.
10792 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10793 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10794 Replace builtin with vector extension.
10795 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10796 New types.
10797 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10798 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10799 Replace builtin with vector extension.
10800 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10801 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10802 Replace builtin with vector extension.
10803 * config/i386/xmmintrin.h (__m128_u): New type.
10804 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10805 (_mm_load_ps, _mm_store_ps): Simplify.
10806
10807 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
10808
10809 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10810
10811 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10812
10813 * diagnostic-show-locus.c (colorizer::begin_state): Support more
10814 than 3 ranges per diagnostic by alternating between color 1 and
10815 color 2.
10816 (layout::layout): Replace use of rich_location::MAX_RANGES
10817 with richloc->get_num_locations ().
10818 (layout::calculate_line_spans): Replace use of
10819 rich_location::MAX_RANGES with m_layout_ranges.length ().
10820 (layout::print_annotation_line): Handle arbitrary numbers of
10821 ranges in caret-printing by defaulting to '^'.
10822 (selftest::test_one_liner_many_fixits): New function.
10823 (test_diagnostic_show_locus_one_liner): Call it.
10824 * diagnostic.c (diagnostic_initialize): Update for renaming
10825 of rich_location::MAX_RANGES to
10826 rich_location::STATICALLY_ALLOCATED_RANGES.
10827 * diagnostic.h (struct diagnostic_context): Likewise.
10828
10829 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10830
10831 * selftest.c (selftest::named_temp_file::named_temp_file): New
10832 ctor.
10833 (selftest::temp_source_file::~temp_source_file): Move to...
10834 (selftest::named_temp_file::~named_temp_file): ...here.
10835 (selftest::test_named_temp_file): New function.
10836 (selftest::selftest_c_tests): Call test_named_temp_file.
10837 * selftest.h (class named_temp_file): New class.
10838 (class temp_source_file): Convert to a subclass of named_temp_file.
10839
10840 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
10841
10842 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10843 USEs of LR_REGNO in returns and sibcalls.
10844 (rs6000_output_mi_thunk): Similar.
10845 (rs6000_sibcall_aix): Similar.
10846 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10847 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10848 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10849 Remove the USE of LR_REGNO from the patterns as well. Delete an
10850 obsolete comment.
10851 (return_internal_<mode>): Delete.
10852
10853 2016-08-30 Tamar Christina <tamar.christina@arm.com>
10854
10855 * config/aarch64/aarch64-simd.md
10856 (aarch64_ld2<mode>_dreg_le): New.
10857 (aarch64_ld2<mode>_dreg_be): New.
10858 (aarch64_ld2<mode>_dreg): Removed.
10859 (aarch64_ld3<mode>_dreg_le): New.
10860 (aarch64_ld3<mode>_dreg_be): New.
10861 (aarch64_ld3<mode>_dreg): Removed.
10862 (aarch64_ld4<mode>_dreg_le): New.
10863 (aarch64_ld4<mode>_dreg_be): New.
10864 (aarch64_ld4<mode>_dreg): Removed.
10865 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10866
10867 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10868
10869 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10870 redundant location param.
10871 (test_one_liner_fixit_remove): Likewise.
10872 (test_one_liner_fixit_replace): Likewise.
10873 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10874 * gcc-rich-location.c
10875 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10876 get_range_from_loc. Drop overload taking a const char *.
10877 * gcc-rich-location.h
10878 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10879 a const char *.
10880
10881 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10882
10883 * config/linux.c (linux_libc_has_function): Return true on musl.
10884
10885 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10886
10887 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10888
10889 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
10890
10891 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10892 used for abnormal egdes.
10893
10894 2016-08-30 Jakub Jelinek <jakub@redhat.com>
10895
10896 PR tree-optimization/72866
10897 * tree-vect-patterns.c (search_type_for_mask): Turn into
10898 a small wrapper, move all code to ...
10899 (search_type_for_mask_1): ... this new function. Add caching
10900 and adjust recursive calls.
10901
10902 PR debug/77363
10903 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10904 instead of lookup_type_die (type_main_variant (type)) even for array
10905 types.
10906
10907 PR middle-end/77377
10908 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10909 constant pool reference return x instead of c.
10910
10911 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
10912
10913 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10914 include MQ.
10915
10916 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10917
10918 * input.c
10919 (selftest::test_make_location_nonpure_range_endpoints): Fix
10920 header comment.
10921
10922 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10923
10924 * diagnostic-show-locus.c
10925 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10926 function.
10927 (selftest::test_diagnostic_show_locus_one_liner): Call it.
10928 * input.c (get_pure_location): Move to libcpp/line-map.c.
10929 * input.h (get_pure_location): Convert decl to an inline function
10930 calling implementation in libcpp.
10931
10932 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
10933
10934 PR target/77403
10935 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10936 template for intel asm dialect.
10937 (vec_set_hi_<mode><mask_name>): Ditto.
10938
10939 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10940
10941 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10942 (selftest::fail_formatted): Likewise.
10943
10944 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10945
10946 * input.c (make_location): Call get_start and get_finish
10947 on the endpoints to avoid storing packed ranges or ad-hoc
10948 ranges in them.
10949 (selftest::test_make_location_nonpure_range_endpoints): New function.
10950 (selftest::input_c_tests): Call it.
10951 * input.h (get_start): New inline function.
10952
10953 2016-08-29 Tom de Vries <tom@codesourcery.com>
10954
10955 PR c/77398
10956 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10957 with assert.
10958
10959 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
10960
10961 * Makefile.in (gcov-iov.h): Add dummy recipe.
10962
10963 2016-08-29 Nathan Sidwell <nathan@acm.org>
10964
10965 * config/nvptx/nvptx.c: #include tree-vrp.h.
10966
10967 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
10968
10969 PR target/77324
10970 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10971 HIGH+LO construct during reload.
10972
10973 2016-08-28 Tom de Vries <tom@codesourcery.com>
10974
10975 PR lto/70955
10976 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10977 'sysv_abi va_list' attribute.
10978 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10979 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10980 attributes.
10981
10982 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10983
10984 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10985 * emit-rtl.c (unshare_all_rtl_1): Adjust.
10986 (unshare_all_rtl_again): Likewise.
10987 * function.c (assign_stack_local_1): Likewise.
10988 (assign_stack_temp_for_type): Likewise.
10989
10990 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10991
10992 * cfgbuild.c (make_edges): Adjust.
10993 * cfgrtl.c (can_delete_label_p): Likewise.
10994 * dwarf2cfi.c (create_trace_edges): Likewise.
10995 * except.c (sjlj_emit_dispatch_table): Likewise.
10996 * function.h (struct expr_status): make x_forced_labels a vector.
10997 * jump.c (rebuild_jump_labels_1): Adjust.
10998 * reload1.c (set_initial_label_offsets): Likewise.
10999 * stmt.c (force_label_rtx): Likewise.
11000 (expand_label): Likewise.
11001
11002 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11003
11004 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
11005
11006 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
11007
11008 PR tree-optimization/71077
11009 PR tree-optimization/68542
11010 * fold-const.c (fold_relational_const): Fix folding of
11011 VECTOR_CST comparisons that have a scalar boolean result type.
11012 (selftest::test_vector_folding): New static function.
11013 (selftest::fold_const_c_tests): Call it.
11014
11015 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
11016
11017 * doc/extend.texi (SPU Built-in Functions): Remove stale
11018 references to material formerly at IBM and Sony.
11019
11020 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
11021
11022 PR target/77349
11023 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
11024
11025 2016-08-26 David Malcolm <dmalcolm@redhat.com>
11026
11027 * diagnostic-show-locus.c
11028 (selftest::test_fixit_consolidation): New function.
11029 (selftest::diagnostic_show_locus_c_tests): Call it.
11030 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
11031 constructor based on source_range.
11032
11033 2016-08-26 David Malcolm <dmalcolm@redhat.com>
11034
11035 * diagnostic-color.c (color_dict): Add "fixit-insert" and
11036 "fixit-delete".
11037 (parse_gcc_colors): Update description of default GCC_COLORS.
11038 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
11039 (colorizer::set_fixit_insert): New method.
11040 (colorizer::set_fixit_delete): New method.
11041 (colorizer::get_color_by_name): New method.
11042 (colorizer::STATE_FIXIT_INSERT): New constant.
11043 (colorizer::STATE_FIXIT_DELETE): New constant.
11044 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
11045 fields in favor of new field "m_stop_color". Add fields
11046 "m_fixit_insert" and "m_fixit_delete".
11047 (colorizer::colorizer): Update for above changes. Replace
11048 colorize_start calls with calls to get_color_by_name.
11049 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
11050 STATE_FIXIT_DELETE. Update for field renamings.
11051 (colorizer::finish_state): Simplify by using m_stop_color,
11052 rather than multiple identical "*_ce" fields.
11053 (colorizer::get_color_by_name): New method.
11054 (layout::print_any_fixits): Print insertions and replacements
11055 using the "fixit-insert" color, and deletions using the
11056 "fixit-delete" color.
11057 * doc/invoke.texi (-fdiagnostics-color): Update description of
11058 default GCC_COLORS, and of the supported capabilities.
11059
11060 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
11061
11062 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
11063 current_function_static_stack_size variable with the static
11064 stack frame size of the current function when
11065 flag_stack_usage_info is enabled.
11066
11067 2016-08-26 Nathan Sidwell <nathan@acm.org>
11068
11069 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
11070 assignment inside if condition.
11071
11072 2016-08-26 Richard Biener <rguenther@suse.de>
11073
11074 PR tree-optimization/69047
11075 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
11076 extracts similar to what FRE does.
11077 (non_rewritable_mem_ref_base): Likewise.
11078
11079 2016-08-26 Joseph Myers <joseph@codesourcery.com>
11080
11081 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
11082 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
11083 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11084 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11085 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
11086 Likewise.
11087 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11088 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11089 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11090 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
11091 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11092
11093 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11094
11095 PR target/70473
11096 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
11097 reservation duration to 15 cycles.
11098 (cortex_a8_vfp_macs): Likewise.
11099 (cortex_a8_vfp_macd): Likewise.
11100 (cortex_a8_vfp_divs): Likewise.
11101 (cortex_a8_vfp_divd): Likewise.
11102
11103 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11104
11105 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
11106 (aarch_macro_fusion_pair_p): Use above to avoid early return.
11107
11108 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11109 Martin Jambhor <mjambor@suse.cz>
11110
11111 * common.opt: New option -fipa-bit-cp.
11112 * doc/invoke.texi: Document -fipa-bit-cp.
11113 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
11114 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
11115 * tree-ssa-ccp.h: New header file.
11116 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
11117 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
11118 Replace all occurences of tree parameter by two new params: signop, int.
11119 (bit_value_unop_1): Change to bit_value_unop and export it.
11120 Replace all occurences of tree parameter by two new params: signop,
11121 int.
11122 (bit_value_binop): Change call from bit_value_binop_1 to
11123 bit_value_binop.
11124 (bit_value_assume_aligned): Likewise.
11125 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
11126 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
11127 to ccp_finalize.
11128 (ccp_finalize): Skip processing if val->mask == 0.
11129 * ipa-cp.c: Include tree-ssa-ccp.h
11130 (ipcp_bits_lattice): New class.
11131 (ipcp_param_lattice (bits_lattice): New member.
11132 (print_all_lattices): Call ipcp_bits_lattice::print.
11133 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
11134 (initialize_node_lattices): Likewise.
11135 (propagate_bits_accross_jump_function): New function.
11136 (propagate_constants_accross_call): Call
11137 propagate_bits_accross_jump_function.
11138 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
11139 (ipcp_store_bits_results): New function.
11140 (ipcp_driver): Call ipcp_store_bits_results.
11141 * ipa-prop.h (ipa_bits): New struct.
11142 (ipa_jump_func): Add new member bits of type ipa_bits.
11143 (ipa_param_descriptor): Change decl to decl_or_type.
11144 (ipa_get_param): Change decl to decl_or_type and assert on
11145 PARM_DECL.
11146 (ipa_get_type): New function.
11147 (ipcp_transformation_summary): New member bits.
11148 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
11149 (ipa_populate_param_decls): Likewise.
11150 (ipa_dump_param): Likewise.
11151 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
11152 function.
11153 (ipa_set_jf_unknown): Set ipa_bits::known to false.
11154 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
11155 propagation.
11156 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
11157 (ipa_write_jump_function): Add streaming for ipa_bits.
11158 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
11159 (write_ipcp_transformation_info): Add streaming for ipa_bits
11160 summary for ltrans.
11161 (read_ipcp_transfomration_info): Add support for reading streamed
11162 ipa_bits.
11163 (ipcp_update_bits): New function.
11164 (ipcp_transform_function): Call ipcp_update_bits.
11165
11166 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
11167
11168 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
11169 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
11170
11171 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
11172
11173 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
11174
11175 2016-08-25 Richard Biener <rguenther@suse.de>
11176
11177 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
11178 Only add locations in late dwarf.
11179 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
11180 (dwarf2out_early_finish): But do it here.
11181
11182 2016-08-24 Michael Collison <michael.collison@linaro.org>
11183 Michael Collison <michael.collison@arm.com>
11184
11185 * config/arm/arm-modes.def: Add new condition code mode CC_V
11186 to represent the overflow bit.
11187 * config/arm/arm.c (maybe_get_arm_condition_code):
11188 Add support for CC_Vmode.
11189 (arm_gen_unlikely_cbranch): New function to generate common
11190 rtl conditional branches for overflow patterns.
11191 * config/arm/arm-protos.h: Add prototype for
11192 arm_gen_unlikely_cbranch.
11193 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
11194 addsi3_compareV_upper): New patterns to support signed
11195 builtin overflow add operations.
11196 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
11197 New patterns to support unsigned builtin add overflow operations.
11198 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
11199 builtin overflow subtract operations,
11200 (usubv<mode>4): New patterns to support unsigned builtin subtract
11201 overflow operations.
11202 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
11203 to support builtin overflow negate operations.
11204
11205 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11206
11207 Revert
11208 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11209
11210 * explow.c (get_dynamic_stack_size): Take known alignment of stack
11211 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11212 needed.
11213
11214 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11215
11216 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
11217 MULTILIB_OPTIONS should be used. Small wording fixes.
11218 * genmultilib: Memorize set of all option combinations in
11219 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
11220 found in MULTILIB_OPTIONS by checking if option set is listed in
11221 combination_space. Output new and existing error message to stderr.
11222
11223 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11224
11225 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
11226 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
11227 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
11228 (MULTILIB_REUSE): Remove reuse rules for option set including
11229 -mfpu=fp-armv8 and -mfpu=vfpv4
11230
11231 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
11232
11233 * config/arm/t-rtems: Add vfp multilib.
11234
11235 2016-08-23 Ian Lance Taylor <iant@golang.org>
11236
11237 * config/s390/s390.c (s390_asm_file_start): Call
11238 default_file_start.
11239
11240 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11241
11242 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
11243 initialization of all 0's to the 0 constant, instead of directly
11244 generating XOR. Add support for V4SImode vector initialization on
11245 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
11246 initialization. Change variables used in V4SFmode vector
11247 intialization. For V4SFmode vector splat on ISA 3.0, make sure
11248 any memory addresses are in index form. Add support for using
11249 VSPLTH/VSPLTB to initialize vector short and vector char vectors
11250 with all of the same element.
11251 (regno_or_subregno): New helper function to return a register
11252 number for either REG or SUBREG.
11253 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
11254 Use regno_or_subregno where possible.
11255 (rs6000_split_v4si_init_di_reg): New helper function to build up a
11256 DImode value from two SImode values in order to generate V4SImode
11257 vector initialization on 64-bit systems with direct move.
11258 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
11259 initialization.
11260 (rtx_is_swappable_p): V4SImode vector initialization insn is not
11261 swappable.
11262 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
11263 declaration.
11264 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
11265 attributes to initialize V8HImode and V16QImode vectors with the
11266 same element.
11267 (VSX_SPLAT_COUNT): Likewise.
11268 (VSX_SPLAT_SUFFIX): Likewise.
11269 (UNSPEC_VSX_VEC_INIT): New unspec.
11270 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
11271 Allow SFmode values to come from Altivec registers.
11272 (vsx_init_v4si): New insn/split for V4SImode vector initialization
11273 on 64-bit systems with direct move.
11274 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
11275 vector initializations, to allow V4SImode vector initializations
11276 on 64-bit systems with direct move.
11277 (vsx_splat_v4si): Likewise.
11278 (vsx_splat_v4si_di): Likewise.
11279 (vsx_splat_v4sf): Likewise.
11280 (vsx_splat_v4sf_internal): Likewise.
11281 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
11282 register classes.
11283 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
11284 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
11285 initializing V8HImode and V16QImode vectors with the same
11286 element.
11287 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
11288 optimization if -maltivec=be.
11289
11290 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
11291
11292 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
11293 attribute for alternatives 3 and 4.
11294
11295 2016-08-23 David Malcolm <dmalcolm@redhat.com>
11296
11297 * selftest.c (selftest::assert_str_contains): New function.
11298 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
11299 * selftest.h (selftest::assert_str_contains): New decl.
11300 (ASSERT_STR_CONTAINS): New macro.
11301
11302 2016-08-23 Richard Biener <rguenther@suse.de>
11303
11304 PR tree-optimization/77286
11305 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
11306 the CFG here.
11307 (vect_transform_loop): Split exit edges of loop and scalar
11308 loop if required and at the appropriate time.
11309
11310 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11311
11312 * explow.c (get_dynamic_stack_size): Take known alignment of stack
11313 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11314 needed.
11315 Correct a typo in a comment.
11316
11317 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11318
11319 * config/s390/s390.md ("*andc_split"): New splitter for and with
11320 complement.
11321
11322 2016-08-23 Richard Biener <rguenther@suse.de>
11323
11324 PR tree-optimization/27336
11325 * tree-vrp.c (infer_value_range): Handle stmts that can throw
11326 by looking for a non-EH edge.
11327 (process_assert_insertions_for): Likewise.
11328
11329 2016-08-23 Richard Biener <rguenther@suse.de>
11330
11331 PR middle-end/77305
11332 * statistics.c (statistics_counter_event): Robustify against
11333 NULL current_pass.
11334
11335 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11336
11337 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
11338 for targets amdfam10 and barcelona.
11339
11340 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
11341
11342 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
11343 (zero_extend<mode>di2): Ditto.
11344 (*zero_extend<mode>si2): Ditto.
11345 (*zero_extendqihi2): Ditto.
11346
11347 2016-08-22 Joseph Myers <joseph@codesourcery.com>
11348
11349 PR middle-end/77269
11350 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
11351 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
11352
11353 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
11354
11355 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
11356 identical consecutive elements.
11357 [SSA_NAME]: Print the name's def stmt on its own line. When printing
11358 the node's def stmt, avoid printing an unwanted trailing newline by
11359 replacing the call to print_gimple_stmt() with its inlined body and
11360 adjusting it to not set pp_needs_newline and to call pp_flush()
11361 instead of pp_newline_and_flush().
11362
11363 2016-08-22 Joseph Myers <joseph@codesourcery.com>
11364
11365 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
11366 (float32_type_node, float64_type_node, float32x_type_node)
11367 (float128x_type_node): New macros.
11368 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
11369 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
11370 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
11371 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
11372 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
11373 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
11374 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
11375 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
11376 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
11377 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
11378 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
11379 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
11380 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
11381 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
11382 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
11383 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
11384 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
11385 (copysign, fabs, huge_val, inf, nan, nans): Use it.
11386 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
11387 and copysign.
11388 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
11389 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
11390 * doc/extend.texi (Other Builtins): Document these built-in
11391 functions.
11392 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
11393 for nan and nans.
11394
11395 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
11396
11397 * doc/install.texi (Binaries): www.opencsw.org now uses https.
11398
11399 2016-08-22 Richard Biener <rguenther@suse.de>
11400
11401 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
11402
11403 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
11404
11405 PR target/77270
11406 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
11407 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
11408 non-SSE2 athlons only, otherwise prefer SSE prefetches.
11409
11410 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11411
11412 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
11413 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
11414 (vrp_visit_switch_stmt): Likewise.
11415 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
11416 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
11417 (vrp_visit_stmt): Use extract_range_from_stmt.
11418 (vrp_visit_phi_node): Use extract_range_from_phi_node.
11419
11420 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11421
11422 * Makefile.in: Add tree-vrp.h to GTFILES.
11423 * gengtype.c (open_base_files): Add tree-vrp.h.
11424 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
11425 * builtins.c: Likewise.
11426 * fold-const.c: Likewise.
11427 * gimple-builder.c: Likewise.
11428 * gimple-laddress.c: Likewise.
11429 * hsa-gen.c: Likewise.
11430 * internal-fn.c: Likewise.
11431 * ssa.h: Likewise.
11432 * targhooks.c: Liewise,
11433 * tree-ssa-address.c: Likewise.
11434 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
11435 * tree-vrp.c (struct value_range): Move to tree-vrp.h
11436 * tree-vrp.h: New file.
11437
11438 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11439
11440 PR tree-optimization/61839
11441 * tree-vrp.c (two_valued_val_range_p): New.
11442 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
11443 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
11444 Also Convert VAR BINOP CST where VAR is two-valued to
11445 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
11446
11447 2016-08-19 David Malcolm <dmalcolm@redhat.com>
11448
11449 * diagnostic-show-locus.c
11450 (layout::annotation_line_showed_range_p): New method.
11451 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
11452 Reimplement case fixit_hint::REPLACE to cover removals, and
11453 replacements where the range of the replacement isn't one
11454 of the ranges in the rich_location.
11455 (test_one_liner_fixit_replace): Likewise.
11456 (selftest::test_one_liner_fixit_replace_non_equal_range): New
11457 function.
11458 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
11459 New function.
11460 (selftest::test_diagnostic_show_locus_one_liner): Call the new
11461 functions.
11462 * diagnostic.c (print_parseable_fixits): Remove case
11463 fixit_hint::REMOVE.
11464
11465 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
11466
11467 PR target/77270
11468 * config/i386/i386.c (ix86_option_override_internal): Remove
11469 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
11470 Enable SSE prefetch also for TARGET_PREFETCHWT1.
11471 Do not try to enable TARGET_PRFCHW ISA flag here.
11472 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
11473 Rewrite expander function body.
11474 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
11475
11476 2016-08-19 Joseph Myers <joseph@codesourcery.com>
11477
11478 PR c/32187
11479 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
11480 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
11481 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
11482 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
11483 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
11484 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
11485 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
11486 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
11487 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
11488 tree_index values.
11489 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
11490 macros.
11491 (struct floatn_type_info): New structure type.
11492 (floatn_nx_types): New variable declaration.
11493 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
11494 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
11495 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
11496 * tree.c (floatn_nx_types): New variable.
11497 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
11498 corresponding complex types.
11499 * target.def (floatn_mode): New hook.
11500 * targhooks.c: Include "real.h".
11501 (default_floatn_mode): New function.
11502 * targhooks.h (default_floatn_mode): New prototype.
11503 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
11504 types.
11505 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
11506 effective-target and dg-add-options keywords.
11507 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
11508 Document new effective-target keywords.
11509 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
11510 * doc/tm.texi: Regenerate.
11511 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
11512 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
11513 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
11514 18661-3.
11515 * real.h (struct real_format): Add field ieee_bits.
11516 * real.c (ieee_single_format, mips_single_format)
11517 (motorola_single_format, spu_single_format, ieee_double_format)
11518 (mips_double_format, motorola_double_format)
11519 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
11520 (ieee_extended_intel_128_format)
11521 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
11522 (mips_extended_format, ieee_quad_format, mips_quad_format)
11523 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
11524 (decimal_double_format, decimal_quad_format, ieee_half_format)
11525 (arm_half_format, real_internal_format: Initialize ieee_bits
11526 field.
11527 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
11528 float128_type_node. Set float80_type_node to float64x_type_node
11529 if appropriate and long_double_type_node not appropriate.
11530 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
11531 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
11532 Initialize ieee_bits field.
11533 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
11534 (rs6000_init_builtins): Set ieee128_float_type_node to
11535 float128_type_node.
11536 (rs6000_floatn_mode): New function.
11537
11538 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11539
11540 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
11541 _rdseed64_step): Uglify argument names and/or local variable names
11542 in inline functions.
11543 * config/i386/rtmintrin.h (_xabort): Likewise.
11544 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
11545 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
11546 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
11547 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
11548 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
11549 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
11550 _mm_maskz_ternarylogic_epi32): Likewise.
11551 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
11552 __lwpins32, __lwpins64): Likewise.
11553 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
11554 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
11555 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
11556 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
11557 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
11558 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
11559 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
11560 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
11561 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
11562 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
11563 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
11564 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
11565 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
11566 _mm256_mask_i64gather_epi32): Likewise.
11567 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11568 * config/i386/ia32intrin.h (__writeeflags): Likewise.
11569 * config/i386/pkuintrin.h (_wrpkru): Likewise.
11570 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
11571 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
11572 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
11573 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
11574 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
11575 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
11576 _mm512_mask_prefetch_i64scatter_ps): Likewise.
11577 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11578 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
11579 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
11580 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
11581 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
11582 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
11583 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
11584 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
11585
11586 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
11587 returning void.
11588 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
11589 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
11590 Likewise.
11591 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
11592 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
11593 function name.
11594 (_rdpkru_u32): Add space after function name.
11595
11596 * config/i386/t-i386 (i386-c.o): Don't depend on
11597 i386-builtin-types.inc.
11598 (i386.o): Depend on i386-builtin-types.inc.
11599
11600 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
11601
11602 PR target/77281
11603 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
11604 Use const_vec_duplicate to check for duplicated elements.
11605
11606 2016-08-19 Richard Biener <rguenther@suse.de>
11607
11608 PR tree-optimization/77290
11609 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11610 Fix flag_tree_parallelize_loops check.
11611
11612 2016-08-19 Richard Biener <rguenther@suse.de>
11613
11614 * match.pd (x | 0 -> x): Add.
11615
11616 2016-08-19 Richard Biener <rguenther@suse.de>
11617
11618 PR tree-optimization/77286
11619 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11620 Deal with virtual PHIs being out-of-order.
11621
11622 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11623
11624 * doc/invoke.texi (fverbose-asm): Note that source code lines
11625 are emitted, and provide an example.
11626 * final.c (asm_show_source): New function.
11627 (final_scan_insn): Call asm_show_source.
11628
11629 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11630
11631 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
11632 param with diagnostic_kind.
11633 (class colorizer): Similarly replace field m_diagnostic with
11634 m_diagnostic_kind.
11635 (colorizer::colorizer): Replace diagnostic
11636 param with diagnostic_kind.
11637 (colorizer::begin_state): Update for above field change.
11638 (layout::layout): Replace diagnostic param with rich_location *
11639 and diagnostic_kind.
11640 (diagnostic_show_locus): Replace diagnostic param with richloc
11641 and diagnostic_kind.
11642 (class selftest::test_diagnostic_context): New class.
11643 (selftest::test_diagnostic_show_locus_unknown_location): New
11644 function.
11645 (selftest::test_one_liner_simple_caret): New function.
11646 (selftest::test_one_liner_caret_and_range): New function.
11647 (selftest::test_one_liner_multiple_carets_and_ranges): New
11648 function.
11649 (selftest::test_one_liner_fixit_remove): New function.
11650 (selftest::test_one_liner_fixit_replace): New function.
11651 (selftest::test_diagnostic_show_locus_one_liner): New function.
11652 (selftest::diagnostic_show_locus_c_tests): Call the new test
11653 functions.
11654 * diagnostic.c (diagnostic_initialize): Initialize
11655 colorize_source_p, show_ruler_p and parseable_fixits_p.
11656 (default_diagnostic_finalizer): Update for change to
11657 diagnostic_show_locus.
11658 (diagnostic_append_note): Likewise.
11659 * diagnostic.h (diagnostic_show_locus): Replace
11660 const diagnostic_info * param with location * and diagnostic_t.
11661
11662 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11663
11664 * input.c (saved_line_table): New global.
11665 (class selftest::temp_line_table): Rename to line_table_test and
11666 move declaration to selftest.h, and drop field m_old_line_table.
11667 (selftest::temp_line_table::temp_line_table): Rename ctor to...
11668 (selftest::line_table_test::line_table_test): ...this. Add a
11669 default ctor. Store current value of line_table within
11670 saved_line_table.
11671 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
11672 (selftest::line_table_test::~line_table_test): ...this, and
11673 restore line_table from the saved_line_table, rather than
11674 m_old_line_table.
11675 (selftest::test_accessing_ordinary_linemaps): Update for above
11676 renaming.
11677 (selftest::test_lexer): Likewise.
11678 (struct selftest::lexer_test): Likewise.
11679 (selftest::lexer_test::lexer_test): Likewise.
11680 (selftest::input_c_tests): Move the looping over test cases from
11681 here into...
11682 (selftest::for_each_line_table_case): New function.
11683 * input.h (saved_line_table): New decl.
11684 * selftest.h (struct selftest::line_table_case): New forward decl.
11685 (class selftest::line_table_test): New class, moved here from
11686 selftest::temp_line_table in input.c, and renamed.
11687 (selftest::for_each_line_table_case): New decl.
11688
11689 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
11690
11691 PR target/72839
11692 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
11693
11694 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11695
11696 PR middle-end/70895
11697 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
11698 enclosing parallel construct for reduction variables on OpenACC loop
11699 directives.
11700
11701 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
11702
11703 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
11704 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
11705 -gdwarf-3.
11706 (function_to_dwarf_procedure): Update comment.
11707
11708 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11709
11710 * input.c (diagnostics_file_cache_forcibly_evict_file): New
11711 function.
11712 * input.h (diagnostics_file_cache_forcibly_evict_file): New
11713 declaration.
11714 * selftest.c (selftest::temp_source_file::~temp_source_file):
11715 Evict m_filename from the diagnostic file cache.
11716
11717 2016-08-18 Richard Biener <rguenther@suse.de>
11718
11719 * tree-pass.h (make_pass_materialize_all_clones): Declare.
11720 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
11721 make_pass_materialize_all_clones): New simple IPA pass encapsulating
11722 clone materialization.
11723 * passes.def (all_late_ipa_passes): Start with
11724 pass_materialize_all_clones.
11725 * cgraphunit.c (symbol_table::compile): Remove call to
11726 materialize_all_clones.
11727 * tree-into-ssa.c: Include statistics.h.
11728 (update_ssa): Count number of times we do incremental/rewrite
11729 SSA update.
11730
11731 2016-08-18 Richard Biener <rguenther@suse.de>
11732
11733 PR tree-optimization/77282
11734 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11735 When doing auto-parallelizing also prevent use of PHIs that
11736 carry dependences across loop backedges.
11737
11738 2016-08-18 Tamar Christina <tamar.christina@arm.com>
11739 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11740
11741 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
11742
11743 2016-08-18 Richard Biener <rguenther@suse.de>
11744
11745 * ssa-iterators.h (ssa_vuse_operand): New inline.
11746 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
11747 (predicate_all_scalar_phis): Use remove_phi_node to remove
11748 phi nodes predicated. Delay removing virtual PHIs.
11749 (predicate_mem_writes): Update virtual operands.
11750 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
11751 (tree_if_conversion): Do not rewrite virtual SSA form.
11752 * tree-phinodes.c (release_phi_node): Make static.
11753 * tree-phinodes.h (release_phi_node): Remove.
11754
11755 2016-08-18 Jakub Jelinek <jakub@redhat.com>
11756
11757 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
11758 codes that appear in bdesc_* arrays, instead include i386-builtin.def
11759 twice to define those.
11760 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
11761 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
11762 bdesc_multi_arg): Define by including i386-builtin.def the third time.
11763 * config/i386/i386-builtin.def: New file.
11764
11765 2016-08-17 David Malcolm <dmalcolm@redhat.com>
11766
11767 * input.c (get_source_range_for_char): Rename to...
11768 (selftest::get_source_range_for_char): ...this, and move within
11769 the #if CHECKING_P guard.
11770 (get_num_source_ranges_for_substring): Rename to...
11771 (selftest::get_num_source_ranges_for_substring): ...this, move
11772 within the #if CHECKING_P guard, and make static.
11773 (selftest::assert_num_substring_ranges): Initialize
11774 actual_num_ranges.
11775
11776 2016-08-18 Alan Modra <amodra@gmail.com>
11777
11778 PR rtl-optimization/72771
11779 * reload.c (find_reloads): Don't assume that a subreg mem is OK
11780 when find_reloads_toplev returns address_reloaded==-1.
11781 (alternative_allows_const_pool_ref): Update comment.
11782
11783 2015-08-17 Alan Hayward <alan.hayward@arm.com>
11784
11785 PR tree-optimization/71752
11786 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11787 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11788
11789 2016-08-17 Jakub Jelinek <jakub@redhat.com>
11790
11791 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11792 instead of testing ECF_NORETURN bit in gimple_call_flags.
11793 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11794 * predict.c (tree_bb_level_predictions): Likewise.
11795 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11796
11797 PR middle-end/77259
11798 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11799 turning a call into __builtin_unreachable-like noreturn call, adjust
11800 gimple_call_set_fntype.
11801 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11802 gimple_call_fntype has void return type.
11803
11804 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
11805
11806 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11807 maybe_lookup_decl, to handle nested acc loop directives.
11808
11809 2016-08-17 Richard Biener <rguenther@suse.de>
11810
11811 PR tree-optimization/76490
11812 * tree-vrp.c (update_value_range): Preserve overflow infinities
11813 when intersecting with ranges from get_range_info.
11814 (operand_less_p): Handle overflow infinities correctly.
11815 (value_range_constant_singleton): Use vrp_operand_equal_p
11816 to handle overflow max/min correctly.
11817 (vrp_valueize): Likewise.
11818 (union_ranges): Likewise.
11819 (intersect_ranges): Likewise.
11820 (vrp_visit_phi_node): Improve iteration limitation to only
11821 apply when we'll possibly re-visit the PHI via a changed argument
11822 on the backedge.
11823
11824 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
11825
11826 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11827 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11828 rather than those that should not be built.
11829
11830 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
11831
11832 PR target/66488
11833 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11834
11835 2016-08-17 Richard Biener <rguenther@suse.de>
11836
11837 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11838 (verify_vssa): New function verifying virtual SSA form.
11839 (verify_ssa): Call it.
11840 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11841 Do not apply loop-closed SSA handling to virtuals.
11842 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11843 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11844 when rewriting their symbol.
11845 (prepare_def_site_for): Likewise.
11846 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11847 operands of moved stmts.
11848
11849 2016-08-17 Richard Biener <rguenther@suse.de>
11850
11851 PR tree-optimization/23855
11852 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11853 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11854 find guards to hoist. Do not update SSA form but rewrite virtuals
11855 into loop closed SSA.
11856 (find_loop_guard): Adjust to skip already hoisted guards. Do
11857 not mark virtuals for renaming or update SSA form.
11858
11859 2016-08-17 Martin Liska <mliska@suse.cz>
11860
11861 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11862 a LONG_LONG_TYPE_SIZE comparison.
11863 * gcov-io.h: Remove macro definitions.
11864 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11865 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11866 comparison.
11867
11868 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11869
11870 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11871 that builtins not mentioned in bdesc_* arrays come first, then
11872 the ones mentioned in bdesc_* arrays in the order they appear in
11873 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11874 IX86_BUILTIN__BDESC_*_LAST enumerator.
11875 (bdesc_mpx): Fix up a comment typo.
11876 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11877 __builtin_ia32_vpcomneu[bwdq] builtins.
11878 (BDESC_VERIFY, BDESC_VERIFYS): Define.
11879 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11880 enum ix86_builtins ordering.
11881 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11882 for direct bdesc_* array member access instead of searching all the
11883 arrays until an fcode match is found.
11884
11885 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
11886
11887 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11888 pattern as define_insn_and_split. Split insn before reload to
11889 ashl<mode>3_1.
11890 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
11891 <shift_insn><mode>3_1.
11892 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
11893 <rotate_insn><mode>3_1.
11894
11895 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11896
11897 PR c/72857
11898 * input.c (get_source_range_for_substring): Rename to...
11899 (get_source_location_for_substring): ...this, adding param
11900 "caret_idx", and converting output param from source_range * to
11901 location_t *.
11902 (get_source_range_for_char): New function.
11903 (get_num_source_ranges_for_substring): Update comment to reflect
11904 above renaming.
11905 (assert_char_at_range): Update to use get_source_range_for_char
11906 rather than get_source_range_for_substring.
11907 (test_lexer_string_locations_concatenation_2): Likewise.
11908 * substring-locations.h (get_source_range_for_substring): Rename
11909 to...
11910 (get_source_location_for_substring): ...this, and adding param
11911 "caret_idx", and converting output param from source_range * to
11912 location_t *.
11913
11914 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11915
11916 * input.c (class selftest::temp_source_file): Move to
11917 selftest.h.
11918 (selftest::temp_source_file::temp_source_file): Move to
11919 selftest.c.
11920 (selftest::temp_source_file::~temp_source_file): Likewise.
11921 * selftest.c (selftest::temp_source_file::temp_source_file): Move
11922 here from input.c.
11923 (selftest::temp_source_file::~temp_source_file): Likewise.
11924 * selftest.h (class selftest::temp_source_file): Move here from
11925 input.c
11926
11927 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11928
11929 PR target/71910
11930 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
11931 inlining, add cgraph edge for the added __builtin_unreachable call.
11932
11933 PR middle-end/67485
11934 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11935 only cast it to SHWI for the final comparison.
11936
11937 2016-08-16 Martin Liska <mliska@suse.cz>
11938
11939 PR gcov-profile/36412
11940 * doc/gcov.texi: Document --hash-filenames(-x).
11941 * gcov.c (print_usage): Add the option.
11942 (process_args): Process the option, sort options alphabetically.
11943 (md5sum_to_hex): New function.
11944 (make_gcov_file_name): Do the md5sum and append it to a
11945 filename.
11946
11947 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11948
11949 PR tree-optimization/69848
11950 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11951 and swtich operands to avoid additional NOT instruction.
11952 (vcond<v_cmp_mixed><mode>): Ditto.
11953 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11954
11955 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
11956
11957 * doc/install.texi (*-*-solaris2*): Adjust latest change.
11958
11959 2016-08-16 Richard Biener <rguenther@suse.de>
11960
11961 PR tree-optimization/76783
11962 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
11963 BB visited flags at start.
11964
11965 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11966
11967 PR tree-optimization/72817
11968 PR tree-optimization/73450
11969 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11970 multiple_of_p for adjusted IV.base.
11971
11972 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
11973
11974 PR target/72867
11975 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11976 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11977 for !flag_finite_math_only or flag_signed_zeros.
11978 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11979 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
11980 depend on flag_finite_math_only.
11981 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11982 New insn pattern.
11983 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11984 (*ieee_smin<mode>3): Ditto.
11985 (*ieee_smax<mode>3): Ditto.
11986 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11987 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11988 flag_signed_zeros.
11989 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
11990 depend on flag_finite_math_only.
11991 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11992 (*mmx_<code>v2sf3): Remove.
11993 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11994 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11995 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11996
11997 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11998
11999 PR rtl-optimization/73650
12000 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
12001 it is not a simple move.
12002
12003 2016-08-15 Martin Liska <mliska@suse.cz>
12004
12005 PR driver/72765
12006 * gcc.c (do_spec_1): Call save_string with the right size.
12007 (save_string): Do an assert about string we copy.
12008
12009 2016-08-15 Richard Biener <rguenther@suse.de>
12010
12011 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
12012 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
12013 TV_MACH_DEP.
12014 (pass_data_stv): Likewise.
12015
12016 2016-08-15 Richard Biener <rguenther@suse.de>
12017
12018 PR tree-optimization/73434
12019 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
12020 TBAA info on the base when forwarding a non-invariant address.
12021
12022 2016-08-15 Jakub Jelinek <jakub@redhat.com>
12023
12024 * dwarf2out.c (struct checksum_attributes): Add
12025 at_string_length_bit_size and at_string_length_byte_size fields.
12026 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
12027 and DW_AT_string_length_byte_size.
12028 (die_checksum_ordered): Handle at_string_length_bit_size and
12029 at_string_length_byte_size.
12030 (gen_array_type_die): For dwarf_version >= 5 emit
12031 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
12032 (adjust_string_types): For dwarf_version >= 5 remove
12033 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
12034 (resolve_addr): Likewise.
12035
12036 PR debug/71906
12037 * dwarf2out.c (string_types): New variable.
12038 (gen_array_type_die): Change early_dwarf handling of
12039 DW_AT_string_length, create DW_OP_call4 referencing the
12040 length var temporarily. Handle parameters that are pointers
12041 to string length.
12042 (adjust_string_types): New function.
12043 (gen_subprogram_die): Temporarily set string_types to local var,
12044 call adjust_string_types if needed.
12045 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
12046 New functions.
12047 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
12048
12049 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
12050
12051 * doc/install.texi (*-*-solaris2*): Fix version number and document
12052 requirement on GNU make for building libjava with the Solaris linker.
12053
12054 2016-08-15 Martin Liska <mliska@suse.cz>
12055 Jakub Jelinek <jakub@redhat.com>
12056
12057 PR tree-optimization/72824
12058 * tree-loop-distribution.c (const_with_all_bytes_same)
12059 <case VECTOR_CST>: Fix a typo.
12060
12061 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
12062
12063 PR target/76342
12064 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
12065 Renamed from _mm512_undefined_si512.
12066 (_mm_undefined_si512): New definition.
12067
12068 2016-08-13 Richard Biener <rguenther@suse.de>
12069
12070 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
12071 into PHIs and update the lattice for its def.
12072
12073 2016-08-12 Jakub Jelinek <jakub@redhat.com>
12074
12075 PR c/71512
12076 * ubsan.c (instrument_si_overflow): Pass true instead of false
12077 to gsi_replace.
12078 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
12079 of bbs. Return TODO_cleanup_cfg if any returned true.
12080
12081 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12082
12083 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
12084 ISA 3.0 MTVSRDD instruction.
12085 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
12086 vecperm.
12087
12088 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
12089
12090 PR tree-optimization/71083
12091 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
12092 bitfield access when possible.
12093
12094 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
12095
12096 PR middle-end/71654
12097 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
12098 sign-changing cast from a shorter unsigned type to a wider
12099 signed type.
12100
12101 2016-08-12 Jakub Jelinek <jakub@redhat.com>
12102
12103 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
12104 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
12105 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
12106
12107 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12108
12109 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
12110 Correct costs for vec_construct.
12111
12112 2016-08-12 Bin Cheng <bin.cheng@arm.com>
12113
12114 PR tree-optimization/69848
12115 * tree-vectorizer.h (enum vect_def_type): New condition reduction
12116 type CONST_COND_REDUCTION.
12117 * tree-vect-loop.c (vectorizable_reduction): Support new condition
12118 reudction type CONST_COND_REDUCTION.
12119
12120 2016-08-12 Richard Biener <rguenther@suse.de>
12121
12122 PR tree-optimization/57326
12123 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
12124 returning an SSA name.
12125 (phi_translate_1): When fully_constant_expression returns a NAME
12126 make sure we have a leader for it.
12127
12128 2016-08-12 Martin Liska <mliska@suse.cz>
12129 Adam Fineman <afineman@afineman.com>
12130
12131 * gcov.c (process_file): Create .gcov file when .gcda
12132 file is missing.
12133
12134 2016-08-12 Marek Polacek <polacek@redhat.com>
12135
12136 PR c/7652
12137 * alias.c (find_base_value): Adjust fall through comment.
12138 * cfgexpand.c (expand_debug_expr): Likewise.
12139 * combine.c (find_split_point): Likewise.
12140 (expand_compound_operation): Likewise. Add FALLTHRU.
12141 (make_compound_operation): Adjust fall through comment.
12142 (canon_reg_for_combine): Add FALLTHRU.
12143 (force_to_mode): Adjust fall through comment.
12144 (simplify_shift_const_1): Likewise.
12145 (simplify_comparison): Likewise.
12146 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
12147 FALLTHRU.
12148 * config/aarch64/predicates.md: Likewise.
12149 * config/i386/i386.c (function_arg_advance_32): Likewise.
12150 (ix86_gimplify_va_arg): Likewise.
12151 (print_reg): Likewise.
12152 (ix86_print_operand): Likewise.
12153 (ix86_build_const_vector): Likewise.
12154 (ix86_expand_branch): Likewise.
12155 (ix86_sched_init_global): Adjust fall through comment.
12156 (ix86_expand_args_builtin): Add FALLTHRU.
12157 (ix86_expand_builtin): Likewise.
12158 (ix86_expand_vector_init_one_var): Likewise.
12159 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
12160 (rs6000_adjust_cost): Likewise.
12161 (insn_must_be_first_in_group): Likewise.
12162 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
12163 * dbxout.c (dbxout_symbol): Adjust fall through comment.
12164 * df-scan.c (df_uses_record): Likewise.
12165 * dojump.c (do_jump): Add FALLTHRU.
12166 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
12167 comment.
12168 (resolve_args_picking_1): Adjust fall through comment.
12169 (loc_list_from_tree_1): Likewise.
12170 * expmed.c (make_tree): Likewise.
12171 * expr.c (expand_expr_real_2): Add FALLTHRU.
12172 (expand_expr_real_1): Likewise. Adjust fall through comment.
12173 * fold-const.c (const_binop): Adjust fall through comment.
12174 (fold_truth_not_expr): Likewise.
12175 (fold_cond_expr_with_comparison): Add FALLTHRU.
12176 (fold_binary_loc): Likewise.
12177 (contains_label_1): Adjust fall through comment.
12178 (multiple_of_p): Likewise.
12179 * gcov-tool.c (process_args): Add FALLTHRU.
12180 * genattrtab.c (check_attr_test): Likewise.
12181 (write_test_expr): Likewise.
12182 * genconfig.c (walk_insn_part): Likewise.
12183 * genpreds.c (validate_exp): Adjust fall through comment.
12184 (needs_variable): Likewise.
12185 * gensupport.c (get_alternatives_number): Add FALLTHRU.
12186 (subst_dup): Likewise.
12187 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
12188 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
12189 (gimplify_scan_omp_clauses): Add FALLTHRU.
12190 (goa_stabilize_expr): Likewise.
12191 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
12192 through comment.
12193 * hsa-gen.c (get_address_from_value): Likewise.
12194 * ipa-icf.c (sem_function::hash_stmt): Likewise.
12195 * ira.c (ira_setup_alts): Add FALLTHRU.
12196 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
12197 comment.
12198 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
12199 * opts.c (common_handle_option): Likewise.
12200 * read-rtl.c (read_rtx_code): Likewise.
12201 * real.c (round_for_format): Likewise.
12202 * recog.c (asm_operand_ok): Likewise.
12203 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
12204 * reload1.c (set_label_offsets): Likewise.
12205 (eliminate_regs_1): Likewise.
12206 (reload_reg_reaches_end_p): Likewise.
12207 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
12208 (rtx_cost): Likewise.
12209 * sched-rgn.c (is_exception_free): Likewise.
12210 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
12211 * stor-layout.c (int_mode_for_mode): Likewise.
12212 * toplev.c (print_to_asm_out_file): Likewise.
12213 (print_to_stderr): Likewise.
12214 * tree-cfg.c (gimple_verify_flow_info): Likewise.
12215 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
12216 (chrec_fold_multiply): Likewise.
12217 (evolution_function_is_invariant_rec_p): Likewise.
12218 (for_each_scev_op): Likewise.
12219 * tree-data-ref.c (siv_subscript_p): Likewise.
12220 (get_references_in_stmt): Likewise.
12221 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
12222 (substitute_in_expr): Likewise.
12223 (type_cache_hasher::equal): Likewise.
12224 (walk_type_fields): Likewise.
12225 * var-tracking.c (adjust_mems): Add FALLTHRU.
12226 (set_dv_changed): Adjust fall through comment.
12227 * varasm.c (default_function_section): Add FALLTHRU.
12228
12229 2016-08-12 Marek Polacek <polacek@redhat.com>
12230
12231 PR c/7652
12232 * tree-complex.c (expand_complex_division): Add missing break.
12233
12234 2016-08-12 Richard Biener <rguenther@suse.de>
12235
12236 * passes.c (execute_todo): Do not push/pop TV_TODO.
12237 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
12238 (execute_one_pass): Likewise.
12239 * common.opt (ftime-report-details): New switch.
12240 * doc/invoke.texi (ftime-report-details): Document.
12241 * timevar.h (timer::print_row): Adjust signature.
12242 (timer::all_zero): New static helper.
12243 (timer::child_map_t): New typedef.
12244 (timer::time_var_def): Add children field.
12245 * timevar.c (timer::named_items::print): Adjust.
12246 (timer::~timer): Free timevar recorded children.
12247 (timer::pop_internal): When -ftime-report-details record
12248 time spent in sub-timevars.
12249 (timer::print_row): Adjust.
12250 (timer::print): Print sub-timevar stats, use all_zero.
12251 * timevar.def (TV_TODO): Remove.
12252
12253 2016-08-12 Richard Biener <rguenther@suse.de>
12254
12255 PR tree-optimization/72851
12256 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
12257 worklists to use bitmaps indexed in execution order.
12258 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
12259 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
12260 (cfg_blocks): Make a bitmap.
12261 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
12262 New globals.
12263 (cfg_blocks_empty_p): Adjust.
12264 (cfg_blocks_add): Likewise.
12265 (cfg_blocks_get): Likewise.
12266 (add_ssa_edge): Likewise.
12267 (add_control_edge): Likewise.
12268 (simulate_stmt): Likewise.
12269 (process_ssa_edge_worklist): Likewise.
12270 (simulate_block): Likewise.
12271 (ssa_prop_init): Compute PRE order and stmt UIDs.
12272 (ssa_prop_fini): Adjust.
12273 (ssa_propagate): Adjust.
12274
12275 2016-08-12 Richard Biener <rguenther@suse.de>
12276
12277 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
12278 the currently executable edges have fixed ranges. Always
12279 go through update_value_range.
12280
12281 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
12282
12283 PR debug/63240
12284 * langhooks-def.h
12285 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
12286 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
12287 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
12288 (LANG_HOOKS_DECLS): Add it.
12289 * langhooks.h (struct lang_hooks_for_decls): Add
12290 function_decl_defaulted. Const_tree-ify
12291 function_decl_explicit_p and function_decl_deleted_p.
12292 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
12293 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
12294 also at strict DWARF v5.
12295
12296 PR debug/55641
12297 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
12298 TYPE_QUAL_CONST in reference-typed decls.
12299
12300 PR debug/49366
12301 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
12302 in DW_OP_pieces, just enough to handle pointers to member
12303 functions.
12304 (gen_remaining_tmpl_value_param_die_attribute): Use a location
12305 expression on DWARFv5 if a constant value doesn't work.
12306
12307 2016-08-11 David Malcolm <dmalcolm@redhat.com>
12308
12309 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
12310 * selftest.c (selftest::test_assertions): New function.
12311 (selftest::selftest_c_tests): New function.
12312 * selftest.h (selftest::selftest_c_tests): New declaration.
12313
12314 2016-08-11 Richard Biener <rguenther@suse.de>
12315 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12316
12317 PR rtl-optimization/72855
12318 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
12319
12320 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12321
12322 PR target/72863
12323 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
12324 (vsx_store_<mode>): Likewise.
12325
12326 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
12327
12328 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
12329 TImode CONST_WIDE_INT store.
12330 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
12331
12332 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
12333
12334 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
12335 mode if unaligned SSE load and store are optimal.
12336
12337 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
12338
12339 PR tree-optimization/71083
12340 * tree-predcom.c (ref_at_iteration): Correctly align the
12341 reference type.
12342
12343 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12344
12345 * config/s390/s390-builtin-types.def: Add INT128 types.
12346 * config/s390/s390-builtins.def: Add INT128 variants for the add
12347 sub low-level builtins dealing with TImode.
12348 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
12349 via subreg when expanding a builtin.
12350 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
12351 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
12352 Fix comment.
12353 * config/s390/vecintrin.h: Adjust builtin names accordingly.
12354 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
12355 ("vec_addc<mode>", "vec_addc_u128"): Merge to
12356 "vacc<bhfgq>_<mode>".
12357 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
12358 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
12359 ("vec_subc<mode>", "vec_subc_u128"): Merge to
12360 "vscbi<bhfgq>_<mode>".
12361 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
12362 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
12363
12364 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12365
12366 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
12367
12368 2016-08-11 Bin Cheng <bin.cheng@arm.com>
12369
12370 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
12371 unused declaration.
12372 (vcond<v_cmp_mixed><mode>): Ditto.
12373 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
12374
12375 2016-08-11 Bin Cheng <bin.cheng@arm.com>
12376
12377 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
12378 variable explicitly, also assert on it before use.
12379
12380 2016-08-11 Richard Biener <rguenther@suse.de>
12381
12382 PR tree-optimization/72772
12383 * cfgloopmanip.c (create_preheader): Use split_edge if there
12384 is a single loop entry, avoiding degenerate PHIs.
12385
12386 2016-08-11 Richard Biener <rguenther@suse.de>
12387
12388 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
12389 unconditional TODO_cleanup_cfg.
12390 (pass_thread_jumps::execute): Initialize loops, perform a CFG
12391 cleanup only if we threaded a jump.
12392
12393 2016-08-11 Alan Modra <amodra@gmail.com>
12394
12395 PR target/71680
12396 * lra-constraints.c (simplify_operand_subreg): Allow subreg
12397 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
12398 slow. Emit two reloads for slow mem case, first loading in
12399 fast innermode, then converting to required mode.
12400
12401 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
12402
12403 * config/rs6000/altivec.h (vec_extract_exp): New macro.
12404 (vec_extract_sig): New macro.
12405 (vec_insert_exp): New macro.
12406 (vec_test_data_class): New macro.
12407 (scalar_extract_exp): New macro.
12408 (scalar_extract_sig): New macro.
12409 (scalar_insert_exp): New macro.
12410 (scalar_test_data_class): New macro.
12411 (scalar_test_neg): New macro.
12412 (scalar_cmp_exp_gt): New macro.
12413 (scalar_cmp_exp_lt): New macro.
12414 (scalar_cmp_exp_eq): New macro.
12415 (scalar_cmp_exp_unordered): New macro.
12416 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
12417 to enforce constraint that operand is a 7-bit unsigned literal.
12418 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
12419 for power9 built-ins.
12420 (BU_P9V_VSX_2): Likewise.
12421 (BU_P9V_64BIT_VSX_2): Likewise.
12422 (VSEEDP): Add scalar extract exponent support.
12423 (VSEESP): Add scalar extract signature support.
12424 (VSTDCNDP): Add scalar test negative support.
12425 (VSTDCNSP): Likewise.
12426 (VSIEDP): Add scalar insert exponent support.
12427 (VSCEDPGT): Add scalar compare exponent greater than support.
12428 (VSCEDPLT): Add scalar compare exponent less than support.
12429 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
12430 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
12431 (VSTDCDP): Add scalar test data class support.
12432 (VSTDCSP): Likewise.
12433 (VSEEDP): Add overload support for scalar extract exponent
12434 operation.
12435 (VSESDP): Add overload support for scalar extract signature
12436 operation.
12437 (VSTDCN): Add overload support for scalar test negative
12438 operation.
12439 (VSTDCNDP): Add overload support for scalar test negative
12440 operation.
12441 (VSTDCNSP): Add overload support for scalar test negative
12442 operation.
12443 (VSIEDP): Add overload support for scalar insert exponent
12444 operation.
12445 (VSTDC): Add overload support for scalar test data class
12446 operation.
12447 (VSTDCDP): Add overload support for scalar test data class
12448 operation.
12449 (VSTDCSP): Add overload support for scalar test data class
12450 opreation.
12451 (VSCEDPGT): Add overload support for scalar compare exponent
12452 greater than operation.
12453 (VSCEDPLT): Add overload support for scalar compare exponent
12454 less than operation.
12455 (VSCEDPEQ): Add overload support for scalar compare exponent
12456 test-for-equality operation.
12457 (VSCEDPUO): Add overload support for scalar compare exponent
12458 test-for-unordered operation.
12459 (VEEDP): Add vector extract exponent support.
12460 (VEESP): Likewise.
12461 (VESDP): Add vector extract significand support.
12462 (VESSP): Likewise.
12463 (VIEDP): Add vector insert exponent support.
12464 (VIESP): Likewise.
12465 (VTDCDP): Add vector test data class support.
12466 (VTDCSP): Likewise.
12467 (VES): Add overload support for vector extract significand operation.
12468 (VESDP): Likewise.
12469 (VESSP): Likewise
12470 (VEE): Add overload support for vector extract exponent operation.
12471 (VEEDP): Likewise.
12472 (VEESP): Likewise.
12473 (VTDC): Add overload support for vector test data class operation.
12474 (VTDCDP): Likewise.
12475 (VTDCSP): Likewise.
12476 (VIE): Add overload support for vector insert exponent operation.
12477 (VIEDP): Likewise.
12478 (VIESP): Likewise.
12479 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12480 overloaded binary floating point functions.
12481 (altivec_resolve_overloaded_builtin): Improve error messages to
12482 distinguish between functions not supported in the current
12483 compiler configuration and functions that were invoked with an
12484 invalid parameter combination, and include the built-in function
12485 name in both error messages.
12486 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
12487 New prototype.
12488 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
12489 function.
12490 (rs6000_expand_binop_builtin): Add check to enforce that argument
12491 2 of the test data class operations is a 7-bit unsigned literal.
12492 (rs6000_invalid_builtin): Add code to issue an error message if a
12493 built-in function that requires the power9_vector and -m32
12494 command-line options is compiled without these options.
12495 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
12496 (UNSPEC_VSX_SXSIGDP): New value.
12497 (UNSPEC_VSX_SXSIGPDP): New value.
12498 (UNSPEC_VSX_SIEXPDP): New value.
12499 (UNSPEC_VSX_SCMPEXPDP): New value.
12500 (UNSPEC_VSX_STSTDC): New value.
12501 (UNSPEC_VSX_VXEXP): New value.
12502 (UNSPEC_VSX_VXSIG): New value.
12503 (UNSPEC_VSX_VIEXP): New value.
12504 (UNSPEC_VSX_VTSTDC): New value.
12505 (xsxexpdp): New insn for scalar extract exponent.
12506 (xsxsigdp): New insn for scalar extract significand.
12507 (xsiexpdp): New insn for scalar insert exponent.
12508 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
12509 (*xscmpexpdp): New insn for scalar compare exponents.
12510 (xststdc<Fvsx): New expansion for both single- and
12511 double-precision scalar test data class operations.
12512 (xststdcneg<Fvsx>): New expansion for both single- and
12513 double-precision scalar test for negative value operations.
12514 (*xststdc<Fvsx>): New insn for scalar test data class
12515 operation.
12516 (xvxexp<VSs>): New insn for single- and double-precision
12517 vector extract exponent operation.
12518 (xvxsig<VSs>): New insn for single- and double-precision
12519 vector extract significand operation.
12520 (xviexp<VSs>): New insn for single- and double-precision
12521 vector insert exponent operation.
12522 (xvtstdc<VSs>): New insn for single- and double-precision
12523 vector test data class operation.
12524 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12525 built-in functions to represent the Power9 binary floating-point
12526 support instructions.
12527
12528 2016-08-10 bin cheng <bin.cheng@arm.com>
12529
12530 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
12531
12532 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12533 Renlin Li <renlin.li@arm.com>
12534 Bin Cheng <bin.cheng@arm.com>
12535
12536 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
12537 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
12538 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
12539 (aarch64_vcond_internal<mode><mode>): Delete pattern.
12540 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
12541 (vcond<v_cmp_result><mode>): Ditto.
12542 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
12543 (vcondu<mode><mode>): Ditto.
12544 (vcond<v_cmp_mixed><mode>): New pattern.
12545 (vcondu<mode><v_cmp_mixed>): New pattern.
12546 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
12547 of aarch64_vcond_internal.
12548
12549 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12550 Renlin Li <renlin.li@arm.com>
12551 Bin Cheng <bin.cheng@arm.com>
12552
12553 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
12554 (vec_cmp<mode><v_cmp_result>): New pattern.
12555 (vec_cmpu<mode><mode>): New pattern.
12556 (vcond_mask_<mode><v_cmp_result>): New pattern.
12557
12558 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12559
12560 PR tree-optimization/71734
12561 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
12562 REF_LOOP, invoke ref_indep_loop_p_1.
12563 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
12564 to ref_indep_loop_p.
12565 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
12566 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
12567 is inside LOOP, do not cache dpendence value for loops with
12568 non-zero SAFELEN.
12569 (ref_indep_loop_p_2): Delete function.
12570 (can_sm_ref_p): Pass LOOP as additional argument to
12571 ref_indep_loop_p.
12572
12573 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12574
12575 PR target/72853
12576 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
12577 being an offsettable address.
12578
12579 2016-08-10 Martin Liska <mliska@suse.cz>
12580
12581 PR gcov-profile/58306
12582 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
12583 atomic variants of profile update functions.
12584
12585 2016-08-10 Martin Liska <mliska@suse.cz>
12586
12587 Cherry picked (and modified) from google-4_7 branch
12588 2012-12-26 Rong Xu <xur@google.com>
12589 * common.opt (fprofile-update): Add new flag.
12590 * coretypes.h: Define enum profile_update.
12591 * doc/invoke.texi: Document -fprofile-update.
12592 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
12593 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
12594 * tree-profile.c (gimple_init_edge_profiler): Generate
12595 also atomic profiler update.
12596 (gimple_gen_edge_profiler): Likewise.
12597
12598 2016-08-10 David Malcolm <dmalcolm@redhat.com>
12599
12600 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
12601 stack_usage_file to NULL after fclose calls.
12602
12603 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12604
12605 PR target/71873
12606 * reload.c (push_reload): Compute subreg_in_class for
12607 subregs of constants and plus expressions. Remove special
12608 handling of SYMBOL_REFs.
12609
12610 2016-08-10 Alan Modra <amodra@gmail.com>
12611
12612 PR target/71680
12613 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
12614 SImode for TARGET_E500_DOUBLE when given SImode.
12615
12616 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
12617
12618 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
12619 unused variable __O.
12620
12621 2016-08-09 Martin Liska <mliska@suse.cz>
12622
12623 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
12624 _gcov_reset to __gcov_reset.
12625 * doc/gcov-tool.texi: Fix typo.
12626
12627 2016-08-09 Martin Liska <mliska@suse.cz>
12628
12629 * value-prof.c (gimple_divmod_values_to_profile): Do not
12630 instrument MOD histogram if a value is not a SSA name.
12631
12632 2016-08-09 Martin Liska <mliska@suse.cz>
12633
12634 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
12635 values.
12636
12637 2016-08-09 Renlin Li <renlin.li@arm.com>
12638
12639 PR middle-end/64971
12640 * calls.c (prepare_call_address): Convert funexp to Pmode when
12641 necessary.
12642 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
12643 (sibcall_value): Likewise.
12644
12645 2016-08-09 Marek Polacek <polacek@redhat.com>
12646
12647 PR c/7652
12648 * cselib.c (cselib_expand_value_rtx_1): Add return.
12649 * gengtype.c (dbgprint_count_type_at): Likewise.
12650 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
12651 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
12652
12653 2016-08-09 Martin Jambor <mjambor@suse.cz>
12654
12655 PR ipa/71981
12656 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
12657 if instance is a MEM_REF.
12658
12659 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
12660
12661 PR target/72843
12662 * config/i386/i386.md (*movtf_internal): Use
12663 lra_in_progress || reload_completed instead of !can_create_pseudo_p
12664 in the insn constraint.
12665 (*movxf_internal): Ditto.
12666 (*movdf_internal): Ditto.
12667 (*movsf_internal): Ditto.
12668
12669 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12670
12671 PR tree-optimization/72772
12672 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12673 for expanded base.
12674
12675 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12676
12677 PR tree-optimization/72772
12678 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
12679 parameter STOP.
12680 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
12681 parameter STOP and update calls. Move expand_simple_operations
12682 function call from here...
12683 (simplify_using_initial_conditions): ...to here. Delete parameter
12684 STOP.
12685 (tree_simplify_using_condition): Delete parameter STOP.
12686 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
12687 simplify_using_initial_conditions.
12688
12689 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
12690
12691 PR c/65345
12692 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
12693 Use create_tmp_var_raw instead of create_tmp_var.
12694
12695 2016-08-09 Richard Biener <rguenther@suse.de>
12696
12697 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
12698 Treat same SSA names related.
12699
12700 2016-08-09 Jakub Jelinek <jakub@redhat.com>
12701
12702 PR tree-optimization/72824
12703 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
12704 real_zerop is not negative.
12705
12706 2016-08-09 Richard Biener <rguenther@suse.de>
12707
12708 PR tree-optimization/71802
12709 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
12710 all merge opportunities with the predecessor.
12711
12712 2016-08-09 Richard Biener <rguenther@suse.de>
12713
12714 PR ipa/68273
12715 * ipa-prop.c (ipa_modify_formal_parameters): Build
12716 parameter types with natural alignment also for the
12717 over-aligned case.
12718
12719 2016-08-08 Andi Kleen <ak@linux.intel.com>
12720
12721 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
12722
12723 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12724
12725 PR c/64955
12726 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
12727 do-nothing langhook.
12728 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
12729 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
12730 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
12731 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
12732
12733 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12734
12735 PR bootstrap/72844
12736 * input.c: Ensure that HAVE_ICONV is defined.
12737
12738 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12739
12740 PR middle-end/72781
12741 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
12742 private vars for lastprivate and for linear iterator.
12743
12744 PR middle-end/68762
12745 * omp-simd-clone.c: Include varasm.h.
12746 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
12747 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
12748 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
12749 update function name.
12750
12751 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12752
12753 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
12754 (avr_diagnose_devicespecs_error): Remove.
12755 (avr_devicespecs_file): Remove composing absolute path for specfile
12756 and its verbose info. Remove conditions to check specs-file,
12757
12758 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12759
12760 PR rtl-optimization/72821
12761 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
12762 just return false for them.
12763
12764 2016-08-08 Alan Modra <amodra@gmail.com>
12765
12766 PR target/72771
12767 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12768 toc refs created during reload. Update function comment.
12769
12770 2016-08-08 Alan Modra <amodra@gmail.com>
12771
12772 PR target/72802
12773 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12774 alternatives. Put loads first, then stores, and reg/reg moves
12775 within same class later. Delete attr length.
12776
12777 2016-08-08 Alan Modra <amodra@gmail.com>
12778
12779 PR target/72802
12780 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12781 (mem_operand_ds_form): New predicate.
12782 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12783 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12784 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12785 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12786 (extendsfdf2_fpr): Replace o constraint with wY.
12787
12788 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
12789
12790 * tree-ssa-threadbackward.c: Include tree-inline.h
12791 (profitable_jump_thread_path): Use estimate_num_insns to estimate
12792 size of copied block; for cold paths reduce duplication.
12793 (find_jump_threads_backwards): Remove redundant tests.
12794 (pass_thread_jumps::gate): Enable for -Os.
12795
12796 2016-08-07 Jakub Jelinek <jakub@redhat.com>
12797
12798 PR c/72816
12799 * stor-layout.c (layout_decl): Fix up formatting.
12800 (relayout_decl): Allow DECL to be FIELD_DECL.
12801
12802 2016-08-07 Alan Modra <amodra@gmail.com>
12803
12804 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12805
12806 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12807
12808 * data-streamer-in.c (streamer_read_wide_int): New.
12809 (streamer_read_widest_int): Renamed function.
12810 * data-streamer-out.c (streamer_write_wide_int): New
12811 (streamer_write_widest_int): Renamed function.
12812 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12813 data-stream-in.c.
12814 (input_cfg): Call renamed function.
12815 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12816 data-stream-out.c.
12817 (output_cfg): Call renamed function.
12818 * data-streamer.h: Add declarations.
12819
12820 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12821
12822 * tree-ssa-ccp.c (extend_mask): New param sgn.
12823 Remove ORing with wi::mask.
12824 (get_default_value): Adjust call to extend_mask to pass sign.
12825 (evaluate_stmt): Likewise.
12826
12827 2016-08-06 Jakub Jelinek <jakub@redhat.com>
12828
12829 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12830 INT64_MAX.
12831
12832 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12833
12834 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12835 transform if operand's type is pointer to function or method.
12836
12837 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12838
12839 PR tree-optimization/18046
12840 * tree-ssa-threadedge.c: Include cfganal.h.
12841 (simplify_control_statement_condition): If simplifying a
12842 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12843 with the dominating ASSERT_EXPR before handing it off to VRP.
12844 Mention that a CASE_LABEL_EXPR may be returned.
12845 (thread_around_empty_blocks): Adjust to handle
12846 simplify_control_statement_condition() returning a
12847 CASE_LABEL_EXPR.
12848 (thread_through_normal_block): Likewise.
12849 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12850 a switch statement by trying to determine which case label
12851 will be taken.
12852
12853 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
12854
12855 PR rtl-optimization/69847
12856 * lra-constraints.c (process_invariant_for_inheritance): Save
12857 pattern instead of src.
12858 (remove_inheritance_pseudos): Use the pattern. Add assert.
12859
12860 2016-08-05 David Malcolm <dmalcolm@redhat.com>
12861
12862 * input.c (string_concat::string_concat): New constructor.
12863 (string_concat_db::string_concat_db): New constructor.
12864 (string_concat_db::record_string_concatenation): New method.
12865 (string_concat_db::get_string_concatenation): New method.
12866 (string_concat_db::get_key_loc): New method.
12867 (class auto_cpp_string_vec): New class.
12868 (get_substring_ranges_for_loc): New function.
12869 (get_source_range_for_substring): New function.
12870 (get_num_source_ranges_for_substring): New function.
12871 (class selftest::lexer_test_options): New class.
12872 (struct selftest::lexer_test): New struct.
12873 (class selftest::ebcdic_execution_charset): New class.
12874 (selftest::ebcdic_execution_charset::s_singleton): New variable.
12875 (selftest::lexer_test::lexer_test): New constructor.
12876 (selftest::lexer_test::~lexer_test): New destructor.
12877 (selftest::lexer_test::get_token): New method.
12878 (selftest::assert_char_at_range): New function.
12879 (ASSERT_CHAR_AT_RANGE): New macro.
12880 (selftest::assert_num_substring_ranges): New function.
12881 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12882 (selftest::assert_has_no_substring_ranges): New function.
12883 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12884 (selftest::test_lexer_string_locations_simple): New function.
12885 (selftest::test_lexer_string_locations_ebcdic): New function.
12886 (selftest::test_lexer_string_locations_hex): New function.
12887 (selftest::test_lexer_string_locations_oct): New function.
12888 (selftest::test_lexer_string_locations_letter_escape_1): New function.
12889 (selftest::test_lexer_string_locations_letter_escape_2): New function.
12890 (selftest::test_lexer_string_locations_ucn4): New function.
12891 (selftest::test_lexer_string_locations_ucn8): New function.
12892 (selftest::uint32_from_big_endian): New function.
12893 (selftest::test_lexer_string_locations_wide_string): New function.
12894 (selftest::uint16_from_big_endian): New function.
12895 (selftest::test_lexer_string_locations_string16): New function.
12896 (selftest::test_lexer_string_locations_string32): New function.
12897 (selftest::test_lexer_string_locations_u8): New function.
12898 (selftest::test_lexer_string_locations_utf8_source): New function.
12899 (selftest::test_lexer_string_locations_concatenation_1): New
12900 function.
12901 (selftest::test_lexer_string_locations_concatenation_2): New
12902 function.
12903 (selftest::test_lexer_string_locations_concatenation_3): New
12904 function.
12905 (selftest::test_lexer_string_locations_macro): New function.
12906 (selftest::test_lexer_string_locations_stringified_macro_argument):
12907 New function.
12908 (selftest::test_lexer_string_locations_non_string): New function.
12909 (selftest::test_lexer_string_locations_long_line): New function.
12910 (selftest::test_lexer_char_constants): New function.
12911 (selftest::input_c_tests): Call the new test functions once per
12912 case within the line_table test matrix.
12913 * input.h (struct string_concat): New struct.
12914 (struct location_hash): New struct.
12915 (class string_concat_db): New class.
12916 * substring-locations.h: New header.
12917
12918 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12919
12920 PR tree-optimization/72810
12921 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12922 the type of the case labels when truncating.
12923
12924 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12925
12926 PR Target/72819
12927 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12928 (aarch64_fp16_ptr_type_node): Likewise.
12929 * config/aarch64/aarch64-simd-builtins.c
12930 (aarch64_fp16_ptr_type_node): Define.
12931 (aarch64_init_fp16_types): New, refactored out of...
12932 (aarch64_init_builtins): ...here, update to call
12933 aarch64_init_fp16_types.
12934 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12935 HFmode.
12936 (aapcs_vfp_sub_candidate): Likewise.
12937
12938 2016-08-05 Martin Liska <mliska@suse.cz>
12939 Joshua Cranmer <Pidgeot18@gmail.com>
12940
12941 * gcov.c (line_t::has_block): New function.
12942 (enum loop_type): New enum.
12943 (handle_cycle): New function.
12944 (unblock): Likewise.
12945 (circuit): Likewise.
12946 (get_cycles_count): Likewise.
12947 (accumulate_line_counts): Use new loop detection algorithm.
12948
12949 2016-08-05 Martin Liska <mliska@suse.cz>
12950
12951 * gcov.c (output_intermediate_file): Rename
12952 function_info::line_next to next_file_fn.
12953 (process_file): Likewise.
12954 (read_graph_file): Likewise.
12955 (accumulate_line_counts): Likewise.
12956 (output_lines): Likewise.
12957
12958 2016-08-05 Richard Biener <rguenther@suse.de>
12959
12960 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12961 restriction on threading to a loop header.
12962
12963 2016-08-05 Richard Biener <rguenther@suse.de>
12964
12965 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12966 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12967 adjust loop info accordingly.
12968
12969 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12970
12971 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12972 before folding call to __builtin_constant_p with parameters to false.
12973
12974 2016-08-05 Alan Modra <amodra@gmail.com>
12975
12976 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12977 code accidentally committed 2016-05-02 providing class when given
12978 NO_REGS.
12979
12980 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12981
12982 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12983 the case label ranges that partially overlap with OP's value
12984 range.
12985
12986 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
12987
12988 PR target/72805
12989 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12990 Cast builtin function result to __mmask16 instead of __mmask8.
12991 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12992 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12993 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12994
12995 2016-08-04 David Malcolm <dmalcolm@redhat.com>
12996
12997 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12998 (ASSERT_TRUE_AT): New macro.
12999 (ASSERT_FALSE): Reimplement in terms of...
13000 (ASSERT_FALSE_AT): New macro.
13001 (ASSERT_STREQ_AT): Fix typo in comment.
13002
13003 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
13004
13005 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
13006 labels are exhaustive, designate the label with the widest
13007 range to be the default label.
13008
13009 2016-08-04 Andrew Pinski <apinski@cavium.com>
13010
13011 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
13012 (thunderx_tunings): Use thunderx_vector_cost instead of
13013 generic_vector_cost.
13014
13015 2016-08-04 Martin Liska <mliska@suse.cz>
13016
13017 * gcov.c (main): Fix GNU coding style.
13018 (output_intermediate_file): Likewise.
13019 (process_file): Likewise.
13020 (generate_results): Likewise.
13021 (release_structures): Likewise.
13022 (create_file_names): Likewise.
13023 (find_source): Likewise.
13024 (read_graph_file): Likewise.
13025 (find_exception_blocks): Likewise.
13026 (canonicalize_name): Likewise.
13027 (make_gcov_file_name): Likewise.
13028 (mangle_name): Likewise.
13029 (accumulate_line_counts): Likewise.
13030 (output_branch_count): Likewise.
13031 (read_line): Likewise.
13032
13033 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13034
13035 PR rtl-optimization/71779
13036 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
13037 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
13038 or if it was truncated.
13039
13040 PR rtl-optimization/70903
13041 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
13042
13043 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
13044
13045 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
13046 accessing SSA_NAME_PTR_INFO.
13047
13048 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
13049
13050 PR 70677
13051 * common/config/avr/avr-common.c (avr_option_optimization_table)
13052 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
13053
13054 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
13055
13056 PR 55181
13057 * config/avr/avr.md: New pattern to work around do_store_flag
13058 generating shift instructions for bit extractions.
13059
13060 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
13061
13062 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
13063 BITMAP_ALLOC.
13064 (add_equivalence): Likewise.
13065 (get_value_range): Allocate value range with vrp_value_range_pool.
13066 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
13067 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
13068
13069 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
13070
13071 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
13072 the default for the rs6000 port.
13073
13074 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13075
13076 PR middle-end/71876
13077 * calls.c (special_function_p): Remove special handling of
13078 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
13079 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
13080 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
13081
13082 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
13083
13084 PR middle-end/72778
13085 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
13086 Don't stop on regular insns.
13087
13088 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
13089
13090 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
13091 size to DImode boundary.
13092 (nvptx_propagate): Likewise.
13093
13094 2016-08-03 Alan Modra <amodra@gmail.com>
13095
13096 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
13097 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
13098 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
13099 from -mefficient-unaligned-vector. Note that this affects fp too.
13100
13101 2016-08-03 Alan Modra <amodra@gmail.com>
13102
13103 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
13104 cost more.
13105
13106 2016-08-03 Alan Modra <amodra@gmail.com>
13107
13108 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
13109 to a reg. Localize vars.
13110
13111 2016-08-03 Alan Modra <amodra@gmail.com>
13112
13113 * config/rs6000/rs6000.opt: Remove negatives from help strings
13114 and comments.
13115
13116 2016-08-03 Alan Modra <amodra@gmail.com>
13117
13118 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
13119 Delete duplicated code.
13120
13121 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
13122
13123 PR middle-end/72778
13124 * lra-spills.c (regno_in_use_p): New.
13125 (lra_final_code_change): Use it.
13126
13127 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
13128
13129 PR rtl-optimization/69847
13130 * lra-int.h (struct lra-reg): Use restore_rtx instead of
13131 restore_regno.
13132 (lra_rtx_hash): New.
13133 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
13134 of restore_regno.
13135 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
13136 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
13137 * lra-spills.c (lra_final_code_change): Don't delete insn when the
13138 next insn is USE with the same reg as the current insn source.
13139 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
13140 of restore_regno.
13141 (lra_constraints_init): Call initiate_invariants.
13142 (lra_constraints_finish): Call finish_invariants.
13143 (struct invariant, invariant_t, invariant_ptr_t): New.
13144 (const_invariant_ptr_t, invariants, invariants_pool): New.
13145 (invariant_table, invariant_hash, invariant_eq_p): New.
13146 (insert_invariant, initiate_invariants, finish_invariants): New.
13147 (clear_invariants, invalid_invariant_regs): New.
13148 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
13149 instead of restore_regno.
13150 (invariant_p, process_invariant_for_inheritance): New.
13151 (inherit_in_ebb): Implement invariant inheritance.
13152 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
13153 (remove_inheritance_pseudos): Implement undoing invariant
13154 inheritance.
13155 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
13156 instead of restore_regno.
13157 * lra-assigns.c (regno_live_length): New.
13158 (reload_pseudo_compare_func): Use regno_live_length.
13159 (assign_by_spills): Use restore_rtx instead of restore_regno.
13160 (lra_assign): Ditto. Initiate regno_live_length.
13161
13162 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
13163
13164 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
13165 __builtin_aarch64_fmindf.
13166
13167 2016-08-02 Bin Cheng <bin.cheng@arm.com>
13168
13169 PR tree-optimization/34114
13170 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
13171 information for more control IVs.
13172
13173 2016-08-02 Bin Cheng <bin.cheng@arm.com>
13174
13175 PR tree-optimization/34114
13176 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
13177 PLUS_EXPR case. Handle SSA_NAME case.
13178
13179 2016-08-02 Tamar Christina <tamar.christina@arm.com>
13180
13181 * config/aarch64/aarch64-simd-builtins.def
13182 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
13183 (__builtin_aarch64_fmaxdf): Likewise.
13184 (__builtin_aarch64_smin_nandf): Likewise.
13185 (__builtin_aarch64_smax_nandf): Likewise.
13186 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
13187 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
13188 (<fmaxmin><mode>3): ...this.
13189 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
13190 (vminnm_f64): Likewise.
13191 (vmin_f64): Likewise.
13192 (vmax_f64): Likewise.
13193 * config/aarch64/iterators.md (FMAXMIN): Merge with...
13194 (FMAXMIN_UNS): ...this.
13195 (fmaxmin): Merged with
13196 (fmaxmin_op): ...this...
13197 (maxmin_uns_op): ...in to this.
13198
13199 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13200
13201 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13202 Add support for vec_extract on vector float, vector int, vector
13203 short, and vector char vector types.
13204 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13205 vector float, vector int, vector short, and vector char
13206 optimizations on 64-bit ISA 2.07 systems for both constant and
13207 variable element numbers.
13208 (rs6000_split_vec_extract_var): Likewise.
13209 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
13210 Altivec registers on ISA 2.07 and above.
13211 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
13212 which never was matched due to the split occuring before register
13213 allocation (and the code would not have worked on little endian
13214 systems if it did match). Allow extracts to go to the Altivec
13215 registers if ISA 2.07 (power8). Change from using "" around the
13216 C++ code to using {}'s.
13217 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
13218 vec_extracts when the vector is in memory.
13219 (vsx_extract_v4sf_var): New insn to optimize vector float
13220 vec_extracts when the element number is variable on 64-bit ISA
13221 2.07 systems.
13222 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
13223 for 64-bit ISA 2.07 as well as ISA 3.0.
13224 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
13225 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
13226 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
13227 optimize vector int, vector short, and vector char vec_extracts
13228 when the vector is in memory.
13229 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
13230 optimize vector int, vector short, and vector char vec_extracts
13231 when the element number is variable.
13232
13233 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
13234
13235 PR target/71948
13236 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
13237 does not overlap with other symbol flags.
13238
13239 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
13240
13241 * config/aarch64/aarch64.h (aarch64_frame):
13242 Remove padding0 and hardfp_offset. Add locals_offset,
13243 initial_adjust, callee_adjust, callee_offset and final_adjust.
13244 * config/aarch64/aarch64.c (aarch64_layout_frame):
13245 Remove unused padding0 and hardfp_offset initializations.
13246 Choose frame layout and set frame variables accordingly.
13247 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
13248 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
13249 (aarch64_pop_regs): Likewise.
13250 (aarch64_expand_prologue): Remove all decision code, just emit
13251 prolog according to frame variables.
13252 (aarch64_expand_epilogue): Remove all decision code, just emit
13253 epilog according to frame variables.
13254 (aarch64_initial_elimination_offset): Use offset to local/arg area.
13255
13256 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
13257
13258 PR target/72748
13259 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
13260 fix_debug_reg_uses after changing source register mode to
13261 V1TImode if source register is undefined.
13262
13263 2015-08-01 Alan Hayward <alan.hayward@arm.com>
13264
13265 PR tree-optimization/71818
13266 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
13267 with non invariant evolutions
13268
13269 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
13270
13271 PR target/72767
13272 * config/avr/avr.md (length) [branch]: Correct insn length
13273 attribute for forward branches.
13274
13275 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
13276
13277 * doc/extend.texi (AVR Built-in Functions): Document
13278 __builtin_avr_nops.
13279 * config/avr/builtins.def (NOPS): New.
13280 * config/avr/avr.c (avr_expand_nops): New static function.
13281 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
13282
13283 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13284
13285 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
13286 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
13287 addresses.
13288
13289 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
13290
13291 * config/aarch64/aarch64.c (vulcan_tunings): Update
13292 vulcan L1 cache_line_size.
13293
13294 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
13295
13296 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
13297 function that takes a vector memory address, a hard register, an
13298 element number and a temporary base register, and recreates an
13299 address that points to the appropriate element within the vector.
13300 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
13301 (rs6000_split_vec_extract_var): Add support for the target of a
13302 vec_extract with variable element number being a scalar memory
13303 location.
13304 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
13305 swappable.
13306 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
13307 vsx_extract_<mode>_load insn with a new insn that optimizes
13308 storing either element to a memory location, using scratch
13309 registers to pick apart the vector and reconstruct the address.
13310 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
13311 (vsx_extract_<mode>_store): Rework alternatives to more correctly
13312 support Altivec registers. Add support for ISA 3.0 Altivec d-form
13313 store instruction.
13314 (vsx_extract_<mode>_var): Add support for extracting a variable
13315 element number from memory.
13316
13317 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
13318
13319 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
13320 when testing for compares against constants of the form 0xabab.
13321
13322 2016-07-29 Bin Cheng <bin.cheng@arm.com>
13323
13324 PR tree-optimization/57558
13325 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
13326 function.
13327 (vect_loop_versioning): Support versioning with niter assumptions.
13328 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
13329 (vect_get_loop_niters): New parameter. Reimplement to support
13330 assumptions in loop niter info.
13331 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
13332 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
13333 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
13334 Support loop versioning for niters.
13335 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
13336 (vect_free_loop_info_assumptions): New function.
13337 (vectorize_loops): Free loop niter info for loops with flag
13338 LOOP_F_ASSUMPTIONS set if vectorization failed.
13339 * tree-vectorizer.h (struct _loop_vec_info): New field
13340 num_iters_assumptions.
13341 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
13342 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
13343 (LOOP_REQUIRES_VERSIONING): New macro.
13344 (vect_free_loop_info_assumptions): New decl.
13345
13346 2016-07-29 Bin Cheng <bin.cheng@arm.com>
13347
13348 * cfgloop.h (struct loop): New field constraints.
13349 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
13350 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
13351 functions.
13352 * cfgloop.c (alloc_loop): Initialize new field.
13353 * cfgloopmanip.c (copy_loop_info): Copy constraints.
13354 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
13355 Adjust niter analysis wrto loop constraints.
13356 * doc/loop.texi (@node Number of iterations): Add description for loop
13357 constraints.
13358
13359 2016-07-29 Marek Polacek <polacek@redhat.com>
13360
13361 PR c/7652
13362 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
13363 (ix86_expand_round_builtin): Likewise.
13364
13365 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
13366 Georg-Johann Lay <avr@gjlay.de>
13367
13368 PR rtl-optimization/71976
13369 * combine.c (get_last_value): Return 0 if the argument for which
13370 the function is called has a wider mode than the recorded value.
13371
13372 2016-07-29 Marek Polacek <polacek@redhat.com>
13373
13374 PR c/7652
13375 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
13376 (altivec_expand_st_builtin): Likewise.
13377
13378 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
13379
13380 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
13381 introduced in r238381.
13382
13383 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13384
13385 PR middle-end/68217
13386 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
13387 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
13388
13389 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
13390
13391 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
13392 New declaration.
13393 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13394 Add support for vec_extract of vector double or vector long having
13395 a variable element number on 64-bit ISA 2.07 systems or newer.
13396 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
13397 Likewise.
13398 (rs6000_split_vec_extract_var): New function to split a
13399 vec_extract built-in function with variable element number.
13400 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
13401 swappable.
13402 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
13403 (UNSPEC_VSX_EXTRACT): Likewise.
13404 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
13405 direct move instructions to be generated on 64-bit ISA 2.07
13406 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
13407 instruction.
13408 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
13409 arguments for vec_extract variable element.
13410 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
13411 vec_extract with variable element on V2DFmode and V2DImode
13412 vectors.
13413 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
13414 -mupper-regs-df requirement, since it isn't needed.
13415 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
13416 do direct moves on 64-bit systems, which allows optimization of
13417 vec_extract on 64-bit ISA 2.07 systems and newer.
13418
13419 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13420 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13421
13422 * config/aarch64/aarch64.md
13423 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
13424 statement and type.
13425 (<optab>qihi2_aarch64): Likewise, and split into two.
13426 (extendqihi2_aarch64): New.
13427 (zero_extendqihi2_aarch64): New.
13428 * config/aarch64/iterators.md (ldrxt): Remove.
13429 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
13430 uxtb/uxth.
13431
13432 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13433
13434 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
13435
13436 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13437
13438 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
13439 (aarch64_push_reg): New function to push 1 or 2 registers.
13440 (aarch64_pop_reg): New function to pop 1 or 2 registers.
13441 (aarch64_expand_prologue): Use aarch64_push_regs.
13442 (aarch64_expand_epilogue): Use aarch64_pop_regs.
13443
13444 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
13445
13446 PR tree-optimization/71734
13447 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
13448 attribute instead of REF_LOOP and use it.
13449 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
13450 set it for Loops having non-zero safelen attribute.
13451 (ref_indep_loop_p): Pass zero as initial value for safelen.
13452
13453 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
13454
13455 PR middle-end/72657
13456 PR target/72683
13457 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
13458 call using chkp_gimple_call_builtin_p.
13459 (chkp_copy_bounds_for_assign): Likewise.
13460
13461 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13462
13463 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
13464 * config/arm/arm-protos.h (struct tune_params): Likewise.
13465 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13466 (cortex_a9_sched_adjust_cost): Likewise.
13467 (fa726te_sched_adjust_cost): Likewise.
13468 (arm_adjust_cost): Likewise.
13469 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
13470 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
13471 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
13472 * config/i386/i386.c (ix86_adjust_cost): Likewise.
13473 * config/ia64/ia64.c: Likewise.
13474 * config/m68k/m68k.c: Likewise.
13475 * config/mep/mep.c (mep_adjust_cost): Likewise.
13476 * config/microblaze/microblaze.c (microblaze_adjust_cost):
13477 * Likewise.
13478 * config/mips/mips.c (mips_adjust_cost): Likewise.
13479 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
13480 * Likewise.
13481 * config/pa/pa.c (pa_adjust_cost): Likewise.
13482 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
13483 (rs6000_debug_adjust_cost): Likewise.
13484 * config/sh/sh.c (sh_adjust_cost): Likewise.
13485 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
13486 (hypersparc_adjust_cost): Likewise.
13487 (sparc_adjust_cost): Likewise.
13488 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
13489 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
13490 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
13491 * Likewise.
13492 * config/visium/visium.c (visium_adjust_cost): Likewise.
13493 * doc/tm.texi: Regenerate.
13494 * haifa-sched.c (dep_cost_1): Adjust.
13495 * target.def: Merge adjust_cost and adjust_cost_2.
13496
13497 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13498
13499 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
13500
13501 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13502
13503 * store-motion.c (struct st_expr): Make pattern_regs a vector.
13504 (extract_mentioned_regs): Append to a vector instead of
13505 returning a rtx_expr_list.
13506 (st_expr_entry): Adjust.
13507 (free_st_expr_entry): Likewise.
13508 (store_ops_ok): Likewise.
13509 (store_killed_in_insn): Likewise.
13510 (find_moveable_store): Likewise.
13511
13512 2016-07-28 Martin Liska <mliska@suse.cz>
13513
13514 PR gcov-profile/68025
13515 * tree-profile.c (tree_profiling): Respect
13516 no_profile_instrument_function attribute.
13517 * doc/extend.texi: Document no_profile_instrument_function
13518 attribute.
13519
13520 2016-07-28 Martin Liska <mliska@suse.cz>
13521
13522 PR rtl-optimization/70944
13523 * combine.c (make_compound_operation):
13524 Do not allow make_compound_operation for vector mode
13525
13526 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
13527
13528 PR middle-end/71994
13529 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
13530 before calling get_ops.
13531
13532 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13533
13534 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
13535 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
13536 (BITS_PER_UNIT_LOG): Remove.
13537 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
13538 * expr.c (expand_assignment): Likewise.
13539 * stor-layout.c (initialize_sizetypes): Likewise.
13540
13541 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13542
13543 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
13544 signature of rs6000_expand_vector_extract so that the element
13545 number is a RTX instead of a constant integer.
13546 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
13547 Likewise.
13548 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
13549 (altivec_expand_vec_ext_builtin): Likewise.
13550 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
13551 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
13552 MFVSRLD instruction.
13553
13554 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13555
13556 * input.c (get_pure_location): Move here from tree.c.
13557 (make_location): Likewise. Add header comment.
13558 (selftest::test_accessing_ordinary_linemaps): Verify
13559 pure_location_p, make_location, get_location_from_adhoc_loc and
13560 get_range_from_loc.
13561 * input.h (get_pure_location): Move declaration here from tree.h.
13562 (get_finish): Likewise for inline function.
13563 (make_location): Likewise for declaration.
13564 * tree.c (get_pure_location): Move to input.c.
13565 (make_location): Likewise.
13566 * tree.h (get_pure_location): Move declaration to tree.h.
13567 (get_finish): Likewise for inline function.
13568 (make_location): Likewise for declaration.
13569
13570 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13571
13572 PR middle-end/71078
13573 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
13574
13575 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13576
13577 * system.h (STATIC_ASSERT): Use static_assert if building
13578 with C++11 onwards.
13579
13580 2016-07-27 Richard Biener <rguenther@suse.de>
13581
13582 PR tree-optimization/72517
13583 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
13584 Revert change to not compute read-read dependences.
13585
13586 2016-07-27 Richard Biener <rguenther@suse.de>
13587
13588 * predict.c (set_even_probabilities): Make nedges unsigned.
13589
13590 2016-07-27 Martin Liska <mliska@suse.cz>
13591
13592 * predict.c (set_even_probabilities): Handle unlikely edges.
13593 (combine_predictions_for_bb): Likewise.
13594
13595 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13596
13597 PR target/71869
13598 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
13599 __float128 support when we don't have hardware support, so that
13600 the IEEE built-in functions like isgreater, first call __unordkf3
13601 to make sure neither operand is a NaN, and if both operands are
13602 ordered, do the normal comparison.
13603
13604 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13605
13606 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
13607 name.
13608 (extract_code_and_val_from_cond_with_ops): Verify that name is
13609 either cond_op0 or cond_op1.
13610
13611 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13612
13613 PR tree-optimization/18046
13614 * genmodes.c (emit_mode_size_inline): Emit an assert that
13615 verifies that mode is a valid array index.
13616 (emit_mode_nuinits_inline): Likewise.
13617 (emit_mode_inner_inline): Likewise.
13618 (emit_mode_unit_size_inline): Likewise.
13619 (emit_mode_unit_precision_inline): Likewise.
13620 * tree-vrp.c: Include params.h.
13621 (find_switch_asserts): Register edge assertions for the default
13622 label which correspond to the anti-ranges of each case label.
13623 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
13624 * doc/invoke.texi: Document it.
13625
13626 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13627
13628 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
13629 and unnecessary call to gimple_bb.
13630
13631 2016-07-26 Richard Biener <rguenther@suse.de>
13632
13633 PR rtl-optimization/71984
13634 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
13635 for VOIDmode.
13636
13637 2016-07-26 Richard Biener <rguenther@suse.de>
13638
13639 PR middle-end/72517
13640 * expmed.c (extract_bit_field_1): Constrain the vector mode
13641 with element size matching the extraction mode size when
13642 choosing a better vector mode to do the extraction from.
13643
13644 2016-07-26 Richard Biener <rguenther@suse.de>
13645 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13646
13647 PR middle-end/70920
13648 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
13649 pattern.
13650
13651 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13652
13653 * tree-ssa-structalias.c (struct scc_info): Change types of
13654 members to auto_sbitmap and auto_vec.
13655 (scc_info::scc_info): New constructor.
13656 (scc_info::~scc_info): New destructor.
13657 (init_scc_info): Remove.
13658 (free_scc_info): Remove.
13659 (find_indirect_cycles): Adjust.
13660 (perform_var_substitution): Likewise.
13661 (free_var_substitution_info): Likewise.
13662
13663 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13664
13665 * tree-outof-ssa.c (struct elim_graph): Change type of members
13666 to auto_vec and auto_sbitmap.
13667 (elim_graph::elim_graph): New constructor.
13668 (delete_elim_graph): Remove.
13669 (expand_phi_nodes): Adjust.
13670
13671 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13672
13673 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
13674 (new_elim_graph): Adjust.
13675 (clear_elim_graph): Likewise.
13676 (delete_elim_graph): Likewise.
13677 (elim_graph_size): Likewise.
13678 (elim_graph_add_node): Likewise.
13679 (elim_graph_add_edge): Likewise.
13680 (elim_graph_remove_succ_edge): Likewise.
13681 (eliminate_name): Likewise.
13682 (eliminate_build): Likewise.
13683 (elim_forward): Likewise.
13684 (elim_unvisited_predecessor): Likewise.
13685 (elim_backward): Likewise.
13686 (elim_create): Likewise.
13687 (eliminate_phi): Likewise.
13688 (expand_phi_nodes): Likewise.
13689
13690 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13691
13692 * bt-load.c (compute_out): Use auto_sbitmap class.
13693 (link_btr_uses): Likewise.
13694 * cfganal.c (mark_dfs_back_edges): Likewise.
13695 (post_order_compute): Likewise.
13696 (inverted_post_order_compute): Likewise.
13697 (pre_and_rev_post_order_compute_fn): Likewise.
13698 (single_pred_before_succ_order): Likewise.
13699 * cfgexpand.c (pass_expand::execute): Likewise.
13700 * cfgloop.c (verify_loop_structure): Likewise.
13701 * cfgloopmanip.c (fix_bb_placements): Likewise.
13702 (remove_path): Likewise.
13703 (update_dominators_in_loop): Likewise.
13704 * cfgrtl.c (break_superblocks): Likewise.
13705 * ddg.c (check_sccs): Likewise.
13706 (create_ddg_all_sccs): Likewise.
13707 * df-core.c (df_worklist_dataflow): Likewise.
13708 * dse.c (dse_step3): Likewise.
13709 * except.c (eh_region_outermost): Likewise.
13710 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13711 * gcse.c (prune_expressions): Likewise.
13712 (prune_insertions_deletions): Likewise.
13713 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
13714 * graph.c (draw_cfg_nodes_no_loops): Likewise.
13715 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
13716 * lcm.c (compute_earliest): Likewise.
13717 (compute_farthest): Likewise.
13718 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
13719 (unroll_loop_runtime_iterations): Likewise.
13720 (unroll_loop_stupid): Likewise.
13721 * lower-subreg.c (decompose_multiword_subregs): Likewise.
13722 * lra-lives.c: Likewise.
13723 * lra.c (lra): Likewise.
13724 * modulo-sched.c (schedule_reg_moves): Likewise.
13725 (optimize_sc): Likewise.
13726 (get_sched_window): Likewise.
13727 (sms_schedule_by_order): Likewise.
13728 (check_nodes_order): Likewise.
13729 (order_nodes_of_sccs): Likewise.
13730 (order_nodes_in_scc): Likewise.
13731 * recog.c (split_all_insns): Likewise.
13732 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13733 * reload1.c (reload): Likewise.
13734 * sched-rgn.c (haifa_find_rgns): Likewise.
13735 (split_edges): Likewise.
13736 (compute_trg_info): Likewise.
13737 * sel-sched.c (init_seqno): Likewise.
13738 * store-motion.c (remove_reachable_equiv_notes): Likewise.
13739 * tree-into-ssa.c (update_ssa): Likewise.
13740 * tree-ssa-live.c (live_worklist): Likewise.
13741 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
13742 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13743 * Likewise.
13744 (try_peel_loop): Likewise.
13745 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
13746 * Likewise.
13747 * tree-ssa-pre.c (compute_antic): Likewise.
13748 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13749 * tree-stdarg.c (reachable_at_most_once): Likewise.
13750 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13751 * var-tracking.c (vt_find_locations): Likewise.
13752
13753 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13754
13755 * sbitmap.h (auto_sbitmap): New class.
13756
13757 2016-07-26 Alan Modra <amodra@gmail.com>
13758
13759 PR target/72103
13760 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
13761 sri->t_icode.
13762
13763 2016-07-25 David Malcolm <dmalcolm@redhat.com>
13764
13765 * input.c (selftest::temp_source_file::temp_source_file): Fix
13766 missing "%s" in fprintf.
13767
13768 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
13769
13770 PR middle-end/71732
13771 * cselib.c (cselib_process_insn): Invalidate argument slots for
13772 const/pure calls.
13773
13774 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13775
13776 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13777 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13778 vmulxh_lane_f16, vmulxh_laneq_f16): New.
13779
13780 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13781
13782 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13783 * config/aarch64/aarch64.md (fma, fnma): Support HF.
13784 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13785
13786 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13787
13788 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13789 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13790 New.
13791 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13792 (add<mode>3): Likewise.
13793 (sub<mode>3): Likewise.
13794 (mul<mode>3): Likewise.
13795 (div<mode>3): Likewise.
13796 (*div<mode>3): Likewise.
13797 (<fmaxmin><mode>3): Extend to HF.
13798 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13799 (fabd<mode>3): Likewise.
13800 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13801 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13802 (aarch64_fmulx<mode>): Likewise.
13803 (aarch64_fac<optab><mode>): Likewise.
13804 (aarch64_frecps<mode>): Likewise.
13805 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13806 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13807 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13808 (VSDQ_HSDI): Support HI.
13809 (fcvt_target, FCVT_TARGET): Likewise.
13810 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13811 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13812 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13813 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13814 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13815 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13816 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13817 vrsqrtsh_f16): New.
13818
13819 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13820
13821 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13822 * config/aarch64/aarch64-builtins.c (hi_UP): New.
13823 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13824 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13825 mode.
13826 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13827 (aarch64_cm<optab><mode>): Likewise.
13828 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13829 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13830 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13831 (sqrt<mode>2): Likewise.
13832 (*sqrt<mode>2): Likewise.
13833 (abs<mode>2): Likewise.
13834 (<optab><mode>hf2): New pattern for HF mode.
13835 (<optab>hihf2): Likewise.
13836 * config/aarch64/arm_neon.h: Include arm_fp16.h.
13837 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13838 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13839 Support HF mode.
13840 * config/aarch64/arm_fp16.h: New file.
13841 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13842 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13843 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13844 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13845 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13846 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13847 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13848 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13849 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13850 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13851 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13852 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13853 vsqrth_f16): New.
13854
13855 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13856
13857 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13858 reduc_smin_scal_): Use VDQIF_F16.
13859 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13860 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13861 Use VHSDF.
13862 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13863 * config/aarch64/iterators.md (VDQIF_F16): New.
13864 (vp): Support HF modes.
13865 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13866 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13867
13868 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13869
13870 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13871 "*aarch64_mulx_elt_from_dup<mode>".
13872 (*aarch64_mul3_elt<mode>): Update schedule type.
13873 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13874 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13875 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13876 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13877 (f, fp): Support HF modes.
13878 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13879 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13880 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13881 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13882 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13883 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13884
13885 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13886
13887 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13888 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13889 modes.
13890 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13891 vfmsq_f16): New.
13892
13893 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13894
13895 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13896 * config/aarch64/aarch64-simd.md
13897 (aarch64_rsqrts<mode>): Extend to HF modes.
13898 (fabd<mode>3): Likewise.
13899 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13900 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13901 (aarch64_<maxmin_uns>p<mode>): Likewise.
13902 (<su><maxmin><mode>3): Likewise.
13903 (<maxmin_uns><mode>3): Likewise.
13904 (<fmaxmin><mode>3): Likewise.
13905 (aarch64_faddp<mode>): Likewise.
13906 (aarch64_fmulx<mode>): Likewise.
13907 (aarch64_frecps<mode>): Likewise.
13908 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13909 (add<mode>3): Extend to HF modes.
13910 (sub<mode>3): Likewise.
13911 (mul<mode>3): Likewise.
13912 (div<mode>3): Likewise.
13913 (*div<mode>3): Likewise.
13914 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13915 HF, V4HF and V8HF.
13916 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13917 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13918 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13919 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13920 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13921 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13922 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13923 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13924 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13925 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13926 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13927 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13928 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13929 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13930
13931 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13932
13933 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13934 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13935 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13936 (neg<mode>2): Likewise.
13937 (abs<mode>2): Likewise.
13938 (<frint_pattern><mode>2): Likewise.
13939 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13940 (<optab><VDQF:mode><fcvt_target>2): Likewise.
13941 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13942 (ftrunc<VDQF:mode>2): Likewise.
13943 (<optab><fcvt_target><VDQF:mode>2): Likewise.
13944 (sqrt<mode>2): Likewise.
13945 (*sqrt<mode>2): Likewise.
13946 (aarch64_frecpe<mode>): Likewise.
13947 (aarch64_cm<optab><mode>): Likewise.
13948 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13949 HF, V4HF and V8HF.
13950 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13951 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13952 (stype): New.
13953 * config/aarch64/arm_neon.h (vdup_n_f16): New.
13954 (vdupq_n_f16): Likewise.
13955 (vld1_dup_f16): Use vdup_n_f16.
13956 (vld1q_dup_f16): Use vdupq_n_f16.
13957 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13958 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13959 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13960 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13961 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13962 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13963 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13964 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13965 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13966 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13967 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13968 vsqrt_f16, vsqrtq_f16): New.
13969
13970 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13971
13972 * config/aarch64/aarch64-simd.md
13973 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13974 (aarch64_ext<mode>): Likewise.
13975 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13976 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13977 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13978 and V8HFmode.
13979 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13980 float16x8_t.
13981 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13982 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13983 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13984 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13985 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13986 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13987 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13988 New.
13989 (vmov_n_f16): Reimplement using vdup_n_f16.
13990 (vmovq_n_f16): Reimplement using vdupq_n_f16..
13991
13992 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13993
13994 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13995 "frame_related_p". Generate CFA annotation when it's necessary.
13996 (aarch64_expand_prologue): Use aarch64_add_constant.
13997 (aarch64_expand_epilogue): Likewise.
13998 (aarch64_output_mi_thunk): Pass "false" when calling
13999 aarch64_add_constant.
14000
14001 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14002
14003 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
14004 sequences.
14005
14006 2016-07-25 Jiong Wang <jiong.wang@arm.com>
14007
14008 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
14009 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
14010 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
14011 (aarch64_build_constant): Delete.
14012
14013 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
14014
14015 Revert
14016 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
14017
14018 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
14019 flag_toplevel_reorder.
14020
14021 2016-07-25 Richard Biener <rguenther@suse.de>
14022
14023 * cgraph.c (cgraph_node::verify_node): Compare against builtin
14024 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
14025 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
14026 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
14027 (streamer_get_builtin_tree): Likewise.
14028 (streamer_write_builtin): Likewise.
14029 * lto-streamer.h (LTO_builtin_decl): Remove.
14030 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
14031 (lto_input_scc): Remove LTO_builtin_decl handling.
14032 (lto_input_tree_1): Liekwise.
14033 * lto-streamer-out.c (lto_output_tree_1): Remove special
14034 handling of builtins.
14035 (DFS::DFS): Likewise.
14036 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
14037 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
14038 assert.
14039 (streamer_write_builtin): Remove.
14040
14041 2016-07-25 Martin Liska <mliska@suse.cz>
14042
14043 * lto-cgraph.c (input_symtab): Don't call get_working_sets
14044 if flag_auto_profile is set to true.
14045
14046 2016-07-25 Martin Liska <mliska@suse.cz>
14047
14048 PR gcov-profile/71868
14049 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
14050 have a function with multiple latches, count them all.
14051
14052 2016-07-25 Martin Liska <mliska@suse.cz>
14053
14054 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
14055
14056 2016-07-25 Martin Liska <mliska@suse.cz>
14057
14058 PR tree-optimization/71987
14059 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
14060 just for SSA_NAMEs. Fix GNU coding style.
14061
14062 2016-07-25 Martin Liska <mliska@suse.cz>
14063
14064 PR gcov-profile/64874
14065 * gcov-io.h: Update command about file format.
14066 * gcov-iov.c (main): Adapt the numbering scheme.
14067
14068 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14069
14070 PR middle-end/66726
14071 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
14072 whose result is used in PHI.
14073 (final_range_test_p): Likewise.
14074 (maybe_optimize_range_tests): Likewise.
14075
14076 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
14077
14078 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14079 Reformat two multi-line strings.
14080
14081 2016-07-22 Martin Sebor <msebor@redhat.com>
14082
14083 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
14084
14085 2016-07-22 Martin Sebor <msebor@redhat.com>
14086
14087 PR c/71560
14088 * doc/extend.texi (Compound Literals): Correct and clarify.
14089 (Cast to Union): Same.
14090
14091 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
14092
14093 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14094 comments to explain why certain error messages make mention of
14095 undocumented options.
14096 (rs6000_invalid_builtin): Change error messages to replace mention
14097 of undocumented options with mention of the -mcpu=power9 option
14098 that enables those undocumented options.
14099 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
14100 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
14101 definition of this macro to correct an existing error.
14102 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
14103 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
14104 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
14105 descriptions of built-in functions so that they depend on
14106 -mcpu=power9 instead of on the corresponding undocumented flags.
14107 * doc/invoke.texi (Option Summary): Remove all mention of newly
14108 undocumented flags.
14109 (IBM RS/6000 and PowerPC Options): Likewise.
14110 * doc/md.texi (Constraints for Particuliar Machines): Remove all
14111 mention of newly undocumented flags.
14112
14113 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
14114
14115 * ipa-cp.c (determine_versionability): Do not create constprop clones,
14116 when target_clones attribute is set.
14117
14118 2016-07-22 Bin Cheng <bin.cheng@arm.com>
14119
14120 * common.opt (funsafe-loop-optimizations): Mark ignore.
14121 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
14122 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
14123 related code.
14124 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
14125 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
14126
14127 2016-07-22 Bin Cheng <bin.cheng@arm.com>
14128
14129 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14130 Parameter.
14131 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14132 Parameter.
14133 (number_of_iterations_exit): Warn missed loop optimization for
14134 possible infinite loops.
14135
14136 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
14137
14138 PR target/71216
14139 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
14140 when to emit a ".machine" pseudo-op.
14141
14142 2016-07-22 Martin Liska <mliska@suse.cz>
14143
14144 PR gcov-profile/69028
14145 PR gcov-profile/62047
14146 * coverage.c (coverage_compute_lineno_checksum): Do not
14147 calculate checksum for fns w/o xloc.file.
14148 (coverage_compute_profile_id): Likewise.
14149
14150 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
14151
14152 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
14153 (avr_secondary_reload): ...and implementation.
14154 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
14155 * config/avr/avr.md (reload_in<mode>): Remove insns.
14156 (adjust_len) [lpm]: Remove insn attribute value.
14157 * config/avr/predicates.md (flash_operand): Remove insn predicate.
14158
14159 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14160
14161 PR middle-end/71876
14162 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
14163 attribute.
14164 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
14165 * calls.c (special_function_p): Remove the special handling of the
14166 "__builtin_" prefix.
14167
14168 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14169
14170 PR middle-end/71876
14171 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
14172 if STMT may be an alloca call.
14173 (gimple_alloca_call_p, alloca_call_p): Return only true for the
14174 builtin alloca call.
14175 * calls.h (gimple_maybe_alloca_call_p): New function.
14176 * tree-inline.c (inline_forbidden_p_stmt): Use
14177 gimple_maybe_alloca_call_p here.
14178
14179 2016-07-21 David Malcolm <dmalcolm@redhat.com>
14180
14181 * spellcheck-tree.c (best_macro_match::best_macro_match):
14182 Explictly specify the template arguments when invoking the base
14183 class constructor, to help older C++ compilers.
14184
14185 2016-07-21 Jakub Jelinek <jakub@redhat.com>
14186
14187 PR sanitizer/71953
14188 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
14189 before builtin_decl_implicit.
14190
14191 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
14192
14193 * optabs.c (emit_condiitonal_move): Short circuit for identical
14194 sources.
14195
14196 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
14197
14198 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
14199 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
14200 (noce_conversion_profitable_p): New.
14201 (noce_try_store_flag_constants): Use it.
14202 (noce_try_addcc): Likewise.
14203 (noce_try_store_flag_mask): Likewise.
14204 (noce_try_cmove): Likewise.
14205 (noce_try_cmove_arith): Likewise.
14206 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
14207 overwriting it.
14208 (noce_convert_multiple_sets): Move cost model to here, from...
14209 (bb_ok_for_noce_convert_multiple_sets) ...here.
14210 (noce_process_if_block): Update calls for above changes.
14211 (noce_find_if_block): Record new noce_if_info parameters.
14212
14213 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
14214
14215 * target.def (max_noce_ifcvt_seq_cost): New.
14216 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
14217 * doc/tm.texi: Regenerate.
14218 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
14219 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
14220 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
14221 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
14222 * doc/invoke.texi: Document new params.
14223
14224 2016-07-21 Richard Biener <rguenther@suse.de>
14225
14226 PR tree-optimization/71947
14227 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
14228 ranges have useful limit_vr information.
14229
14230 2016-07-21 Richard Biener <rguenther@suse.de>
14231
14232 * function-tests.c (build_trivial_generic_function): Set
14233 BLOCK_SUPERCONTEXT of DECL_INITIAL.
14234 * omp-low.c (create_omp_child_function): Likewise.
14235 (grid_expand_target_grid_body): Likewise.
14236 * cgraphunit.c (init_lowered_empty_function): Likewise.
14237 (cgraph_node::expand_thunk): Likewise.
14238 * tree-parloops.c (create_loop_fn): Likewise.
14239 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
14240
14241 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14242
14243 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
14244 in comment.
14245
14246 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
14247
14248 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
14249 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
14250 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
14251 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
14252 values for insn attribute.
14253 * config/avr/avr.c (avr_out_insert_notbit): New function.
14254 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
14255 ADJUST_LEN_INSV_NOTBIT_0/_7.
14256 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
14257
14258 2016-07-21 Bin Cheng <bin.cheng@arm.com>
14259
14260 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
14261 (chrec_convert_1, chrec_convert): Ditto.
14262 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
14263 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
14264 * tree-vrp.c (adjust_range_with_scev): Ditto.
14265 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
14266 (scev_var_range_cant_overflow): New function.
14267 (scev_probably_wraps_p): New parameter. Call above function.
14268 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
14269
14270 2016-07-21 Bin Cheng <bin.cheng@arm.com>
14271
14272 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
14273 by removing computation of may_be_zero.
14274
14275 2016-07-21 Jakub Jelinek <jakub@redhat.com>
14276
14277 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
14278
14279 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
14280
14281 Improving concepts performance and diagnostics.
14282 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
14283 for constraint satisfaction and subsumption.
14284 * timevar.h (auto_timevar): New constructor that matches the push/pop
14285 pattern of usage in pt.c.
14286
14287 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
14288
14289 * hwint.h (HOST_WIDE_INT_0): New define.
14290 (HOST_WIDE_INT_0U): Ditto.
14291 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
14292 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
14293 * simplify-rtx.c: Ditto.
14294 * tree-object-size.c: Ditto.
14295
14296 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14297
14298 * config/s390/s390.c (s390_encode_section_info): Remove mode size
14299 check.
14300
14301 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
14302
14303 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
14304 * combine.c: Use HOST_WIDE_INT_M1U instead of
14305 ~(unsigned HOST_WIDE_INT) 0.
14306 * double-int.h: Ditto.
14307 * dse.c: Ditto.
14308 * dwarf2asm.c:Ditto.
14309 * expmed.c: Ditto.
14310 * genmodes.c: Ditto.
14311 * match.pd: Ditto.
14312 * read-rtl.c: Ditto.
14313 * tree-ssa-loop-ivopts.c: Ditto.
14314 * tree-ssa-loop-prefetch.c: Ditto.
14315 * tree-vect-generic.c: Ditto.
14316 * tree-vect-patterns.c: Ditto.
14317 * tree.c: Ditto.
14318
14319 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14320
14321 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
14322 constant addresses outside [0,0xc0] into a register.
14323 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
14324 cases where the base address register is unused after.
14325 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
14326 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
14327 (avr_out_store_psi_reg_disp_tiny): Same.
14328
14329 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14330
14331 Implement attribute progmem on reduced Tiny cores by adding
14332 flash offset 0x4000 to respective symbols.
14333
14334 PR target/71948
14335 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
14336 documentation how it works on reduced Tiny cores.
14337 (AVR Named Address Spaces): No support for reduced Tiny.
14338 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
14339 (avr_address_tiny_pm_p): New static function.
14340 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
14341 if the address is in progmem.
14342 (avr_assemble_integer): Same.
14343 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
14344 for symbol_ref in progmem.
14345 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
14346 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
14347 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
14348
14349 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
14350
14351 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
14352 * configure: Regenerate.
14353 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
14354 (USE_THIN_ARCHIVES): New variable.
14355 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
14356 this archive as a thin archive.
14357
14358 2016-07-20 David Malcolm <dmalcolm@redhat.com>
14359
14360 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
14361 same location as last time, don't skip if we have fix-it hints.
14362 Clarify the skipping logic by converting it from one "if" clause
14363 to repeated "if" clauses.
14364 * spellcheck-tree.c: Include "cpplib.h".
14365 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
14366 (best_macro_match::best_macro_match): New constructor.
14367 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
14368 Move here from c/c-decl.c.
14369 (class best_macro_match): Move here from c/c-decl.c, converting
14370 from a typedef to a subclass, gaining a ctor.
14371
14372 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14373
14374 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
14375 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
14376 define...
14377 (avr_addr_space_diagnose_usage): ...and implementation.
14378 (avr_addr_space_supported_p): New function.
14379 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
14380 report bad address space usage if that space is supported.
14381 (avr_insert_attributes): Same. No more complain about unsupported
14382 address spaces.
14383 * config/avr/avr-c.c (tm_p.h): Include it.
14384 (avr_cpu_cpp_builtins): Only define addr-space related built-in
14385 macro if avr_addr_space_supported_p.
14386
14387 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
14388
14389 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
14390 flag_toplevel_reorder.
14391
14392 2016-07-20 David Malcolm <dmalcolm@redhat.com>
14393
14394 * gcc-rich-location.c
14395 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
14396 a const char *.
14397 * gcc-rich-location.h
14398 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
14399
14400 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14401
14402 * target.def (addr_space): Add new diagnose_usage to hook vector.
14403 * targhooks.c (default_addr_space_diagnose_usage): Add default
14404 implementation and...
14405 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
14406 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
14407 is some address space, call targetm.addr_space.diagnose_usage.
14408 * doc/tm.texi.in (Named Address Spaces): Add anchor for
14409 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
14410 * doc/tm.texi: Regenerate.
14411
14412 2016-07-20 Martin Liska <mliska@suse.cz>
14413
14414 PR middle-end/71898
14415 * graphite-isl-ast-to-gimple.c (later_of_the_two):
14416 Properly handly PHI stmts.
14417
14418 2016-07-20 Bin Cheng <bin.cheng@arm.com>
14419
14420 PR tree-optimization/71503
14421 PR tree-optimization/71683
14422 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
14423 and break.
14424
14425 2016-07-20 Martin Liska <mliska@suse.cz>
14426
14427 * doc/invoke.texi (-fipa-ra): Document when the option is
14428 disabled. Fix a typo.
14429
14430 2016-07-20 Martin Liska <mliska@suse.cz>
14431
14432 * Makefile.in: Include fibonacci_heap.c
14433 * fibonacci_heap.c: New file.
14434 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
14435 (fibonacci_heap::union_with): Fix deletion of the second heap.
14436 * selftest-run-tests.c (selftest::run_tests): Incorporate
14437 fibonacci heap tests.
14438 * selftest.h: Declare fibonacci_heap_c_tests.
14439
14440 2016-07-20 Martin Liska <mliska@suse.cz>
14441
14442 * selftest-run-tests.c (selftest::run_tests): New function.
14443 * selftest.h (sreal_c_tests): Declare.
14444 * sreal.c (sreal_verify_basics): New function.
14445 (verify_aritmetics): Likewise.
14446 (sreal_verify_arithmetics): Likewise.
14447 (verify_shifting): Likewise.
14448 (sreal_verify_shifting): Likewise.
14449 (void sreal_c_tests): Likewise.
14450
14451 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14452
14453 PR rtl-optimization/71916
14454 * cfgrtl.c (contains_no_active_insn_p): Return false also for
14455 bb which have a single succ fake edge.
14456
14457 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
14458
14459 PR debug/71855
14460 * dwarf2out.c (gen_subprogram_die): Only call
14461 gen_unspecified_parameters_die while dumping early dwarf.
14462
14463 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14464
14465 PR middle-end/71874
14466 * gimple-fold.c (fold_builtin_memory_op): Use
14467 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
14468
14469 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
14470
14471 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
14472 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
14473 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
14474 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
14475 * combine.c: Ditto.
14476 * cse.c: Ditto.
14477 * dojump.c: Ditto.
14478 * double-int.c: Ditto.
14479 * dse.c: Ditto.
14480 * dwarf2out.c: Ditto.
14481 * expmed.c: Ditto.
14482 * expr.c: Ditto.
14483 * fold-const.c: Ditto.
14484 * function.c: Ditto.
14485 * fwprop.c: Ditto.
14486 * genmodes.c: Ditto.
14487 * hwint.c: Ditto.
14488 * hwint.h: Ditto.
14489 * ifcvt.c: Ditto.
14490 * loop-doloop.c: Ditto.
14491 * loop-invariant.c: Ditto.
14492 * loop-iv.c: Ditto.
14493 * match.pd: Ditto.
14494 * optabs.c: Ditto.
14495 * real.c: Ditto.
14496 * reload.c: Ditto.
14497 * rtlanal.c: Ditto.
14498 * simplify-rtx.c: Ditto.
14499 * stor-layout.c: Ditto.
14500 * toplev.c: Ditto.
14501 * tree-ssa-loop-ivopts.c: Ditto.
14502 * tree-vect-generic.c: Ditto.
14503 * tree-vect-patterns.c: Ditto.
14504 * tree.c: Ditto.
14505 * tree.h: Ditto.
14506 * ubsan.c: Ditto.
14507 * varasm.c: Ditto.
14508 * wide-int-print.cc: Ditto.
14509 * wide-int.cc: Ditto.
14510 * wide-int.h: Ditto.
14511
14512 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14513
14514 * selftest.c (selftest::assert_streq): Handle NULL values of
14515 val_actual and val_expected.
14516
14517 2016-07-19 Martin Jambor <mjambor@suse.cz>
14518
14519 PR fortran/71688
14520 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
14521 rather than cgraph_create_node to get a call graph node.
14522
14523 2016-07-19 Richard Biener <rguenther@suse.de>
14524
14525 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
14526 handle all tcc_constant bases and valueize SSA names.
14527 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
14528 tcc_constant bases.
14529
14530 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14531
14532 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
14533 the flags of the exit block and bb2, not just the entry block.
14534
14535 2016-07-19 Richard Biener <rguenther@suse.de>
14536
14537 PR tree-optimization/71901
14538 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14539 align member, group stuff with the bitfield.
14540 (vn_ref_op_align_unit): New inline.
14541 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
14542 record element alignment and operand 3 unchanged.
14543 (ao_ref_init_from_vn_reference): Adjust.
14544 (valueize_refs_1): Likewise.
14545 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14546
14547 2016-07-19 Richard Biener <rguenther@suse.de>
14548
14549 PR tree-optimization/71908
14550 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
14551 symbolic constants in a more reliable way.
14552
14553 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
14554
14555 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
14556 comment.
14557 (vect_update_inits_of_drs): Likewise.
14558 (vect_create_cond_for_alias_checks): Likewise.
14559 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
14560
14561 2016-07-19 Richard Biener <rguenther@suse.de>
14562
14563 PR lto/71907
14564 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
14565 with an abstract origin that is not an inlined function outer
14566 scope add a self-reference as abstract origin.
14567 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
14568
14569 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14570
14571 PR target/71493
14572 * config/rs6000/rs6000.c (rs6000_function_value): Fix
14573 unintentional System V.4 structure return breakage for structures
14574 with a single floating point element.
14575
14576 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14577
14578 PR tree-optimization/71734
14579 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
14580 contains REF, use it to check safelen, assume that safelen value
14581 must be greater 1, fix style.
14582 (ref_indep_loop_p_2): Add REF_LOOP argument.
14583 (ref_indep_loop_p): Pass LOOP as additional argument to
14584 ref_indep_loop_p_2.
14585
14586 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
14587
14588 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
14589 allocation in the prologue.
14590 * explow.c (get_dynamic_stack_base): New function to return an address
14591 expression for the dynamic stack base.
14592 (get_dynamic_stack_size): New function to do the required dynamic stack
14593 space size calculations.
14594 (allocate_dynamic_stack_space): Use new functions.
14595 (align_dynamic_address): Move some code from
14596 allocate_dynamic_stack_space to new function.
14597 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
14598
14599 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14600
14601 * config/s390/s390.c (s390_encode_section_info): Always set
14602 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
14603 found.
14604
14605 2016-07-18 Richard Biener <rguenther@suse.de>
14606
14607 PR tree-optimization/71893
14608 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
14609 for sizetype cast added by array_ref_element_size.
14610 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14611
14612 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
14613
14614 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
14615 register parameters. Remove code to initialize argument pointer
14616 on TARGET_64BIT. Optimize call to _mcount when it can be reached
14617 using a pc-relative branch. Cleanup conditional code.
14618 * config/pa/pa.md (call_mcount): New expander.
14619 (call_mcount_nonpic): New insn.
14620 (call_mcount_pic): New insn and split.
14621 (call_mcount_pic_post_reload): New insn.
14622 (call_mcount_64bit): New insn and split.
14623 (call_mcount_64bit_post_reload): New insn.
14624
14625 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
14626
14627 * config/avr/predicates.md (const_m255_to_m1_operand): New.
14628 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
14629 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
14630 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
14631 (*usum_widenqihi3, *udiff_widenqihi3)
14632 (*addhi3_zero_extend.const): New combiner insns.
14633 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
14634 just 1 bit is affected.
14635 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
14636 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
14637
14638 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
14639
14640 * omp-low.c (lower_omp_target): Mark data clauses with
14641 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
14642 zero-length subarrays.
14643
14644 2016-07-15 Richard Biener <rguenther@suse.de>
14645
14646 PR tree-optimization/71881
14647 * tree-loop-distribution.c (destroy_loop): Remove blocks in
14648 reverse DOM order to make debug temp generation happy.
14649
14650 2016-07-15 Richard Biener <rguenther@suse.de>
14651
14652 PR tree-optimization/71887
14653 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
14654 verify it is not zero for division / modulo handling.
14655 (value_replacement): Adjust.
14656
14657 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
14658 Julian Brown <julian@codesourcery.com>
14659
14660 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
14661 * config/aarch64/aarch64-cost-tables.h
14662 (vulcan_extra_costs): New variable.
14663 * config/aarch64/aarch64.c
14664 (vulcan_addrcost_table): Likewise.
14665 (vulcan_regmove_cost): Likewise.
14666 (vulcan_vector_cost): Likewise.
14667 (vulcan_branch_cost): Likewise.
14668 (vulcan_tunings): Likewise.
14669
14670 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
14671
14672 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
14673 (output_in_order): Loop over undefined variables too. Output them
14674 via assemble_undefined_decl. Skip variables that correspond to hard
14675 registers or have value-exprs.
14676 * varpool.c (symbol_table::output_variables): Handle undefined
14677 variables together with defined ones.
14678
14679 2016-07-15 Richard Biener <rguenther@suse.de>
14680
14681 * tree-ssa-pre.c (get_representative_for): Make sure to return
14682 the value number of SSA names.
14683 (phi_translate_1): get_representative_for cannot return NULL.
14684 (do_pre_regular_insertion): Remove redundant call to
14685 fully_constant_expression.
14686 (do_pre_partial_partial_insertion): Likewise.
14687
14688 2016-07-15 Bin Cheng <bin.cheng@arm.com>
14689
14690 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
14691 (derive_simple_iv_with_niters): New function.
14692 (simple_iv): Rewrite using simple_iv_with_niters.
14693 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
14694 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14695 function.
14696 (number_of_iterations_exit): Rewrite using above function.
14697 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14698 Decl.
14699
14700 2016-07-15 Richard Biener <rguenther@suse.de>
14701
14702 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
14703 vec_construct cost.
14704
14705 2016-07-14 Jakub Jelinek <jakub@redhat.com>
14706
14707 PR tree-optimization/71872
14708 * tree-data-ref.c (get_references_in_stmt): Ignore references
14709 with is_gimple_constant get_base_address.
14710
14711 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14712
14713 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
14714 (TARGET_HAVE_LDACQD): New macro.
14715 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
14716 than TARGET_HAVE_LDACQ.
14717 (arm_load_acquire_exclusivedi): Likewise.
14718 (arm_store_release_exclusivedi): Likewise.
14719
14720 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14721
14722 PR rtl-optimization/71878
14723 * lra-constraints.c (match_reload): Pass information about other
14724 output operands. Create new unique register value if matching input
14725 operand shares same register value as output operand being considered.
14726 (curr_insn_transform): Record output operands already processed.
14727
14728 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14729
14730 PR target/65951
14731 PR tree-optimization/70923
14732 * tree-vect-patterns.c: Include mult-synthesis.h.
14733 (target_supports_mult_synth_alg): New function.
14734 (synth_lshift_by_additions): Likewise.
14735 (apply_binop_and_append_stmt): Likewise.
14736 (vect_synth_mult_by_constant): Likewise.
14737 (target_has_vecop_for_code): Likewise.
14738 (vect_recog_mult_pattern): Use above functions to synthesize vector
14739 multiplication by integer constants.
14740
14741 2016-07-14 Alan Modra <amodra@gmail.com>
14742
14743 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
14744 gpr alternatives. Correct '*' placement on Y,r alternative.
14745 Add '*' on operand 1 of r,r alternative.
14746
14747 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14748
14749 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
14750 * expmed.h: ... Here.
14751
14752 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
14753
14754 * gimple.h (stmt_can_terminate_bb_p): New function.
14755 * tree-cfg.c (need_fake_edge_p): Rename to ...
14756 (stmt_can_terminate_bb_p): ... this; return true if stmt can
14757 throw external; handle const and pure calls.
14758 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
14759
14760 2016-07-14 Richard Biener <rguenther@suse.de>
14761
14762 PR tree-optimization/71866
14763 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
14764 (do_hoist_insertion): Avoid endless recursion when we
14765 didn't insert anything because we managed to simplify
14766 things down to a constant or SSA name.
14767 (fully_constant_expression): Re-write in terms of ...
14768 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
14769 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14770 vn_nary_build_or_lookup_1.
14771 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14772 (vn_nary_build_or_lookup): ... this which now wraps it.
14773
14774 2016-07-14 Alan Modra <amodra@gmail.com>
14775
14776 PR target/71733
14777 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14778 with p9_vector override before power9-dform override.
14779
14780 2016-07-13 Andi Kleen <ak@linux.intel.com>
14781
14782 * value-prof.c (gimple_value_profile_transformations): Don't run
14783 when auto_profile is on.
14784
14785 2016-07-13 Andi Kleen <ak@linux.intel.com>
14786
14787 * auto-profile.c (update_inlined_ind_target,
14788 afdo_indirect_call): Print information to dump file.
14789
14790 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
14791
14792 * genrecog.c (special_predicate_operand_p): New function.
14793 (predicate_name): Move function.
14794 (validate_pattern): Don't warn about missing mode for all
14795 define_special_predicate predicates.
14796
14797 2016-07-13 Bin Cheng <bin.cheng@arm.com>
14798
14799 * tree-vect-data-refs.c (vect_no_alias_p): New function.
14800 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14801 resolve alias checks which are known at compilation time.
14802 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14803 alias checks are resolved. Move dump info for too many runtime
14804 alias checks to here...
14805 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14806
14807 2016-07-13 Richard Biener <rguenther@suse.de>
14808
14809 PR tree-optimization/24574
14810 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14811 position and add shift, rotate, divison and modulo support
14812 for left zero.
14813 (value_replacement): Pass in argument position to absorbing_element_p.
14814
14815 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
14816
14817 PR ipa/71633
14818 * ipa-inline-transform.c (inline_call): Support
14819 instrumented thunks.
14820
14821 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14822
14823 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14824 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14825 divide feature.
14826 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14827 Baseline. Make initial alternative TARGET_32BIT only.
14828 (udivsi3): Likewise.
14829 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14830 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14831 target.
14832
14833 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14834
14835 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14836 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14837 availability with TARGET_HAVE_MOVT.
14838 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14839 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14840 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14841 UINTVAL.
14842 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14843 extra instruction if MOVW is available. Use a cost variable
14844 incremented by COSTS_N_INSNS (1) when the condition match rather than
14845 returning an arithmetic expression based on COSTS_N_INSNS. Make
14846 constant with bottom half word zero cost 2 instruction if MOVW is
14847 available.
14848 * config/arm/arm.md (define_attr "arch"): Add v8mb.
14849 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14850 target is ARMv8-M Baseline.
14851 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14852 (arm_movtas_ze): Likewise.
14853 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14854 alternative for constants satisfying j constraint.
14855 (thumb1_movsi_insn): Likewise.
14856 (movsi splitter for K alternative): Tighten condition to not trigger
14857 if movt is available and j constraint is satisfied.
14858 (Pe immediate splitter): Likewise.
14859 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14860 constant fitting in an halfword to use MOVW.
14861 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14862 effective target.
14863
14864 2016-07-13 Richard Biener <rguenther@suse.de>
14865
14866 PR middle-end/71104
14867 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14868 gimplifying the LHS. Make sure to gimplify a returning twice
14869 call LHS without using SSA names.
14870
14871 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14872
14873 * tree-data-ref.c (find_data_references_in_stmt): Remove
14874 unnecessary call to vec::release.
14875 (graphite_find_data_references_in_stmt): Likewise.
14876 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14877 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14878
14879 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14880
14881 * cfgexpand.c (expand_used_vars): Make the type of a local
14882 variable auto_vec.
14883 * genmatch.c (lower_for): Likewise.
14884 * haifa-sched.c (haifa_sched_init): Likewise.
14885 (add_to_speculative_block): Likewise.
14886 (create_check_block_twin): Likewise.
14887 * predict.c (handle_missing_profiles): Likewise.
14888 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14889 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14890 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14891 Likewise.
14892 (maybe_lower_iteration_bound): Likewise.
14893 * tree-ssa-sccvn.c (DFS): Likewise.
14894 * tree-stdarg.c (reachable_at_most_once): Likewise.
14895 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14896 (vectorizable_store): Likewise.
14897
14898 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14899
14900 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14901 (sccvn_dom_walker): make cond_stack an auto_vec.
14902
14903 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14904
14905 * ree.c (struct ext_state): Make type of members auto_vec.
14906 (find_and_remove_re): Adjust.
14907
14908 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14909
14910 * cfgexpand.c (struct stack_vars_data): Make type of fields
14911 auto_vec.
14912 (expand_used_vars): Adjust.
14913
14914 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14915
14916 * ipa.c (record_cdtor_fn): Adjust.
14917 (build_cdtor_fns): Likewise.
14918 (ipa_cdtor_merge): Make static_ctors and static_dtors local
14919 variables.
14920
14921 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14922
14923 * genextract.c (struct accum_extract): Add constructor and make
14924 members auto_vec.
14925 (gen_insn): Adjust.
14926
14927 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14928
14929 * tree.c (struct free_lang_data_d): Add constructor and change
14930 types of members to ones that automatically manage resources.
14931 (fld_worklist_push): Adjust.
14932 (find_decls_types): Likewise.
14933 (find_decls_types_in_eh_region): Likewise.
14934 (free_lang_data_in_cgraph): Stop manually creating and
14935 destroying members of free_lang_data_d.
14936
14937 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
14938
14939 PR rtl-optimization/68961
14940 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14941 peephole variant. Use sse_reg_operand predicates.
14942
14943 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
14944
14945 * config/i386/predicates.md (x86_64_immediate_operand)
14946 <case CONST_INT>: Remove unneeded truncation to DImode.
14947 <case CONST>: Ditto.
14948 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14949
14950 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14951
14952 PR target/71805
14953 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14954 The xxperm and xxpermr instructions require that the 2nd input
14955 operand overlap with the output operand, and not the 1st.
14956 (altivec_vperm_v8hiv16qi): Likewise.
14957 (altivec_vperm_<mode>_uns_internal): Likewise.
14958 (altivec_vpermr_<mode>_internal): Likewise.
14959 (vperm_v8hiv4si): Likewise.
14960 (vperm_v16qiv8hi): Likewise.
14961
14962 2016-07-12 Nathan Sidwell <nathan@acm.org>
14963
14964 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14965 when -mno-pic-data-is-text-relative is in effect, by default.
14966 * doc/invoke.texi (mpic-data-is-text-relative): Document new
14967 behavior and clarify.
14968
14969 2016-07-12 Martin Liska <mliska@suse.cz>
14970
14971 * params.def: Add avg-loop niter.
14972 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14973 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14974 * doc/invoke.texi: Document the new parameter.
14975
14976 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14977
14978 PR middle-end/71700
14979 * expr.c (store_constructor): Mask sign-extended bits when widening
14980 sub-word constructor element at the start of a word.
14981
14982 2016-07-12 Martin Liska <mliska@suse.cz>
14983
14984 * Makefile.in: Append rule for params-options.h.
14985 * params-options.h: New file.
14986
14987 2016-07-12 Martin Liska <mliska@suse.cz>
14988
14989 * ira-build.c (mark_loops_for_removal): Properly iterate
14990 loops.
14991
14992 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
14993 Richard Biener <rguenther@suse.de>
14994
14995 PR tree-optimization/23286
14996 PR tree-optimization/70159
14997 * doc/invoke.texi: Document -fcode-hoisting.
14998 * common.opt (fcode-hoisting): New flag.
14999 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
15000 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
15001 (do_regular_insertion): Rename to ...
15002 (do_pre_regular_insertion): ... this and amend general comments
15003 on insertion strathegy.
15004 (do_partial_partial_insertion): Rename to ...
15005 (do_pre_partial_partial_insertion): ... this.
15006 (do_hoist_insertion): New function.
15007 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
15008 and call do_hoist_insertion properly.
15009 (insert): Adjust.
15010 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
15011 (pass_pre::execute): Register hoist_insert stats.
15012
15013 2016-07-12 Jakub Jelinek <jakub@redhat.com>
15014
15015 PR middle-end/71716
15016 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
15017 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
15018 is different from mode's bitsize. Small cleanup.
15019
15020 2016-07-12 Richard Biener <rguenther@suse.de>
15021
15022 PR rtl-optimization/68961
15023 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
15024 to simplify to a non-constant.
15025
15026 2016-07-11 Jakub Jelinek <jakub@redhat.com>
15027
15028 PR middle-end/71758
15029 * omp-low.c (expand_omp_target): Gimplify device.
15030
15031 PR tree-optimization/71823
15032 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
15033 to get vec_oprnds2 from op2.
15034
15035 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
15036
15037 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
15038 Hoist common subexpressions.
15039 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
15040
15041 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
15042
15043 PR target/71800
15044 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
15045 prevent generation of 'stxsiwx' on pre Power8 hardware.
15046
15047 2016-07-11 David Malcolm <dmalcolm@redhat.com>
15048
15049 * input.c: Include cpplib.h.
15050 (selftest::temp_source_file): New class.
15051 (selftest::temp_source_file::temp_source_file): New ctor.
15052 (selftest::temp_source_file::~temp_source_file): New dtor.
15053 (selftest::should_have_column_data_p): New function.
15054 (selftest::test_should_have_column_data_p): New function.
15055 (selftest::temp_line_table): New class.
15056 (selftest::temp_line_table::temp_line_table): New ctor.
15057 (selftest::temp_line_table::~temp_line_table): New dtor.
15058 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
15059 it to create a temp_line_table.
15060 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
15061 locations that are known to have column data.
15062 (selftest::line_table_case): New struct.
15063 (selftest::test_reading_source_line): Move tempfile handling
15064 to class temp_source_file.
15065 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
15066 (selftest::assert_token_loc_eq): New function.
15067 (ASSERT_TOKEN_LOC_EQ): New macro.
15068 (selftest::test_lexer): New function.
15069 (selftest::boundary_locations): New array.
15070 (selftest::input_c_tests): Call test_should_have_column_data_p.
15071 Loop over a test matrix of interesting values of location and
15072 default_range_bits, calling test_lexer on each case in the matrix.
15073 Move call to test_accessing_ordinary_linemaps into the matrix.
15074 * selftest.h (ASSERT_EQ): Reimplement in terms of...
15075 (ASSERT_EQ_AT): New macro.
15076
15077 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
15078
15079 PR target/71801
15080 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
15081 Don't convert TImode in debug insn.
15082
15083 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15084
15085 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
15086 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
15087 (tree_type_common::lang_flag_7): New.
15088 (tree_type_common::spare): Reduce size.
15089 * tree.h (TYPE_ALIGN_OK): Remove.
15090 (TYPE_LANG_FLAG_7): New.
15091 (get_inner_reference): Adjust header.
15092 * print-tree.c (print_node): Adjust.
15093 * expr.c (get_inner_reference): Remove parameter keep_aligning.
15094 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
15095 calls to get_inner_reference.
15096 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
15097 handling of TYPE_ALIGN_OK.
15098 * builtins.c (get_object_alignment_2): Adjust call to
15099 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
15100 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
15101 TYPE_ALIGN_OK.
15102 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
15103 * cfgexpand.c (expand_debug_expr): Likewise.
15104 * dbxout.c (dbxout_expand_expr): Likewise.
15105 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
15106 loc_list_from_tree, fortran_common): Likewise.
15107 * fold-const.c (optimize_bit_field_compare,
15108 decode_field_reference, fold_unary_loc, fold_comparison,
15109 split_address_to_core_and_offset): Likewise.
15110 * gimple-laddress.c (execute): Likewise.
15111 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
15112 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
15113 * hsa-gen.c (gen_hsa_addr): Likewise.
15114 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
15115 * tsan.c (instrument_expr): Likewise.
15116 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
15117 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
15118 * tree-affine.c (tree_to_aff_combination,
15119 get_inner_reference_aff): Adjust calls to get_inner_reference.
15120 * tree-data-ref.c (split_constant_offset_1,
15121 dr_analyze_innermost): Likewise.
15122 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
15123 * tree-sra.c (ipa_sra_check_caller): Likewise.
15124 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
15125 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
15126 bswap_replace): Likewise.
15127 * tree-vect-data-refs.c (vect_check_gather,
15128 vect_analyze_data_refs): Likewise.
15129 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
15130 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
15131 TYPE_ALIGN_OK.
15132
15133 2016-07-11 David Malcolm <dmalcolm@redhat.com>
15134
15135 * Makefile.in (selftest-valgrind): New phony target.
15136 * function-tests.c (selftest::build_cfg): Delete pass instances
15137 created by the test.
15138 (selftest::convert_to_ssa): Likewise.
15139 (selftest::test_expansion_to_rtl): Likewise.
15140 * tree-cfg.c (selftest::test_linear_chain): Release dominator
15141 vectors.
15142 (selftest::test_diamond): Likewise.
15143
15144 2016-07-11 Richard Biener <rguenther@suse.de>
15145
15146 PR tree-optimization/71816
15147 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
15148 than replacing all of its operands.
15149
15150 2016-07-11 Alan Modra <amodra@gmail.com>
15151
15152 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
15153 (ctr<mode>): Add unspec.
15154 (ctr<mode>_internal*): Likewise.
15155
15156 2016-07-08 James Bowman <james.bowman@ftdichip.com>
15157
15158 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
15159 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
15160
15161 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
15162
15163 PR rtl-optimization/71621
15164 * lra-constraints.c (process_alt_operands): Check combination of
15165 reg class and mode.
15166
15167 2016-07-08 Jason Merrill <jason@redhat.com>
15168 Richard Biener <rguenther@suse.de>
15169
15170 P0145: Refining Expression Order for C++.
15171 * gimplify.c (initial_rhs_predicate_for): New.
15172 (gimplfy_modify_expr): Gimplify RHS before LHS.
15173
15174 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15175
15176 PR target/71297
15177 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15178 Allow standard error handling to take over when a wrong number
15179 of arguments is presented to __builtin_vec_ld () or
15180 __builtin_vec_st ().
15181
15182 2016-07-08 Jiong Wang <jiong.wang@arm.com>
15183
15184 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
15185 variants.
15186 (smin): Likewise.
15187 (fmax): New entry.
15188 (fmin): Likewise.
15189 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
15190 __builtin_aarch64_fmaxv2sf.
15191 (vmaxnmq_f32): Likewise.
15192 (vmaxnmq_f64): Likewise.
15193 (vminnm_f32): Likewise.
15194 (vminnmq_f32): Likewise.
15195 (vminnmq_f64): Likewise.
15196
15197 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15198
15199 PR target/71806
15200 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
15201 enable -mfloat128-hardware by default.
15202 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
15203 that IEEE 128-bit hardware support needs.
15204 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
15205 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
15206 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
15207 floating point requires.
15208 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15209 -mfloat128 and -mfloat128-hardware changes.
15210
15211 2016-07-08 Alan Hayward <alan.hayward@arm.com>
15212
15213 PR tree-optimization/71667
15214 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
15215
15216 2016-07-08 Martin Liska <mliska@suse.cz>
15217
15218 PR middle-end/71606
15219 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
15220 folding produces SAVE_EXPRs, thus return false for the type.
15221
15222 2016-07-07 Martin Liska <mliska@suse.cz>
15223
15224 * file-find.c (remove_prefix): New function.
15225 * file-find.h (remove_prefix): Declare the function.
15226 * gcc-ar.c (main): Skip a folder of the wrapper if
15227 a wrapped binary would point to the same file.
15228
15229 2016-07-07 Jan Hubicka <jh@suse.cz>
15230
15231 * tree-scalar-evolution.c (iv_can_overflow_p): export.
15232 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
15233 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
15234
15235 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
15236
15237 PR ipa/71624
15238 * ipa-inline-analysis.c (compute_inline_parameters): Set
15239 local.can_change_signature to false for intrumentation
15240 thunk callees.
15241
15242 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15243
15244 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
15245 with TARGET_HAVE_MOVT.
15246 (TARGET_HAVE_MOVT): Define.
15247 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
15248 availability with TARGET_HAVE_MOVT.
15249 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
15250 availability.
15251 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
15252 TARGET_THUMB2.
15253 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
15254 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
15255 * config/arm/constraints.md (define_constraint "j"): Use
15256 TARGET_HAVE_MOVT to check MOVT availability.
15257
15258 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15259
15260 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
15261
15262 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15263
15264 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
15265 (armv8-m.main): Likewise.
15266 (armv8-m.main+dsp): Likewise.
15267 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
15268 (FL_FOR_ARCH8M_MAIN): Likewise.
15269 * config/arm/arm-tables.opt: Regenerate.
15270 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
15271 armv8-m.main+dsp to BE8_LINK_SPEC.
15272 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
15273 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
15274 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
15275 Baseline and Mainline.
15276 (arm_option_override_internal): Also disable arm_restrict_it when
15277 !arm_arch_notm. Update comment for -munaligned-access to also cover
15278 ARMv8-M Baseline.
15279 (arm_file_start): Increase buffer size for printing architecture name.
15280 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
15281 and armv8-m.main+dsp.
15282 (mno-unaligned-access): Clarify that this is disabled by default for
15283 ARMv8-M Baseline architectures as well.
15284
15285 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15286
15287 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
15288 decide whether to prevent some libgcc routines being included for some
15289 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
15290 link between this condition and the one in
15291 libgcc/config/arm/lib1func.S.
15292
15293 2016-07-07 Richard Biener <rguenther@suse.de>
15294
15295 * tree-ssa-pre.c: Include alias.h.
15296 (compute_avail): If we have multiple VN_REFERENCEs with the
15297 same hashtable entry adjust that to make it a valid replacement
15298 for all of them with respect to alignment and aliasing
15299 when doing insertion.
15300 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
15301 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
15302
15303 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
15304
15305 PR target/70098
15306 PR target/71763
15307 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
15308 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
15309 constraint.
15310
15311 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15312
15313 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
15314 (adjust_mems): Adjust.
15315 (adjust_insn): Likewise.
15316 (prepare_call_arguments): Likewise.
15317
15318 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15319
15320 * gcse.c (struct ls_expr): Make stores field a vector.
15321 (ldst_entry): Adjust.
15322 (free_ldst_entry): Likewise.
15323 (print_ldst_list): Likewise.
15324 (compute_ld_motion_mems): Likewise.
15325 (update_ld_motion_stores): Likewise.
15326
15327 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15328
15329 * gcse.c (struct ls_expr): Remove loads field.
15330 (ldst_entry): Adjust.
15331 (free_ldst_entry): Likewise.
15332 (print_ldst_list): Likewise.
15333 (compute_ld_motion_mems): Likewise.
15334
15335 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15336
15337 * store-motion.c (struct st_expr): Make antic_stores a vector.
15338 (st_expr_entry): Adjust.
15339 (free_st_expr_entry): Likewise.
15340 (print_store_motion_mems): Likewise.
15341 (find_moveable_store): Likewise.
15342 (compute_store_table): Likewise.
15343 (remove_reachable_equiv_notes): Likewise.
15344 (replace_store_insn): Likewise.
15345 (build_store_vectors): Likewise.
15346
15347 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15348
15349 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
15350 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
15351
15352 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
15353
15354 PR tree-optimization/71518
15355 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
15356 misalign also for outer loops with negative step.
15357
15358 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
15359
15360 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
15361 (cortex_a53_shift): Add mov_shift.
15362 (cortex_a53_shift_reg): Add new reservation for register shifts.
15363 (cortex_a53_alu): Remove bfm.
15364 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
15365 (cortex_a53_alu_extr): Add new reservation for EXTR.
15366 (bypasses): Improve bypass modelling.
15367
15368 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15369
15370 PR target/50739
15371 * config/avr/avr.c (avr_asm_select_section): Strip off
15372 SECTION_DECLARED from flags when calling get_section.
15373
15374 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15375
15376 * tree-vectorizer.h (vect_memory_access_type): Add
15377 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
15378 * tree-vect-stmts.c (compare_step_with_zero): New function.
15379 (perm_mask_for_reverse): Move further up file.
15380 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
15381 step is negative.
15382 (get_negative_load_store_type): New function.
15383 (get_load_store_type): Call it. Add an ncopies argument.
15384 (vectorizable_mask_load_store): Update call accordingly and
15385 remove tests for negative steps.
15386 (vectorizable_store, vectorizable_load): Likewise. Handle new
15387 memory_access_types.
15388
15389 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15390
15391 * tree-vectorizer.h (vect_memory_access_type): New enum.
15392 (_stmt_vec_info): Add a memory_access_type field.
15393 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
15394 (vect_model_store_cost): Take an access type instead of a boolean.
15395 (vect_model_load_cost): Likewise.
15396 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
15397 vect_model_store_cost and vect_model_load_cost.
15398 * tree-vect-stmts.c (vec_load_store_type): New enum.
15399 (vect_model_store_cost): Take an access type instead of a
15400 store_lanes_p boolean. Simplify tests.
15401 (vect_model_load_cost): Likewise, but for load_lanes_p.
15402 (get_group_load_store_type, get_load_store_type): New functions.
15403 (vectorizable_store): Use get_load_store_type. Record the access
15404 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
15405 (vectorizable_load): Likewise.
15406 (vectorizable_mask_load_store): Likewise. Replace is_store
15407 variable with vls_type.
15408
15409 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15410
15411 * tree-vectorizer.h (vect_grouped_load_supported): Add a
15412 single_element_p parameter.
15413 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
15414 Check the PR65518 case here rather than in vectorizable_load.
15415 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
15416 * tree-vect-stmts.c (vectorizable_load): Likewise.
15417
15418 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15419
15420 * tree-vectorizer.h (gather_scatter_info): New structure.
15421 (vect_check_gather_scatter): Return a bool rather than a decl.
15422 Replace return-by-pointer arguments with a single
15423 gather_scatter_info *.
15424 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
15425 (vect_analyze_data_refs): Update call accordingly.
15426 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15427 (vectorizable_mask_load_store): Likewise. Also record the
15428 offset dt and vectype in the gather_scatter_info.
15429 (vectorizable_store): Likewise.
15430 (vectorizable_load): Likewise.
15431
15432 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15433
15434 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
15435 strided groups, use the cost of N scalar accesses instead
15436 of ncopies vector accesses.
15437 (vect_model_load_cost): Likewise.
15438
15439 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15440
15441 * tree-vect-stmts.c (vect_cost_group_size): Delete.
15442 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
15443 variable to indicate when once-per-group costs are being used.
15444 (vect_model_load_cost): Likewise. Fix comment and misindented code.
15445
15446 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15447
15448 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
15449 peeling-for-gaps condition.
15450
15451 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15452
15453 * config/s390/s390.c (s390_expand_vec_init): Force initializer
15454 element to register if it doesn't match general_operand.
15455
15456 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
15457 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15458
15459 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
15460 prototype.
15461 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
15462 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
15463 (SIGNBIT): New mode iterator.
15464 (Fsignbit): New mode attribute.
15465 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
15466 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
15467 when direct moves are available.
15468 (signbit<mode>2_dm): New define_insn_and_split).
15469 (signbit<mode>2_dm2): New define_insn.
15470
15471 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15472
15473 PR rtl-optimization/71594
15474 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
15475 into subregs of appropriate mode before trying to emit a conditional
15476 move.
15477
15478 2016-07-05 Jan Hubicka <jh@suse.cz>
15479
15480 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
15481 (simple_iv): Use it.
15482
15483 2016-07-05 Jan Hubicka <jh@suse.cz>
15484
15485 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
15486
15487 2016-07-05 Jiong Wang <jiong.wang@arm.com>
15488
15489 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
15490 "offmemok".
15491
15492 2016-07-05 Jan Hubicka <jh@suse.cz>
15493
15494 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
15495 IV can overflow.
15496
15497 2016-07-05 Richard Biener <rguenther@suse.de>
15498
15499 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
15500 Handle empty else block.
15501 (is_feasible_trace): Likewise.
15502 (split_paths): Likewise.
15503
15504 2016-07-05 Richard Biener <rguenther@suse.de>
15505
15506 * tree-loop-distribution.c (distribute_loop): Fix issue with
15507 the cost model loop.
15508
15509 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
15510
15511 * config/arm/neon-testgen.ml: Delete.
15512 * config/arm/neon.ml: Delete.
15513
15514 2016-07-04 Jakub Jelinek <jakub@redhat.com>
15515
15516 PR c++/71739
15517 * tree.c (attribute_value_equal): Use get_attribute_name instead of
15518 directly using TREE_PURPOSE.
15519
15520 2016-07-04 Jiong Wang <jiong.wang@arm.com>
15521
15522 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
15523 * config/aarch64/aarch64_neon.h: Likewise.
15524 * config/aarch64/arm_neon.h: Likewise.
15525 * config/aarch64/atomics.md: Likewise.
15526 * config/aarch64/aarch64-simd-builtins.def: Likewise.
15527 * doc/invoke.texi: Likewise.
15528
15529 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15530
15531 * config/s390/s390.md: Add "z13" cpu_facility.
15532 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
15533 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
15534 condition" type instructions.
15535
15536 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15537 Jeff Law <law@redhat.com>
15538
15539 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
15540 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
15541
15542 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
15543
15544 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
15545 permutation for TARGET_AVX512F.
15546 (ix86_expand_vec_one_operand_perm_avx512): New function.
15547 (expand_vec_perm_1): Invoke introduced function.
15548 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15549 it may be not valid after vectorization.
15550
15551 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15552
15553 PR target/63874
15554 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
15555 typo in comment. Only force to memory if it is a weak
15556 external reference.
15557
15558 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
15559 Jiong Wang <jiong.wang@arm.com>
15560
15561 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
15562 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
15563 (AARCH64_FL_F16): New.
15564 (AARCH64_FL_FOR_ARCH8_2): New.
15565 (AARCH64_ISA_8_2): New.
15566 (AARCH64_ISA_F16): New.
15567 (TARGET_FP_F16INST): New.
15568 (TARGET_SIMD_F16INST): New.
15569 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
15570 ("fp"): Disabling "fp" also disables "fp16".
15571 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
15572 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
15573 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
15574 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
15575
15576 2016-07-04 Jan Beulich <jbeulich@suse.com>
15577
15578 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
15579
15580 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15581
15582 PR target/71720
15583 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
15584 the insns, use an insn form that does not adjust the offset on
15585 little endian systems.
15586
15587 2016-07-01 Jan Beulich <jbeulich@suse.com>
15588
15589 * varasm.c (get_variable_section): Validate initializer in
15590 named .bss-like sections.
15591
15592 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15593
15594 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
15595 Exchange the order of the second and third operands in the vpermr
15596 instruction tmeplate.
15597
15598 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
15599
15600 PR target/71698
15601 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
15602 Disallow TDmode values.
15603
15604 2016-07-01 Alan Modra <amodra@gmail.com>
15605
15606 PR rtl-optimization/71709
15607 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
15608 being set, not referenced.
15609
15610 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15611
15612 PR tree-optimization/70729
15613 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
15614 of loop since it can be not valid after transformation.
15615
15616 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15617
15618 * config/arm/arm.c (thumb_reload_in_hi): Delete.
15619 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
15620
15621 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
15622
15623 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
15624 for NULL decl.
15625
15626 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15627
15628 PR target/71677
15629 * config/rs6000/constraints.md (wY constraint): New constraint to
15630 match the requirements for the LXSD and STXSD instructions.
15631 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
15632 predicate to match the requirements for the LXSD and STXSD
15633 instructions.
15634 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
15635 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
15636 to make sure that the bottom 2 bits of offset are 0, the address
15637 form is offsettable, and no updating is done in the address mode.
15638 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
15639 (movdi_internal32): Likewise
15640 (movdi_internal64): Likewise.
15641
15642 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15643
15644 PR tree-optimization/71707
15645 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
15646 strinfo even for ADDR_EXPR ptr.
15647
15648 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15649
15650 * config/rs6000/altivec.md (darn_32): Change the condition to
15651 TARGET_P9_MISC instead of TARGET_MODULO.
15652 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
15653 condition expression.
15654 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
15655 condition expression.
15656 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
15657 (DFP_TEST): New code iterator.
15658 (dfptstsfi_<code>_mode>): New define_expand.
15659 (*dfp_sgnfcnc_<mode>): New define_insn.
15660 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
15661 definition next to BU_P9_MISC_1 definition and change the MASK
15662 value to RS6000_BTM_P9_MISC.
15663 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
15664 (BU_P9_64BIT_MISC_0): Likewise.
15665 (BU_P9_DFP_MISC_0): New macro definition.
15666 (BU_P9_DFP_MISC_1): New macro definition.
15667 (BU_P9_DFP_MISC_2): New macro definition.
15668 (BU_P9_DFP_OVERLOAD_1): New macro definition.
15669 (BU_P9_DFP_OVERLOAD_2): New macro definition.
15670 (BU_P9_DFP_OVERLOAD_3): New macro definition.
15671 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
15672 (TSTSFI_LT_TD): Likewise.
15673 (TSTSFI_EQ_DD): Likewise.
15674 (TSTSFI_EQ_TD): Likewise.
15675 (TSTSFI_GT_DD): Likewise.
15676 (TSTSFI_GT_TD): Likewise.
15677 (TSTSFI_OV_DD): Likewise.
15678 (TSTSFI_OV_TD): Likewise.
15679 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
15680 (TSTSFI_LT_DD): Likewise.
15681 (TSTSFI_LT_TD): Likewise.
15682 (TSTSFI_EQ): Likewise.
15683 (TSTSFI_EQ_DD): Likewise.
15684 (TSTSFI_EQ_TD): Likewise.
15685 (TSTSFI_GT): Likewise.
15686 (TSTSFI_GT_DD): Likewise.
15687 (TSTSFI_GT_TD): Likewise.
15688 (TSTSFI_OV): Likewise.
15689 (TSTSFI_OV_DD): Likewise.
15690 (TSTSFI_OV_TD): Likewise.
15691 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15692 overloaded test significance functions.
15693 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15694 OPTION_MASK_P9_MISC into the representation of this mask.
15695 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
15696 of this mask.
15697 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
15698 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
15699 non-zero.
15700 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
15701 argument is a 6-bit unsigned literal value if the icode argument
15702 represents a DFP test significance built-in call.
15703 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
15704 flag used independently and in combination with the
15705 RS6000_BTM_64BIT flag.
15706 (rs6000_opt_masks): Add entry for power9-misc command-line option.
15707 (rs6000_builtin_mask_names): Add entry for power9-misc
15708 command-line option.
15709 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
15710 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
15711 RS6000_BTM_P9_MISC macros.
15712 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
15713 option and change the description of the -mpower9-vector option to
15714 enable only vector instructions, removing its erroneously claimed
15715 support for scalar instructions.
15716 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15717 the ISA 3.0 digital floating point test significance built-in
15718 functions.
15719
15720 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
15721
15722 * config/aarch64/aarch64.c (cortexa35_tunings):
15723 Enable AES fusion. Use cortexa57_branch_cost.
15724 (cortexa53_tunings): Use cortexa57_branch_cost.
15725 (cortexa72_tunings): Use cortexa57_branch_cost.
15726 Use AUTOPREFETCHER_WEAK.
15727 (cortexa73_tunings): Use cortexa57_branch_cost.
15728
15729 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15730 James Greenhalgh <james.greenhalgh@arm.com>
15731
15732 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
15733 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
15734 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
15735 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
15736 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
15737 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
15738 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
15739 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
15740 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
15741 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
15742 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
15743 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
15744 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
15745 New intrinsics.
15746
15747 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
15748 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15749
15750 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
15751 New define_insn.
15752 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
15753
15754 2016-06-30 David Malcolm <dmalcolm@redhat.com>
15755
15756 PR driver/71651
15757 * gcc.c (driver::build_option_suggestions): Pass "option" to
15758 add_misspelling_candidates.
15759 * opts-common.c (add_misspelling_candidates): Add "option" param;
15760 use it to avoid adding negated forms for options marked with
15761 RejectNegative.
15762 * opts.h (add_misspelling_candidates): Add "option" param.
15763
15764 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15765
15766 PR middle-end/71693
15767 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15768 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15769 first when permuting bitwise operation with rotate. Cast
15770 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15771
15772 2016-06-29 David Malcolm <dmalcolm@redhat.com>
15773
15774 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15775 for misspelled param names.
15776 * params.c: Include spellcheck.h.
15777 (find_param_fuzzy): New function.
15778 * params.h (find_param_fuzzy): New prototype.
15779 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15780 * spellcheck.h (struct edit_distance_traits<const char *>):
15781 ...here.
15782
15783 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
15784
15785 * config/rs6000/predicates.md (const_0_to_7_operand): New
15786 predicate, recognize 0..7.
15787 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15788 support for doing extracts from V16QImode, V8HImode, V4SImode
15789 under ISA 3.0.
15790 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15791 vector extract support.
15792 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15793 for ISA 3.0 vector extract.
15794 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15795 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15796 extracts of a constant element number from small integer vectors
15797 on 64-bit ISA 3.0 systems.
15798 (vsx_extract_<mode>_di): Likewise.
15799 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15800 say when we can do ISA 3.0 vector extracts.
15801 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15802 registers, using the stxsiwx instruction.
15803
15804 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
15805
15806 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15807 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15808 qdf24xx_regmove_cost, qdf24xx_tunings): New.
15809 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15810 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15811 * config/arm/arm.c (arm_qdf24xx_tune): New.
15812
15813 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
15814
15815 * config/aarch64/aarch64.c (cortexa53_tunings):
15816 Increase loop alignment to 8. Set function alignment to 16.
15817 (cortexa35_tunings): Likewise.
15818 (cortexa57_tunings): Increase loop alignment to 8.
15819 (cortexa72_tunings): Likewise.
15820 (cortexa73_tunings): Likewise.
15821
15822 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
15823
15824 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15825 for arm_fp16_ok and arm_fp16_hw.
15826 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15827 arm_fp16_alternative.
15828
15829 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
15830
15831 PR tree-optimization/71655
15832 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15833 types when swapping operands.
15834
15835 2016-06-29 Martin Liska <mliska@suse.cz>
15836
15837 PR middle-end/71585
15838 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15839 * ipa-inline-transform.c (inline_call): Remove unnecessary call
15840 of build_optimization_node.
15841
15842 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15843
15844 PR tree-optimization/70729
15845 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15846 independent in loops having positive safelen value.
15847 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15848 it may be not valid after vectorization.
15849
15850 2016-06-29 Jakub Jelinek <jakub@redhat.com>
15851
15852 PR tree-optimization/71625
15853 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
15854 is sorted by ascending list->offset. If PTR is non-NULL and there is
15855 previous strinfo, call get_stridx_plus_constant.
15856 (get_stridx): Pass exp as second argument to get_addr_stridx.
15857 (addr_stridxptr): Add missing list = list->next, so that there can be
15858 more than one entries in the list. Bump limit from 16 to 32. Ensure
15859 the list is sorted by ascending list->offset.
15860 (get_stridx_plus_constant): Adjust so that it can be also called with
15861 ADDR_EXPR instead of SSA_NAME as PTR.
15862 (handle_char_store): Pass NULL_TREE as second argument to
15863 get_addr_stridx.
15864
15865 2016-06-29 Richard Biener <rguenther@suse.de>
15866
15867 PR rtl-optimization/68961
15868 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15869
15870 2016-06-29 Richard Biener <rguenther@suse.de>
15871
15872 PR middle-end/71002
15873 * alias.c (component_uses_parent_alias_set_from): Handle
15874 type punning through union accesses by using the union alias set.
15875 * gimple.c (gimple_get_alias_set): Remove union type punning case.
15876
15877 2016-07-29 Richard Biener <rguenther@suse.de>
15878
15879 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15880 precision not matching mode precision.
15881
15882 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
15883
15884 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15885 pa_output_arg_descriptor.
15886 (call_val_symref_64bit_post_reload): Likewise.
15887 (call_val_powf_64bit_post_reload): Likewise.
15888 (sibcall_internal_symref_64bit): Likewise.
15889 (sibcall_value_internal_symref_64bit): Likewise.
15890
15891 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15892
15893 PR middle-end/71626
15894 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15895 a constant, force its SUBREG_REG into memory or register instead
15896 of whole op1.
15897
15898 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15899
15900 PR target/58655
15901 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15902 * doc/invoke.texi (AVR Options): Document it.
15903
15904 2016-06-28 Walter Lee <walt@tilera.com>
15905
15906 * config/tilegx/linux.h: Do not include arch/icache.h
15907 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15908 * config/tilepro/linux.h: Do not include arch/icache.h
15909 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15910
15911 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
15912
15913 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15914 for big-endian BIT_FIELD_REF.
15915
15916 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
15917
15918 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15919 ('size' attribute): Add '128'.
15920 Include power9.md.
15921 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15922 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15923 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15924 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15925 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15926 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15927 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15928 *trunc<mode>df2_odd): Set size attribute to '128'.
15929 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15930 * config/rs6000/power6.md (power6-fp): Include dfp type.
15931 * config/rs6000/power7.md (power7-fp): Likewise.
15932 * config/rs6000/power8.md (power8-fp): Likewise.
15933 * config/rs6000/power9.md: New file.
15934 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15935 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15936 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15937 htmsimple.
15938 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15939 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15940 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15941 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15942 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15943 dfp_dscri_<mode>): Change type attribute to dfp.
15944 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15945 attribute to vecsimple.
15946 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15947 and prefetch streams.
15948 (rs6000_option_override_internal): Remove temporary code setting
15949 tuning to power8. Don't set rs6000_sched_groups for power9.
15950 (last_scheduled_insn): Change to rtx_insn *.
15951 (divide_cnt, vec_load_pendulum): New variables.
15952 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15953 (rs6000_issue_rate): Set issue rate for Power9.
15954 (is_power9_pairable_vec_type): New.
15955 (power9_sched_reorder2): New.
15956 (rs6000_sched_reorder2): Call new function for Power9 specific
15957 reordering.
15958 (insn_must_be_first_in_group): Remove Power9.
15959 (insn_must_be_last_in_group): Likewise.
15960 (force_new_group): Likewise.
15961 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15962 Initialize divide_cnt/vec_load_pendulum.
15963 (_rs6000_sched_context, rs6000_init_sched_context,
15964 rs6000_set_sched_context): Handle context save/restore of new
15965 variables.
15966
15967 2016-06-28 Richard Biener <rguenther@suse.de>
15968
15969 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15970 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15971 COMPONENT_REF operand.
15972 (nonoverlapping_component_refs_p): Likewise.
15973 * stor-layout.c (start_bitfield_representative): Mark
15974 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15975
15976 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15977
15978 * Makefile.in: Don't cat ../stage_current if it does not exist.
15979
15980 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15981 last argument is a bit-field.
15982
15983 PR rtl-optimization/71673
15984 * internal-fn.c (expand_arith_overflow_result_store): Use
15985 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15986 expand_simple_binop.
15987
15988 PR middle-end/66867
15989 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15990 expand_ifn_atomic_compare_exchange): New functions.
15991 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15992 * tree.h (build_call_expr_internal_loc): Rename to ...
15993 (build_call_expr_internal_loc_array): ... this. Fix up type of
15994 last argument.
15995 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15996 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15997 ATOMIC_COMPARE_EXCHANGE result.
15998 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15999 * gimple-fold.h (optimize_atomic_compare_exchange_p,
16000 fold_builtin_atomic_compare_exchange): New prototypes.
16001 * gimple-fold.c (optimize_atomic_compare_exchange_p,
16002 fold_builtin_atomic_compare_exchange): New functions..
16003 * tree-ssa.c (execute_update_addresses_taken): If
16004 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
16005 of call when finding addressable vars, and if such var becomes
16006 non-addressable, call fold_builtin_atomic_compare_exchange.
16007
16008 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
16009
16010 PR target/71670
16011 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
16012 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
16013
16014 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
16015
16016 * config/rs6000/rs6000.md ('type' attribute): Add
16017 veclogical,veccmpfx,vecexts,vecmove insn types.
16018 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
16019 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
16020 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
16021 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
16022 *nabs<mode>2_hw): Change type to vecmove.
16023 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
16024 *boolcc<mode>3_internal, *eqv<mode>3_internal,
16025 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
16026 *ieee_128bit_vsx_abs<mode>2_internal,
16027 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
16028 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
16029 *ieee128_mtvsrd_32bit): Change type to veclogical.
16030 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16031 *movdi_internal32, *movdi_internal64): Update insn types.
16032 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
16033 vsx_extract_<mode>): Change type to veclogical.
16034 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
16035 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
16036 *vsx_sign_extend_si_v2di): Change type to vecexts.
16037 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
16038 type to veclogical.
16039 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
16040 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
16041 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
16042 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
16043 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
16044 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
16045 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
16046 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
16047 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
16048 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
16049 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
16050 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
16051 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
16052 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
16053 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
16054 (ppc7450-vecsimple): Add veclogical, vecmove.
16055 (ppc7450-veccmp): Add veccmpfx.
16056 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
16057 vecmove.
16058 (ppc8540_vector_compare): Add veccmpfx.
16059 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
16060 * config/rs6000/cell.md (cell-fp): Add fpsimple.
16061 (cell-vecsimple): Add veclogical, vecmove.
16062 (cell-veccmp): Add veccmpfx.
16063 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
16064 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
16065 veccmpfx.
16066 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
16067 * config/rs6000/power4.md (power4-fp): Add fpsimple.
16068 (power4-vecsimple): Add veclogical, vecmove.
16069 (power4-veccmp): Add veccmpfx.
16070 * config/rs6000/power5.md (power5-fp): Add fpsimple.
16071 * config/rs6000/power6.md (power6-fp): Add fpsimple.
16072 (power6-vecsimple): Add veclogical, vecmove.
16073 (power6-veccmp): Add veccmpfx.
16074 * config/rs6000/power7.md (power7-fp): Add fpsimple.
16075 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
16076 * config/rs6000/power8.md (power8-fp): Add fpsimple.
16077 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
16078 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
16079 * config/rs6000/titan.md (titan_fp): Add fpsimple.
16080 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
16081 fpsimple.
16082 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
16083
16084 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
16085
16086 PR target/71656
16087 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16088 OPTION_MASK_P9_DFORM_VECTOR.
16089 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
16090 disable -mpower9-dform-vector when using reload.
16091 (quad_address_p): Remove 'gpr_p' argument and all associated code.
16092 New 'strict' argument. Update all callers. Add strict addressing
16093 support.
16094 (rs6000_legitimate_offset_address_p): Remove call to
16095 virtual_stack_registers_memory_p.
16096 (rs6000_legitimize_reload_address): Add quad address support.
16097 (rs6000_legitimate_address_p): Move call to quad_address_p above
16098 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
16099 to account for new strict usage.
16100 (rs6000_output_move_128bit): Adjust quad_address_p args to account
16101 for new strict usage.
16102 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
16103
16104 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
16105
16106 PR target/70902
16107 PR target/71453
16108 PR target/71555
16109 PR target/71596
16110 PR target/71657
16111 * config/i386/i386.c (ix86_spill_class): Disable condition to
16112 always return NO_REGS.
16113
16114 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
16115
16116 * predict.c: Include gimple-pretty-print.h
16117 (predicted_by_loop_heuristics_p): Check also
16118 PRED_LOOP_EXIT_WITH_RECURSION
16119 (predict_loops): Find self recursive calls and use special purpose
16120 predictors for them; dump log about decisions.
16121 (pass_profile::execute): Dump info about #of iterations.
16122 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
16123 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
16124
16125 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
16126
16127 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
16128 output_asm_insn calls and shorten long lines. Output .CALL
16129 argument descriptor using pa_output_arg_descriptor. Add various
16130 inline $$dyncall and other optimizations.
16131 (pa_attr_length_indirect_call): Adjust ordering and lengths.
16132
16133 2016-06-25 Jakub Jelinek <jakub@redhat.com>
16134
16135 PR tree-optimization/71643
16136 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
16137 EH preds.
16138
16139 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
16140 leak a bitmap if dep_bb is NULL.
16141
16142 PR tree-optimization/71631
16143 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
16144 to rewrite_expr_tree even if negate_result, move new_lhs var
16145 declaration and initialization earlier, for powi_result set afterwards
16146 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
16147 if new_lhs != lhs, and don't shadow gsi var.
16148
16149 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
16150
16151 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
16152 Add in_loop parameter.
16153 (predict_loops): Add loop guard heuristics.
16154 * predict.def (PRED_LOOP_GUARD): New heuristics.
16155
16156 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
16157
16158 * predict.c: Include ipa-utils.h
16159 (tree_bb_level_prediction): Predict recursive calls.
16160 (tree_estimate_probability_bb): Skip inexpensive calls for call
16161 predictor.
16162 * predict.def (PRED_RECURSIVE_CALL): New.
16163
16164 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16165
16166 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
16167 (BU_FLOAT128_1): Likewise.
16168 (FABSQ): Likewise.
16169 (COPYSIGNQ): Likewise.
16170 (RS6000_BUILTIN_NANQ): Likewise.
16171 (RS6000_BUILTIN_NANSQ): Likewise.
16172 (RS6000_BUILTIN_INFQ): Likewise.
16173 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
16174 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
16175 (TARGET_FOLD_BUILTIN): New #define.
16176 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
16177 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
16178 (rs6000_fold_builtin): New target hook implementation, handling
16179 folding of 128-bit NaNs and infinities.
16180 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
16181 entries are filled in to avoid problems during bootstrap
16182 self-test; define builtins for 128-bit NaNs and infinities.
16183 (rs6000_opt_mask): Add entry for float128.
16184 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
16185 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
16186 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
16187 (const_str_type_node): New #define.
16188 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
16189 to a define_expand that dispatches to either copysign<mode>3_soft
16190 or copysign<mode>3_hard.
16191 (copysign<mode>3_hard): Rename from copysign<mode>3.
16192 (copysign<mode>3_soft): New define_insn.
16193 * doc/extend.texi: Document new builtins.
16194
16195 2016-06-24 Jakub Jelinek <jakub@redhat.com>
16196
16197 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
16198 PRIu64 instead of lu.
16199
16200 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
16201
16202 PR debug/71642
16203 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
16204 copy the type name.
16205
16206 2016-06-24 Jakub Jelinek <jakub@redhat.com>
16207
16208 PR tree-optimization/71647
16209 * omp-low.c (lower_rec_input_clauses): Convert
16210 omp_clause_aligned_alignment (c) to size_type_node for the
16211 last argument of __builtin_assume_aligned.
16212
16213 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
16214
16215 * configure.ac (calling ___tls_get_addr via GOT): New
16216 assembler/linker check.
16217 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
16218 assembler and linker supports calling ___tls_get_addr via GOT.
16219 Otherise, defined to 0.
16220 * config.in: Regenerated.
16221 * configure: Likewise.
16222 * config/i386/constraints.md (Yb): New constraint.
16223 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
16224 (REG_CLASS_NAMES): Likewise.
16225 (REG_CLASS_CONTENTS): Likewise.
16226 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
16227 the b constraint with the Yb constraint. Call ___tls_get_addr
16228 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
16229 is 1.
16230 (*tls_local_dynamic_base_32_gnu): Likewise.
16231 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
16232 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
16233 (*tls_local_dynamic_base_64_<mode>): Likewise.
16234
16235 2016-06-24 Martin Liska <mliska@suse.cz>
16236
16237 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
16238 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
16239 few functions.
16240 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
16241 argument to true if the expected number of iterations is
16242 loop-based.
16243
16244 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
16245
16246 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
16247 assemble for 32bit target.
16248 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
16249 and $ld_ix86_gld_32_opt to link for 32bit target.
16250 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
16251 * configure: Regenerate.
16252
16253 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16254
16255 * config/arm/arm.c (int_log2): Delete definition and prototype.
16256 (shift_op): Use exact_log2 instead of int_log2.
16257 (vfp3_const_double_for_fract_bits): Likewise.
16258
16259 2016-06-24 Jakub Jelinek <jakub@redhat.com>
16260
16261 * internal-fn.c (expand_arith_set_overflow): New function.
16262 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
16263 Use it.
16264 (expand_arith_overflow_result_store): Likewise. Handle precision
16265 smaller than mode precision.
16266 * tree-vrp.c (extract_range_basic): For imag part, handle
16267 properly signed 1-bit precision result.
16268 * doc/extend.texi (__builtin_add_overflow): Document that last
16269 argument can't be pointer to enumerated or boolean type.
16270 (__builtin_add_overflow_p): Document that last argument can't
16271 have enumerated or boolean type.
16272
16273 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16274 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16275
16276 * config/rs6000/predicates.md (splat_input_operand): Rework.
16277 Don't allow constants, since the insns that use this predicate
16278 don't support constants. Constants are handled by other insns
16279 that are created via combine. During and after register
16280 allocation, only allow indexed or indirect addresses, and not
16281 general addresses. Only allow modes supported by the hardware.
16282 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
16283 comment. Move check for using VSPLTIS<x> to a common location,
16284 instead of doing it in two different places.
16285
16286 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
16287
16288 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16289 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
16290 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
16291 signature_CENTAUR_ebx.
16292
16293 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
16294
16295 PR target/66232
16296 PR target/67400
16297 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
16298 (as_ix86_gas_32_opt): This.
16299 (ld_ix86_tls_ldm_opt): Renamed to ...
16300 (ld_ix86_gld_32_opt): This.
16301 (R_386_TLS_LDM reloc): Updated.
16302 (R_386_GOT32X reloc): New assembler/linker check.
16303 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
16304 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
16305 defined to 0.
16306 * config.in: Regenerated.
16307 * configure: Likewise.
16308 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
16309 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
16310 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
16311 if ix86_force_load_from_GOT_p returns true.
16312 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
16313 ix86_force_load_from_GOT_p returns true.
16314 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
16315 the external function address via the GOT slot.
16316 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
16317 HAVE_AS_IX86_GOT32X before returning false.
16318 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
16319 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
16320
16321 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
16322
16323 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
16324
16325 2016-06-23 Andi Kleen <ak@linux.intel.com>
16326
16327 * Makefile.in: Regenerate.
16328 * doc/install.texi: Document autoprofiledbootstrap.
16329
16330 2016-06-23 Andi Kleen <ak@linux.intel.com>
16331
16332 * config/i386/gcc-auto-profile: New file.
16333
16334 2016-06-23 Martin Liska <mliska@suse.cz>
16335
16336 PR middle-end/71619
16337 * predict.c (predict_loops): Revert the hunk that was removed
16338 in r237103.
16339
16340 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
16341
16342 * config.gcc: Add support for arm*-*-phoenix* targets.
16343 * config/arm/t-phoenix: New.
16344 * config/phoenix.h: New.
16345
16346 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
16347 H.J. Lu <hongjiu.lu@intel.com>
16348
16349 PR target/67400
16350 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
16351 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
16352 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
16353 ix86_force_load_from_GOT_p returns true.
16354 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
16355 ix86_force_load_from_GOT_p returns true.
16356 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
16357 ix86_force_load_from_GOT_p returns true.
16358 (ix86_expand_move): Load the external function address via the
16359 GOT slot if ix86_force_load_from_GOT_p returns true.
16360 * config/i386/predicates.md (x86_64_immediate_operand): Return
16361 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
16362 (x86_64_zext_immediate_operand): Ditto.
16363
16364 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
16365
16366 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
16367
16368 2016-06-22 David Malcolm <dmalcolm@redhat.com>
16369
16370 PR c/70339
16371 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
16372 * diagnostic.c (pedwarn_at_rich_loc): New function.
16373 * spellcheck.h (best_match::best_match): Add a
16374 "best_distance_so_far" optional parameter.
16375 (best_match::set_best_so_far): New method.
16376 (best_match::get_best_distance): New accessor.
16377 (best_match::get_best_candidate_length): New accessor.
16378
16379 2016-06-22 Nick Clifton <nickc@redhat.com>
16380
16381 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
16382 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
16383 modes are accepted as well.
16384 (ucompare_loc_descriptor): Likewise.
16385 (minmax_loc_descriptor): Likewise.
16386 (clz_loc_descriptor): Likewise.
16387 (popcount_loc_descriptor): Likewise.
16388 (bswap_loc_descriptor): Likewise.
16389 (rotate_loc_descriptor): Likewise.
16390 (mem_loc_descriptor): Likewise.
16391 (loc_descriptor): Likewise.
16392
16393 2016-06-22 David Malcolm <dmalcolm@redhat.com>
16394
16395 * common.opt (fdiagnostics-parseable-fixits): New option.
16396 * diagnostic.c: Include "selftest.h".
16397 (print_escaped_string): New function.
16398 (print_parseable_fixits): New function.
16399 (diagnostic_report_diagnostic): Call print_parseable_fixits.
16400 (selftest::assert_print_escaped_string): New function.
16401 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
16402 (selftest::test_print_escaped_string): New function.
16403 (selftest::test_print_parseable_fixits_none): New function.
16404 (selftest::test_print_parseable_fixits_insert): New function.
16405 (selftest::test_print_parseable_fixits_remove): New function.
16406 (selftest::test_print_parseable_fixits_replace): New function.
16407 (selftest::diagnostic_c_tests): New function.
16408 * diagnostic.h (struct diagnostic_context): Add field
16409 "parseable_fixits_p".
16410 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
16411 -fdiagnostics-parseable-fixits.
16412 (-fdiagnostics-parseable-fixits): New option.
16413 * opts.c (common_handle_option): Handle
16414 -fdiagnostics-parseable-fixits.
16415 * selftest-run-tests.c (selftest::run_tests): Call
16416 selftest::diagnostic_c_tests.
16417 * selftest.h (selftest::diagnostic_c_tests): New prototype.
16418
16419 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
16420
16421 PR tree-optimization/71488
16422 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
16423 comparison of boolean vectors.
16424 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
16425 of boolean vectors using bitwise operations.
16426
16427 2016-06-22 Andreas Schwab <schwab@suse.de>
16428
16429 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
16430 Remove declaration.
16431
16432 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
16433
16434 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
16435
16436 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
16437
16438 * config/i386/i386.c (print_reg): Emit an error message on attempt to
16439 print FLAGS_REG.
16440
16441 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16442
16443 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
16444 * config/arm/arm-cores.def (cortex-a73): New entry.
16445 (cortex-a73.cortex-a35): Likewise.
16446 (cortex-a73.cortex-a53): Likewise.
16447 * config/arm/arm-tables.opt: Regenerate.
16448 * config/arm/arm-tune.md: Likewise.
16449 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
16450 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16451 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
16452 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16453 * doc/invoke.texi (ARM Options): Document cortex-a73,
16454 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
16455
16456 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16457
16458 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
16459 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
16460 (cortex-a73.cortex-a35): Likewise.
16461 (cortex-a73.cortex-a53): Likewise.
16462 * config/aarch64/aarch64-tune.md: Regenerate.
16463 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
16464 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
16465 -mcpu and -mtune.
16466
16467 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16468
16469 * configure.ac (gcc_cv_as_compress_debug): Remove
16470 --compress-debug-sections as extra as switch.
16471 Handle gas --compress-debug-sections=type.
16472 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
16473 Handle gld --compress-debug-sections=type.
16474 * configure: Regenerate.
16475
16476 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
16477
16478 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
16479
16480 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
16481
16482 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
16483 (do_rewrite): likewise.
16484
16485 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16486
16487 * common/config/mep/mep-common.c: Remove.
16488 * config.gcc: Remove mep-* support.
16489 * config/mep/constraints.md: Remove.
16490 * config/mep/default.h: Remove.
16491 * config/mep/intrinsics.h: Remove.
16492 * config/mep/intrinsics.md: Remove.
16493 * config/mep/ivc2-template.h: Remove.
16494 * config/mep/mep-c5.cpu: Remove.
16495 * config/mep/mep-core.cpu: Remove.
16496 * config/mep/mep-default.cpu: Remove.
16497 * config/mep/mep-ext-cop.cpu: Remove.
16498 * config/mep/mep-intrin.h: Remove.
16499 * config/mep/mep-ivc2.cpu: Remove.
16500 * config/mep/mep-pragma.c: Remove.
16501 * config/mep/mep-protos.h: Remove.
16502 * config/mep/mep.c: Remove.
16503 * config/mep/mep.cpu: Remove.
16504 * config/mep/mep.h: Remove.
16505 * config/mep/mep.md: Remove.
16506 * config/mep/mep.opt: Remove.
16507 * config/mep/predicates.md: Remove.
16508 * config/mep/t-mep: Remove.
16509 * doc/install.texi: Remove mep-* documentation.
16510 * doc/md.texi: Likewise.
16511
16512 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16513
16514 * config.gcc: Remove support for avr-rtems.
16515 * config/avr/gen-avr-mmcu-specs.c: Likewise.
16516 * config/avr/rtems.h: Remove.
16517 * config/avr/t-rtems: Remove.
16518
16519 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16520
16521 * config.gcc: Remove m32r-rtems support.
16522 * config/m32r/rtems.h: Remove.
16523
16524 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16525
16526 * config.gcc: Remove h8300-rtems support.
16527 * config/h8300/rtems.h: Remove.
16528 * config/h8300/t-rtems: Remove.
16529
16530 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16531
16532 * config.gcc: Remove support for knetbsd.
16533 * configure.ac: Likewise.
16534 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
16535 * config/knetbsd-gnu.h: Remove.
16536 * configure: Regenerate.
16537
16538 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16539
16540 * config.gcc: Remove support for openbsd 2 and 3.
16541 * config/openbsd-oldgas.h: Remove.
16542
16543 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16544
16545 * config.gcc: Remove interix support.
16546 * config/i386/i386-interix.h: Remove.
16547 * config/i386/interix.opt: Remove.
16548 * config/i386/t-interix: Remove.
16549 * configure: Regenerate.
16550 * configure.ac: Remove interix support.
16551 * doc/install.texi: Remove interix documentation.
16552
16553 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
16554
16555 * config/rs6000/rs6000.h: Add conditional preprocessing directives
16556 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
16557 not defined.
16558
16559 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16560
16561 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
16562 they are both PLACEHOLDER_EXPRs.
16563
16564 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16565
16566 * stor-layout.c (layout_type): Move setting complex MODE to
16567 layout_type, instead of setting it ahead of time by the caller.
16568 * tree.c (build_complex_type): Likewise.
16569
16570 2016-06-21 Martin Liska <mliska@suse.cz>
16571
16572 * predict.c (force_edge_cold): Replace imposisble with
16573 impossible.
16574
16575 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16576
16577 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
16578 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
16579
16580 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16581
16582 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
16583
16584 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
16585 Ilya Enkovich <ilya.enkovich@intel.com>
16586
16587 PR target/71549
16588 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16589 New member function to convert V1TImode register to SUBREG
16590 TImode in debug insn.
16591 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
16592 after changing register mode to V1TImode.
16593
16594 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
16595
16596 * config/aarch64/aarch64-cores.def (vulcan): New core.
16597 * config/aarch64/aarch64-tune.md: Regenerate.
16598 * doc/invoke.texi: Document vulcan as an available option.
16599
16600 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16601
16602 * cse.c (canon_asm_operands): New function extracted from...
16603 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
16604 either standalone or member of a PARALLEL.
16605
16606 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16607
16608 PR target/30417
16609 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
16610 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
16611 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
16612
16613 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16614
16615 PR target/71103
16616 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
16617 constant addresses if can_create_pseudo_p.
16618
16619 2016-06-21 Jakub Jelinek <jakub@redhat.com>
16620
16621 PR tree-optimization/71588
16622 * tree-ssa-strlen.c (valid_builtin_call): New function.
16623 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
16624 it.
16625
16626 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16627
16628 PR middle-end/71581
16629 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
16630 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
16631 for conversion of scalar user var to complex type and use the
16632 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
16633 punt.
16634
16635 PR rtl-optimization/71591
16636 * toplev.c (toplev::run_self_tests): If no_backend, complain and
16637 don't run any tests.
16638
16639 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
16640
16641 PR target/71571
16642 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
16643 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
16644 space for PIC with non-v32 and the common non-PIC "jump".
16645
16646 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16647
16648 PR target/71559
16649 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
16650 returned values and add UN*/LTGT/*ORDERED cases with values matching
16651 D operand modifier on vcmp for AVX.
16652
16653 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16654
16655 * config/aarch64/aarch64.opt
16656 (mpc-relative-literal-loads): Rename internal option name.
16657 * config/aarch64/aarch64.c
16658 (aarch64_nopcrelative_literal_loads): Rename to
16659 aarch64_pcrelative_literal_loads.
16660 (aarch64_expand_mov_immediate): Likewise.
16661 (aarch64_secondary_reload): Likewise.
16662 (aarch64_can_use_per_function_literal_pools_p): Likewise.
16663 (aarch64_override_options_after_change_1): Rename and simplify logic.
16664 (aarch64_classify_symbol): Merge large model checks into switch,
16665 remove pc-relative load check.
16666
16667 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16668
16669 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
16670 costs relative to the cost of a register move.
16671
16672 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16673
16674 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
16675 (vcvt_n_f64_u64): Likewise.
16676 (vcvt_n_s64_f64): Likewise.
16677 (vcvt_n_u64_f64): Likewise.
16678 (vcvt_f64_s64): Likewise.
16679 (vrecpe_f64): Likewise.
16680 (vcvt_f64_u64): Likewise.
16681 (vrecps_f64): Likewise.
16682
16683 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16684
16685 * config/aarch64/aarch64.md
16686 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
16687 iterators.
16688 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
16689 attributes.
16690 * config/aarch64/aarch64-builtins.c
16691 (aarch64_types_binop_uss_qualifiers): Delete.
16692 (TYPES_BINOP_USS): Likewise.
16693 (aarch64_types_binop_sus_qualifiers): Likewise.
16694 (TYPES_BINOP_SUS): Likewise.
16695 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
16696 (TYPES_FCVTIMM_SUS): Likewise.
16697 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
16698 rather than BINOP.
16699 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
16700 (fcvtzs): Use SHIFTIMM rather than BINOP.
16701 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
16702
16703 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16704
16705 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
16706 costs relative to the cost of a register move.
16707
16708 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16709
16710 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
16711 Allow scalar/single vector modes to be tieable.
16712
16713 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16714
16715 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
16716
16717 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16718
16719 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
16720 "alignement".
16721 * tree.h (TYPE_ALIGN): Likewise.
16722
16723 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16724
16725 PR target/71103
16726 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
16727
16728 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16729
16730 * config/avr/avr.c (avr_print_operand): Fix "format not a string
16731 literal" build warnings.
16732 (avr_print_operand_address): Dito.
16733
16734 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
16735
16736 PR target/71375
16737 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
16738 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
16739
16740 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
16741
16742 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
16743
16744 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
16745
16746 PR bootstrap/71435
16747 * reload1.c (reload): Pass 0 to finish_spills when called because
16748 update_eliminables_and_spill returns true and remove did_spill.
16749 (finish_spills): Adjust comment and document GLOBAL parameter.
16750
16751 2016-06-17 DJ Delorie <dj@redhat.com>
16752
16753 PR target/71338
16754 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
16755 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
16756 (umulqihi3_virt): Likewise.
16757 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
16758 (umulqihi3_real): Likewise.
16759
16760 2016-06-17 Martin Liska <mliska@suse.cz>
16761
16762 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
16763
16764 2016-06-17 Martin Liska <mliska@suse.cz>
16765
16766 * predict.def: PRED_LOOP_EXIT from 92 to 85.
16767
16768 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
16769
16770 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16771 __FAST_MATH__.
16772 (vaddq_f32): Likewise.
16773 (vmul_f32): Likewise.
16774 (vmulq_f32): Likewise.
16775 (vsub_f32): Likewise.
16776 (vsubq_f32): Likewise.
16777
16778 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16779
16780 PR tree-optimization/71347
16781 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16782 cost for all uses in group.
16783
16784 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16785
16786 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16787 insert gimple seq if it's not empty.
16788
16789 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16790
16791 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16792 member OFFSET.
16793 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16794 rather than OFFSET.
16795 (comp_dr_with_seg_len_pair): Ditto.
16796 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
16797 struct dr_with_seg_len_pair against DR_OFFSET.
16798 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16799 DR_OFFSET directly.
16800
16801 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
16802
16803 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16804
16805 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
16806
16807 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16808 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16809 (pa_output_millicode_call): Likewise.
16810 (pa_output_call): Likewise.
16811 (pa_output_indirect_call): Likewise.
16812 (pa_asm_output_mi_thunk): Likewise.
16813
16814 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16815
16816 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16817
16818 2016-06-16 Martin Liska <mliska@suse.cz>
16819
16820 * predict.c (combine_predictions_for_insn): When we find a first
16821 match predictor, we should consider just predictors with
16822 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
16823 DS theory predictor.
16824 (combine_predictions_for_bb): Likewise.
16825
16826 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16827
16828 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16829 with base of reference to struct.
16830
16831 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16832
16833 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16834
16835 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16836
16837 PR target/71151
16838 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16839 progmem_swtable_section.
16840 (progmem_swtable_section): Remove.
16841 (avr_asm_function_rodata_section): Remove.
16842 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16843 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16844
16845 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
16846
16847 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16848 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16849 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16850 signature_CENTAUR_ebx.
16851 * config/i386/i386.c (ix86_option_override_internal): Add
16852 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16853 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16854 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16855
16856 2016-06-16 Martin Liska <mliska@suse.cz>
16857
16858 * predict.def: Add fortran loop preheader predictor.
16859 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16860 fold IFN_BUILTIN_EXPECT with a known constant argument.
16861
16862 2016-06-16 Martin Liska <mliska@suse.cz>
16863
16864 * predict.def: Add 'Fortran' to display text of all
16865 PRED_FORTRAN_* predictors.
16866
16867 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16868
16869 PR target/71242
16870 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16871 [IA64_BUILTIN_NANSQ]: Ditto.
16872 (ia64_fold_builtin): New function.
16873 (TARGET_FOLD_BUILTIN): New define.
16874 (ia64_init_builtins) Declare const_string_type node.
16875 Add __builtin_nanq and __builtin_nansq builtin functions.
16876 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16877
16878 2016-06-16 Nick Clifton <nickc@redhat.com>
16879
16880 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16881 MSP430_HWMULT_ prefix to enum values.
16882 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16883 * config/msp430/msp430.c: Update use of enum values.
16884 * config/msp430/msp430.md: Likewise.
16885 * config/msp430/msp430.opt: Likewise.
16886
16887 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
16888
16889 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16890 of comparsions in the last iteration.
16891
16892 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16893 Joern Rennecke <joern.rennecke@embecosm.com>
16894
16895 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16896 addresses.
16897 (arc_needs_pcl_p): Add GOTOFFPC.
16898 (arc_legitimate_pic_addr_p): Likewise.
16899 (arc_output_pic_addr_const): Likewise.
16900 (arc_legitimize_pic_address): Generate a pc-relative address using
16901 GOTOFFPC.
16902 (arc_output_libcall): Use @pcl syntax.
16903 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16904 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16905 (*movsi_insn): Use @pcl syntax.
16906 (doloop_begin_i): Likewise.
16907
16908 2016-06-16 Martin Liska <mliska@suse.cz>
16909
16910 * predict.def: Define a new predictor.
16911
16912 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16913
16914 * config/arc/arc.opt (mtp-regno): Update text.
16915
16916 2016-06-16 Renlin Li <renlin.li@arm.com>
16917
16918 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16919
16920 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16921
16922 PR target/71554
16923 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16924 (setcc + and peephole2): Likewise.
16925
16926 PR rtl-optimization/71532
16927 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16928 memory slots.
16929
16930 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16931
16932 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16933 DImode constants with XXSPLTIB in vector registers.
16934 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16935 vsx_extract_<mode>_internal{1,2} into a single insn that handles
16936 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16937 extraction of the element at the top of the register as a scalar
16938 value.
16939 (vsx_extract_<mode>_internal1): Likewise.
16940 (vsx_extract_<mode>_internal2): Likewise.
16941 * config/rs6000/constraints.md (wi constraint): Remove a comment
16942 about DImode not being allowed in Altivec registers.
16943 (wB constraint): New constraint for constants that can be
16944 generated in Altivec registers with VSPLTISW/VUPKHSW.
16945 * config/rs6000/predicates.md (xxspltib_constant_split): Update
16946 comments.
16947 (xxspltib_constant_nosplit): Likewise.
16948 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16949 support for -mupper-regs-di to enable DImode to go into Altivec
16950 registers.
16951 (POWERPC_MASKS): Likewise.
16952 (power7 cpu): Likewise.
16953 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16954 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16955 for DImode being allowed in Altivec registers. Update wi/wj
16956 constraints. Set scalar_in_vmx_p flag.
16957 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16958 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
16959 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16960 (rs6000_opt_masks): Add -mupper-regs-di.
16961 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16962 direct move to use wi and not wj.
16963 (lfiwzx): Likewise.
16964 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16965 alternative.
16966 (floatunssi<mode>2_lfiwzx_mem): Likewise.
16967 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16968 any VSX register, instead of just Altivec registers, to allow
16969 either operand to be an Altivec register or both.
16970 (fixuns_trunc<mode>di2_fctiduz): Likewise.
16971 (movdi_internal32): Add support for -mupper-regs-di. Add support
16972 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
16973 the alternatives and attributes to be lined up to be easier to
16974 read.
16975 (movdi_internal64): Likewise.
16976 (64-bit DImode splitters): Change predicates to only split loading
16977 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
16978 load constants in ISA 3.0 or ISA 2.07 respectively.
16979 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16980 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
16981 mention -mcpu=power9 sets these options.
16982 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16983 wB constraint.
16984
16985 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16986
16987 PR target/67353
16988 * config/avr/avr.c (avr_set_current_function): Warn misspelled
16989 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16990 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16991 by default to warn misspelled interrupt/ signal handler.
16992 * doc/invoke.texi (AVR Options): Document it. Update description
16993 for -nodevicelib option.
16994
16995 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16996
16997 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16998 up parentheses. Use GET_MODE_UNIT_BITSIZE.
16999 (aarch64_<sur>shll2_n<mode>): Likewise.
17000
17001 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
17002
17003 PR middle-end/71529
17004 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
17005 DECL_CONTEXT for copied arguments.
17006
17007 2016-06-15 Alan Hayward <alan.hayward@arm.com>
17008
17009 PR tree-optimization/71483
17010 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
17011 for slp
17012
17013 2016-06-15 Martin Liska <mliska@suse.cz>
17014
17015 * predict.c (tree_predict_by_opcode): Call predict_edge_def
17016 instead of predict_edge w/o a probability.
17017
17018 2016-06-15 Alan Hayward <alan.hayward@arm.com>
17019
17020 PR tree-optimization/71439
17021 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
17022 live PHIs.
17023
17024 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17025
17026 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
17027 register subregs in SET_SRC.
17028
17029 2016-06-15 Richard Biener <rguenther@suse.de>
17030
17031 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
17032 store restrictions.
17033
17034 2016-06-15 Richard Biener <rguenther@suse.de>
17035
17036 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
17037 not consider dependences between accesses that belong to the
17038 same group.
17039 (vect_analyze_data_ref_dependences): Do not analyze read-read
17040 or self-dependences.
17041
17042 2016-06-14 David Malcolm <dmalcolm@redhat.com>
17043
17044 * spellcheck-tree.c: Include spellcheck-tree.h rather than
17045 spellcheck.h.
17046 (find_closest_identifier): Reimplement in terms of
17047 best_match<tree,tree>.
17048 * spellcheck-tree.h: New file.
17049 * spellcheck.c (struct edit_distance_traits<const char *>): New
17050 struct.
17051 (find_closest_string): Reimplement in terms of
17052 best_match<const char *, const char *>.
17053 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
17054 overload to spellcheck-tree.h.
17055 (find_closest_identifier): Likewise.
17056 (struct edit_distance_traits<T>): New template.
17057 (class best_match): New class.
17058
17059 2016-06-14 David Malcolm <dmalcolm@redhat.com>
17060
17061 * selftest-run-tests.c (selftest::run_tests): Call
17062 selftest::spellcheck_tree_c_tests.
17063 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
17064 * spellcheck-tree.c: Include selftest.h and stringpool.h.
17065 (selftest::test_find_closest_identifier): New function.
17066 (selftest::spellcheck_tree_c_tests): New function.
17067 * spellcheck.c (selftest::test_find_closest_string): Verify that
17068 the order of the vec does not affect the results for this case.
17069 (selftest::test_data): New array.
17070 (selftest::test_metric_conditions): New function.
17071 (selftest::spellcheck_c_tests): Add a test of case-comparison.
17072 Call selftest::test_metric_conditions.
17073
17074 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17075
17076 * config/rs6000/rs6000-builtin.def (commentary): Typo.
17077 (BU_P9_MISC_1): Likewise.
17078 (BU_P9_64BIT_MISC_0): Likewise.
17079 (BU_P9_MISC_0): Likewise.
17080
17081 2016-06-14 David Malcolm <dmalcolm@redhat.com>
17082
17083 * gcc-rich-location.c
17084 (gcc_rich_location::add_fixit_misspelled_id): New method.
17085 * gcc-rich-location.h
17086 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
17087
17088 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
17089
17090 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
17091 FreeBSD 11 and above.
17092
17093 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
17094
17095 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
17096
17097 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17098
17099 * expmed.h: Close parenthesis in "at your option" in copyright
17100 boilerplate.
17101 * lower-subreg.h: Likewise.
17102
17103 2016-06-14 Richard Biener <rguenther@suse.de>
17104
17105 PR middle-end/71526
17106 * genmatch.c (expr::gen_transform): Use in_type for comparisons
17107 if available.
17108
17109 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17110
17111 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
17112 New function.
17113 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
17114 mask+shift version.
17115 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
17116 New prototype.
17117 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
17118 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
17119
17120 2016-06-14 Richard Biener <rguenther@suse.de>
17121
17122 PR tree-optimization/71522
17123 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
17124 copying into float copying.
17125
17126 2016-06-14 Jakub Jelinek <jakub@redhat.com>
17127
17128 PR tree-optimization/71520
17129 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
17130 (replace_block_by): Move user labels from bb1 to bb2.
17131
17132 2016-06-14 Richard Biener <rguenther@suse.de>
17133
17134 PR middle-end/71310
17135 PR bootstrap/71510
17136 * expr.h (get_bit_range): Declare.
17137 * expr.c (get_bit_range): Export.
17138 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
17139 word_mode again to constrain the bitfield access.
17140
17141 2016-06-14 Richard Biener <rguenther@suse.de>
17142
17143 PR tree-optimization/71521
17144 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
17145 division int_const_binop against zero divisor.
17146
17147 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17148
17149 * config/i386/i386.md (signbittf2): New expander.
17150 * config/i386/sse.md (ptesttf2): New insn pattern.
17151
17152 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17153
17154 PR bootstrap/71481
17155 * input.c (selftest::test_reading_source_line): Avoid reading from
17156 __FILE__ by creating a tempfile with known content and reading
17157 from that instead.
17158
17159 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17160
17161 * pretty-print.c (assert_pp_format_colored): Skip the test if
17162 GCC_COLORS is set.
17163 (test_pp_format): Remove comment about GCC_COLORS.
17164
17165 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17166
17167 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
17168 * pretty-print.c (assert_pp_format_va): Add location param and use
17169 it with ASSERT_STREQ_AT.
17170 (assert_pp_format): Add location param and pass it to
17171 assert_pp_format_va.
17172 (assert_pp_format_colored): Likewise.
17173 (ASSERT_PP_FORMAT_1): New.
17174 (ASSERT_PP_FORMAT_2): New.
17175 (ASSERT_PP_FORMAT_3): New.
17176 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
17177 explicitly, or implicitly via the above macros.
17178 * selftest.c (selftest::pass): Use a selftest::location rather
17179 than file and line.
17180 (selftest::fail): Likewise. Print the function name.
17181 (selftest::fail_formatted): Likewise.
17182 (selftest::assert_streq): Use a selftest::location rather than
17183 file and line.
17184 * selftest.h (selftest::location): New struct.
17185 (SELFTEST_LOCATION): New macro.
17186 (selftest::pass): Accept a const location & rather than file
17187 and line.
17188 (selftest::fail): Likewise.
17189 (selftest::fail_formatted): Likewise.
17190 (selftest::assert_streq): Likewise.
17191 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
17192 (ASSERT_FALSE): Likewise.
17193 (ASSERT_EQ): Likewise.
17194 (ASSERT_NE): Likewise.
17195 (ASSERT_STREQ): Likewise.
17196 (ASSERT_PRED1): Likewise.
17197 (ASSERT_STREQ_AT): New macro.
17198
17199 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17200
17201 * selftest.c (selftest::fail_formatted): New function.
17202 (selftest::assert_streq): New function.
17203 * selftest.h (selftests::fail_formatted): New decl.
17204 (selftest::assert_streq): New decl.
17205 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
17206
17207 2016-06-13 Jeff Law <law@redhat.com>
17208
17209 PR tree-optimization/71403
17210 * tree-ssa-threadbackward.c
17211 (convert_and_register_jump_thread_path): No longer accept reference
17212 to path. Do not pop items off the path anymore.
17213 (fsm_find_control_statement_thread_paths): Do not allow threading
17214 to a deeper loop nest. Pop the last item off the path here rather
17215 than in convert_and_register_jump_thread_path.
17216
17217 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
17218 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
17219
17220 [AArch64] Emit division using the Newton series
17221
17222 * config/aarch64/aarch64-protos.h
17223 (cpu_approx_modes): Add new member "division".
17224 (aarch64_emit_approx_div): Declare new function.
17225 * config/aarch64/aarch64.c
17226 (generic_approx_modes): New member "division".
17227 (exynosm1_approx_modes): Likewise.
17228 (xgene1_approx_modes): Likewise.
17229 (aarch64_emit_approx_div): Define new function.
17230 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
17231 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
17232 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
17233 * doc/invoke.texi (-mlow-precision-div): Describe new option.
17234
17235 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
17236 Wilco Dijkstra <wilco.dijkstra@arm.com>
17237
17238 [AArch64] Emit square root using the Newton series
17239
17240 * config/aarch64/aarch64-protos.h
17241 (aarch64_emit_approx_rsqrt): Replace with new function
17242 "aarch64_emit_approx_sqrt".
17243 (cpu_approx_modes): New member "sqrt".
17244 * config/aarch64/aarch64.c
17245 (generic_approx_modes): New member "sqrt".
17246 (exynosm1_approx_modes): Likewise.
17247 (xgene1_approx_modes): Likewise.
17248 (aarch64_emit_approx_rsqrt): Replace with new function
17249 "aarch64_emit_approx_sqrt".
17250 (aarch64_override_options_after_change_1): Handle new option.
17251 * config/aarch64/aarch64-simd.md
17252 (rsqrt<mode>2): Use new function instead.
17253 (sqrt<mode>2): New expansion and insn definitions.
17254 * config/aarch64/aarch64.md: Likewise.
17255 * config/aarch64/aarch64.opt
17256 (mlow-precision-sqrt): Add new option description.
17257 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
17258
17259 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
17260
17261 [AArch64] Add more choices for the reciprocal square root approximation
17262
17263 Allow a target to prefer such operation depending on the operation mode.
17264
17265 * config/aarch64/aarch64-protos.h
17266 (AARCH64_APPROX_MODE): New macro.
17267 (AARCH64_APPROX_{NONE,ALL}): Likewise.
17268 (cpu_approx_modes): New structure.
17269 (tune_params): New member "approx_modes".
17270 * config/aarch64/aarch64-tuning-flags.def
17271 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
17272 * config/aarch64/aarch64.c
17273 (generic_approx_modes): New core "cpu_approx_modes" structure.
17274 (exynosm1_approx_modes): Likewise.
17275 (xgene1_approx_modes): Likewise.
17276 (generic_tunings): New member "approx_modes".
17277 (cortexa35_tunings): Likewise.
17278 (cortexa53_tunings): Likewise.
17279 (cortexa57_tunings): Likewise.
17280 (cortexa72_tunings): Likewise.
17281 (exynosm1_tunings): Likewise.
17282 (thunderx_tunings): Likewise.
17283 (xgene1_tunings): Likewise.
17284 (use_rsqrt_p): New argument for the mode and use new member from
17285 "tune_params".
17286 (aarch64_builtin_reciprocal): Devise mode from builtin.
17287 (aarch64_optab_supported_p): New argument for the mode.
17288 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
17289
17290 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17291
17292 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
17293 RS6000_BTM_MODULO flag into the set of flags that are considered
17294 to be part of the common configuration.
17295
17296 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17297
17298 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
17299 difference unsigned.
17300 (vec_absdb): New macro for vector absolute difference unsigned
17301 byte.
17302 (vec_absdh): New macro for vector absolute difference unsigned
17303 half-word.
17304 (vec_absdw): New macro for vector absolute difference unsigned word.
17305 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
17306 (vadu<mode>3): New insn.
17307 (*p9_vadu<mode>3): New insn.
17308 * config/rs6000/rs6000-builtin.def (vadub): New built-in
17309 definition.
17310 (vaduh): New built-in definition.
17311 (vaduw): New built-in definition.
17312 (vadu): New overloaded built-in definition.
17313 (vadub): New overloaded built-in definition.
17314 (vaduh): New overloaded built-in definition.
17315 (vaduw): New overloaded built-in definition.
17316 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17317 overloaded vector absolute difference unsigned functions.
17318 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17319 the ISA 3.0 vector absolute difference unsigned built-in functions.
17320
17321 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
17322
17323 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
17324 update shared_lookup_references only once after changing operands.
17325
17326 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
17327
17328 PR middle-end/71373
17329 * tree-nested.c (convert_nonlocal_omp_clauses)
17330 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
17331
17332 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
17333 * tree.def (CASE_LABEL_EXPR): Likewise.
17334
17335 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
17336
17337 PR bootstrap/71481
17338 * input.c (test_builtins): Fix an assertion.
17339
17340 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17341
17342 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
17343 (paritysi2): Ditto.
17344 (isinfxf2): Ditto.
17345 (isinf<mode>2): Ditto.
17346
17347 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17348
17349 * ggc-tests.c (test_finalization): Only test need_finalization_p
17350 for GCC_VERSION >= 4003.
17351
17352 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17353
17354 * config/s390/vecintrin.h: Fix file description in comment.
17355
17356 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17357
17358 * config/s390/s390-builtin-types.def: Change builtin type naming
17359 scheme to match builtin-types.def.
17360
17361 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
17362
17363 * fold-const.c (optimize_minmax_comparison): Remove.
17364 (fold_comparison): Remove call to the above.
17365 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
17366 New transformations.
17367
17368 2016-06-13 Alan Hayward <alan.hayward@arm.com>
17369
17370 PR tree-optimization/71416
17371 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
17372 multiple entries
17373
17374 2016-06-13 Martin Liska <mliska@suse.cz>
17375
17376 * predict.c (enum predictor_reason): Prefix enum with REASON_.
17377 (combine_predictions_for_insn): Likewise.
17378 (prune_predictions_for_bb): Likewise.
17379 (combine_predictions_for_bb): Likewise.
17380
17381 2016-06-13 Richard Biener <rguenther@suse.de>
17382
17383 PR tree-optimization/71505
17384 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
17385 assert match comment.
17386
17387 2016-06-13 Marek Polacek <polacek@redhat.com>
17388
17389 PR middle-end/71476
17390 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
17391 gimplify_switch_expr.
17392 (warn_switch_unreachable_r): New function.
17393
17394 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17395
17396 PR target/71379
17397 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
17398 one.
17399
17400 2016-06-13 Richard Biener <rguenther@suse.de>
17401
17402 PR middle-end/64516
17403 * fold-const.c (fold_unary_loc): Preserve alignment when
17404 folding a VIEW_CONVERT_EXPR into a MEM_REF.
17405
17406 2016-06-13 Martin Liska <mliska@suse.cz>
17407
17408 PR sanitizer/71458
17409 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
17410 w/ -fsanitize=bounds.
17411
17412 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
17413
17414 * config/i386/i386.c (ix86_init_builtins): Calculate
17415 FLOAT128_FTYPE_CONST_STRING function type only once.
17416 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
17417 built-in functions are available for x86-32 and x86-64 targets.
17418
17419 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
17420
17421 PR target/71241
17422 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
17423 New primitive type.
17424 (FLOAT128_FTYPE_CONST_STRING): New function type.
17425 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
17426 [IX86_BUILTIN_NANSQ]: Ditto.
17427 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17428 (ix86_init_builtin_types): Declare const_string_type_node.
17429 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
17430 builtin functions.
17431 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17432 * doc/extend.texi (x86 Built-in Functions): Document
17433 __builtin_nanq and __builtin_nansq.
17434
17435 2016-06-11 Jiong Wang <jiong.wang@arm.com>
17436
17437 PR target/71061
17438 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
17439 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
17440 length for pop patterns.
17441 (arm_attr_length_push_multi): Update comments.
17442 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
17443 attribute.
17444 (*pop_multiple_with_writeback_and_return): Likewise.
17445 (*pop_multiple_with_return): Likewise.
17446
17447 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
17448
17449 PR middle-end/71310
17450 * fold-const.c (optimize_bit_field_compare): Don't try to use
17451 word_mode unconditionally for reading the bit field, look at
17452 DECL_BIT_FIELD_REPRESENTATIVE instead.
17453
17454 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
17455
17456 PR middle-end/71478
17457 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
17458 vector integer type.
17459
17460 2016-06-10 Jakub Jelinek <jakub@redhat.com>
17461
17462 PR middle-end/71494
17463 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
17464 without LABEL_DECL, set *handled_ops_p to false instead of true.
17465
17466 2016-06-10 Martin Sebor <msebor@redhat.com>
17467
17468 PR c/71392
17469 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
17470 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
17471 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
17472 them.
17473 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
17474 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
17475 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
17476 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
17477 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
17478 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
17479 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
17480 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
17481
17482 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17483
17484 * config/arm/arm.h (pool_vector_label,
17485 return_used_this_function): Remove.
17486
17487 2016-06-10 Jeff Law <law@redhat.com>
17488
17489 PR tree-optimization/71335
17490 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
17491 zero length paths here.
17492 (convert_and_register_jump_thread_path): Remove hacks related to
17493 duplicated blocks in the jump thread path.
17494 (fsm_find_control_statement_thread_paths): Avoid putting the same
17495 block on the thread path twice, but ensure the thread path is
17496 unchanged from the caller's point of view.
17497
17498 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17499
17500 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
17501 * predict.def (PRED_LOOP_BRANCH): Remove.
17502
17503 2016-06-10 David Malcolm <dmalcolm@redhat.com>
17504
17505 * Makefile.in (OBJS): Add ggc-tests.o.
17506 (GTFILES): Add ggc-tests.c.
17507 * ggc-tests.c: New file.
17508 * selftest-run-tests.c (selftest::run_tests): Call
17509 selftest::ggc_tests_c_tests.
17510 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
17511
17512 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
17513
17514 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
17515
17516 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
17517
17518 PR sanitizer/71480
17519 * varasm.c (place_block_symbol): Adjust alignment for asan protected
17520 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
17521
17522 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17523
17524 * profile.c: Include cfgloop.h.
17525 (branch_prob): Compute estimated number of iterations.
17526 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
17527 recompute estimate number of iterations from profile.
17528
17529 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17530
17531 PR inline-asm/68843
17532 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
17533 must be grouped on top of stack. Don't force early clobber
17534 on ordinary reg outputs.
17535
17536 2016-06-10 Richard Biener <rguenther@suse.de>
17537
17538 * targhooks.c (default_builtin_vectorization_cost): Adjust
17539 vec_construct cost.
17540
17541 2016-06-10 Richard Biener <rguenther@suse.de>
17542
17543 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
17544 to fold the RHS to a constant if possible.
17545
17546 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
17547
17548 PR middle-end/71373
17549 * tree-nested.c (convert_nonlocal_omp_clauses)
17550 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
17551 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17552 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
17553
17554 * gimplify.c (gimplify_adjust_omp_clauses): Discard
17555 OMP_CLAUSE_TILE.
17556 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
17557
17558 * omp-low.c (scan_sharing_clauses): Don't expect
17559 OMP_CLAUSE__CACHE_.
17560
17561 2016-06-10 Alan Hayward <alan.hayward@arm.com>
17562
17563 PR tree-optimization/71407
17564 PR tree-optimization/71416
17565 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
17566 BIT_FIELD_REF type.
17567
17568 2016-06-10 Richard Biener <rguenther@suse.de>
17569
17570 PR middle-end/71477
17571 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
17572
17573 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
17574
17575 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
17576
17577 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
17578 Jiong Wang <jiong.wang@arm.com>
17579
17580 PR rtl-optimization/70751
17581 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
17582 spilled into memory.
17583
17584 2016-06-09 Jonathan Yong <10walls@gmail.com>
17585
17586 Revert:
17587 2015-09-21 Jonathan Yong <10walls@gmail.com>
17588
17589 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17590 sysroot/usr/lib/32api for additional win32 libraries,
17591 fixes failing Cygwin bootstrapping.
17592
17593 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
17594
17595 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
17596 Delete.
17597
17598 2016-06-09 David Malcolm <dmalcolm@redhat.com>
17599
17600 PR bootstrap/71471
17601 * pretty-print.c (pp_indent): Specify that %p is printed in a
17602 host-dependent manner.
17603 (test_pp_format): Remove the test for %p.
17604
17605 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
17606
17607 * config/mips/mips.c (mips_output_jump): Fix formatting.
17608
17609 2016-06-09 Richard Biener <rguenther@suse.de>
17610
17611 PR tree-optimization/71462
17612 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
17613 removed blocks.
17614
17615 2016-06-09 Martin Liska <mliska@suse.cz>
17616
17617 * predict.c (dump_prediction): Add new argument.
17618 (enum predictor_reason): New enum.
17619 (struct predictor_hash): New struct.
17620 (predictor_hash::hash): New function.
17621 (predictor_hash::equal): Likewise.
17622 (not_removed_prediction_p): New function.
17623 (prune_predictions_for_bb): Likewise.
17624 (combine_predictions_for_bb): Prune predictions.
17625
17626 2016-06-09 Martin Liska <mliska@suse.cz>
17627
17628 * predict.c (filter_predictions): New function.
17629 (remove_predictions_associated_with_edge): Use the filter
17630 function.
17631 (equal_edge_p): New function.
17632
17633 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
17634
17635 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
17636 Correct usage of @samp vs @option, add @samp where appropriate.
17637 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
17638 Add armv6s-m and document it, as it is no official ARM name.
17639
17640 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17641
17642 * ifcvt.c (struct noce_if_info): Add transform_name field.
17643 (noce_try_move): Set if_info->transform_name to the function name.
17644 (noce_try_ifelse_collapse): Likewise.
17645 (noce_try_store_flag): Likewise.
17646 (noce_try_inverse_constants): Likewise.
17647 (noce_try_store_flag_constants): Likewise.
17648 (noce_try_addcc): Likewise.
17649 (noce_try_store_flag_mask): Likewise.
17650 (noce_try_cmove): Likewise.
17651 (noce_try_cmove_arith): Likewise.
17652 (noce_try_minmax): Likewise.
17653 (noce_try_abs): Likewise.
17654 (noce_try_sign_mask): Likewise.
17655 (noce_try_bitop): Likewise.
17656 (noce_convert_multiple_sets): Likewise.
17657 (noce_process_if_block): Print if_info->transform_name to
17658 dump_file if transformation succeeded.
17659
17660 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17661
17662 * config/arm/cortex-a57.md (cortex_a57_alu):
17663 Handle csel type.
17664
17665 2016-06-08 Martin Sebor <msebor@redhat.com>
17666 Jakub Jelinek <jakub@redhat.com>
17667
17668 PR c++/70507
17669 PR c/68120
17670 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
17671 BUILT_IN_MUL_OVERFLOW_P): New builtins.
17672 * builtins.c: Include gimple-fold.h.
17673 (fold_builtin_arith_overflow): Handle
17674 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
17675 (fold_builtin_3): Likewise.
17676 * doc/extend.texi (Integer Overflow Builtins): Document
17677 __builtin_{add,sub,mul}_overflow_p.
17678
17679 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
17680
17681 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
17682 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
17683
17684 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
17685
17686 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
17687 Rewrite, looking one level down for records and arrays.
17688
17689 2016-06-08 David Malcolm <dmalcolm@redhat.com>
17690
17691 * pretty-print.c: Include "selftest.h".
17692 (pp_format): Fix comment.
17693 (identifier_to_locale): Likewise.
17694 (selftest::test_basic_printing): New function.
17695 (selftest::assert_pp_format): New function.
17696 (selftest::test_pp_format): New function.
17697 (selftest::pretty_print_c_tests): New function.
17698 * selftest-run-tests.c (selftest::run_tests): Call
17699 selftest::pretty_print_c_tests.
17700 * selftest.h (pretty_print_c_tests): New declaration.
17701
17702 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17703
17704 * invoke.texi (max-loop-headers-insns): Document.
17705 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
17706 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
17707 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
17708
17709 2016-06-08 Richard Biener <rguenther@suse.de>
17710
17711 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
17712 on strided SLP loads and fall back to scalar loads in case
17713 we can't chunk them.
17714
17715 2016-06-08 Richard Biener <rguenther@suse.de>
17716
17717 PR tree-optimization/71452
17718 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
17719 type used for the SSA rewrite has enough precision to cover
17720 the dynamic type of the location.
17721
17722 2016-06-08 Jakub Jelinek <jakub@redhat.com>
17723 Richard Biener <rguenther@suse.de>
17724
17725 PR c++/71448
17726 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
17727 the same as DECL_P (base0) for indirect_base0. Use equality_code
17728 in one further place.
17729
17730 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
17731
17732 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
17733 to one word if the field is known to overlap other words.
17734 (extract_bit_field_1): Likewise.
17735 (store_split_bit_field): Remove compensating code.
17736 (extract_split_bit_field): Likewise.
17737
17738 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
17739
17740 PR debug/71432
17741 PR ada/71413
17742 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
17743
17744 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17745
17746 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
17747 VDQF.
17748 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
17749 (arch64_addpv4sf): Delete.
17750 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
17751 "gen_aarch64_addpv4sf".
17752 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
17753 builtin.
17754 (vpadds_f32): Likewise.
17755 (vpaddq_f32): Likewise.
17756 (vpaddq_f64): Likewise.
17757
17758 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17759
17760 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
17761 VALLF.
17762 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
17763 to VALLF. Rename to "fabd<mode>3".
17764 "*fabd_scalar<mode>3): Delete.
17765 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
17766 Use builtin.
17767 (vabdd_f64): Likewise.
17768 (vabd_f32): Likewise.
17769 (vabd_f64): Likewise.
17770 (vabdq_f32): Likewise.
17771 (vabdq_f64): Likewise.
17772
17773 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17774
17775 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17776 VALLF.
17777 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17778 "aarch64_rsqrts<mode>".
17779 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17780 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
17781 builtin.
17782 (vrsqrtsd_f64): Likewise.
17783 (vrsqrts_f32): Likewise.
17784 (vrsqrts_f64): Likewise.
17785 (vrsqrtsq_f32): Likewise.
17786 (vrsqrtsq_f64): Likewise.
17787
17788 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17789
17790 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17791 VALLF.
17792 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17793 "aarch64_rsqrte<mode>".
17794 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17795 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
17796 builtin.
17797 (vrsqrted_f64): Likewise.
17798 (vrsqrte_f32): Likewise.
17799 (vrsqrte_f64): Likewise.
17800 (vrsqrteq_f32): Likewise.
17801 (vrsqrteq_f64): Likewise.
17802
17803 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17804
17805 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17806 (ucvtf): Likewise.
17807 (fcvtzs): Likewise.
17808 (fcvtzu): Likewise.
17809 * config/aarch64/aarch64-simd.md
17810 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17811 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17812 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17813 Use builtin.
17814 (vcvt_n_f32_u32): Likewise.
17815 (vcvt_n_s32_f32): Likewise.
17816 (vcvt_n_u32_f32): Likewise.
17817 (vcvtq_n_f32_s32): Likewise.
17818 (vcvtq_n_f32_u32): Likewise.
17819 (vcvtq_n_f64_s64): Likewise.
17820 (vcvtq_n_f64_u64): Likewise.
17821 (vcvtq_n_s32_f32): Likewise.
17822 (vcvtq_n_s64_f64): Likewise.
17823 (vcvtq_n_u32_f32): Likewise.
17824 (vcvtq_n_u64_f64): Likewise.
17825 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17826 (VSDQ_SDI): Likewise.
17827 (fcvt_target): Support V4DI, V4SI and V2SI.
17828 (FCVT_TARGET): Likewise.
17829
17830 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17831
17832 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17833 (TYPES_BINOP_SUS): Likewise.
17834 (aarch64_simd_builtin_data): Update include file name.
17835 (aarch64_builtins): Likewise.
17836 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17837 for conversion between scalar float-point and fixed-point.
17838 (ucvtf): Likewise.
17839 (fcvtzs): Likewise.
17840 (fcvtzu): Likewise.
17841 * config/aarch64/aarch64.md
17842 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17843 pattern for conversion between scalar float to fixed-pointer.
17844 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17845 (UNSPEC_FCVTZS): New UNSPEC enumeration.
17846 (UNSPEC_FCVTZU): Likewise.
17847 (UNSPEC_SCVTF): Likewise.
17848 (UNSPEC_UCVTF): Likewise.
17849 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17850 Use builtin.
17851 (vcvtd_n_f64_u64): Likewise.
17852 (vcvtd_n_s64_f64): Likewise.
17853 (vcvtd_n_u64_f64): Likewise.
17854 (vcvtd_n_f32_s32): Likewise.
17855 (vcvts_n_f32_u32): Likewise.
17856 (vcvtd_n_s32_f32): Likewise.
17857 (vcvts_n_u32_f32): Likewise.
17858 * config/aarch64/iterators.md (fcvt_target): Support integer to float
17859 mapping.
17860 (FCVT_TARGET): Likewise.
17861 (FCVT_FIXED2F): New iterator.
17862 (FCVT_F2FIXED): Likewise.
17863 (fcvt_fixed_insn): New define_int_attr.
17864
17865 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17866
17867 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17868 some statements was removed.
17869
17870 2016-06-08 Alan Hayward <alan.hayward@arm.com>
17871
17872 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17873 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17874 (vect_can_advance_ivs_p): likewise.
17875 (vect_update_ivs_after_vectorizer): likewise.
17876 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17877 (vect_analyze_scalar_cycles_1): likewise.
17878 (vect_analyze_loop_operations): likewise.
17879 (report_vect_op): likewise.
17880 (vect_is_slp_reduction): likewise.
17881 (vect_is_simple_reduction): likewise.
17882 (get_initial_def_for_induction): likewise.
17883 (vect_transform_loop): likewise.
17884 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17885 (vect_recog_sad_pattern): likewise.
17886 (vect_recog_widen_sum_pattern): likewise.
17887 (vect_recog_widening_pattern): likewise.
17888 (vect_recog_divmod_pattern): likewise.
17889 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17890 (vect_analyze_slp_instance): likewise.
17891 (vect_transform_slp_perm_load): likewise.
17892 (vect_schedule_slp_instance): likewise.
17893
17894 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17895
17896 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17897 (return_prediction): PRED_CONST_RETURN predict return as not taken.
17898 * predict.def (PRED_CONTINUE): Change hitrate 50->67
17899 (PRED_LOOP_BRANCH): Document predictor as broken.
17900 (PRED_LOOP_EXIT): Change hitrate 91->92.
17901 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17902 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17903 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17904 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17905 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17906 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17907 (PRED_CALL): Chane hitrate 71->67.
17908 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17909 (PRED_GOTO): Document as unused right now.
17910 (PRED_CONST_RETURN): Change hitrate 67->69
17911 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17912 (PRED_NULL_RETURN): Change hitrate 91->90.
17913 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17914 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17915 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17916
17917 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
17918
17919 * config/rs6000/altivec.h: Add __builtin_vec_mul.
17920 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17921 special case Altivec builtin.
17922 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17923 VSX_BUILTIN_VEC_MUL (replaced with special case code).
17924 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17925 code for ALTIVEC_BUILTIN_VEC_MUL.
17926 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17927 for __builtin_vec_mul.
17928
17929 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
17930
17931 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17932 -mno-htm.
17933
17934 2016-06-07 David Malcolm <dmalcolm@redhat.com>
17935
17936 * spellcheck.c (selftest::test_find_closest_string): New function.
17937 (spellcheck_c_tests): Call the above.
17938
17939 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17940
17941 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17942
17943 2016-06-07 Jakub Jelinek <jakub@redhat.com>
17944
17945 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17946 Yv=Yv,C alternatives.
17947
17948 2016-06-07 Richard Biener <rguenther@suse.de>
17949
17950 PR c/61564
17951 * common.opt (ffast-math): Make Optimization.
17952
17953 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
17954 Prachi Godbole <prachi.godbole@imgtec.com>
17955
17956 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17957 `fabs' and `fneg' type attributes.
17958 (p5600_fpu_fabs): Add `fmove' to the comment.
17959
17960 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17961
17962 * gimple.c: Include builtins.h
17963 (gimple_inexpensive_call_p): New function.
17964 * gimple.h (gimple_inexpensive_call_p): Declare.
17965 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17966 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17967 fix formatting.
17968
17969 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
17970
17971 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17972 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17973 warning_at_rich_loc, warning_n, pedwarn, permerror,
17974 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17975 sorry, fatal_error, internal_error, internal_error_no_backtrace):
17976 Use the above.
17977
17978 2016-06-07 Richard Biener <rguenther@suse.de>
17979
17980 PR tree-optimization/71428
17981 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17982 BIT_FIELD_REF op vs. load.
17983
17984 2016-06-07 Richard Biener <rguenther@suse.de>
17985
17986 PR middle-end/71423
17987 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17988 for signed ops.
17989
17990 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17991
17992 * config/pa/pa.md (call): Generate indirect long calls to non-local
17993 functions on TARGET_64BIT.
17994 (call_value): Likewise.
17995
17996 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17997
17998 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17999 pattern and subsequent splitters.
18000 (call_val_reg_64bit_post_reload): Likewise.
18001
18002 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
18003
18004 PR middle-end/71408
18005 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
18006 propagate_op_to_single_use.
18007
18008 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
18009
18010 PR middle-end/71281
18011 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
18012
18013 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
18014
18015 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
18016 (enum x86_dirflag_state): New enum.
18017 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
18018 (machine_function): Remove needs_cld.
18019 (ix86_current_function_needs_cld): Remove.
18020 * config/i386/i386.c (ix86_set_func_type): Set
18021 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
18022 (ix86_expand_prologue): Do not emit CLD here.
18023 (ix86_dirflag_mode_needed): New function.
18024 (ix86_dirflag_mode_entry): Ditto.
18025 (ix86_mode_needed): Handle X86_DIRFLAG entity.
18026 (ix86_mode_after): Ditto.
18027 (ix86_mode_entry): Ditto.
18028 (ix86_mode_exit): Ditto.
18029 (ix86_emit_mode_set): Ditto.
18030 * config/i386/i386.md (strmov_singleop): Set
18031 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
18032 Do not set ix86_current_function_needs_cld.
18033 (rep_mov): Ditto.
18034 (strset_singleop): Ditto.
18035 (rep_stos): Ditto.
18036 (cmpstrnqi_nz_1): Ditto.
18037 (cmpstrnqi_1): Ditto.
18038 (strlenqi_1): Ditto.
18039
18040 2016-06-06 Jakub Jelinek <jakub@redhat.com>
18041
18042 PR tree-optimization/71259
18043 * tree-vect-slp.c (vect_get_constant_vectors): For
18044 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
18045 one for constant op, and use COND_EXPR for non-constant.
18046
18047 2016-06-06 David Malcolm <dmalcolm@redhat.com>
18048
18049 * Makefile.in (OBJS): Add function-tests.o,
18050 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
18051 selftest-run-tests.o.
18052 (OBJS-libcommon): Add selftest.o.
18053 (OBJS-libcommon-target): Add selftest.o.
18054 (all.internal): Add "selftest".
18055 (all.cross): Likewise.
18056 (selftest): New phony target.
18057 (s-selftest): New target.
18058 (selftest-gdb): New phony target.
18059 (COLLECT2_OBJS): Add selftest.o.
18060 * bitmap.c: Include "selftest.h".
18061 (selftest::test_gc_alloc): New function.
18062 (selftest::test_set_range): New function.
18063 (selftest::test_clear_bit_in_middle): New function.
18064 (selftest::test_copying): New function.
18065 (selftest::test_bitmap_single_bit_set_p): New function.
18066 (selftest::bitmap_c_tests): New function.
18067 * common.opt (fself-test): New.
18068 * diagnostic-show-locus.c: Include "selftest.h".
18069 (make_range): New function.
18070 (test_range_contains_point_for_single_point): New function.
18071 (test_range_contains_point_for_single_line): New function.
18072 (test_range_contains_point_for_multiple_lines): New function.
18073 (assert_eq): New function.
18074 (test_get_line_width_without_trailing_whitespace): New function.
18075 (selftest::diagnostic_show_locus_c_tests): New function.
18076 * et-forest.c: Include "selftest.h".
18077 (selftest::test_single_node): New function.
18078 (selftest::test_simple_tree): New function.
18079 (selftest::test_disconnected_nodes): New function.
18080 (selftest::et_forest_c_tests): New function.
18081 * fold-const.c: Include "selftest.h".
18082 (selftest::assert_binop_folds_to_const): New function.
18083 (selftest::assert_binop_folds_to_nonlvalue): New function.
18084 (selftest::test_arithmetic_folding): New function.
18085 (selftest::fold_const_c_tests): New function.
18086 * function-tests.c: New file.
18087 * gimple.c: Include "selftest.h".
18088 Include "gimple-pretty-print.h".
18089 (selftest::verify_gimple_pp): New function.
18090 (selftest::test_assign_single): New function.
18091 (selftest::test_assign_binop): New function.
18092 (selftest::test_nop_stmt): New function.
18093 (selftest::test_return_stmt): New function.
18094 (selftest::test_return_without_value): New function.
18095 (selftest::gimple_c_tests): New function.
18096 * hash-map-tests.c: New file.
18097 * hash-set-tests.c: New file.
18098 * input.c: Include "selftest.h".
18099 (selftest::assert_loceq): New function.
18100 (selftest::test_accessing_ordinary_linemaps): New function.
18101 (selftest::test_unknown_location): New function.
18102 (selftest::test_builtins): New function.
18103 (selftest::test_reading_source_line): New function.
18104 (selftest::input_c_tests): New function.
18105 * rtl-tests.c: New file.
18106 * selftest-run-tests.c: New file.
18107 * selftest.c: New file.
18108 * selftest.h: New file.
18109 * spellcheck.c: Include "selftest.h".
18110 (selftest::levenshtein_distance_unit_test_oneway): New function,
18111 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
18112 (selftest::levenshtein_distance_unit_test): Likewise.
18113 (selftest::spellcheck_c_tests): Likewise.
18114 * toplev.c: Include selftest.h.
18115 (toplev::run_self_tests): New.
18116 (toplev::main): Handle -fself-test.
18117 * toplev.h (toplev::run_self_tests): New.
18118 * tree.c: Include "selftest.h".
18119 (selftest::test_integer_constants): New function.
18120 (selftest::test_identifiers): New function.
18121 (selftest::test_labels): New function.
18122 (selftest::tree_c_tests): New function.
18123 * tree-cfg.c: Include "selftest.h".
18124 (selftest::push_fndecl): New function.
18125 (selftest::test_linear_chain): New function.
18126 (selftest::test_diamond): New function.
18127 (selftest::test_fully_connected): New function.
18128 (selftest::tree_cfg_c_tests): New function.
18129 * vec.c: Include "selftest.h".
18130 (selftest::safe_push_range): New function.
18131 (selftest::test_quick_push): New function.
18132 (selftest::test_safe_push): New function.
18133 (selftest::test_truncate): New function.
18134 (selftest::test_safe_grow_cleared): New function.
18135 (selftest::test_pop): New function.
18136 (selftest::test_safe_insert): New function.
18137 (selftest::test_ordered_remove): New function.
18138 (selftest::test_unordered_remove): New function.
18139 (selftest::test_block_remove): New function.
18140 (selftest::reverse_cmp): New function.
18141 (selftest::test_qsort): New function.
18142 (selftest::vec_c_tests): New function.c.
18143 * wide-int.cc: Include selftest.h and wide-int-print.h.
18144 (selftest::from_int <wide_int>): New function.
18145 (selftest::from_int <offset_int>): New function.
18146 (selftest::from_int <widest_int>): New function.
18147 (selftest::assert_deceq): New function.
18148 (selftest::assert_hexeq): New function.
18149 (selftest::test_printing <VALUE_TYPE>): New function template.
18150 (selftest::test_ops <VALUE_TYPE>): New function template.
18151 (selftest::test_comparisons <VALUE_TYPE>): New function template.
18152 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
18153 template.
18154 (selftest::wide_int_cc_tests): New function.
18155
18156 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18157
18158 PR middle-end/37780
18159 * ifcvt.c (noce_try_ifelse_collapse): New function.
18160 Declare prototype.
18161 (noce_process_if_block): Call noce_try_ifelse_collapse.
18162 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
18163 (simplify_ternary_operation): Use the above to simplify
18164 conditional CLZ/CTZ expressions.
18165
18166 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18167
18168 PR middle-end/37780
18169 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
18170 define_insn_and_split.
18171
18172 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18173
18174 PR middle-end/37780
18175 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
18176
18177 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
18178
18179 PR c/24414
18180 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
18181 Implicitly clobber memory for basic asm with non-empty assembler
18182 string. Use targetm.md_asm_adjust also here.
18183 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
18184 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
18185 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
18186 non-empty assembler string.
18187 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
18188 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
18189 (decode_asm_operands): Handle basic asm in PARALLEL block.
18190 (extract_insn): Handle basic asm in PARALLEL block.
18191 * doc/extend.texi: Mention new behavior of basic asm.
18192 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
18193 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
18194 branch_needs_nop_p): Use asm_noperands.
18195
18196 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
18197
18198 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
18199 Include the M7 SPARC DFA scheduler.
18200 New attribute v3pipe.
18201 Annotate insns with v3pipe where appropriate.
18202 Define cpu_feature vis4.
18203 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
18204 Add (V8QI "8") to vbits.
18205 Add insns {add,sub}v8qi3
18206 Add insns ss{add,sub}v8qi3
18207 Add insns us{add,sub}{v8qi,v4hi}3
18208 Add insns {min,max}{v8qi,v4hi,v2si}3
18209 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
18210 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
18211 * config/sparc/niagara4.md: Add a comment explaining the
18212 discrepancy between the documented latenty numbers and the
18213 implemented ones.
18214 * config/sparc/niagara7.md: New file.
18215 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
18216 supports SPARC5 and VIS 4.0 instructions.
18217 * configure: Regenerate.
18218 * config.in: Likewise.
18219 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
18220 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
18221 TARGET_CPU_niagara7.
18222 (ASM_CPU64_DEFAULT_SPEC): Likewise.
18223 (CPP_CPU_SPEC): Handle niagara7.
18224 (ASM_CPU_SPEC): Likewise.
18225 * config/sparc/sparc-opts.h (processor_type): Add
18226 PROCESSOR_NIAGARA7.
18227 (mvis4): New option.
18228 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
18229 (AS_NIAGARA7_FLAG): Define.
18230 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
18231 (CPP_CPU64_DEFAULT_SPEC): Likewise.
18232 (CPP_CPU_SPEC): Handle niagara7.
18233 (ASM_CPU_SPEC): Likewise.
18234 * config/sparc/sparc.c (niagara7_costs): Define.
18235 (sparc_option_override): Handle niagara7 and adjust cache-related
18236 parameters with better values for niagara cpus. Also support VIS4.
18237 (sparc32_initialize_trampoline): Likewise.
18238 (sparc_use_sched_lookahead): Likewise.
18239 (sparc_issue_rate): Likewise.
18240 (sparc_register_move_cost): Likewise.
18241 (dump_target_flag_bits): Support VIS4.
18242 (sparc_vis_init_builtins): Likewise.
18243 (sparc_builtins): Likewise.
18244 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
18245 VIS4 4.0.
18246 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
18247 UltraSparc M7.
18248 * config/sparc/sparc.opt (sparc_processor_type): New value
18249 niagara7.
18250 * config/sparc/visintrin.h (__attribute__): Prototypes for the
18251 VIS4 builtins.
18252 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
18253 -mvis4.
18254 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
18255 VIS4 builtins.
18256
18257 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
18258
18259 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
18260
18261 2016-06-06 Richard Biener <rguenther@suse.de>
18262
18263 PR tree-optimization/71398
18264 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
18265 remove edges.
18266
18267 2016-06-05 James Bowman <james.bowman@ftdichip.com>
18268
18269 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
18270 ft32_expand_prolog, ft32_expand_epilogue):
18271 Handle pretend_args.
18272 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
18273 * config/ft32/ft32.md: Add pretend_returner.
18274
18275 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
18276
18277 PR target/71389
18278 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18279 Copy op1 RTX to avoid invalid sharing.
18280 (ix86_expand_vector_move_misalign): Ditto.
18281
18282 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
18283
18284 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
18285 ATTRIBUTE_UNUSED.
18286
18287 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
18288
18289 * predict.c (predicted_by_loop_heuristics_p): New function.
18290 (predict_iv_comparison): Use it.
18291 (predict_loops): Walk from innermost loops; do not predict edges
18292 leaving multiple loops multiple times; implement
18293 PRED_LOOP_ITERATIONS_MAX heuristics.
18294 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
18295
18296 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
18297
18298 * cfg.c (check_bb_profile): Do not report mismatched profiles when
18299 only edges out of BB are EH edges.
18300
18301 2016-06-04 Martin Sebor <msebor@redhat.com>
18302 Marcin Baczyński <marbacz@gmail.com>
18303
18304 PR c/48116
18305 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
18306 a void expression in a void function.
18307
18308 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
18309
18310 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
18311 aux; dump reasons of decisions.
18312 (should_duplicate_loop_header_p): Likewise.
18313 (do_while_loop_p): Likewise.
18314 (ch_base::copy_headers): Dump asi num insns duplicated.
18315
18316 2016-06-04 Jakub Jelinek <jakub@redhat.com>
18317
18318 PR tree-optimization/71405
18319 * tree-ssa.c (execute_update_addresses_taken): For clobber with
18320 incompatible type, build a new clobber with the right type instead
18321 of building a VIEW_CONVERT_EXPR around it.
18322
18323 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
18324
18325 PR tree-optimization/52171
18326 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
18327 by_pieces_ninsns instead of move_by_pieces_ninsns.
18328
18329 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
18330
18331 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
18332 for reg+reg addressing mode.
18333
18334 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18335
18336 * rs6000-c.c (c/c-tree.h): Add #include.
18337 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
18338 in C++ when found in the base position of vec_ld or vec_st.
18339
18340 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
18341
18342 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
18343 use of profile unless profile status is PROFILE_READ.
18344 * profile.c (compute_branch_probabilities): Set profile status
18345 only after reporting predictor hitrates.
18346
18347 2016-06-03 Joseph Myers <joseph@codesourcery.com>
18348
18349 PR target/71276
18350 PR target/71277
18351 * common.opt (ffp-int-builtin-inexact): New option.
18352 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
18353 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
18354 (ceil@var{m}2): Document dependence on this option.
18355 * ipa-inline-transform.c (inline_call): Handle
18356 flag_fp_int_builtin_inexact.
18357 * ipa-inline.c (can_inline_edge_p): Likewise.
18358 * config/i386/i386.md (rintxf2): Do not test
18359 flag_unsafe_math_optimizations.
18360 (rint<mode>2_frndint): New define_insn.
18361 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
18362 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
18363 for 387 instead of extending and truncating.
18364 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
18365 !flag_trapping_math instead of flag_unsafe_math_optimizations.
18366 Change to frndint<mode>2_<rounding>.
18367 (frndintxf2_<rounding>_i387): Likewise. Change to
18368 frndint<mode>2_<rounding>_i387.
18369 (<rounding_insn>xf2): Likewise.
18370 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
18371 !flag_trapping_math instead of flag_unsafe_math_optimizations for
18372 x87. Test TARGET_ROUND || !flag_trapping_math ||
18373 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
18374 SSE. Use ROUND_NO_EXC in constant operand of
18375 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
18376 for 387 instead of extending and truncating.
18377
18378 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
18379 Julia Koval <julia.koval@intel.com>
18380
18381 PR target/66960
18382 PR target/67630
18383 PR target/67634
18384 PR target/67841
18385 PR target/68037
18386 PR target/68618
18387 PR target/68661
18388 PR target/69575
18389 PR target/69596
18390 PR target/69734
18391 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
18392 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
18393 all registers, except for function return registers if there are
18394 no caller-saved registers.
18395 (ix86_set_func_type): New function.
18396 (ix86_set_current_function): Call ix86_set_func_type to set
18397 no_caller_saved_registers and func_type. Call reinit_regs if
18398 caller-saved registers are changed. Don't allow MPX, SSE, MMX
18399 nor x87 instructions in interrupt handler nor function with
18400 no_caller_saved_registers attribute.
18401 (ix86_function_ok_for_sibcall): Return false if there are no
18402 caller-saved registers.
18403 (type_natural_mode): Don't warn ABI change for MMX in interrupt
18404 handler.
18405 (ix86_function_arg_advance): Skip for callee in interrupt handler.
18406 (ix86_function_arg): Return special arguments in interrupt handler.
18407 (ix86_promote_function_mode): Promote pointer to word_mode only
18408 for normal functions.
18409 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
18410 interrupt handler.
18411 (ix86_epilogue_uses): New function.
18412 (ix86_hard_regno_scratch_ok): Likewise.
18413 (ix86_save_reg): Preserve all registers in interrupt handler
18414 after reload. Preserve all registers, except for function return
18415 registers, if there are no caller-saved registers after reload.
18416 (find_drap_reg): Always use callee-saved register if there are
18417 no caller-saved registers.
18418 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
18419 for interrupt handler.
18420 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
18421 Emit cld instruction if stringops are used in interrupt handler
18422 or interrupt handler isn't a leaf function.
18423 (ix86_expand_epilogue): Generate interrupt return for interrupt
18424 handler and pop the 'ERROR_CODE' off the stack before interrupt
18425 return in exception handler.
18426 (ix86_expand_call): Disallow calling interrupt handler directly.
18427 If there are no caller-saved registers, mark all registers that
18428 are clobbered by the call which returns as clobbered.
18429 (ix86_handle_no_caller_saved_registers_attribute): New function.
18430 (ix86_handle_interrupt_attribute): Likewise.
18431 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
18432 attributes.
18433 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
18434 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
18435 accumulation in interrupt function if stack may be realigned to
18436 avoid DRAP.
18437 (EPILOGUE_USES): New.
18438 (function_type): New enum.
18439 (machine_function): Add func_type and no_caller_saved_registers.
18440 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
18441 (interrupt_return): New pattern.
18442 * doc/extend.texi: Document x86 interrupt and
18443 no_caller_saved_registers attributes.
18444
18445 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
18446
18447 PR tree-optimization/52171
18448 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
18449 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
18450 Look for constant strings. Move some code to emit_block_cmp_hints
18451 and use it.
18452 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
18453 * defaults.h (COMPARE_MAX_PIECES): New macro.
18454 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
18455 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
18456 (clear_by_pieces_1): Don't declare. Move definition before use.
18457 (can_do_by_pieces): New static function.
18458 (can_move_by_pieces): Use it. Return bool.
18459 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
18460 OP. All callers changed. Handle COMPARE_BY_PIECES.
18461 (class pieces_addr); New.
18462 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
18463 pieces_addr::adjust, pieces_addr::increment_address,
18464 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
18465 functions for it.
18466 (class op_by_pieces_d): New.
18467 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
18468 functions for it.
18469 (class move_by_pieces_d, class compare_by_pieces_d,
18470 class store_by_pieces_d): New subclasses of op_by_pieces_d.
18471 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
18472 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
18473 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
18474 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
18475 compare_by_pieces_d::finish_mode): New member functions.
18476 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
18477 functions.
18478 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
18479 (emit_block_cmp_hints): New function.
18480 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
18481 use the newly defined classes.
18482 * expr.h (by_pieces_constfn): New typedef.
18483 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
18484 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
18485 (move_by_pieces_ninsns): Don't declare.
18486 (can_move_by_pieces): Change return value to bool.
18487 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
18488 (compare_by_pieces_branch_ratio): New hook.
18489 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
18490 (by_pieces_ninsns): Declare.
18491 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
18492 COMPARE_BY_PIECES.
18493 (default_compare_by_pieces_branch_ratio): New function.
18494 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
18495 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
18496 * doc/tm.texi: Regenerate.
18497 * tree-ssa-strlen.c: Include "builtins.h".
18498 (handle_builtin_memcmp): New static function.
18499 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
18500 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
18501
18502 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18503
18504 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
18505 relevant stmts which are simple and invariant.
18506 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
18507 instead of simple and invariant
18508
18509 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18510
18511 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
18512 (vectorizable_reduction): Check for new relevant state.
18513 (vectorizable_live_operation): vectorize live stmts using
18514 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
18515 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
18516 (vect_stmt_relevant_p): Check for stmts which are only used live.
18517 (process_use): Use of a stmt does not inherit it's live value.
18518 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
18519 (vect_analyze_stmt): Check for new relevant state.
18520 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
18521 outside the loop, but not inside it.
18522
18523 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18524
18525 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
18526 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
18527 (vect_get_vec_def_for_operand): Split out code.
18528
18529 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18530
18531 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
18532
18533 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18534
18535 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
18536
18537 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18538
18539 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
18540
18541 2016-06-03 Jakub Jelinek <jakub@redhat.com>
18542
18543 PR middle-end/71387
18544 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
18545 to noreturn e->callee->decl that has void return type and void
18546 arguments, adjust gimple_call_fntype and remove lhs even if it had
18547 previously addressable type.
18548
18549 2016-06-02 Jeff Law <law@redhat.com>
18550
18551 PR tree-optimization/71328
18552 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
18553 error when checking for a jump back onto the copied path.
18554
18555 2016-06-02 David Malcolm <dmalcolm@redhat.com>
18556
18557 * config/microblaze/microblaze.c (get_branch_target): Add return
18558 NULL_RTX for the non-CALL_P case.
18559 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
18560 (insert_wic): Remove unused local "j".
18561
18562 2016-06-02 Martin Liska <mliska@suse.cz>
18563
18564 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
18565
18566 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
18567 Julia Koval <julia.koval@intel.com>
18568
18569 * function.c (assign_parm_setup_stack): Force source into a
18570 register if needed.
18571 * target.def (function_incoming_arg): Update documentation to
18572 allow arbitrary address computation based on hard register.
18573 * doc/tm.texi: Regenerated.
18574
18575 2016-06-02 Martin Liska <mliska@suse.cz>
18576
18577 * predict.c (combine_predictions_for_bb): Fix first match in
18578 cases where a first predictor contains more than one occurence
18579 in list of predictors. Take the best value in such case.
18580
18581 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18582
18583 PR rtl-optimization/71295
18584 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
18585 offset would go over the size of the inner mode reject it.
18586
18587 2016-06-02 Jakub Jelinek <jakub@redhat.com>
18588
18589 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
18590 x=x,x and v=v,m instead of x=x,m.
18591
18592 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
18593 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
18594 alternative to v=rm,C.
18595
18596 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
18597 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
18598 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
18599 instead of vex for the last two above mentioned alternatives.
18600
18601 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18602
18603 PR target/70830
18604 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
18605
18606 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
18607
18608 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
18609
18610 2016-06-01 David Malcolm <dmalcolm@redhat.com>
18611
18612 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
18613 from int to unsigned.
18614
18615 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18616
18617 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
18618 alternatives, eliminating preferred register class. Add support
18619 for the MTVSRDD instruction in ISA 3.0.
18620 (vsx_splat_v4si_internal): Use splat_input_operand instead of
18621 reg_or_indexed_operand.
18622 (vsx_splat_v4sf_internal): Likewise.
18623
18624 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18625
18626 PR target/71186
18627 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
18628 for loading up all 0's or all 1's.
18629
18630 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
18631
18632 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
18633
18634 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
18635
18636 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
18637 extension.
18638 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
18639 * gcc.c (set_source_date_epoch_envvar): New function, sets
18640 the SOURCE_DATE_EPOCH environment variable to the current time.
18641
18642 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18643
18644 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
18645 the factor for live Phi nodes.
18646
18647 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18648
18649 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
18650 * tree-parloops.c (parallelize_loops): likewise.
18651 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
18652 tree_unswitch_outer_loop): likewise.
18653
18654 2016-06-01 Jakub Jelinek <jakub@redhat.com>
18655
18656 PR middle-end/71371
18657 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
18658 around creation of the temporary.
18659
18660 2016-06-01 Richard Biener <rguenther@suse.de>
18661
18662 PR tree-optimization/71366
18663 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
18664 (unloop_loops): Move removing edges here ...
18665 (try_unroll_loop_completely): ... from here.
18666 (try_peel_loop): ... and here.
18667 (tree_unroll_loops_completely_1): Track parent loops via
18668 bitmap of header BBs.
18669 (tree_unroll_loops_completely): Adjust for that.
18670
18671 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18672
18673 * config/rs6000/altivec.h (vec_slv): New macro.
18674 (vec_srv): New macro.
18675 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
18676 (UNSPEC_VSRV): New value.
18677 (vslv): New insn.
18678 (vsrv): New insn.
18679 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
18680 (vsrv): New builtin definition.
18681 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
18682 define argument types for new builtin.
18683 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
18684 new builtin.
18685 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
18686 functions.
18687
18688 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
18689 Jocelyn Mayer <l_indien@magic.fr>
18690
18691 PR target/67310
18692 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
18693 detect processor family for signature_CENTAUR_ebx.
18694 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
18695 signature_CENTAUR_ebx.
18696 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
18697 <default>: Pass x86-64 for has_longmode.
18698
18699 2016-06-01 Nathan Sidwell <nathan@acm.org>
18700
18701 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
18702 undefined weak.
18703
18704 2016-06-01 Richard Biener <rguenther@suse.de>
18705
18706 PR tree-optimization/71261
18707 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
18708 of stmts successfully put in the bool pattern. Remove
18709 single-use restriction.
18710 (adjust_bool_pattern_cast): Add cast at the use site via the
18711 pattern def sequence.
18712 (adjust_bool_pattern): Remove recursion, maintain a hash-map
18713 of patterned defs. Use the pattern def seqence instead of
18714 multiple independent patterns.
18715 (sort_after_uid): New qsort compare function.
18716 (adjust_bool_stmts): New function to process stmts in the bool
18717 pattern in IL order.
18718 (vect_recog_bool_pattern): Adjust.
18719 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
18720 (ifcvt_walk_pattern_tree): Likewise.
18721 (stmt_is_root_of_bool_pattern): Likewise.
18722 (ifcvt_repair_bool_pattern): Likewise.
18723 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
18724
18725 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18726
18727 * loop-unroll.c (decide_unroll_constant_iterations,
18728 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
18729 likely upper bounds.
18730 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
18731
18732 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
18733
18734 * tree-core.h (enum omp_clause_code): Remove
18735 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
18736
18737 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18738
18739 * config/arm/sync.md (arm_store_exclusive<mode>):
18740 Use 'H' output modifier on operands[2] rather than creating a new
18741 entry in out-of-bounds memory of the operands array.
18742 (arm_store_release_exclusivedi): Likewise.
18743
18744 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18745
18746 * config/arm/arm.c (arm_fusion_enabled_p): New function.
18747 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
18748 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
18749 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18750
18751 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18752
18753 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
18754 into account live statements for mask producers.
18755
18756 2016-06-01 Richard Biener <rguenther@suse.de>
18757
18758 PR tree-optimization/71311
18759 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
18760 restrict to non-INTEGER_CST @0.
18761
18762 2016-06-01 Richard Biener <rguenther@suse.de>
18763
18764 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
18765 (relational patterns): Use :c to avoid pattern duplications.
18766
18767 2016-06-01 Richard Biener <rguenther@suse.de>
18768
18769 * genmatch.c (comparison_code_p): New predicate.
18770 (swap_tree_comparison): New function.
18771 (commutate): Add for_vec parameter to append new for entries.
18772 Support commutating relational operators by swapping it alongside
18773 operands.
18774 (lower_commutative): Adjust.
18775 (dt_simplify::gen): Do not pass artificial operators to gen
18776 functions.
18777 (decision_tree::gen): Do not add artificial operators as parameters.
18778 (parser::parse_expr): Verify operator commutativity when :c is
18779 applied. Allow :C to override this.
18780 * match.pd: Adjust patterns to use :C instead of :c where required.
18781
18782 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
18783
18784 PR tree-optimization/71077
18785 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18786 the combining step, use boolean_false_node and boolean_true_node
18787 as the designated false/true return values.
18788
18789 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18790
18791 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18792 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18793 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18794 PRED_LOOP_EXIT.
18795
18796 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18797
18798 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18799 of flags impliying the register renaming.
18800 * toplev.c (process_options): Do not imply flag_rename_registers with
18801 loop peeling.
18802
18803 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18804
18805 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18806 default implementation.
18807
18808 2016-05-31 Nathan Sidwell <nathan@acm.org>
18809
18810 * dwarf2out.c (cur_line_info_table): Add GTY marker.
18811
18812 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18813
18814 * config/sh/constraints.md (b): Remove constraint.
18815 * config/sh/predicates.md (arith_reg_operand): Remove
18816 TARGET_REGISTER_P.
18817 * config/sh/sh-modes.def (PDI): Remove.
18818 * config/sh/sh.c (sh_target_reg_class,
18819 sh_optimize_target_register_callee_saved): Remove functions.
18820 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18821 (sh_expand_epilogue): Update comment.
18822 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18823 sh_secondary_reload): Remove TARGET_REGS related code.
18824 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18825 TARGET_REGISTER_P): Remove macros.
18826 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18827 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18828 TR1_REG, TR2_REG): Remove constants.
18829 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18830
18831 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18832
18833 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18834 define_expand patterns.
18835 (adddi3_compact): Rename to adddi3.
18836 (subdi3_compact): Rename to subdi3.
18837 (*negdi2): Rename to negdi2.
18838 (*abs<mode>2): Rename to abs<mode>2.
18839
18840 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18841
18842 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18843 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18844 (atomic_sub_fetchsi): ... this new pattern.
18845 (mvtc): Add CC_REG clobber.
18846
18847 2016-05-31 Marek Polacek <polacek@redhat.com>
18848
18849 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18850
18851 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18852
18853 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18854 aarch64_fusion_enabled_p to check for fusion capabilities.
18855
18856 2016-05-31 Richard Biener <rguenther@suse.de>
18857
18858 PR tree-optimization/71352
18859 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18860 minus one and a negate.
18861
18862 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18863
18864 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18865 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18866 Delete prototype.
18867 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18868 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18869 Remove use of aarch64_simd_attr_length_move, set length attribute
18870 directly.
18871 (*aarch64_be_movoi): Likewise.
18872 (*aarch64_be_movci): Likewise.
18873 (*aarch64_be_movxi): Likewise.
18874
18875 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18876
18877 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18878 It no longer does that.
18879 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18880
18881 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
18882
18883 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18884 attribute __unused__.
18885
18886 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
18887
18888 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18889 * config/arm/arm.c (arm_arch_thumb1): Define.
18890 (arm_option_override): Initialize arm_arch_thumb1.
18891 * config/arm/arm.h (arm_arch_thumb1): Declare.
18892 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18893 support Thumb-1 ISA.
18894
18895 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
18896
18897 PR target/71346
18898 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18899 `Yv' for scalar operand.
18900
18901 2016-05-31 Tom de Vries <tom@codesourcery.com>
18902
18903 PR tree-optimization/69068
18904 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18905 phis with more than two args.
18906
18907 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
18908
18909 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18910 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18911 target.
18912
18913 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
18914
18915 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18916 tune_64.
18917 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18918 support on SPARC.
18919 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18920 cpu_32, cpu_64, tune_32 and tune_64.
18921 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18922
18923 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18924
18925 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18926
18927 2016-05-30 Andi Kleen <ak@linux.intel.com>
18928
18929 * auto-profile.c (read_profile): Replace asserts with errors
18930 when file does not exist.
18931 * gcov-io.c (gcov_read_words): Dito.
18932
18933 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18934
18935 * tree-cfg.c (print_loop): Print likely upper bounds.
18936
18937 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18938
18939 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18940 * opts.c (default_options): Enable peel loops at -O3.
18941 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18942 (try_peel_loop): Do not re-peel already peeled loops;
18943 use likely upper bounds; fix profile updating.
18944 (pass_complete_unroll::execute): Initialize peeled_loops.
18945
18946 2016-05-30 Martin Liska <mliska@suse.cz>
18947
18948 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18949 computed costs by frequency of BB they belong to.
18950 (get_scaled_computation_cost_at): New function.
18951
18952 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
18953 Marc Glisse <marc.glisse@inria.fr>
18954
18955 PR tree-optimization/71289
18956 * match.pd (-1 / B < A, A > -1 / B): New transformations.
18957
18958 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18959
18960 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18961
18962 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18963
18964 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18965 for peeled copies; avoid underflow when updating estimates; correctly
18966 scale loop profile.
18967
18968 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18969
18970 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18971 r236875. Corrected oe3 to oe2 as obvious.
18972
18973 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18974
18975 PR middle-end/71269
18976 PR middle-end/71252
18977 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18978 that inserted stmt will not dominate stmts that defines its operand.
18979 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18980 (rewrite_expr_tree_parallel): Likewise.
18981
18982 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18983
18984 PR middle-end/71252
18985 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18986 all fields including stmt_to_insert are swapped.
18987
18988 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18989
18990 * predict.h (force_edge_cold): Declare.
18991 * predict.c (force_edge_cold): New function.
18992 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18993 updating.
18994 (canonicalize_loop_induction_variables): Fix formating.
18995
18996 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
18997
18998 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18999 (visium_expand_copysign): Use gen_int_mode directly.
19000 (visium_compute_frame_size): Minor tweaks.
19001
19002 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
19003
19004 * tree-vect-loop.c (vect_analyze_loop_2): Use
19005 likely_max_stmt_executions_int.
19006
19007 2016-05-30 Tom de Vries <tom@codesourcery.com>
19008
19009 PR tree-optimization/69067
19010 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
19011
19012 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
19013
19014 PR target/71245
19015 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
19016 New peepholes to remove unneeded fild/fistp pairs.
19017 (define_peephole2 atomic_loaddi_fpu): Ditto.
19018
19019 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19020
19021 * predict.c (maybe_hot_frequency_p): Avoid division.
19022
19023 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
19024
19025 * doc/install.texi: Use https for shop.fsf.org.
19026
19027 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19028
19029 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
19030 likely_max_stmt_executions_int.
19031
19032 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19033
19034 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
19035 likely_max_stmt_executions_int.
19036
19037 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19038
19039 * profile.c (compute_branch_probabilities): Do not report hitrates
19040 here.
19041 (branch_prob): Report hitrates here.
19042 * predict.c (gimple_predict_edge): Do not assert profile status;
19043 fix formatting issues.
19044
19045 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19046
19047 * predict.c (edge_predicted_by_p): New function.
19048 (predict_paths_for_bb): Do not put multiple predictions of the same type
19049 on one edge.
19050
19051 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19052
19053 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
19054 commit.
19055
19056 2016-05-28 Alan Modra <amodra@gmail.com>
19057
19058 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
19059
19060 2016-05-28 Alan Modra <amodra@gmail.com>
19061
19062 PR rtl-optimization/71275
19063 * ira.c (ira): Free dominance info.
19064
19065 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
19066
19067 * doc/sourcebuild.texi: New address for upstream Go repository.
19068
19069 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
19070
19071 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
19072 (TARGET_ARM_V7M): Likewise.
19073
19074 2016-05-26 Jeff Law <law@redhat.com>
19075
19076 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
19077 (thread_across_edge): Remove calls to find_jump_threads_backwards.
19078 * passes.def: Add jump threading passes before DOM/VRP.
19079 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
19080 argument to a basic block from an edge. Remove tests which are
19081 handled elsewhere.
19082 (pass_data_thread_jumps, class pass_thread_jumps): New.
19083 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
19084 (make_pass_thread_jumps): Likewise.
19085 * tree-pass.h (make_pass_thread_jumps): Declare.
19086
19087 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
19088
19089 * config/visium/visium-protos.h (split_double_move): Rename into...
19090 (visium_split_double_move): ...this.
19091 (visium_split_double_add): Declare.
19092 * config/visium/visium.c (split_double_move): Rename into...
19093 (visium_split_double_move): ...this.
19094 (visium_split_double_add): New function.
19095 (visium_expand_copysign): Renumber operands for consistency.
19096 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
19097 (DFmode move splitter): Likewise.
19098 (*addi3_insn): Split by means of visium_split_double_add.
19099 (*adddi3_insn_flags): Delete.
19100 (*plus_plus_sltu<subst_arith>): New insn.
19101 (*subdi3_insn): Split by means of visium_split_double_add.
19102 (subdi3_insn_flags): Delete.
19103 (*minus_minus_sltu<subst_arith>): New insn.
19104 (*negdi2_insn): Split by means of visium_split_double_add.
19105 (*negdi2_insn_flags): Delete.
19106
19107 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
19108
19109 * configure.ac: Treat a --with-headers option without argument
19110 the same as the default (i.e. consult sys-include directory).
19111 * configure: Regenerate.
19112
19113 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19114
19115 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
19116 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
19117 prototype.
19118 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
19119 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
19120
19121 2016-05-27 Jiong Wang <jiong.wang@arm.com>
19122
19123 PR target/63596
19124 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
19125 tree-stdarg analysis results.
19126 (aarch64_setup_incoming_varargs): Likewise.
19127
19128 2016-05-27 Jiong Wang <jiong.wang@arm.com>
19129
19130 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
19131 va_list_gpr_counter_field and va_list_fpr_counter_field.
19132
19133 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
19134
19135 PR67609
19136 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
19137 * config/aarch64/aarch64.c
19138 (aarch64_cannot_change_mode_class): Remove function.
19139 * config/aarch64/aarch64-protos.h
19140 (aarch64_cannot_change_mode_class): Remove.
19141
19142 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19143
19144 * cfgloop.c (record_niter_bound): Record likely upper bounds.
19145 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
19146 get_likely_max_loop_iterations_int): New.
19147 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
19148 any_likely_upper_bound.
19149 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
19150 Declare.
19151 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
19152 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
19153 upper bound.
19154 (unroll_loop_constant_iterations): Likewise.
19155 (unroll_loop_runtime_iterations): Likewise.
19156 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
19157 * lto-streamer-out.c (output_cfg): Likewise.
19158 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
19159 bounds.
19160 (canonicalize_loop_induction_variables): Dump likely upper bounds.
19161 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
19162 (likely_max_loop_iterations): New.
19163 (likely_max_loop_iterations_int): New.
19164 (likely_max_stmt_executions): New.
19165 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
19166 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
19167 likely_max_stmt_executions): Declare.
19168
19169 2016-05-27 Marek Polacek <polacek@redhat.com>
19170
19171 PR middle-end/71308
19172 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
19173
19174 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19175
19176 * config/s390/s390.md (2x risbg splitters): Use
19177 reg_overlap_mentioned_p instead of rtx_equal_p.
19178
19179 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19180
19181 * combine.c (make_compound_operation): Take known zero bits into
19182 account when checking for possible zero_extend.
19183
19184 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19185
19186 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
19187 Use const_int_operand for operand 2 predicate. Simplify expand code
19188 as a result.
19189
19190 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
19191
19192 PR middle-end/71279
19193 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
19194 into comparison.
19195
19196 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19197
19198 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
19199 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
19200 that returns CC_SESWPmode and CC_ZESWPmode.
19201 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
19202 and CC_SESWPmode.
19203 (aarch64_rtx_costs): Likewise.
19204
19205 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19206
19207 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
19208 for ISA 3.0 min/max support.
19209 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
19210 conditional move support.
19211 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
19212 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
19213 available.
19214 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
19215 conditional moves where the comparison type is different from move
19216 type.
19217 (fp_minmax): New code iterator for smin/smax.
19218 (minmax): New code attributes for min/max.
19219 (SMINMAX): Likewise.
19220 (smax<mode>3): Combine min, max insns into one insn using the
19221 fp_minmax code iterator. Add support for ISA 3.0 min/max
19222 instructions that don't need -ffast-math.
19223 (s<minmax><mode>3): Likewise.
19224 (smax<mode>3_vsx): Likewise.
19225 (smin<mode>3): Likewise.
19226 (s<minmax><mode>3_vsx): Likewise.
19227 (smin<mode>3_vsx): Likewise.
19228 (pre-VSX min/max splitters): Likewise.
19229 (s<minmax><mode>3_fpr): Likewise.
19230 (movsfcc): Rewrite floating point conditional moves to combine
19231 SFmode/DFmode into a single insn.
19232 (mov<mode>cc): Likewise.
19233 (movdfcc): Likewise.
19234 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
19235 SFDF2 iterators to handle all combinations.
19236 (fseldfsf4): Likewise.
19237 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
19238 (fseldfdf4): Likewise.
19239 (fselsfdf4): Likewise.
19240 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
19241 comparison instructions that set a 0/-1 mask, and use it for
19242 floating point conditional move via XXSEL.
19243 (fpmask<mode>): Likewise.
19244 (xxsel<mode>): Likewise.
19245 * config/rs6000/predicates.md (min_max_operator): Delete, no
19246 longer used.
19247 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
19248 instructions that generate a 0/-1 mask for use with XXSEL.
19249 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
19250 say whether floating point min/max is available, either through
19251 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
19252 (TARGET_MINMAX_DF): Likewise.
19253
19254 2016-05-27 Alan Modra <amodra@gmail.com>
19255
19256 PR rtl-optimization/71275
19257 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
19258 for update_equiv_regs and combine_and_move_insns.
19259
19260 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
19261
19262 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
19263 if_then_else or cond RTXes to calculate attribute value.
19264 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
19265 <attr "length_immediate>: Ditto.
19266 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
19267 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
19268 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
19269 <attr "type">: Ditto.
19270 <attr "prefix_data16">: Ditto.
19271 <attr "prefix_extra">: Ditto.
19272 <attr "length_immediate">: Ditto.
19273 <attr "prefix">: Ditto.
19274 (vec_set<mode>_0) <attr "isa">: Ditto.
19275 <attr "prefix_extra">: Ditto.
19276 <attr "length_immediate">: Ditto.
19277 <attr "prefix">: Ditto.
19278 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
19279 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
19280 (sse2_storelpd) <attr "prefix_data16">: Ditto.
19281 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
19282 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
19283 <attr "length_immediate">: Ditto.
19284 <attr "prefix">: Ditto.
19285 (sse2_movsd) <attr "length_immediate">: Ditto.
19286 <attr "prefix">: Ditto.
19287 (vec_concatv2df) <attr "isa">: Ditto.
19288 <attr "prefix">: Ditto.
19289 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
19290 (*vec_extractv2di_1) <attr "isa">: Ditto.
19291 <attr "type">: Ditto.
19292 <attr "length_immediate">: Ditto.
19293 <attr "prefix_rex">: Ditto.
19294 <attr "prefix_extra">: Ditto.
19295 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
19296 <attr "prefix_extra">: Ditto.
19297 <attr "length_immediate">: Ditto.
19298 (vec_concatv2di) <attr "isa">: Ditto.
19299 <attr "prefix_extra">: Ditto.
19300 <attr "length_immediate">: Ditto.
19301 <attr "prefix">: Ditto.
19302
19303 2016-05-26 Martin Liska <mliska@suse.cz>
19304
19305 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
19306 function.
19307 (operator+): Likewise.
19308 (operator-): Likewise.
19309 (comp_cost::operator+=): Likewise.
19310 (comp_cost::operator-=): Likewise.
19311 (comp_cost::operator/=): Likewise.
19312 (comp_cost::operator*=): Likewise.
19313 (operator<): Likewise.
19314 (operator==): Likewise.
19315 (operator<=): Likewise.
19316 (new_cost): Remove.
19317 (infinite_cost_p): Likewise.
19318 (add_costs): Likewise.
19319 (sub_costs): Likewise.
19320 (compare_costs): Likewise.
19321 (set_group_iv_cost): Use the newly introduced functions.
19322 (get_address_cost): Likewise.
19323 (get_shiftadd_cost): Likewise.
19324 (force_expr_to_var_cost): Likewise.
19325 (split_address_cost): Likewise.
19326 (ptr_difference_cost): Likewise.
19327 (difference_cost): Likewise.
19328 (get_computation_cost_at): Likewise.
19329 (determine_group_iv_cost_generic): Likewise.
19330 (determine_group_iv_cost_address): Likewise.
19331 (determine_group_iv_cost_cond): Likewise.
19332 (autoinc_possible_for_pair): Likewise.
19333 (determine_group_iv_costs): Likewise.
19334 (cheaper_cost_pair): Likewise.
19335 (iv_ca_recount_cost): Likewise.
19336 (iv_ca_set_no_cp): Likewise.
19337 (iv_ca_set_cp): Likewise.
19338 (iv_ca_cost): Likewise.
19339 (iv_ca_new): Likewise.
19340 (iv_ca_dump): Likewise.
19341 (iv_ca_narrow): Likewise.
19342 (iv_ca_prune): Likewise.
19343 (iv_ca_replace): Likewise.
19344 (try_add_cand_for): Likewise.
19345 (try_improve_iv_set): Likewise.
19346 (find_optimal_iv_set): Likewise.
19347
19348 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
19349
19350 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
19351 that internal functions will clobber all caller-saved registers.
19352
19353 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
19354
19355 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
19356 Return a better case_values_threshold when optimizing.
19357
19358 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
19359
19360 * config/aarch64/aarch64-simd.md (aarch64_combinez):
19361 Add ? to integer variant.
19362 (aarch64_combinez_be): Likewise.
19363
19364 2016-05-26 Jakub Jelinek <jakub@redhat.com>
19365
19366 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
19367 instead of x constraint.
19368 (vcvtps2ph256<mask_name>): Likewise.
19369
19370 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
19371 alternative. Formatting fix.
19372
19373 * config/i386/sse.md
19374 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
19375 to ...
19376 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
19377 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
19378 maybe_evex prefix instead of vex.
19379 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
19380 EXT_REX_SSE_REG_P (op0) case in the splitter.
19381
19382 2016-05-25 Jeff Law <law@redhat.com>
19383
19384 PR tree-optimization/71272
19385 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
19386 Update comments. Add test for empty path.
19387
19388 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19389
19390 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
19391 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
19392 special case builtin.
19393 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19394 code for ALTIVEC_BUILTIN_VEC_CMPNE.
19395 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19396 for __builtin_vec_cmpne.
19397
19398 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
19399
19400 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
19401 redundant test and bail out if the type of the new operand is not
19402 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
19403
19404 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
19405
19406 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
19407 (x_ix86_target_flags_explicit): Remove.
19408 * config/i386/i386.c (ix86_function_specific_save): Do not copy
19409 x_ix86_target_flags_explicit.
19410 (ix86_function_specific_restore): Ditto.
19411
19412 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
19413 H.J. Lu <hongjiu.lu@intel.com>
19414
19415 PR target/70738
19416 * common/config/i386/i386-common.c
19417 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
19418 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
19419 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
19420 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
19421 (-mgeneral-regs-only): Add new option.
19422 * config/i386/i386.c (ix86_option_override_internal): Don't enable
19423 x87 instructions if only general registers are allowed.
19424 (ix86_target_string): Add ix86_flags argument. Handle additional
19425 flags options through ix86_flags argument. Update all callers.
19426 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
19427
19428 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19429
19430 PR rtl-optimization/66940
19431 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
19432 decrementing desired_val will not overflow before performing these
19433 operations.
19434
19435 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
19436
19437 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
19438 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
19439 * config/i386/i386.c (enum ix86_builtins): Add
19440 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
19441 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
19442 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
19443 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
19444 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
19445 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
19446 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
19447 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
19448 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
19449 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
19450 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
19451 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
19452 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
19453 __builtin_ia32_cvtps2dq512_mask.
19454 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
19455 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
19456 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
19457 * config/i386/sse.md
19458 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
19459 Rename to ...
19460 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
19461 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
19462 to ...
19463 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
19464 (avx512f_vec_pack_sfix_v8df): New define_expand.
19465 (avx512f_roundpd512): Rename to ...
19466 (avx512f_round<castmode>512): ... this. Change iterator.
19467 (avx512f_roundps512_sfix): New define_expand.
19468 (round<mode>2_sfix): Change iterator.
19469
19470 2016-05-25 Nick Clifton <nickc@redhat.com>
19471
19472 * config/msp430/msp430.c (msp430_attr): Produce an error if a
19473 static interrupt handler is detected.
19474 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
19475 default linker script.
19476 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
19477 the low part of a symbolic pointer.
19478
19479 2016-05-25 Richard Biener <rguenther@suse.de>
19480
19481 PR tree-optimization/71261
19482 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
19483 interesting stmt instead of immediate uses when looking
19484 for the use operand to replace.
19485
19486 2016-05-25 Martin Liska <mliska@suse.cz>
19487
19488 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
19489
19490 2016-05-25 Richard Biener <rguenther@suse.de>
19491
19492 PR tree-optimization/71264
19493 * tree-vect-stmts.c (vect_init_vector): Properly deal with
19494 vector type val.
19495
19496 2016-05-25 Martin Liska <mliska@suse.cz>
19497
19498 PR tree-optimization/71239
19499 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
19500 if DECL_SIZE is NULL.
19501
19502 2016-05-25 Richard Biener <rguenther@suse.de>
19503
19504 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
19505 * tree-if-conv.c (pass_data_if_conversion): Use it.
19506
19507 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19508
19509 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
19510 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
19511 * varpool.c (varpool_node::get_availability): Likewise.
19512
19513 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19514
19515 * config/rs6000/altivec.md (VNEG iterator): New iterator for
19516 VNEGW/VNEGD instructions.
19517 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
19518 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
19519 support for ISA 3.0 VNEGW/VNEGD instructions.
19520
19521 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
19522
19523 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
19524 pointers inside OACC_DATA regions.
19525 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
19526 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
19527 (gimplify_adjust_omp_clauses): Fix typo in comment.
19528
19529 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19530
19531 * config/rs6000/altivec.md (VParity): New mode iterator for vector
19532 parity built-in functions.
19533 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
19534 zeros.
19535 (p9v_parity<mode>2): Likewise.
19536 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
19537 parity.
19538 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
19539 (parity<mode>2): ISA 3.0 expander for vector parity.
19540 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
19541 power9 built-ins.
19542 (BU_P9_64BIT_MISC_0): Likewise.
19543 (BU_P9_MISC_0): Likewise.
19544 (BU_P9V_AV_1): Likewise.
19545 (BU_P9V_AV_2): Likewise.
19546 (BU_P9V_AV_3): Likewise.
19547 (BU_P9V_AV_P): Likewise.
19548 (BU_P9V_VSX_1): Likewise.
19549 (BU_P9V_OVERLOAD_1): Likewise.
19550 (BU_P9V_OVERLOAD_2): Likewise.
19551 (BU_P9V_OVERLOAD_3): Likewise.
19552 (VCTZB): Add vector count trailing zeros support.
19553 (VCTZH): Likewise.
19554 (VCTZW): Likewise.
19555 (VCTZD): Likewise.
19556 (VPRTYBD): Add vector parity support.
19557 (VPRTYBQ): Likewise.
19558 (VPRTYBW): Likewise.
19559 (VCTZ): Add overloaded vector count trailing zeros support.
19560 (VPRTYB): Add overloaded vector parity support.
19561 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19562 overloaded vector count trailing zeros and parity instructions.
19563 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
19564 vector parity support.
19565 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
19566 trailing zeros support.
19567 (vec_cntlz): Likewise.
19568 (vec_vctzb): Likewise.
19569 (vec_vctzd): Likewise.
19570 (vec_vctzh): Likewise.
19571 (vec_vctzw): Likewise.
19572 (vec_vprtyb): Add ISA 3.0 vector parity support.
19573 (vec_vprtybd): Likewise.
19574 (vec_vprtybw): Likewise.
19575 (vec_vprtybq): Likewise.
19576 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19577 the ISA 3.0 vector count trailing zeros and vector parity built-in
19578 functions.
19579
19580 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19581
19582 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
19583 when there is stmt_to_insert.
19584
19585 2016-05-24 Martin Sebor <msebor@redhat.com>
19586
19587 PR c++/71147
19588 * tree.h (complete_or_array_type_p): New inline function.
19589
19590 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19591
19592 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
19593 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
19594 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
19595
19596 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
19597 Limit 1st alternative to noavx isa, split 2nd alternative into one
19598 noavx and one avx alternative, use *x and Bm in the former and
19599 x and m in the latter.
19600
19601 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
19602 of sse4 for the first alternative, drop %v from the template
19603 and d operand modifier. Split second alternative into one sse4_noavx
19604 and one avx alternative, use *x instead of *v in the former and v
19605 instead of *v in the latter.
19606 (*sse4_1_extractps): Use noavx isa instead of * for the first
19607 alternative, drop %v from the template. Split second alternative into
19608 one noavx and one avx alternative, use *x instead of *v in the
19609 former and v instead of *v in the latter.
19610 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
19611 with noavx and the last one with avx.
19612 (sse4_1_phminposuw): Guard first alternative with noavx isa,
19613 split the second one into one noavx and one avx alternative,
19614 use *x and Bm in the former and x and m in the latter one.
19615 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
19616 alternatives.
19617
19618 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
19619 first two alternatives to noavx, use *x instead of *v in the second
19620 one, add avx alternative without *.
19621 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
19622 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
19623 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
19624
19625 2016-05-24 Jeff Law <law@redhat.com>
19626
19627 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
19628 New function, extracted from...
19629 (fsm_find_control_statement_thread_paths): Here. Use the new function.
19630 Allow simple copies and constant initializations in the SSA chain.
19631
19632 2016-05-24 Marek Polacek <polacek@redhat.com>
19633
19634 PR c/71249
19635 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
19636 scope.
19637
19638 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19639
19640 PR c++/71257
19641 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
19642 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
19643 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
19644 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
19645 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
19646
19647 2016-05-24 Richard Biener <rguenther@suse.de>
19648
19649 PR tree-optimization/71240
19650 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
19651 has integral type.
19652
19653 2016-05-24 Richard Biener <rguenther@suse.de>
19654
19655 PR tree-optimization/71230
19656 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
19657
19658 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19659
19660 * tree-vectorizer.h (vectorizable_comparison): Delete.
19661 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
19662 PURE_SLP_STMT check.
19663 * tree-vect-stmts.c (vectorizable_call): Likewise.
19664 (vectorizable_simd_clone_call): Likewise.
19665 (vectorizable_conversion): Likewise.
19666 (vectorizable_assignment): Likewise.
19667 (vectorizable_shift): Likewise.
19668 (vectorizable_operation): Likewise.
19669 (vectorizable_load): Likewise.
19670 (vectorizable_condition): Likewise.
19671 (vectorizable_store): Likewise. Assert that we don't have
19672 hybrid SLP.
19673 (vectorizable_comparison): Make static. Remove redundant
19674 PURE_SLP_STMT check.
19675 (vect_transform_stmt): Assert that we always have an slp_node
19676 if PURE_SLP_STMT.
19677
19678 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19679
19680 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
19681 operands[2] against 1 with comparison against CONST1_RTX.
19682 (<shift>di3_neon): Likewise.
19683 * config/arm/predicates.md (const0_operand): Replace with comparison
19684 against CONST0_RTX.
19685
19686 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19687
19688 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
19689 operands[2] against 1 with comparison against CONST1_RTX.
19690 (ashrdi3): Likewise.
19691 (lshrdi3): Likewise.
19692 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
19693 UINTVAL.
19694 (ashrsi3): Likewise.
19695 (lshrsi3): Likewise.
19696 (rotrsi3): Likewise.
19697 (define_split above *compareqi_eq0): Likewise.
19698 (define_split above "prologue"): Likewise.
19699 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
19700 * config/arm/predicates.md (shift_operator): Likewise.
19701 (shift_nomul_operator): Likewise.
19702 (sat_shift_operator): Likewise.
19703 (thumb1_cmp_operand): Likewise.
19704 (const_neon_scalar_shift_amount_operand): Replace manual range
19705 check with IN_RANGE.
19706 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
19707 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
19708
19709 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19710
19711 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
19712 with HOST_WIDE_INT_1.
19713 (insv): Likewise.
19714 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
19715 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
19716 (arm_canonicalize_comparison): Likewise.
19717 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
19718 HOST_WIDE_INT_1.
19719 (thumb1_size_rtx_costs): Likewise.
19720 (vfp_const_double_index): Replace cast of 1 to unsigned
19721 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19722 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
19723 HOST_WIDE_INT_1.
19724 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
19725 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19726 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
19727 HOST_WIDE_INT with HOST_WIDE_INT_1.
19728
19729 2016-05-24 Marek Polacek <polacek@redhat.com>
19730
19731 * tree-cfg.h (should_remove_lhs_p): New predicate.
19732 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19733 * gimplify.c (gimplify_modify_expr): Likewise.
19734 * tree-cfg.c (verify_gimple_call): Likewise.
19735 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19736 * gimple-fold.c: Include "tree-cfg.h".
19737 (gimple_fold_call): Use should_remove_lhs_p.
19738
19739 2016-05-24 Richard Biener <rguenther@suse.de>
19740
19741 PR tree-optimization/71253
19742 * cfganal.h (control_dependences): Make robust against edge
19743 and BB removal.
19744 (control_dependences::control_dependences): Remove edge_list argument.
19745 (control_dependences::get_edge): Remove.
19746 (control_dependences::get_edge_src): Add.
19747 (control_dependences::get_edge_dest): Likewise.
19748 (control_dependences::m_el): Make a vector of edge src/dest index.
19749 * cfganal.c (control_dependences::find_control_dependence): Adjust.
19750 (control_dependences::control_dependences): Likewise.
19751 (control_dependences::~control_dependence): Likewise.
19752 (control_dependences::get_edge): Remove.
19753 (control_dependences::get_edge_src): Add.
19754 (control_dependences::get_edge_dest): Likewise.
19755 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
19756 get_edge_src.
19757 (perform_tree_ssa_dce): Adjust.
19758 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
19759 get_edge_src.
19760 (pass_loop_distribution::execute): Adjust. Do loop destroying
19761 conditional on changed.
19762
19763 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19764
19765 PR target/69857
19766 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
19767 return. Reindent transformation comment and mention the ARM state
19768 behavior.
19769
19770 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19771
19772 PR middle-end/71252
19773 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19774 after build_and_add_sum creates new use stmt.
19775
19776 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19777
19778 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19779 load_lanes/grouped_load classification comes first. Don't check
19780 whether the vectorization factor is a multiple of the group size
19781 for load_lanes.
19782
19783 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19784
19785 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19786 GROUP_GAP for single-element interleaving.
19787 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19788 variable.
19789
19790 2016-05-24 Richard Biener <rguenther@suse.de>
19791
19792 PR middle-end/70434
19793 PR c/69504
19794 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19795 bases which are accessed with non-invariant indices.
19796 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19797 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19798
19799 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19800
19801 PR middle-end/71170
19802 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19803 (add_to_ops_vec): Add stmt_to_insert.
19804 (add_repeat_to_ops_vec): Init stmt_to_insert.
19805 (insert_stmt_before_use): New.
19806 (transform_add_to_multiply): Remove mult_stmt insertion and add it
19807 to ops vector.
19808 (get_ops): Init stmt_to_insert.
19809 (maybe_optimize_range_tests): Likewise.
19810 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19811 (rewrite_expr_tree_parallel): Likewise.
19812 (reassociate_bb): Likewise.
19813
19814 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19815
19816 PR target/71201
19817 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19818 ISA 3.0 xxperm fusion alternative.
19819 (altivec_vperm_v8hiv16qi): Likewise.
19820 (altivec_vperm_<mode>_uns_internal): Likewise.
19821 (vperm_v8hiv4si): Likewise.
19822 (vperm_v16qiv8hi): Likewise.
19823
19824 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19825 Kelvin Nilsen <kelvin@gcc.gnu.org>
19826
19827 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19828 vpermr/xxpermr on ISA 3.0.
19829 (altivec_expand_vec_perm_le): Likewise.
19830 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19831 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19832 ISA 3.0.
19833
19834 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
19835
19836 * config/i386/i386.h (IS_STACK_MODE): Enable for
19837 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
19838 SSE_FLOAT_MODE_P macros.
19839 * config/i386/i386.c (ix86_preferred_reload_class): Use
19840 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19841 Cleanup regclass processing for CONST_DOUBLE_P.
19842 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19843 (ix86_rtx_costs): Remove redundant TARGET_80387 check
19844 with IS_STACK_MODE macro.
19845 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19846 with TARGET_SSE2.
19847 (*movdf_internal): Use IS_STACK_MODE macro.
19848 (*movsf_internal): Ditto.
19849
19850 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
19851
19852 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19853 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19854
19855 2016-05-23 Jeff Law <law@redhat.com>
19856
19857 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19858 extracted from ...
19859 (fsm_find_control_statement_thread_paths): Call it.
19860
19861 2016-05-23 Martin Jambor <mjambor@suse.cz>
19862
19863 PR ipa/71234
19864 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19865 from_global_constant if t is not NULL.
19866
19867 2016-05-23 Marek Polacek <polacek@redhat.com>
19868
19869 PR c/49859
19870 * common.opt (Wswitch-unreachable): New option.
19871 * doc/invoke.texi: Document -Wswitch-unreachable.
19872 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19873 warning.
19874
19875 2016-05-23 Bin Cheng <bin.cheng@arm.com>
19876
19877 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19878 TMR_INDEX is non-NULL.
19879
19880 2016-05-23 Richard Biener <rguenther@suse.de>
19881
19882 PR tree-optimization/71230
19883 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19884 (try_special_add_to_ops): ... here. Always test for single-use.
19885
19886 2016-05-23 Martin Jambor <mjambor@suse.cz>
19887
19888 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19889 default block if a PHI node in the original one would be resized.
19890
19891 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19892
19893 PR tree-optimization/58135
19894 * tree-vect-slp.c: When group size is not multiple
19895 of vector size, allow splitting of store group at
19896 vector boundary.
19897
19898 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
19899
19900 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19901
19902 2016-05-22 Jakub Jelinek <jakub@redhat.com>
19903
19904 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19905 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19906 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
19907 of 64x2.
19908
19909 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19910 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19911 v constraint instead of x and vinserti32x4 insn.
19912
19913 * config/i386/sse.md (i128vldq): New mode iterator.
19914 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19915 avx512dq and avx512vl alternatives.
19916
19917 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19918 constraint, use maybe_evex prefix instead of vex.
19919 (vec_dupv4sf): Use v constraint instead of x for output
19920 operand except for noavx alternative, use Yv constraint
19921 instead of x for input. Use maybe_evex prefix instead of vex.
19922 (*vec_dupv4si): Likewise.
19923 (*vec_dupv2di): Likewise.
19924
19925 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19926
19927 PR middle-end/40921
19928 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19929 (linearize_expr_tree): Call try_special_add_to_ops.
19930 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19931
19932 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19933
19934 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19935 to computed stack_usage.
19936
19937 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19938
19939 PR target/71103
19940 * config/avr/avr.md (define_expand "mov<mode>"): If the source
19941 operand is subreg (symbol_ref) then move the symbol ref to register.
19942
19943 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
19944
19945 * tree.c (array_at_struct_end_p): Look through MEM_REF.
19946
19947 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
19948
19949 PR middle-end/71179
19950 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19951 VECTOR type.
19952
19953 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19954
19955 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19956 ranges by calling get_single_symbol and tidy up. Look more closely
19957 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19958
19959 2016-05-20 Jeff Law <law@redhat.com>
19960
19961 * bitmap.c (bitmap_find_bit): Remove useless test.
19962
19963 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19964
19965 * function.c (thread_prologue_and_epilogue_insns): Commit the
19966 insertion of the epilogue.
19967
19968 2016-05-20 Martin Jambor <mjambor@suse.cz>
19969
19970 PR tree-optimization/70884
19971 * tree-sra.c (initialize_constant_pool_replacements): Do not check
19972 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19973 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19974 of constant pool data as a reason for scalarization.
19975
19976 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19977
19978 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19979 for naked functions.
19980 (thumb1_expand_prologue): Likewise.
19981
19982 2016-05-20 Nathan Sidwell <nathan@acm.org>
19983
19984 * config/nvptx/nptx.c (nvptx_option_override): Only set
19985 flag_toplevel_reorder, if not explicitly specified. Set
19986 flag_no_common, unless explicitly specified.
19987
19988 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19989
19990 * calls.c (can_implement_as_sibling_call_p): Mark param
19991 reg_parm_stack_space with ATTRIBUTE_UNUSED.
19992
19993 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
19994
19995 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19996 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19997 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19998 constants.
19999 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
20000 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
20001 and CASE_CONST_ANY.
20002
20003 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
20004
20005 * config/nvptx/nvptx.md (sincossf3): New pattern.
20006
20007 2016-05-20 David Malcolm <dmalcolm@redhat.com>
20008
20009 * calls.c (maybe_complain_about_tail_call): New function.
20010 (initialize_argument_information): Call
20011 maybe_complain_about_tail_call when clearing *may_tailcall.
20012 (can_implement_as_sibling_call_p): Call
20013 maybe_complain_about_tail_call when returning false.
20014 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
20015 ensure try_tail_call is set. Call maybe_complain_about_tail_call
20016 if tail-call optimization fails.
20017 * cfgexpand.c (expand_call_stmt): Initialize
20018 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
20019 * gimple-pretty-print.c (dump_gimple_call): Dump
20020 gimple_call_must_tail_p.
20021 * gimple.c (gimple_build_call_from_tree): Call
20022 gimple_call_set_must_tail with the value of
20023 CALL_EXPR_MUST_TAIL_CALL.
20024 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
20025 (gimple_call_set_must_tail): New function.
20026 (gimple_call_must_tail_p): New function.
20027 * print-tree.c (print_node): Update printing of TREE_STATIC
20028 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
20029 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
20030 trailing comment listing applicable flags.
20031 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
20032
20033 2016-05-20 David Malcolm <dmalcolm@redhat.com>
20034
20035 * calls.c (expand_call): Move "Rest of purposes for tail call
20036 optimizations to fail" to...
20037 (can_implement_as_sibling_call_p): ...this new function, and
20038 split into multiple "if" statements.
20039
20040 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
20041
20042 * cfgloop.h (expected_loop_iterations_unbounded,
20043 expected_loop_iterations): Unconstify.
20044 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
20045 profile with known upper bound; return 3 when profile is absent.
20046 (expected_loop_iterations): Update.
20047
20048 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
20049
20050 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
20051 and get_max_loop_iterations_int.
20052
20053 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
20054
20055 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
20056 realistic upper bounds here.
20057
20058 2016-05-20 Jakub Jelinek <jakub@redhat.com>
20059
20060 PR c++/71210
20061 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
20062 calls if the LHS is variable length or has addressable type.
20063 If targets[0]->decl is a noreturn call with void return type and
20064 zero arguments, adjust fntype and remove lhs in that case.
20065
20066 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
20067
20068 PR tree-optimization/71079
20069 PR tree-optimization/71206
20070 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
20071
20072 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20073
20074 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
20075 (get_vec_alignment_for_array_decl): Likewise.
20076 (get_vec_alignment_for_record_decl): Likewise.
20077 (increase_alignment::execute): Move code to find alignment to
20078 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
20079 (type_align_map): New hash_map.
20080
20081 2016-05-20 Richard Guenther <rguenther@suse.de>
20082
20083 PR tree-optimization/29756
20084 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
20085 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
20086 * fold-const.c (operand_equal_p): Likewise.
20087 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
20088 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
20089 * tree-inline.c (estimate_operator_cost): Likewise.
20090 * tree-pretty-print.c (dump_generic_node): Likewise.
20091 * tree-ssa-operands.c (get_expr_operands): Likewise.
20092 * cfgexpand.c (expand_debug_expr): Likewise.
20093 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20094 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
20095 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
20096 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
20097 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
20098 (execute_update_addresses_taken): Do it.
20099
20100 2016-05-20 Richard Biener <rguenther@suse.de>
20101
20102 PR tree-optimization/71185
20103 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
20104 register operations.
20105
20106 2016-05-20 Richard Biener <rguenther@suse.de>
20107
20108 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
20109 gimple_seq_add_seq_without_update.
20110 (release_bb_predicate): Assert we have no operands to free.
20111 (if_convertible_loop_p_1): Calculate post dominators later.
20112 Do not free BB predicates here.
20113 (combine_blocks): Do not recompute BB predicates.
20114 (version_loop_for_if_conversion): Save BB predicates around
20115 loop versioning.
20116
20117 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20118
20119 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
20120 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
20121 code. Ignore sibcalls on EDGE_IGNORE edges.
20122 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
20123 on edges for sibcalls that run without prologue. The rest of the
20124 function is combined from...
20125 (fix_fake_fallthrough_edge): ... this, and ...
20126 (try_shrink_wrapping): ... a part of this. Remove the bb_with
20127 function argument, make it a local variable.
20128
20129 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
20130
20131 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
20132 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
20133 for 32-bit mode and SEH for 64-bit.
20134 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
20135 TARGET_64BIT_DEFAULT.
20136
20137 2016-05-19 Ryan Burn <contact@rnburn.com>
20138
20139 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
20140 * gengtype.c (open_base_files): Add cilk.h to ifiles.
20141
20142 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
20143
20144 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
20145 force pending loads from memory.
20146
20147 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
20148
20149 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
20150 (UNSPEC_DARN_32): New unspec constant.
20151 (UNSPEC_DARN_RAW): New unspec constant.
20152 (darn_32): New instruction.
20153 (darn_raw): New instruction.
20154 (darn): New instruction.
20155 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
20156 support and documentation for this macro.
20157 (BU_P9_MISC_1): New macro definition.
20158 (BU_P9_64BIT_MISC_0): New macro definition.
20159 (BU_P9_MISC_0): New macro definition.
20160 (darn_32): New builtin definition.
20161 (darn_raw): New builtin definition.
20162 (darn): New builtin definition.
20163 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
20164 RS6000_BUILTIN_0 directives to surround each occurrence of
20165 #include "rs6000-builtin.def".
20166 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
20167 RS6000_BTM_64BIT flags to the returned mask, depending on
20168 configuration.
20169 (def_builtin): Correct an error in the assignments made to the
20170 debugging variable attr_string.
20171 (rs6000_expand_builtin): Add support for no-operand built-in
20172 functions.
20173 (builtin_function_type): Remove fatal_error assertion that is no
20174 longer valid.
20175 (rs6000_common_init_builtins): Add support for no-operand built-in
20176 functions.
20177 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
20178 definition.
20179 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
20180 definition.
20181 (RS6000_BTM_64BIT): New macro definition.
20182 * doc/extend.texi: Document __builtin_darn (void),
20183 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
20184 functions.
20185
20186 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
20187
20188 * tree-vect-loop.c (vect_analyze_loop_2): Use also
20189 max_loop_iterations_int.
20190
20191 2016-05-19 Marek Polacek <polacek@redhat.com>
20192
20193 PR tree-optimization/71031
20194 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
20195 condition and adjust the code a bit.
20196
20197 2016-05-19 Martin Liska <mliska@suse.cz>
20198
20199 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
20200 auto_vec instead of vec.
20201
20202 2016-05-19 Martin Liska <mliska@suse.cz>
20203
20204 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
20205
20206 2016-05-19 Martin Liska <mliska@suse.cz>
20207
20208 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
20209
20210 2016-05-19 Martin Liska <mliska@suse.cz>
20211
20212 * ipa-pure-const.c (set_function_state): Remove an existing
20213 funct_state.
20214 (remove_node_data): Do not free it as it's released
20215 in set_function_state.
20216
20217 2016-05-19 Martin Liska <mliska@suse.cz>
20218
20219 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
20220 bitmap.
20221
20222 2016-05-19 Martin Liska <mliska@suse.cz>
20223
20224 * omp-simd-clone.c (simd_clone_adjust): Release vector.
20225
20226 2016-05-19 Martin Liska <mliska@suse.cz>
20227
20228 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
20229 an auto_vec instead of re-creating it.
20230
20231 2016-05-19 Martin Liska <mliska@suse.cz>
20232
20233 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
20234 auto_vec instead of vec.
20235
20236 2016-05-19 Martin Liska <mliska@suse.cz>
20237
20238 * lto-section-in.c (lto_get_section_data): Call
20239 lto_check_version with additional argument.
20240 * lto-streamer.c (lto_check_version): Add new argument.
20241 * lto-streamer.h (lto_check_version): Likewise.
20242
20243 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20244
20245 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
20246 Don't add cost of inner memory when handling sign-extended loads.
20247
20248 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
20249
20250 PR rtl-optimization/71148
20251 * cse.c (cse_main): Free dominance info.
20252 (rest_of_handle_cse): Don't free dominance info.
20253 (rest_of_handle_cse2): Likewise.
20254 (rest_of_handle_cse_after_global_opts): Likewise.
20255
20256 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20257
20258 PR target/71056
20259 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
20260 NULL_TREE early if NEON is not available. Remove now redundant check
20261 in ARM_CHECK_BUILTIN_MODE.
20262
20263 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
20264
20265 PR sanitizer/64354
20266 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
20267 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
20268 * doc/cpp.texi: Document new macros.
20269
20270 2016-05-19 Bin Cheng <bin.cheng@arm.com>
20271
20272 PR tree-optimization/69848
20273 * tree-vect-loop.c (vectorizable_reduction): Don't factor
20274 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
20275
20276 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20277
20278 * function.c (thread_prologue_and_epilogue_insn): Move the
20279 "goto epilogue_done" one block later.
20280
20281 2016-05-19 Richard Biener <rguenther@suse.de>
20282
20283 PR tree-optimization/70729
20284 * passes.def: Move LIM pass before PRE. Remove no longer
20285 required copyprop and move first DCE out of the loop pipeline.
20286
20287 2016-05-18 David Malcolm <dmalcolm@redhat.com>
20288
20289 PR driver/69265
20290 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
20291 (OBJS-libcommon-target): ...here.
20292 * opts-common.c: Include spellcheck.h.
20293 (cmdline_handle_error): Build a vec of valid options and use it
20294 to suggest provide hints for misspelled arguments.
20295
20296 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20297
20298 PR c++/71100
20299 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
20300 lhs if it has TREE_ADDRESSABLE type.
20301
20302 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
20303
20304 PR target/71145
20305 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
20306 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
20307
20308 2016-05-18 Martin Jambor <mjambor@suse.cz>
20309
20310 PR ipa/69708
20311 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
20312 input for NOP_EXPR pass-through functions.
20313 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
20314 aggregate global constant VAR_DECLs in constant jump functions.
20315
20316 2016-05-18 Martin Jambor <mjambor@suse.cz>
20317
20318 PR ipa/69708
20319 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
20320 from TREE_READONLY parameters.
20321
20322 2016-05-18 Martin Jambor <mjambor@suse.cz>
20323
20324 PR ipa/69708
20325 * cgraph.h (cgraph_indirect_call_info): New field
20326 guaranteed_unmodified.
20327 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
20328 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20329 appropriate.
20330 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
20331 pass the parameter value to ipa_find_agg_cst_for_param.
20332 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
20333 guaranteed_unmodified, store AA results there instead of bailing out
20334 if present.
20335 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
20336 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
20337 (find_constructor_constant_at_offset): New function.
20338 (ipa_find_agg_cst_from_init): Likewise.
20339 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
20340 static initializers of contants, report back through a new paameter
20341 from_global_constant if that was the case.
20342 (try_make_edge_direct_simple_call): Also pass parameter value to
20343 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20344 appropriate.
20345 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
20346 (ipa_read_indirect_edge_info): Likewise.
20347 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
20348 (ipa_load_from_parm_agg): Likewise.
20349
20350 2016-05-18 Jiong Wang <jiong.wang@arm.com>
20351
20352 PR rtl-optimization/71150
20353 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
20354 check.
20355
20356 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20357
20358 PR target/70915
20359 * config/rs6000/constraints.md (wE constraint): New constraint
20360 for a vector constant that can be loaded with XXSPLTIB.
20361 (wM constraint): New constraint for a vector constant of a 1's.
20362 (wS constraint): New constraint for a vector constant that can be
20363 loaded with XXSPLTIB and a vector sign extend instruction.
20364 * config/rs6000/predicates.md (xxspltib_constant_split): New
20365 predicates for wE/wS constraints.
20366 (xxspltib_constant_nosplit): Likewise.
20367 (easy_vector_constant): Add support for constants that can be
20368 loaded via XXSPLTIB.
20369 (all_ones_constant): New predicate for vector constant with all
20370 1's set.
20371 (splat_input_operand): Add support for ISA 3.0 word splat operations.
20372 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
20373 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
20374 instruction and possibly with a sign extension.
20375 (output_vec_const_move): Add support for XXSPLTIB. If we are
20376 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
20377 instead of XXLXOR/XXLORC.
20378 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
20379 operations.
20380 (rs6000_legitimize_reload_address): Likewise.
20381 (rs6000_output_move_128bit): Use output_vec_const_move to emit
20382 constants.
20383 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
20384 combine VSX_M and VSX_M2 into one iterator.
20385 (VSX_M2): Likewise.
20386 (VSINT_84): New iterators for loading constants with XXSPLTIB.
20387 (VSINT_842): Likewise.
20388 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
20389 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
20390 XXSPLTIB instruction.
20391 (xxspltib_<mode>_nosplit): Likewise.
20392 (xxspltib_<mode>_split): New insn to load up constants with
20393 XXSPLTIB and a sign extend instruction.
20394 (vsx_mov<mode>): Replace single move that handled all vector types
20395 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
20396 moves (when -mvsx-timode is in effect) into the main vector
20397 moves. Eliminate separate moves for <VSr> <VSa>, where the
20398 preferred register class (<VSr>) is listed first, and the
20399 secondary register class (<VSa>) is listed second with a '?' to
20400 discourage use. Prefer loading 0/-1 in any VSX register for ISA
20401 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
20402 that if the register was involved in a slow operation, the
20403 clear/set operation does not wait for the slow operation to
20404 finish. Adjust the length attributes for 32-bit mode. Use
20405 rs6000_output_move_128bit and drop the use of the string
20406 instructions for 32-bit movti when -mvsx-timode is in effect. Use
20407 spacing so that the alternatives and attributes don't generate
20408 long lines, and put things in columns, so that it is easier to
20409 match up the operands and attributes with the insn alternatives.
20410 (vsx_mov<mode>_64bit): Likewise.
20411 (vsx_mov<mode>_32bit): Likewise.
20412 (vsx_movti_64bit): Fold movti into normal vector moves.
20413 (vsx_movti_32bit): Likewise.
20414 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
20415 splat instructions.
20416 (vsx_splat_v4si_internal): Likewise.
20417 (vsx_splat_v4sf_internal): Likewise.
20418 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
20419 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
20420 extend vector elements.
20421 (vsx_sign_extend_hi_<mode>): Likewise.
20422 (vsx_sign_extend_si_v2di): Likewise.
20423 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
20424 declaration.
20425 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
20426 constraints. Add trailing period to wL documentation.
20427
20428 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
20429
20430 PR middle-end/71020
20431 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
20432 * tree-dfa.c (replace_abnormal_ssa_names): New function.
20433 * tree-call-cdce.c: Include tree-dfa.h.
20434 (can_guard_call_p): New function, extracted from...
20435 (can_use_internal_fn): ...here.
20436 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
20437 and return void.
20438 (shrink_wrap_one_built_in_call): Likewise.
20439 (use_internal_fn): Likewise.
20440 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
20441 and return void. Call replace_abnormal_ssa_names.
20442 (pass_call_cdce::execute): Check can_guard_call_p during the
20443 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
20444 will always change something.
20445
20446 2016-05-18 Martin Jambor <mjambor@suse.cz>
20447
20448 PR ipa/70646
20449 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
20450 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
20451
20452 2016-05-18 Martin Jambor <mjambor@suse.cz>
20453
20454 PR ipa/70646
20455 * ipa-inline.h (condition): New field size.
20456 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
20457 for comaprison and store it into the new condition.
20458 (evaluate_conditions_for_known_args): Use condition size to check
20459 access sizes for all but CHANGED conditions.
20460 (unmodified_parm_1): New parameter size_p, store access size into it.
20461 (unmodified_parm): Likewise.
20462 (unmodified_parm_or_parm_agg_item): Likewise.
20463 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
20464 (set_cond_stmt_execution_predicate): Extract access sizes and store
20465 them to conditions.
20466 (set_switch_stmt_execution_predicate): Likewise.
20467 (will_be_nonconstant_expr_predicate): Likewise.
20468 (will_be_nonconstant_predicate): Likewise.
20469 (inline_read_section): Stream condition size.
20470 (inline_write_summary): Likewise.
20471
20472 2016-05-18 Richard Biener <rguenther@suse.de>
20473
20474 * tree-ssa-loop-im.c (determine_max_movement): Properly add
20475 condition cost to PHI cost instead of total_cost.
20476
20477 2016-05-18 Martin Liska <mliska@suse.cz>
20478
20479 PR fortran/70856
20480 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
20481 merged variables.
20482
20483 2016-05-18 Richard Biener <rguenther@suse.de>
20484
20485 * lto-streamer.h (LTO_major_version): Bump to 6.
20486
20487 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20488
20489 * function.c (make_split_prologue_seq, make_prologue_seq,
20490 make_epilogue_seq): New functions, factored out from...
20491 (thread_prologue_and_epilogue_insns): Here.
20492
20493 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20494
20495 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
20496 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
20497 of before. Add a comment.
20498
20499 2016-05-18 Bin Cheng <bin.cheng@arm.com>
20500
20501 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
20502 expression pointer, not pointer to the pointer.
20503
20504 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20505
20506 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
20507 (avx2_pbroadcast<mode>): Add another alternative with v instead
20508 of x constraints in it, using <pbroadcast_evex_isa> isa.
20509 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
20510
20511 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
20512 constraint x instead of v in second alternative, add avx512bw
20513 alternative.
20514
20515 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
20516 constraint x instead of v in second alternative, add avx512bw
20517 alternative.
20518
20519 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
20520 constraint x instead of v in second alternative, add avx512bw
20521 alternative.
20522
20523 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
20524 avx512bw alternative.
20525
20526 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20527
20528 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
20529 array to 128 chars.
20530 (define_insn "*andnottf3"): Ditto.
20531 (define_insn "*<code><mode>3"/any_logic): Ditto.
20532 (define_insn "*<code>tf3"/any_logic): Ditto.
20533 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
20534 operand to block AVX-512VL insn variant emit when it is not enabled.
20535
20536 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20537
20538 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
20539 constraint fot SF mode.
20540
20541 2016-05-18 Petr Murzin <petr.murzin@intel.com>
20542 Kirill Yukhin <kirill.yukhin@intel.com>
20543
20544 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
20545 modifiers.
20546 (define_insn "rsqrt14<mode>"): Ditto.
20547 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20548 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
20549 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
20550 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
20551 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
20552 Ditto.
20553 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
20554 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
20555 * config/i386/i386.c (ix86_print_operand): Expand check for size
20556 override codes for Intel syntax.
20557
20558 2016-05-18 Richard Biener <rguenther@suse.de>
20559
20560 PR tree-optimization/71168
20561 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
20562 initialization earlier.
20563
20564 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
20565
20566 * config/aarch64/aarch64-simd.md
20567 (aarch64_reduc_plus_internal<mode>): Rename to...
20568 (reduc_plus_scal): ...This, and remove previous implementation.
20569
20570 2016-05-18 Richard Biener <rguenther@suse.de>
20571
20572 * passes.def: Put late dse and cd_dce in canonical order.
20573
20574 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
20575
20576 * ipa-inline-transform.c (preserve_function_body_p): Look for
20577 first non-thunk clone.
20578 (save_function_body): Save into first non-thunk.
20579 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
20580 up call stmt id.
20581 (lto_output_node): Inline thunks don't need body in every
20582 partition.
20583 * lto-streamer-in.c: Do not fixup thunk clones.
20584 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
20585 thunks.
20586 * tree-inline.c (copy_bb): Be prepared for target node to be new after
20587 folding suceeds.
20588
20589 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20590
20591 PR middle-end/63586
20592 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
20593 (reassociate_bb): Call transform_add_to_multiply.
20594
20595 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20596
20597 * config/aarch64/aarch64.c (all_extensions): Removed unused
20598 static variable.
20599
20600 2016-05-17 Nathan Sidwell <nathan@acm.org>
20601
20602 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
20603 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
20604
20605 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
20606
20607 PR tree-optimization/54579
20608 PR middle-end/55299
20609 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
20610
20611 2016-05-17 Marek Polacek <polacek@redhat.com>
20612
20613 PR ipa/71146
20614 * tree-inline.c (expand_call_inline): Call
20615 maybe_remove_unused_call_args.
20616
20617 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
20618
20619 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
20620 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
20621 * doc/md.texi (fmin@var{m}3): Likewise.
20622
20623 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20624
20625 * match.pd (X & C): New transformation.
20626
20627 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20628
20629 * match.pd (~X & Y): New transformation.
20630
20631 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20632
20633 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
20634 information for new SSA_NAME.
20635 (simplify_conversion_using_ranges): Get range through get_range_info
20636 instead of get_value_range.
20637
20638 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20639
20640 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
20641 Remove inline assembly.
20642 (vmvn_s16): Likewise.
20643 (vmvn_s32): Likewise.
20644 (vmvn_u8): Likewise.
20645 (vmvn_u16): Likewise.
20646 (vmvn_u32): Likewise.
20647 (vmvnq_s8): Likewise.
20648 (vmvnq_s16): Likewise.
20649 (vmvnq_s32): Likewise.
20650 (vmvnq_u8): Likewise.
20651 (vmvnq_u16): Likewise.
20652 (vmvnq_u32): Likewise.
20653 (vmvn_p8): Likewise.
20654 (vmvnq_p16): Likewise.
20655
20656 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20657
20658 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
20659 Use builtin.
20660 (vmul_n_s16): Likewise.
20661 (vmul_n_s32): Likewise.
20662 (vmul_n_u16): Likewise.
20663 (vmul_n_u32): Likewise.
20664 (vmulq_n_f32): Likewise.
20665 (vmulq_n_f64): Likewise.
20666 (vmulq_n_s16): Likewise.
20667 (vmulq_n_s32): Likewise.
20668 (vmulq_n_u16): Likewise.
20669 (vmulq_n_u32): Likewise.
20670
20671 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20672
20673 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
20674 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
20675
20676 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20677
20678 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
20679 to *aarch64_fma4_elt_from_dup<mode>.
20680 (*aarch64_fnma4_elt_to_128df): Rename to
20681 *aarch64_fnma4_elt_from_dup<mode>.
20682 * config/aarch64/arm_neon.h (vfma_n_f64): New.
20683 (vfms_n_f32): Likewise.
20684 (vfms_n_f64): Likewise.
20685 (vfmsq_n_f32): Likewise.
20686 (vfmsq_n_f64): Likewise.
20687
20688 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
20689
20690 * wide-int.h: Change fixed_wide_int_storage from class to struct.
20691
20692 2016-05-17 Richard Biener <rguenther@suse.de>
20693
20694 PR tree-optimization/71132
20695 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
20696 Only add control dependences for blocks in the loop.
20697 (build_rdg): Adjust.
20698 (generate_code_for_partition): Return whether loop should
20699 be destroyed and delay that.
20700 (distribute_loop): Likewise.
20701 (pass_loop_distribution::execute): Record loops to be destroyed
20702 and perform delayed destroying of loops.
20703
20704 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20705
20706 PR target/70809
20707 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
20708
20709 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20710
20711 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
20712
20713 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
20714
20715 PR target/71114
20716 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
20717 insertion point for instructions generated by validize_mem.
20718
20719 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20720
20721 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
20722 in brackets.
20723
20724 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20725
20726 * config/aarch64/aarch64.c
20727 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
20728 rather than a macro.
20729
20730 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20731
20732 * doc/invoke.texi (AArch64 Options): Various updates.
20733
20734 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20735
20736 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
20737 into instrumentation thunks.
20738 * cif-code.def (CIF_CHKP): New.
20739
20740 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
20741
20742 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
20743
20744 2016-05-16 Martin Jambor <mjambor@suse.cz>
20745
20746 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
20747 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
20748
20749 2016-05-16 Marek Polacek <polacek@redhat.com>
20750
20751 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
20752 commentary.
20753
20754 2016-05-16 Martin Jambor <mjambor@suse.cz>
20755
20756 PR hsa/70857
20757 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
20758 the outlined kernel function.
20759
20760 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
20761
20762 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
20763 (ISA_HAS_DLSA): Ditto.
20764
20765 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20766
20767 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20768
20769 2016-05-16 Nathan Sidwell <nathan@acm.org>
20770
20771 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20772 (nvptx_name_replacement): Restore. Add comment.
20773 (write_fn_proto, write_fn_proto_from_insn,
20774 nvptx_output_call_insn): Restore
20775 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20776
20777 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20778
20779 * config/aarch64/aarch64.md
20780 (add<mode>3_compareC_cconly_imm): Remove use of %w.
20781 (add<mode>3_compareC_imm): Likewise.
20782 (<optab>si3_uxtw): Split into register and immediate variants.
20783 (andsi3_compare0_uxtw): Likewise.
20784 (and<mode>3_compare0): Likewise.
20785 (and<mode>3nr_compare0): Likewise.
20786 (stack_protect_test_<mode>): Don't use %x for memory operands.
20787
20788 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20789
20790 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20791
20792 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20793
20794 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20795 Split integer shifts into shift_reg and bfm.
20796 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20797 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20798 (ror<mode>3_insn): Likewise.
20799 (<optab>si3_insn_uxtw): Likewise.
20800 (<optab><mode>3_insn): Change to rotate_imm.
20801 (extr<mode>5_insn_alt): Likewise.
20802 (extrsi5_insn_uxtw): Likewise.
20803 (extrsi5_insn_uxtw_alt): Likewise.
20804
20805 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20806
20807 * doc/tm.texi: Regenerate.
20808 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20809 (TARGET_INVALID_RETURN_TYPE): Remove.
20810 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20811 TARGET_INVALID_RETURN_TYPE.
20812 * target.def (invalid_parameter_type): Remove.
20813 (invalid_return_type): Remove.
20814
20815 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20816
20817 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20818 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20819 calls from thunk.
20820 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20821 gimple body.
20822 (preserve_function_body_p): No need to preserve function body
20823 * cif-codes.def (CIF_THUNK): Remove.
20824 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20825
20826 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20827
20828 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20829
20830 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20831
20832 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20833 for thunks.
20834
20835 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20836
20837 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20838 (inline_small_functions): Do not look for function symbol when
20839 resetting caches.
20840
20841 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20842
20843 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20844 of inline thunks
20845
20846 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20847 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20848 Jiong Wang <jiong.wang@arm.com>
20849
20850 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20851 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20852 Define __ARM_FP16_ARGS when appropriate.
20853 * config/arm/arm.c (arm_invalid_parameter_type): Remove
20854 declaration.
20855 (arm_invalid_return_type): Likewise.
20856 (TARGET_INVALID_PARAMETER_TYPE): Remove.
20857 (TARGET_INVALID_RETURN_TYPE): Remove.
20858 (aapcs_vfp_sub_candidate): Allow HFmode.
20859 (aapcs_vfp_allocate): Add comment. Support HFmode.
20860 (aapcs_vfp_allocate_return_reg): Likewise.
20861 (struct aapcs_cp_arg_layout): Slightly reword comments for
20862 is_return_candidate and allocate_return_reg.
20863 (output_mov_vfp): Update assert.
20864 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20865 condition.
20866 (arm_invalid_parameter_type): Remove.
20867 (amr_invalid_return_type): Remove.
20868 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20869 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20870 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20871
20872 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20873
20874 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20875 * config/aarch64/arch64-protos.h
20876 (aarch64_legitimize_reload_address): Remove.
20877 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20878 Remove.
20879
20880 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
20881
20882 * configure.ac: Add ACX_NONCANONICAL_HOST.
20883 * configure: Regenerate.
20884 * Makefile.in: Set host_noncanonical.
20885
20886 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
20887
20888 PR target/71097
20889 * config/i386/i386.md (*movtf_internal): Before register allocation,
20890 do not allow FP constants for CM_MEDIUM memory model, allow only
20891 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20892 (*movxf_internal): Ditto.
20893 (*movdf_internal): Ditto.
20894 (*movsf_internal): Ditto.
20895
20896 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20897
20898 PR rtl-optimization/67483
20899 * combine.c (make_compound_operation): Don't call extract_left_shift
20900 with negative shift amounts.
20901
20902 2016-05-13 Jakub Jelinek <jakub@redhat.com>
20903
20904 PR bootstrap/71071
20905 * fold-const.c (fold_checksum_tree): Allow modification
20906 of TYPE_ALIAS_SET during folding.
20907
20908 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20909 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20910 (ix86_split_to_parts): Likewise. Fix up formatting.
20911
20912 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
20913
20914 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20915 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20916 printf format.
20917
20918 2016-05-13 Nathan Sidwell <nathan@acm.org>
20919
20920 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20921 (nvptx_name_replacement): Delete.
20922 (write_fn_proto, write_fn_proto_from_insn,
20923 nvptx_output_call_insn): Remove nvptx_name_replacement call.
20924 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20925 * langhooks.c (add_builtin_funcction_common): Call
20926 targetm.mangle_decl_assembler_name.
20927
20928 * config/nvptx/nvptx.c (write_fn_proto): Handle
20929 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20930
20931 2016-05-13 Martin Liska <mliska@suse.cz>
20932
20933 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20934 and PRIu64 in printf format.
20935
20936 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20937
20938 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20939 comment.
20940
20941 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20942
20943 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20944 Change --param max-completely-peeled-times to
20945 --param max-completely-peel-times in dump file printing.
20946
20947 2016-05-13 Richard Biener <rguenther@suse.de>
20948
20949 PR tree-optimization/42587
20950 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20951 (find_bswap_or_nop_1): Likewise.
20952 (bswap_replace): Likewise.
20953
20954 2016-05-13 Martin Liska <mliska@suse.cz>
20955
20956 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20957 Initialize a variable with default value.
20958
20959 2016-05-13 Martin Liska <mliska@suse.cz>
20960
20961 * doc/invoke.texi: Enhance explanation of error recovery
20962 of sanitizers.
20963
20964 2016-05-13 Martin Liska <mliska@suse.cz>
20965
20966 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20967 (struct cost_pair): Change inv_expr_id (int) to inv_expr
20968 (iv_inv_expr_ent *).
20969 (struct iv_inv_expr_ent): Comment struct fields.
20970 (sort_iv_inv_expr_ent): New function.
20971 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20972 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20973 a hash_map between iv_inv_expr_ent and number of usages.
20974 (niter_for_exit): Fix coding style.
20975 (tree_ssa_iv_optimize_init): Use renamed variable.
20976 (determine_base_object): Fix coding style.
20977 (alloc_iv): Likewise.
20978 (find_interesting_uses_outside): Likewise.
20979 (add_candidate_1): Likewise.
20980 (add_standard_iv_candidates): Likewise.
20981 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20982 (prepare_decl_rtl): Fix coding style.
20983 (get_address_cost): Likewise.
20984 (get_shiftadd_cost): Likewise.
20985 (force_expr_to_var_cost): Likewise.
20986 (compare_aff_trees): Likewise.
20987 (get_expr_id): Restructure the function.
20988 (get_loop_invariant_expr_id): Renamed to
20989 get_loop_invariant_expr.
20990 (get_computation_cost_at): Replace usage of inv_expr_id with
20991 inv_expr.
20992 (get_computation_cost): Likewise.
20993 (determine_group_iv_cost_generic): Likewise.
20994 (determine_group_iv_cost_address): Likewise.
20995 (iv_period): Fix coding style.
20996 (iv_elimination_compare_lt): Likewise.
20997 (may_eliminate_iv): Likewise.
20998 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
20999 inv_expr.
21000 (determine_group_iv_costs): Dump invariant expressions.
21001 (iv_ca_recount_cost): Use the newly added hash_map.
21002 (iv_ca_set_remove_invariants): Fix coding style.
21003 (iv_ca_set_add_invariants): Fix coding style.
21004 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
21005 invariants.
21006 (iv_ca_set_cp): Likewise.
21007 (iv_ca_new): Initialize the newly added hash_map and remove
21008 initialization of fields.
21009 (iv_ca_free): Delete the hash_map.
21010 (iv_ca_dump): Dump invariant expressions.
21011 (iv_ca_extend): Fix coding style.
21012 (try_add_cand_for): Likewise.
21013 (create_new_ivs): Dump information about # of avg iterations and
21014 # of used invariant expressions.
21015 (rewrite_use_compare): Fix coding style.
21016 (free_loop_data): Set default value for max_inv_expr_id.
21017
21018 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
21019
21020 * cse.c (rest_of_handle_cse): Use cleanup_cfg
21021 returned value cse_cfg_altered computation.
21022 (rest_of_handle_cse2): Likewise.
21023 (rest_of_handle_cse_after_global_opts): Likewise.
21024
21025 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21026
21027 PR target/53440
21028 * config/arm/arm.c (arm32_output_mi_thunk): New.
21029 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
21030 to split Thumb1 vs TARGET_32BIT functionality.
21031 (arm_thumb1_mi_thunk): New.
21032
21033 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21034
21035 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
21036 to true.
21037
21038 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21039
21040 PR target/71080
21041 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
21042
21043 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
21044
21045 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
21046 (expand_builtin_trap): Emit a regular call.
21047 (set_builtin_user_assembler_name): Remove obsolete cases.
21048 * dse.c (scan_insn): Adjust.
21049 * except.c: Include calls.h.
21050 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
21051 emit a regular call to setjmp.
21052 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
21053 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
21054 (emit_block_move_via_libcall): Delete.
21055 (block_move_fn): Delete.
21056 (init_block_move_fn): Likewise.
21057 (emit_block_move_libcall_fn): Likewise.
21058 (emit_block_op_via_libcall): New function.
21059 (set_storage_via_libcall): Tidy up and use memset builtin.
21060 (block_clear_fn): Delete.
21061 (init_block_clear_fn): Likewise.
21062 (clear_storage_libcall_fn): Likewise.
21063 (expand_assignment): Call emit_block_move_via_libcall.
21064 Do not include gt-expr.h.
21065 * expr.h (emit_block_op_via_libcall): Declare.
21066 (emit_block_copy_via_libcall): New inline function.
21067 (emit_block_move_via_libcall): Likewise.
21068 (emit_block_comp_via_libcall): Likewise.
21069 (block_clear_fn): Delete.
21070 (init_block_move_fn): Likewise.
21071 (init_block_clear_fn): Likewise.
21072 (emit_block_move_via_libcall): Likewise.
21073 (set_storage_via_libcall): Add default parameter value.
21074 * libfuncs.h (enum libfunc_index): Remove obsolete values.
21075 (abort_libfunc): Delete.
21076 (memcpy_libfunc): Likewise.
21077 (memmove_libfunc): Likewise.
21078 (memcmp_libfunc): Likewise.
21079 (memset_libfunc): Likewise.
21080 (setbits_libfunc): Likewise.
21081 (setjmp_libfunc): Likewise.
21082 (longjmp_libfunc): Likewise.
21083 (profile_function_entry_libfunc): Likewise.
21084 (profile_function_exit_libfunc): Likewise.
21085 (gcov_flush_libfunc): Likewise.
21086 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
21087 and DECL_VISIBILITY on the declaration.
21088 (init_optabs): Do not initialize obsolete libfuncs.
21089 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
21090 * tree-core.h (ECF_RET1): Define.
21091 (ECF_TM_PURE): Adjust.
21092 (ECF_TM_BUILTIN): Likewise.
21093 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
21094 (build_common_builtin_nodes): Initialize abort builtin.
21095 Add ECF_RET1 on memcpy, memmove and memset builtins.
21096 Pass final flags for alloca and alloca_with_align builtins.
21097 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
21098 obsolete builtins.
21099 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
21100 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
21101 set_storage_via_libcall and call emit_block_copy_via_libcall.
21102
21103 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
21104
21105 * config/i386/i386.md (*call_got_x32): Change operand 0 to
21106 DImode before it is passed to ix86_output_call_operand.
21107 (*call_value_got_x32): Ditto for operand 1.
21108
21109 2016-05-12 Jiong Wang <jiong.wang@arm.com>
21110
21111 PR rtl-optimization/70904
21112 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
21113 reload for wide mode.
21114
21115 2016-05-12 Marek Polacek <polacek@redhat.com>
21116
21117 PR c/70756
21118 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
21119 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
21120 * langhooks.h (incomplete_type_error): Likewise.
21121 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
21122 parameter, pass it down to incomplete_type_error.
21123 * tree.h (size_in_bytes): New inline overload.
21124 (size_in_bytes_loc): Renamed from size_in_bytes.
21125
21126 2016-05-12 Richard Biener <rguenther@suse.de>
21127
21128 PR tree-optimization/71059
21129 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
21130 nary before looking up or entering the expression into the VN
21131 hashes.
21132 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
21133 Make sure to re-use NARYs without result as inserted by
21134 phi-translation.
21135
21136 2016-05-12 Richard Biener <rguenther@suse.de>
21137
21138 PR tree-optimization/71062
21139 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
21140 field.
21141 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21142 vars_contains_restrict if the var is a restrict tag.
21143 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
21144 do not disambiguate pointers against it.
21145 (dump_points_to_solution): Re-structure and adjust for new
21146 vars_contains_restrict flag.
21147 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
21148
21149 2016-05-12 Martin Liska <mliska@suse.cz>
21150
21151 * doc/invoke.texi: Explain connection between
21152 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
21153
21154 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
21155
21156 PR tree-optimization/71006
21157 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
21158 consider COND_EXPR as a mask producer.
21159
21160 2016-05-12 Marek Polacek <polacek@redhat.com>
21161
21162 PR driver/71063
21163 * opts.c (common_handle_option): Detect missing argument for --help^.
21164
21165 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21166
21167 PR target/70830
21168 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
21169 when popping the PC and within an interrupt handler routine.
21170 Add missing tab to output of "ldmfd".
21171 (output_return_instruction): Output LDMFD with SP update rather
21172 than POP when returning from interrupt handler.
21173
21174 2016-05-12 Jakub Jelinek <jakub@redhat.com>
21175
21176 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
21177 TARGET_64BIT && TARGET_AVX512DQ.
21178 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
21179 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
21180 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
21181 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
21182 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
21183 (*vec_extractv4si_zext): Add avx512dq alternative.
21184 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
21185 use v instead of x constraint in other alternatives where possible.
21186
21187 * config/i386/sse.md (sse2_loadld): Use v instead of x
21188 constraint in alternatives 0,1,4.
21189
21190 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
21191 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
21192 v constraints instead of x and <pinsr_evex_isa> isa attribute.
21193
21194 PR target/71019
21195 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
21196 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
21197 is not emitted unless TARGET_AVX512BW.
21198 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
21199 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
21200 for the result operand.
21201
21202 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
21203 constraint instead of x in avx alternatives. Use maybe_evex instead
21204 of vex prefix.
21205
21206 * config/i386/constraints.md (Yv): New constraint.
21207 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
21208 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
21209 * config/i386/i386.md (avx512fvecmode): New mode attr.
21210 (*pushtf): Use v constraint instead of x.
21211 (*movtf_internal): Likewise. For TARGET_AVX512VL and
21212 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
21213 (*absneg<mode>2): Use Yv constraint instead of x constraint.
21214 (*absnegtf2_sse): Likewise.
21215 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
21216 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
21217 avx512f alternatives.
21218 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
21219
21220 2016-05-12 Richard Biener <rguenther@suse.de>
21221
21222 PR tree-optimization/71060
21223 * tree-data-ref.c (initialize_data_dependence_relation): Do not
21224 require exact match of DR_BASE_OBJECT but only matching address and
21225 type.
21226
21227 2016-05-12 Richard Biener <rguenther@suse.de>
21228
21229 PR tree-optimization/70986
21230 * cfganal.c: Include cfgloop.h.
21231 (dfs_find_deadend): Prefer to take edges exiting loops.
21232
21233 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21234
21235 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
21236 compile and run time.
21237
21238 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
21239
21240 PR c/43651
21241 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
21242
21243 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
21244
21245 * config/i386/i386.c (legitimize_pic_address): Use
21246 copy_to_suggested_reg instead of gen_movsi.
21247
21248 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21249
21250 * config/rs6000/predicates.md (quad_memory_operand): Move most of
21251 the code into quad_address_p and call it to share code with
21252 vsx_quad_dform_memory_operand.
21253 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
21254 d-form support.
21255 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
21256 bit instead of being a separate word. Split -mpower9-dform into
21257 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21258 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
21259 for the register class supporting 128-bit quad word memory offsets.
21260 (mode_supports_vsx_dform_quad): Helper function to return if the
21261 register class uses quad word memory offsets.
21262 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
21263 (rs6000_debug_reg_global): Always print if we are using LRA or not.
21264 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
21265 instructions are enabled, set up the appropriate addr_masks for
21266 128-bit types.
21267 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
21268 -mpower9-dform-scalar, instead of -mpower9-dform.
21269 (rs6000_option_override_internal): Split -mpower9-dform into two
21270 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
21271 -mpower9-dform switch sets or clears both. If we are not using
21272 the LRA register allocator, do not enable -mpower9-dform-vector by
21273 default. If we are using LRA, enable -mpower9-dform-vector and
21274 -mvsx-timode if it is appropriate. Issue a warning if either
21275 -mpower9-dform-vector or -mvsx-timode are explicitly used without
21276 enabling LRA.
21277 (quad_address_offset_p): New helper function to return if the
21278 offset is legal for quad word memory instructions.
21279 (quad_address_p): New function to determin if GPR or vector
21280 register quad word memory addresses are legal.
21281 (mem_operand_gpr): Validate quad word address offsets.
21282 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
21283 d-form (register + offset) instructions.
21284 (offsettable_ok_by_alignment): Likewise.
21285 (rs6000_legitimate_offset_address_p): Likewise.
21286 (legitimate_lo_sum_address_p): Likewise.
21287 (rs6000_legitimize_address): Likewise.
21288 (rs6000_legitimize_reload_address): Add more debug statements for
21289 -mdebug=addr.
21290 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
21291 d-form instructions.
21292 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
21293 d-form instructions. Distinguish different cases in debug
21294 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
21295 d-form instructions.
21296 (rs6000_preferred_reload_class): Likewise.
21297 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
21298 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
21299 of the ISA 2.06 indexed memory instructions.
21300 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
21301 use them to save/restore the saved vector registers instead of
21302 using Altivec instructions.
21303 (rs6000_emit_epilogue): Likewise.
21304 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
21305 (rs6000_opt_masks): Split -mpower9-dform into
21306 -mpower9-dform-scalar and -mpower9-dform-vector.
21307 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
21308 was not selected.
21309 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
21310 ISA 3.0 vector indexed memory instructions, and fold the code into
21311 the normal mov<mode> patterns.
21312 (p9_vecstore_<mode>): Likewise.
21313 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
21314 instructions.
21315 (vsx_movti_64bit): Likewise.
21316 (vsx_movti_32bit): Likewise.
21317 * config/rs6000/constraints.md (wO constraint): New constraint for
21318 ISA 3.0 vector d-form support.
21319 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
21320 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
21321 include -mpower9-dform-vector until we switch over to LRA.
21322 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
21323 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21324 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
21325 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21326 for -mpower9-dform and -mlra.
21327 * doc/md.texi (wO constraint): Document wO constraint.
21328
21329 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
21330
21331 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
21332 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
21333 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
21334 Move handling of non-insn arguments inline into the sole user:
21335 (output_trans_func): ...here.
21336 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
21337 in emitted function prototype.
21338 (output_internal_insn_latency_func): Ditto. Simplify.
21339 (output_internal_maximal_insn_latency_func): Ditto. Delete
21340 always-unused argument.
21341 (output_insn_latency_func): Ditto.
21342 (output_maximal_insn_latency_func): Ditto.
21343
21344 2016-05-11 Richard Biener <rguenther@suse.de>
21345
21346 PR tree-optimization/71055
21347 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
21348 sth with precision not equal to access size verify we don't chop
21349 off bits.
21350
21351 2016-05-11 Richard Biener <rguenther@suse.de>
21352
21353 PR debug/71057
21354 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
21355 (dwarf2out_finish): Move retry_incomplete_types call ...
21356 (dwarf2out_early_finish): ... here.
21357
21358 2016-05-11 Richard Biener <rguenther@suse.de>
21359
21360 PR middle-end/71002
21361 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
21362 if the langhook insists on it.
21363 * fold-const.c (make_bit_field_ref): Add arg for the original
21364 reference and preserve its alias-set.
21365 (decode_field_reference): Take exp by reference and adjust it
21366 to the original memory reference.
21367 (optimize_bit_field_compare): Adjust callers.
21368 (fold_truth_andor_1): Likewise.
21369 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
21370
21371 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
21372
21373 PR middle-end/70807
21374 * cfgrtl.h (delete_insn_and_edges): Now return bool.
21375 * cfgrtl.c (delete_insn_and_edges): Likewise.
21376 * config/i386/i386.c (convert_scalars_to_vector): Remove
21377 redundant code.
21378 * cse.c (cse_insn): Compute cse_cfg_altered.
21379 (delete_trivially_dead_insns): Likewise.
21380 (cse_cc_succs): Likewise.
21381 (rest_of_handle_cse): Free dominance info if required.
21382 (rest_of_handle_cse2): Likewise.
21383 (rest_of_handle_cse_after_global_opts): Likewise.
21384
21385 2016-05-11 Alan Modra <amodra@gmail.com>
21386
21387 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
21388 abi_v4_pass_in_fpr): New functions.
21389 (rs6000_function_arg_boundary): Exclude complex IBM long double
21390 from 64-bit alignment when ABI_V4.
21391 (rs6000_function_arg, rs6000_function_arg_advance_1,
21392 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
21393
21394 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
21395
21396 PR rtl-optimization/71028
21397 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
21398 jump with just a return in the fallthrough block if the branch
21399 block contains just a return as well.
21400
21401 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
21402
21403 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
21404 * match.pd ((X & Y) ^ Y): ... this.
21405 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
21406 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
21407
21408 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21409
21410 * read-md.c (require_char_ws): New function.
21411 (read_string): Simplify using require_char_ws.
21412 (handle_constants): Likewise.
21413 (handle_enum): Likewise.
21414 (handle_file): Likewise.
21415 * read-md.h (require_char_ws): New declaration.
21416 * read-rtl.c (read_conditions): Simplify using require_char_ws.
21417 (read_mapping): Likewise.
21418 (read_rtx_code): Likewise.
21419 (read_nested_rtx): Likewise.
21420
21421 2016-05-10 James Norris <jnorris@codesourcery.com>
21422
21423 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
21424 if offloading is enabled and -fopenacc or -fopenmp is specified.
21425 (CRTOFFLOADEND): Likewise.
21426 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
21427 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
21428
21429 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
21430
21431 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
21432 gotoff_operand code paths. Use copy_to_suggested_regs and
21433 expand_simple_binop where appropriate. Cleanup.
21434
21435 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21436
21437 PR target/70799
21438 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
21439 integer constants.
21440 (dimode_scalar_chain::vector_const_cost): New.
21441 (dimode_scalar_chain::compute_convert_gain): Handle constants.
21442 (dimode_scalar_chain::convert_op): Likewise.
21443 (dimode_scalar_chain::convert_insn): Likewise.
21444
21445 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21446
21447 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
21448 unary operation, not a binary one.
21449
21450 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21451
21452 PR middle-end/70877
21453 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
21454 calls with type casted fndecl.
21455
21456 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21457
21458 PR tree-optimization/70786
21459 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
21460 * calls.c (initialize_argument_information): Bind bounds
21461 with corresponding args passed by reference.
21462
21463 2016-05-10 Jakub Jelinek <jakub@redhat.com>
21464
21465 PR target/70927
21466 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
21467 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
21468 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
21469 accordingly.
21470
21471 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21472
21473 PR target/70963
21474 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
21475 code for a zero scale factor.
21476 (vsx_xvcvdpuxds_scale): Likewise.
21477
21478 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21479
21480 * diagnostic-show-locus.c (layout::layout): Call show_ruler
21481 if show_ruler_p was set on the context.
21482 (layout::show_ruler): New method.
21483 * diagnostic.h (struct diagnostic_context): Add field
21484 "show_ruler_p".
21485
21486 2016-05-10 Richard Biener <rguenther@suse.de>
21487
21488 PR tree-optimization/71039
21489 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
21490 (chk_uses): New function.
21491 (propagate_with_phi): Verify we can safely replicate the lhs of an
21492 aggregate assignment on all incoming edges.
21493
21494 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
21495
21496 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
21497 Forward declare.
21498 (rx_atomic_sequence): New class.
21499 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
21500 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
21501 non-inline.
21502 (rx_atomic_sequence::rx_atomic_sequence,
21503 rx_atomic_sequence::~rx_atomic_sequence): New functions.
21504 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
21505 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
21506 CTRLREG_INTB): New constants.
21507 (FETCHOP): New code iterator.
21508 (fethcop_name, fetchop_name2): New iterator code attributes.
21509 (QIHI): New mode iterator.
21510 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
21511 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
21512 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
21513
21514 2016-05-10 Martin Liska <mliska@suse.cz>
21515
21516 * tree-inline.c (remap_dependence_clique): Do not remap
21517 debugging statements.
21518
21519 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21520
21521 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
21522 ("*fixuns_truncdfdi2_z13")
21523 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
21524 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
21525 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
21526
21527 2016-05-10 Richard Biener <rguenther@suse.de>
21528
21529 PR tree-optimization/70497
21530 PR tree-optimization/28367
21531 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
21532 split out from ...
21533 (visit_reference_op_load): ... here.
21534 (vn_reference_lookup_3): Use it to handle subreg-like accesses
21535 with simplified BIT_FIELD_REFs.
21536 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
21537 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
21538 correctly.
21539
21540 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21541
21542 * dwarf2out.c (add_abstract_origin_attribute): Adjust
21543 documentation comment. For BLOCK nodes, add a
21544 DW_AT_abstract_origin attribute that points to the DIE generated
21545 for the origin BLOCK.
21546 (gen_lexical_block_die): Call add_abstract_origin_attribute for
21547 blocks from inlined functions.
21548
21549 2016-05-10 Alan Modra <amodra@gmail.com>
21550
21551 PR target/70947
21552 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
21553 regrename modifying insns saving lr before __morestack call.
21554 * config/rs6000/rs6000.md (split_stack_return): Similarly for
21555 insns restoring lr after __morestack call.
21556
21557 2016-05-09 Jakub Jelinek <jakub@redhat.com>
21558
21559 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
21560 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
21561 expanders.
21562 * config/i386/sse.md (vec_interleave_high<mode>,
21563 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
21564 <avx512>_vpermt2var<mode>3_maskz): Likewise.
21565
21566 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21567
21568 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
21569 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
21570 parallel reassociation for power8 and forward.
21571
21572 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
21573
21574 * config/i386/i386.md (absneg splitters with general regs): Use
21575 general_reg_operand predicate.
21576 (btsq peephole2): Use x86_64_immediate_operand to check if new
21577 value is suitable for immediate operand. Generate emitted insn
21578 using RTL expressions.
21579 (btcq peephole2): Ditto.
21580 (btrq peephole2): Ditto. Generate correct immediate operand
21581 for AND masking.
21582
21583 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21584
21585 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
21586 bitpos.
21587
21588 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21589
21590 * tree-affine.c (wide_int_constant_multiple_p): Add missing
21591 pointer dereference.
21592
21593 2016-05-09 Richard Biener <rguenther@suse.de>
21594
21595 PR tree-optimization/70985
21596 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
21597 op0 isn't a gimple register.
21598
21599 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
21600
21601 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
21602 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
21603 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
21604 (i6400_fpu_mult): New cpu units.
21605 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
21606 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
21607 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
21608 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
21609 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
21610 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
21611 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
21612 (i6400_msa_long_float4, i6400_msa_long_float5)
21613 (i6400_msa_long_float8, i6400_msa_fdiv_df)
21614 (i6400_msa_fdiv_sf): New reservations.
21615 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
21616 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
21617 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
21618 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
21619 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
21620 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
21621 (msa_short_cmp, msa_short_float2, msa_short_logic3)
21622 (msa_short_store4, msa_long_load, msa_short_store)
21623 (msa_long_logic, msa_long_float2, msa_long_float4)
21624 (msa_long_float5, msa_long_float8, msa_long_mult)
21625 (msa_long_fdiv, msa_long_div): New reservations.
21626
21627 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
21628 Sameera Deshpande <sameera.deshpande@imgtec.com>
21629 Matthew Fortune <matthew.fortune@imgtec.com>
21630 Graham Stott <graham.stott@imgtec.com>
21631 Chao-ying Fu <chao-ying.fu@imgtec.com>
21632
21633 * config.gcc: Add MSA header file for mips*-*-* target.
21634 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
21635 (Ubv8i, Urv8): New constraints.
21636 * config/mips/mips-ftypes.def: Add function types for MSA
21637 builtins.
21638 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
21639 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
21640 * config/mips/mips-msa.md: New file.
21641 * config/mips/mips-protos.h
21642 (mips_split_128bit_const_insns): New prototype.
21643 (mips_msa_idiv_insns): Likewise.
21644 (mips_split_128bit_move): Likewise.
21645 (mips_split_128bit_move_p): Likewise.
21646 (mips_split_msa_copy_d): Likewise.
21647 (mips_split_msa_insert_d): Likewise.
21648 (mips_split_msa_fill_d): Likewise.
21649 (mips_expand_msa_branch): Likewise.
21650 (mips_const_vector_same_val_p): Likewise.
21651 (mips_const_vector_same_bytes_p): Likewise.
21652 (mips_const_vector_same_int_p): Likewise.
21653 (mips_const_vector_shuffle_set_p): Likewise.
21654 (mips_const_vector_bitimm_set_p): Likewise.
21655 (mips_const_vector_bitimm_clr_p): Likewise.
21656 (mips_msa_vec_parallel_const_half): Likewise.
21657 (mips_msa_output_division): Likewise.
21658 (mips_ldst_scaled_shift): Likewise.
21659 (mips_expand_vec_cond_expr): Likewise.
21660 * config/mips/mips.c (enum mips_builtin_type): Add
21661 MIPS_BUILTIN_MSA_TEST_BRANCH.
21662 (mips_gen_const_int_vector_shuffle): New prototype.
21663 (mips_const_vector_bitimm_set_p): New function.
21664 (mips_const_vector_bitimm_clr_p): Likewise.
21665 (mips_const_vector_same_val_p): Likewise.
21666 (mips_const_vector_same_bytes_p): Likewise.
21667 (mips_const_vector_same_int_p): Likewise.
21668 (mips_const_vector_shuffle_set_p): Likewise.
21669 (mips_symbol_insns): Forbid loading symbols via immediate for
21670 MSA.
21671 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
21672 stores.
21673 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
21674 MSA.
21675 (mips_lx_address_p): Add support load indexed address for MSA.
21676 (mips_address_insns): Add calculation of instructions needed for
21677 stores and loads for MSA.
21678 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
21679 CONST_VECTOR for MSA and let it fall through.
21680 (mips_ldst_scaled_shift): New function.
21681 (mips_subword_at_byte): Likewise.
21682 (mips_msa_idiv_insns): Likewise.
21683 (mips_legitimize_move): Validate MSA moves.
21684 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
21685 calculation of costs for MSA division.
21686 (mips_split_move_p): Check if MSA moves need splitting.
21687 (mips_split_move): Split MSA moves if necessary.
21688 (mips_split_128bit_move_p): New function.
21689 (mips_split_128bit_move): Likewise.
21690 (mips_split_msa_copy_d): Likewise.
21691 (mips_split_msa_insert_d): Likewise.
21692 (mips_split_msa_fill_d): Likewise.
21693 (mips_output_move): Handle MSA moves.
21694 (mips_expand_msa_branch): New function.
21695 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
21696 Reinstate 'y' modifier.
21697 (mips_file_start): Add MSA .gnu_attribute.
21698 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
21699 FPRs.
21700 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
21701 (mips_class_max_nregs): Add register size for MSA supported mode.
21702 (mips_cannot_change_mode_class): Allow conversion between MSA
21703 vector modes and TImode.
21704 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
21705 instruction.
21706 (mips_secondary_reload_class): Force MSA loads/stores via memory.
21707 (mips_preferred_simd_mode): Add preffered modes for MSA.
21708 (mips_vector_mode_supported_p): Add MSA supported modes.
21709 (mips_autovectorize_vector_sizes): New function.
21710 (mips_msa_output_division): Likewise.
21711 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
21712 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
21713 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
21714 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
21715 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
21716 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
21717 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
21718 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
21719 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
21720 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
21721 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
21722 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
21723 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
21724 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
21725 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
21726 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
21727 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
21728 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
21729 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
21730 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
21731 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
21732 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
21733 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
21734 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
21735 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
21736 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
21737 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
21738 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
21739 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
21740 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
21741 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
21742 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
21743 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
21744 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
21745 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
21746 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
21747 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
21748 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
21749 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
21750 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
21751 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
21752 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
21753 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
21754 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
21755 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21756 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21757 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21758 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21759 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21760 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21761 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21762 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21763 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
21764 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
21765 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
21766 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
21767 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21768 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21769 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21770 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21771 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21772 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21773 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21774 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21775 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21776 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21777 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21778 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21779 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21780 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21781 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21782 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21783 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21784 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21785 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21786 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21787 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21788 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21789 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21790 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21791 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21792 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21793 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21794 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21795 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21796 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21797 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21798 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21799 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21800 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21801 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21802 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21803 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21804 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21805 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21806 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21807 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21808 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21809 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21810 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21811 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21812 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21813 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21814 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21815 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21816 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21817 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21818 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21819 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21820 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21821 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21822 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21823 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21824 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21825 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21826 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21827 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21828 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21829 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21830 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21831 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21832 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21833 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21834 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21835 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21836 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21837 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21838 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21839 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21840 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21841 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21842 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21843 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21844 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21845 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21846 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21847 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21848 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21849 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21850 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21851 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21852 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21853 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21854 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21855 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21856 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21857 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21858 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21859 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21860 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21861 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21862 move_v builtins.
21863 (mips_get_builtin_decl_index): New array.
21864 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21865 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21866 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21867 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21868 (mips_init_builtins): Initialize mips_get_builtin_decl_index
21869 array.
21870 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21871 hook.
21872 (mips_expand_builtin_insn): Prepare operands for
21873 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21874 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21875 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21876 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21877 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21878 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21879 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21880 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21881 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21882 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21883 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21884 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21885 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21886 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21887 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21888 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21889 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21890 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21891 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21892 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21893 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21894 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21895 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21896 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21897 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21898 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21899 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21900 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21901 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21902 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21903 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21904 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21905 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21906 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21907 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21908 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21909 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21910 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21911 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21912 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21913 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21914 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21915 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21916 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21917 These are set implicitly and an error is reported if overridden.
21918 (mips_expand_builtin_msa_test_branch): New function.
21919 (mips_expand_msa_shuffle): Likewise.
21920 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21921 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21922 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21923 (mips_expand_vec_unpack): Add support for MSA.
21924 (mips_expand_vector_init): Likewise.
21925 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21926 instead of const0_rtx.
21927 (mips_msa_vec_parallel_const_half): New function.
21928 (mips_gen_const_int_vector): Likewise.
21929 (mips_gen_const_int_vector_shuffle): Likewise.
21930 (mips_expand_msa_cmp): Likewise.
21931 (mips_expand_vec_cond_expr): Likewise.
21932 * config/mips/mips.h
21933 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21934 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21935 specified.
21936 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21937 (ISA_HAS_MSA): New macro.
21938 (UNITS_PER_MSA_REG): Likewise.
21939 (BITS_PER_MSA_REG): Likewise.
21940 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21941 (MSA_REG_FIRST): New macro.
21942 (MSA_REG_LAST): Likewise.
21943 (MSA_REG_NUM): Likewise.
21944 (MSA_REG_P): Likewise.
21945 (MSA_REG_RTX_P): Likewise.
21946 (MSA_SUPPORTED_MODE_P): Likewise.
21947 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21948 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21949 * config/mips/mips.md: Include mips-msa.md.
21950 (alu_type): Add simd_add.
21951 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21952 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21953 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21954 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21955 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21956 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21957 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21958 simd_move, simd_load, simd_store. Choose "multi" for moves
21959 for "qword_mode".
21960 (qword_mode): New attribute.
21961 (insn_count): Add instruction count for quad moves.
21962 Increase the count for MIPS SIMD division.
21963 (UNITMODE): Add UNITMODEs for vector types.
21964 (addsub): New code iterator.
21965 * config/mips/mips.opt (mmsa): New option.
21966 * config/mips/msa.h: New file.
21967 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21968 specified.
21969 * config/mips/mti-linux.h: Likewise.
21970 * config/mips/predicates.md
21971 (const_msa_branch_operand): New constraint.
21972 (const_uimm3_operand): Likewise.
21973 (const_uimm4_operand): Likewise.
21974 (const_uimm5_operand): Likewise.
21975 (const_uimm8_operand): Likewise.
21976 (const_imm5_operand): Likewise.
21977 (aq10b_operand): Likewise.
21978 (aq10h_operand): Likewise.
21979 (aq10w_operand): Likewise.
21980 (aq10d_operand): Likewise.
21981 (const_m1_operand): Likewise.
21982 (reg_or_m1_operand): Likewise.
21983 (const_exp_2_operand): Likewise.
21984 (const_exp_4_operand): Likewise.
21985 (const_exp_8_operand): Likewise.
21986 (const_exp_16_operand): Likewise.
21987 (const_vector_same_val_operand): Likewise.
21988 (const_vector_same_simm5_operand): Likewise.
21989 (const_vector_same_uimm5_operand): Likewise.
21990 (const_vector_same_uimm6_operand): Likewise.
21991 (const_vector_same_uimm8_operand): Likewise.
21992 (par_const_vector_shf_set_operand): Likewise.
21993 (reg_or_vector_same_val_operand): Likewise.
21994 (reg_or_vector_same_simm5_operand): Likewise.
21995 (reg_or_vector_same_uimm6_operand): Likewise.
21996 * doc/extend.texi (MIPS SIMD Architecture Functions): New
21997 section.
21998 * doc/invoke.texi (-mmsa): Document new option.
21999
22000 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22001
22002 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
22003 * configure: Regenerate.
22004 * config.in: Regenerate.
22005 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
22006 on -fvtable-verify.
22007 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
22008 (ENDFILE_VTV_SPEC): Define.
22009
22010 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
22011
22012 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
22013 registers in all interrupt handlers if necessary.
22014 (rl78_option_override): Add warning.
22015 (MUST_SAVE_MDUC_REGISTERS): New macro.
22016 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
22017 * config/rl78/rl78.c (check_mduc_usage): New function.
22018 (mduc_regs): New structure to hold MDUC register data.
22019 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
22020 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
22021 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
22022 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
22023 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
22024 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
22025
22026 2016-05-09 Bin Cheng <bin.cheng@arm.com>
22027
22028 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
22029 (tree-ssa-loop-niter.h): Ditto.
22030 (idx_within_array_bound, ref_within_array_bound): New functions.
22031 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
22032 Factor out check on writable base object to ...
22033 (base_object_writable): ... here.
22034
22035 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22036
22037 * config/arm/arm.md (probe_stack): Add modes to set source
22038 and destination.
22039
22040 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
22041
22042 * regrename.c (base_reg_class_for_rename): New static function.
22043 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
22044
22045 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
22046
22047 * cgraph.c (thunk_adjust): Export.
22048 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
22049 * cgraphunit.c (thunk_adjust): Export.
22050 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
22051 thunks.
22052 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
22053 inlinable.
22054 * tree-inline.c (expand_call_inline): Expand thunks inline.
22055
22056 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
22057
22058 PR target/70998
22059 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
22060 (*sse2_vd_cvtss2sd): Ditto.
22061 * config/i386/i386.md
22062 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
22063 Generate *sse2_vd_cvtsd2ss pattern.
22064 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
22065 Generate *sse2_vd_cvtss2sd pattern.
22066
22067 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
22068
22069 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
22070 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
22071 users.
22072
22073 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
22074
22075 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
22076 * config/sh/sh.c: Define and declare variables on first use throughout
22077 the file.
22078 (current_function_interrupt): Change to bool type.
22079 (frame_insn): Rename to emit_frame_insn and update users.
22080 (push_regs): Use bool for 'interrupt_handler' argument.
22081 (save_schedule_s): Remove.
22082 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
22083 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
22084 targetm.asm_out.unaligned_op.di.
22085 (gen_far_branch): Remove redundant forward declaration.
22086 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
22087 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
22088 (sh_set_return_address, sh_function_ok_for_sibcall,
22089 scavenge_reg): Update comments.
22090 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
22091 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
22092 (sh_attr_renesas_p): Remove unnecessary parentheses.
22093 (branch_dest): Simplify.
22094 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
22095 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
22096 (CUMULATIVE_ARGS): Change macro to typedef.
22097 (current_function_interrupt): Change to bool type.
22098 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
22099 Surround with __cplusplus ifdef.
22100 (sh_compare_op0, sh_compare_op1): Remove.
22101 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
22102
22103 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
22104
22105 * config/arm/arm.md (arch): Add neon.
22106 (arch_enabled): Return yes for arch neon when TARGET_NEON.
22107 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
22108 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
22109 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
22110 attributes for alt renumbering. Mark alt 3 as non-predicable.
22111 (thumb2_movdf_vfp): Likewise.
22112
22113 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
22114
22115 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
22116 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
22117 (*andqi_1): Add preferred_for_speed attribute to disparage
22118 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
22119 (*<code>qi_1): Ditto.
22120 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
22121 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
22122 (*ashlqi3_1): Ditto.
22123 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
22124 Add preferred_for_size attribute to disparage alternative 0 and
22125 preferred_for_speed attribute to disparage alternative 1 for
22126 TARGET_PARTIAL_REG_STALL targets.
22127
22128 2016-05-07 Tom de Vries <tom@codesourcery.com>
22129
22130 PR tree-optimization/70956
22131 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
22132 def.
22133
22134 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22135
22136 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
22137 * config/sh/sh.c (sh_cbranch_distance): Implement it.
22138 * config/sh/sh.md (branch_zero): Remove define_attr.
22139 (define_delay): Disable delay slot if branch distance is one insn.
22140
22141 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22142
22143 * config/i386/i386.md (LEAMODE): New mode attribute.
22144 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
22145 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
22146 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
22147 operand 2 predicate.
22148 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
22149 (*lea<mode>_general_3): Ditto.
22150 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
22151
22152 2016-05-06 Jakub Jelinek <jakub@redhat.com>
22153
22154 * genmddump.c (main): Convert argv from char ** to const char **.
22155
22156 2016-05-06 David Malcolm <dmalcolm@redhat.com>
22157
22158 * coretypes.h (OVERRIDE): New macro.
22159 (FINAL): New macro.
22160
22161 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
22162
22163 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
22164 allow coalescing if the types are compatible.
22165
22166 2016-05-06 David Malcolm <dmalcolm@redhat.com>
22167
22168 * pass_manager.h (pass_manager::register_pass_name): New method.
22169 (pass_manager::get_pass_by_name): New method.
22170 (pass_manager::create_pass_tab): New method.
22171 (pass_manager::m_name_to_pass_map): New field.
22172 * passes.c (name_to_pass_map): Delete global in favor of field
22173 "m_name_to_pass_map" of pass_manager.
22174 (register_pass_name): Rename from a function to...
22175 (pass_manager::register_pass_name): ...this method, updating
22176 for renaming of global "name_to_pass_map" to field
22177 "m_name_to_pass_map".
22178 (create_pass_tab): Rename from a function to...
22179 (pass_manager::create_pass_tab): ...this method, updating
22180 for renaming of global "name_to_pass_map" to field.
22181 (get_pass_by_name): Rename from a function to...
22182 (pass_manager::get_pass_by_name): ...this method.
22183 (enable_disable_pass): Convert use of get_pass_by_name to
22184 a method call, locating the pass_manager singleton.
22185
22186 2016-05-06 David Malcolm <dmalcolm@redhat.com>
22187
22188 * genattr-common.c (main): Convert argv from char ** to const char **.
22189 * genattr.c (main): Likewise.
22190 * genattrtab.c (main): Likewise.
22191 * genautomata.c (initiate_automaton_gen): Likewise.
22192 (main): Likewise.
22193 * gencodes.c (main): Likewise.
22194 * genconditions.c (main): Likewise.
22195 * genconfig.c (main): Likewise.
22196 * genconstants.c (main): Likewise.
22197 * genemit.c (main): Likewise.
22198 * genenums.c (main): Likewise.
22199 * genextract.c (main): Likewise.
22200 * genflags.c (main): Likewise.
22201 * genmddeps.c (main): Likewise.
22202 * genopinit.c (main): Likewise.
22203 * genoutput.c (main): Likewise.
22204 * genpeep.c (main): Likewise.
22205 * genpreds.c (main): Likewise.
22206 * genrecog.c (main): Likewise.
22207 * gensupport.c (init_rtx_reader_args_cb): Likewise.
22208 (init_rtx_reader_args): Likewise.
22209 * gensupport.h (init_rtx_reader_args_cb): Likewise.
22210 (init_rtx_reader_args): Likewise.
22211 * gentarget-def.c (main): Likewise.
22212 * read-md.c (read_md_files): Likewise.
22213 * read-md.h (read_md_files): Likewise.
22214
22215 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22216
22217 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
22218 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
22219 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
22220 Remove unused predicate.
22221 (register_and_not_fp_reg_operand): Ditto.
22222
22223 2016-05-06 Martin Liska <mliska@suse.cz>
22224
22225 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
22226 instead of vec as the vector is local to the function.
22227
22228 2016-05-06 Jakub Jelinek <jakub@redhat.com>
22229
22230 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
22231 avx512bw alternative.
22232
22233 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
22234 before the ashr<mode>3 pattern.
22235
22236 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
22237 v instead of x in vex or maybe_vex alternatives, use
22238 maybe_evex instead of vex in prefix.
22239
22240 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
22241 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
22242 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
22243 in vex or maybe_vex alternatives, use maybe_evex instead of vex
22244 in prefix.
22245
22246 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
22247 v instead of x in vex or maybe_vex alternatives, use
22248 maybe_evex instead of vex in prefix.
22249
22250 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
22251 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
22252 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
22253 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
22254 alternatives, use maybe_evex instead of vex in prefix.
22255
22256 * config/i386/sse.md (vec_interleave_lowv4sf,
22257 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
22258 v instead of x in vex or maybe_vex alternatives, use
22259 maybe_evex instead of vex in prefix.
22260
22261 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
22262 v instead of x in vex or maybe_vex alternatives, use
22263 maybe_evex instead of vex in prefix.
22264
22265 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
22266 v constraint instead of x.
22267
22268 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
22269
22270 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
22271 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
22272 equality first.
22273
22274 2016-05-06 Richard Biener <rguenther@suse.de>
22275
22276 PR tree-optimization/70948
22277 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22278 Properly clobber all fields of va_list for __builtin_va_start.
22279
22280 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
22281
22282 PR debug/70935
22283 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
22284 loop latch destination.
22285
22286 2016-05-06 Martin Liska <mliska@suse.cz>
22287
22288 * tree-ssa-uninit.c: Apply manual changes
22289 to the GNU coding style.
22290 (prune_uninit_phi_opnds): Rename from
22291 prune_uninit_phi_opnds_in_unrealizable_paths.
22292
22293 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22294
22295 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
22296 mspace): Remove deprecated options.
22297 * doc/invoke.texi (SH options): Remove -mspace.
22298
22299 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22300
22301 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
22302
22303 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22304
22305 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
22306 corresponding combine split pattern.
22307
22308 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22309
22310 PR target/58219
22311 * config/sh/predicates.md (long_displacement_mem_operand): New.
22312 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
22313 Add movi20, movi20s alternatives. Adjust length attribute for
22314 alternatives.
22315 (movsi_ie): Allow for any FPU. Adjust length attribute for
22316 alternatives.
22317 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
22318 attribute for alternatives.
22319 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
22320 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
22321 length attribute for alternatives.
22322
22323 2016-05-06 Richard Biener <rguenther@suse.de>
22324
22325 PR tree-optimization/70960
22326 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
22327
22328 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22329
22330 PR target/52933
22331 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
22332 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
22333
22334 2016-05-06 Marek Polacek <polacek@redhat.com>
22335
22336 PR sanitizer/70875
22337 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
22338
22339 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22340
22341 PR target/54089
22342 * config/sh/sh.md (*rotcr): Add another variant.
22343
22344 2016-05-06 Richard Biener <rguenther@suse.de>
22345
22346 PR middle-end/70931
22347 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
22348
22349 2016-05-06 Richard Biener <rguenther@suse.de>
22350
22351 PR middle-end/70941
22352 * fold-const.c (split_tree): Always convert to the original type
22353 before negating.
22354
22355 2016-05-06 Richard Biener <rguenther@suse.de>
22356
22357 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
22358 (fwprop_addr): Likewise.
22359
22360 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22361
22362 PR target/70873
22363 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
22364 New prototype.
22365 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
22366 * config/i386/i386.md (push mem splitter): Use find_constant_src in
22367 the splitter condition.
22368 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
22369 the splitter condition.
22370 (FP float_extend load splitter): Ditto.
22371
22372 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
22373
22374 * config/i386/i386.md (peehole2 patterns): Change true_regnum
22375 to REGNO in all peephole2 patterns.
22376 (post-reload splitters): Change true_regnum to REGNO in
22377 post-reload splitters.
22378 (zero_extend splitters): Use general_reg_operand and
22379 nonimmediate_gr_operand predicates.
22380
22381 2016-05-05 Jakub Jelinek <jakub@redhat.com>
22382
22383 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
22384 v constraint instead of x.
22385
22386 2016-05-05 Alan Modra <amodra@gmail.com>
22387
22388 PR target/68662
22389 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
22390 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
22391 TARGET_NO_FP_IN_TOC for -mrelocatable.
22392 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
22393 TARGET_RELOCATABLE test.
22394 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22395 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22396 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22397 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22398 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22399 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22400 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22401 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22402 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
22403 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22404 Likewise.
22405 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
22406 (rs6000_stack_info): Likewise.
22407 (rs6000_elf_asm_out_constructor): Likewise.
22408 (rs6000_elf_asm_out_destructor): Likewise.
22409 (rs6000_elf_declare_function_name): Likewise.
22410 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
22411 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
22412 Don't define.
22413
22414 2016-05-05 Alan Modra <amodra@gmail.com>
22415
22416 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
22417
22418 2016-05-05 Alan Modra <amodra@gmail.com>
22419
22420 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
22421 out-of-line gpr restore for one or two regs if that would add
22422 a save of lr.
22423
22424 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
22425
22426 PR target/70873
22427 * config/i386/i386.md
22428 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
22429 Change to post-epilogue_completed late splitter. Use sse_reg_operand
22430 as operand 0 predicate.
22431 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
22432 Ditto.
22433 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
22434 Ditto. Emit the pattern using RTX.
22435
22436 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
22437 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
22438 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
22439 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
22440 Ditto.
22441 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
22442 sse_reg_operand as operand 0 predicate.
22443
22444 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
22445 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
22446 instead of gen_rtx_REG.
22447 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
22448 Ditto.
22449
22450 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22451
22452 * function.c (emit_use_return_register_into_block): Delete.
22453 (gen_return_pattern): Delete.
22454 (emit_return_into_block): Delete.
22455 (active_insn_between): Delete.
22456 (convert_jumps_to_returns): Delete.
22457 (emit_return_for_exit): Delete.
22458 (thread_prologue_and_epilogue_insns): Delete all code dealing with
22459 simple_return for shrink-wrapped blocks.
22460 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
22461 end of blocks that need one.
22462 (get_unconverted_simple_return): Delete.
22463 (convert_to_simple_return): Delete.
22464 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
22465 (convert_to_simple_return): Ditto.
22466
22467 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22468
22469 * cfgcleanup.c (bb_is_just_return): New function.
22470 (try_optimize_cfg): Simplify jumps to return, branches to return,
22471 and branches around return.
22472
22473 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22474
22475 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
22476 branch to a return.
22477
22478 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22479
22480 PR c++/70906
22481 PR c++/70933
22482 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
22483 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
22484 assert flags & OEP_HASH_CHECK, instead of asserting it
22485 never happens. Handle TARGET_EXPR.
22486 * fold-const.c (operand_equal_p): For hash verification,
22487 or in OEP_HASH_CHECK into flags.
22488
22489 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
22490
22491 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
22492 comment.
22493 (compute_samebase_partition_bases): Fix typo.
22494
22495 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22496
22497 * config/i386/sse.md (vec_interleave_highv8sf,
22498 vec_interleave_lowv8sf, vec_interleave_highv4df,
22499 vec_interleave_lowv4df): Remove constraints from expanders.
22500
22501 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
22502
22503 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22504
22505 * tree-inline.c (expand_call_inline): Fix path dealing with
22506 making lhs of call statement undefined.
22507
22508 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22509
22510 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22511 Check availability on NODE, too.
22512 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
22513 (cgraph_node::call_for_symbol_and_aliases): Likewise.
22514 (varpool_node::call_for_symbol_and_aliase): Likewise.
22515 * ipa-pure-const.c (add_new_function): Analyze all bodies.
22516 (propagate_pure_const): Propagate across interposable functions, too.
22517 (skip_function_for_local_pure_const): Do not skip interposable bodies
22518 with aliases.
22519 (pass_local_pure_const::execute): Update.
22520
22521 2016-05-04 Marek Polacek <polacek@redhat.com>
22522
22523 * doc/invoke.texi: Document -Wdangling-else.
22524
22525 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22526
22527 * config.gcc: Error out when conflicting multilib is detected. Do not
22528 loop over multilibs since no combination is legal.
22529
22530 2016-05-04 Alan Modra <amodra@gmail.com>
22531
22532 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
22533 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
22534 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22535 Align .toc.
22536
22537 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
22538
22539 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
22540 Clean up p5600 comments.
22541
22542 2016-05-04 Richard Biener <rguenther@suse.de>
22543
22544 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
22545 constructor simplifications.
22546 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
22547
22548 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
22549
22550 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
22551 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
22552 result.set_rtx is null instead of aborting.
22553 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
22554 Always enable.
22555 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
22556 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
22557 *mov<mode>_store_postinc): New patterns.
22558
22559 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
22560
22561 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
22562 as commutative. Check both conversions are NOP.
22563 ((A & B) OP (C & B)): Remove.
22564
22565 2016-05-04 Alan Modra <amodra@gmail.com>
22566
22567 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
22568
22569 2016-05-04 Alan Modra <amodra@gmail.com>
22570
22571 PR target/70866
22572 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
22573 when cr2,3,4 are all fixed regs.
22574
22575 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
22576
22577 PR rtl-optimization/57193
22578 * opts.c (default_options_table): Revert OPT_frename_registers change.
22579 * doc/invoke.texi (-frename-registers, -O2): Likewise.
22580
22581 2016-05-03 Martin Sebor <msebor@redhat.com>
22582
22583 PR c++/66561
22584 * builtins.c (fold_builtin_FILE): New function.
22585 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
22586 (fold_builtin_0): Call them.
22587 * gimplify.c (gimplify_call_expr): Remove the handling of
22588 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
22589
22590 PR c++/66561
22591 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
22592 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
22593 constants.
22594
22595 PR c++/66639
22596 * doc/extend.texi (Function Names as Strings): Update __func__,
22597 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
22598 constants.
22599
22600 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22601 Richard Biener <rguenther@suse.de>
22602
22603 PR tree-optimization/70916
22604 * tree-if-conv.c: Include cfganal.h.
22605 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
22606 and remove_fake_exit_edges around the optimization pass.
22607
22608 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
22609
22610 * cgraph.c (symbol_table::create_edge): Set inline_failed.
22611 (cgraph_edge::make_direct): Likewise.
22612 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
22613 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
22614 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
22615 (CIF_THUNK): New code.
22616 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
22617 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
22618 (compute_inline_parameters): Set inline_failed for thunks.
22619 (inline_analyze_function): Cleanup.
22620 * ipa-inline.c (can_inline_edge_p): Do not deal with
22621 call_stmt_cannot_inline_p.
22622 (can_early_inline_edge_p): Likewise.
22623 (early_inliner): Initialize inline_failed.
22624 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
22625
22626 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
22627
22628 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22629 from nonimm_ssenomem_operand.
22630 (nonimm_ssenomem_operand): New predicate.
22631 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
22632 as operand 0 predicate.
22633 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
22634 Disable unsupported alternatives using "enabled" attribute.
22635 Use register_ssemem_operand as operand 0 predicate.
22636 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
22637
22638 2016-05-03 Marek Polacek <polacek@redhat.com>
22639
22640 PR c/70859
22641 * input.c (expansion_point_location): New function.
22642 * input.h (expansion_point_location): Declare.
22643
22644 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
22645
22646 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
22647 occurence with frame_offset_ ones.
22648
22649 2016-05-03 Alan Modra <amodra@gmail.com>
22650
22651 PR rtl-optimization/70890
22652 * ira.c (combine_and_move_insns): When moving def_insn, remove
22653 equivs on use_insn.
22654
22655 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
22656
22657 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
22658 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
22659 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
22660 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
22661
22662 2016-05-03 Alan Modra <amodra@gmail.com>
22663
22664 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
22665 for SAVE_MULTIPLE/STORE_MULTIPLE.
22666
22667 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22668
22669 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
22670 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
22671
22672 2016-05-03 Richard Biener <rguenther@suse.de>
22673
22674 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
22675 default true.
22676 (gimplify_arg): Likewise.
22677 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
22678 re-writing the result to a decl if required.
22679 (internal_get_tmp_var): Add allow_ssa parameter
22680 and override into_ssa with it.
22681 (get_formal_tmp_var): Adjust.
22682 (get_initialized_tmp_var): Add allow_ssa parameter.
22683 (gimplify_arg): Add allow_ssa parameter and avoid generating
22684 SSA names for the result false.
22685 (gimplify_call_expr): If the call may return twice do not
22686 gimplify parameters into SSA.
22687 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
22688 (gimplify_modify_expr): Adjust assert. For noreturn calls
22689 with a SSA name LHS adjust its def.
22690 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
22691 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
22692 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
22693 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
22694 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
22695 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
22696 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
22697 (optimize_target_teams): Do not allow SSA names for clause operands.
22698 (gimplify_expr): Likewise for where we mark the result addressable.
22699 * passes.def (pass_init_datastructures): Remove.
22700 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
22701 (rewrite_stmt): Likewise.
22702 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
22703 (replace_locals_op): Replace SSA names.
22704 (copy_gimple_seq_and_replace_locals): Init src_cfun.
22705 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
22706 * cgraph.c (release_function_body): Free CFG annotations only
22707 when we have a CFG. Simplify.
22708 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
22709 force_gimple_operand instead of get_initialized_tmp_var.
22710 * tree-pass.h (make_pass_init_datastructures): Remove.
22711 * tree-ssa.c (execute_init_datastructures): Remove.
22712 (pass_data_init_datastructures): Likewise.
22713 (class pass_init_datastructures): Likewise.
22714 (make_pass_init_datastructures): Likewise.
22715 * omp-low.c (create_omp_child_function): Init SSA data structures.
22716 (grid_expand_target_grid_body): Likewise.
22717 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
22718 name before adding it to names_to_release.
22719 (remove_bb): Always release SSA defs.
22720 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
22721 before dereferencing it.
22722 * cgraphunit.c (init_lowered_empty_function): Always
22723 int SSA data structures.
22724 * tree-ssanames.c (release_defs): Remove assert that we are in
22725 SSA form.
22726 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
22727
22728 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22729 Uros Bizjak <ubizjak@gmail.com>
22730
22731 PR rtl-optimization/70467
22732 * config/i386/predicates.md (x86_64_hilo_int_operand,
22733 x86_64_hilo_general_operand): New predicates.
22734 * config/i386/constraints.md (Wd): New constraint.
22735 * config/i386/i386.md (mode attr di): Use Wd instead of e.
22736 (general_hilo_operand): New mode attr.
22737 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
22738 instead of <general_operand>.
22739 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
22740 x86_64_hilo_general_operand instead of <general_operand>.
22741
22742 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22743
22744 PR tree-optimization/70916
22745 * tree-if-conv.c (constant_or_ssa_name): Removed.
22746 (fold_build_cond_expr): Use is_gimple_val instead of
22747 constant_or_ssa_name.
22748
22749 PR tree-optimization/70916
22750 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
22751 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
22752
22753 PR target/49244
22754 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
22755 (optimize_atomic_bit_test_and): New function.
22756 (pass_fold_builtins::execute): Use it.
22757 * optabs.def (atomic_bit_test_and_set_optab,
22758 atomic_bit_test_and_complement_optab,
22759 atomic_bit_test_and_reset_optab): New optabs.
22760 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
22761 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
22762 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
22763 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
22764 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
22765 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
22766 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
22767 * doc/md.texi (atomic_bit_test_and_set@var{mode},
22768 atomic_bit_test_and_complement@var{mode},
22769 atomic_bit_test_and_reset@var{mode}): Document.
22770 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22771 atomic_bit_test_and_complement<mode>,
22772 atomic_bit_test_and_reset<mode>): New expanders.
22773 (atomic_bit_test_and_set<mode>_1,
22774 atomic_bit_test_and_complement<mode>_1,
22775 atomic_bit_test_and_reset<mode>_1): New insns.
22776
22777 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
22778
22779 PR rtl-optimization/70687
22780 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
22781 instead of unsigned HOST_WIDE_INT.
22782
22783 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
22784
22785 PR rtl-optimization/44281
22786 * hard-reg-set.h (struct target_hard_regs): New field
22787 x_fixed_nonglobal_reg_set.
22788 (fixed_nonglobal_reg_set): New macro.
22789 * reginfo.c (init_reg_sets_1): Initialize it.
22790 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22791 of fixed_reg_set.
22792 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22793
22794 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22795
22796 PR tree-optimization/56541
22797 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22798 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22799 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22800 (any_complicated_phi): new static variable.
22801 (aggressive_if_conv): delete.
22802 (if_convertible_phi_p): support phis with more than two arguments.
22803 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22804 critical pred edges.
22805 (ifcvt_split_critical_edges): support phis with more than two
22806 arguments by checking new parameter. only split critical edges
22807 if needed.
22808 (tree_if_conversion): handle simd pragma marked loop using new
22809 local variable aggressive_if_conv. check any_complicated_phi.
22810
22811 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22812
22813 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22814 before using it.
22815
22816 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22817
22818 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22819 cbase.
22820
22821 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22822
22823 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22824 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22825 define_insn_and_split.
22826 (mulsi3_i): New define_insn_and_split.
22827 (mulsi3_call): Convert to define_insn.
22828 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22829 Remove constraints.
22830
22831 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22832
22833 * machmode.h (mode_complex): Add support to give the complex mode
22834 for a given mode.
22835 (GET_MODE_COMPLEX_MODE): Likewise.
22836 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22837 stored by build_complex_type and gfc_build_complex_type instead of
22838 trying to figure out the appropriate mode based on the size. Raise
22839 an assertion error, if the type was not set.
22840 * genmodes.c (struct mode_data): Add field for the complex type of
22841 the given type.
22842 (blank_mode): Likewise.
22843 (make_complex_modes): Remember the complex mode created in the
22844 base type.
22845 (emit_mode_complex): Write out the mode_complex array to map a
22846 type mode to the complex version.
22847 (emit_insn_modes_c): Likewise.
22848 * tree.c (build_complex_type): Set the complex type to use before
22849 calling layout_type.
22850 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22851 support for __float128 complex datatypes.
22852 (rs6000_hard_regno_mode_ok): Likewise.
22853 (rs6000_setup_reg_addr_masks): Likewise.
22854 (rs6000_complex_function_value): Likewise.
22855 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22856 __float128 and __ibm128 complex.
22857 (FLOAT128_IBM_P): Likewise.
22858 (ALTIVEC_ARG_MAX_RETURN): Likewise.
22859 * doc/extend.texi (Additional Floating Types): Document that
22860 -mfloat128 must be used to enable __float128. Document complex
22861 __float128 and __ibm128 support.
22862
22863 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22864
22865 PR target/49244
22866 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22867 char/short arguments promoted to int because of promote_prototypes.
22868
22869 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22870
22871 * config/i386/predicates.md (register_ssemem_operand): New predicate.
22872 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22873 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22874 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
22875 alternatives using "enabled" attribute. Use register_ssemem_operand
22876 as operand 1 predicate.
22877 (*cmpi<unord>xf_i387): Split XFmode pattern from
22878 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22879 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22880 *absneg<mode>2_i387. Disable unsupported alternatives using
22881 "enabled" attribute.
22882 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22883
22884 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22885
22886 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22887 marker.
22888 (oacc_loop_process): Check mask for loop termination.
22889
22890 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22891
22892 * cif-code.def (CIF_THUNK): Add.
22893 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22894 accidental change.
22895
22896 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22897
22898 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22899 (dump_inline_summary): Dump it.
22900 (fp_expression_p): New predicate.
22901 (estimate_function_body_sizes): Use it.
22902 (inline_merge_summary): Merge fp_expressions.
22903 (inline_read_section): Read fp_expressions.
22904 (inline_write_summary): Write fp_expressions.
22905 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22906 codegen boundary if either caller or callee is !fp_expressions.
22907 * ipa-inline.h (inline_summary): Add fp_expressions.
22908 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22909 to fp_expressions be sure the fp generation flags are updated.
22910
22911 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22912
22913 PR rtl-optimization/70467
22914 * cse.c (cse_insn): Handle no-op MEM moves after folding.
22915
22916 PR rtl-optimization/70467
22917 * ipa-pure-const.c (check_call): Handle internal calls even in
22918 ipa mode like in local mode.
22919
22920 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22921
22922 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22923
22924 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22925
22926 * match.pd (X u< X, X u> X): New transformations.
22927
22928 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22929
22930 * flag-types.h (enum warn_strict_overflow_code): Move ...
22931 * coretypes.h: ... here.
22932 * fold-const.h (fold_overflow_warning): Declare.
22933 * fold-const.c (fold_overflow_warning): Make non-static.
22934 (fold_comparison): Move the transformation of X +- C1 CMP C2
22935 into X CMP C2 -+ C1 ...
22936 * match.pd: ... here.
22937 * gimple-fold.c (fold_stmt_1): Protect with
22938 fold_defer_overflow_warnings.
22939
22940 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22941
22942 * omp-low.c (struct oacc_loop): Add 'inner' field.
22943 (new_oacc_loop_raw): Initialize it to zero.
22944 (oacc_loop_fixed_partitions): Initialize it.
22945 (oacc_loop_auto_partitions): Partition outermost loop to outermost
22946 available partitioning.
22947
22948 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22949
22950 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22951 register_operand.
22952 (umulsidi3): Likewise.
22953 (indirect_jump): Fix jump instruction assembly patterns.
22954
22955 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
22956
22957 PR target/70860
22958 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22959 (nvptx_function_value): Assert non-NULL cfun.
22960
22961 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
22962
22963 PR rtl-optimization/70886
22964 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22965
22966 * cselib.h (rtx_equal_for_cselib_1): Declare.
22967 (rtx_equal_for_cselib_p: New inline function.
22968 * cselib.c (rtx_equal_for_cselib_p): Delete.
22969 (rtx_equal_for_cselib_1): Make public.
22970
22971 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22972
22973 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22974 (register_mixssei387nonimm_operand): Remove predicate.
22975 * config/i386/i386.md (*fop_<mode>_comm): Merge from
22976 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
22977 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
22978 for TARGET_MIX_SSE_I387 alternatives.
22979 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22980 Disable unsupported alternatives using "enabled" attribute. Use
22981 nonimm_ssenomem_operand as operand 1 predicate. Also check
22982 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22983
22984 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22985
22986 * tree.c (cst_and_fits_in_hwi): Simplify.
22987
22988 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22989
22990 * tree.h (wi::to_wide): New function.
22991 * expr.c (expand_expr_real_1): Use wi::to_wide.
22992 * fold-const.c (int_const_binop_1): Likewise.
22993 (extract_muldiv_1): Likewise.
22994
22995 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22996
22997 * wide-int.h: Update offset_int and widest_int documentation.
22998 (WI_SIGNED_SHIFT_RESULT): New macro.
22999 (wi::binary_shift): Define signed_shift_result_type for
23000 shifts on offset_int- and widest_int-like types.
23001 (generic_wide_int): Support <<= and >>= if << and >> are supported.
23002 * tree.h (int_bit_position): Use shift operators instead of wi::
23003 shifts.
23004 * alias.c (adjust_offset_for_component_ref): Likewise.
23005 * expr.c (get_inner_reference): Likewise.
23006 * fold-const.c (fold_comparison): Likewise.
23007 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
23008 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
23009 * tree-dfa.c (get_ref_base_and_extent): Likewise.
23010 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23011 (stmt_kills_ref_p): Likewise.
23012 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
23013 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
23014 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
23015 (ao_ref_init_from_vn_reference): Likewise.
23016
23017 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
23018
23019 * wide-int.h: Update offset_int and widest_int documentation.
23020 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
23021 (wi::binary_traits): Allow ordered comparisons between offset_int and
23022 offset_int, between widest_int and widest_int, and between either
23023 of these types and basic C types.
23024 (operator <, <=, >, >=): Define for the same combinations.
23025 * tree.h (tree_int_cst_lt): Use comparison operators instead
23026 of wi:: comparisons.
23027 (tree_int_cst_le): Likewise.
23028 * gimple-fold.c (fold_array_ctor_reference): Likewise.
23029 (fold_nonarray_ctor_reference): Likewise.
23030 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
23031 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
23032 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
23033 * tree-sra.c (completely_scalarize): Likewise.
23034 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
23035 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
23036 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
23037 (check_for_binary_op_overflow): Likewise.
23038 (search_for_addr_array): Likewise.
23039 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
23040
23041 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
23042
23043 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
23044 (arc_save_restore): Likewise.
23045 (arc_dwarf_register_span): Likewise.
23046 (arc_output_pic_addr_const): Initialize suffix variable.
23047
23048 2016-05-02 Martin Liska <mliska@suse.cz>
23049
23050 * symbol-summary.h (function_summary::function_summary):
23051 Remove checking assert for all cgraph nodes.
23052 (function_summary::get): Check summary_uid.
23053 (symtab_insertion): Check summary_uid.
23054
23055 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
23056
23057 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
23058 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
23059 bmaskn instruction.
23060 (arc_dwarf_register_span): Remove enum keyword.
23061 (compact_memory_operand_p): New function.
23062 * config/arc/arc.h (reg_class): Add code density register classes.
23063 (REG_CLASS_NAMES): Likewise.
23064 (REG_CLASS_CONTENTS): Likewise.
23065 * config/arc/arc.md (*movqi_insn): Add code density instructions.
23066 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
23067 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
23068 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
23069 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
23070 constraints.
23071 (h, Rcd, Rsd, Rzd): New register constraints.
23072 (T): Use compact_memory_operand_p function.
23073 * config/arc/predicates.md (compact_load_memory_operand): Remove.
23074
23075 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
23076
23077 * config/sh/sh.md (*negnegt, *movtt): Remove.
23078
23079 2016-05-02 Marek Polacek <polacek@redhat.com>
23080 Tom de Vries <tom@codesourcery.com>
23081
23082 PR tree-optimization/70700
23083 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
23084 bigger than FIRST_REF_NODE.
23085
23086 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
23087
23088 PR target/52898
23089 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
23090 TARGET_CMPEQDI_T.
23091 (prepare_cbranch_operands): Don't use scratch register. Assume that
23092 function is used when pseudos can be created.
23093 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
23094 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
23095 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
23096 define_expand. Allow it only when pseudos can be created.
23097 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
23098
23099 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
23100
23101 * config/i386/constraints.md (BC): Only allow -1 operands.
23102 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
23103 Add "enabled" attribute. Update XI mode attribute calculation.
23104 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
23105 (*movoi_internal_avx): Update XI mode attribute calculation.
23106 (*movti_internal): Ditto.
23107
23108 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
23109
23110 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
23111 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
23112
23113 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
23114
23115 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
23116 statement on instruction code. Remove trailing spaces.
23117 (altivec_expand_stv_builtin): Likewise.
23118
23119 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
23120
23121 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
23122 (TARGET_FPU_DOUBLE): Simplify.
23123 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
23124 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
23125 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
23126 with 'TARGET_FPU_DOUBLE'.
23127 * config/sh/sh.md: Likewise.
23128
23129 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
23130
23131 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
23132 SH_DIV_STR_FOR_SIZE): Remove.
23133 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
23134 SH_DIV_STR_FOR_SIZE): Remove.
23135
23136 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
23137
23138 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
23139 logical_reg_operand): Delete.
23140 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
23141 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
23142 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
23143 match_operand and match_test.
23144 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
23145 variables on their first use. Return bool values.
23146 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
23147 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
23148 arith_reg_operand for input operand. Remove empty constraints.
23149 (xorsi3): Delete.
23150 (*xorsi3_compact): Rename to xorsi3.
23151 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
23152 (*zero_extend<mode>si2_disp_mem): Update comment.
23153 (mov_nop): Delete.
23154
23155 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
23156
23157 * config/sh/t-sh: Remove SH5 support.
23158 * config.gcc: Likewise.
23159 * configure: Likewise.
23160
23161 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23162
23163 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
23164
23165 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
23166
23167 * config/sh/sh.c (register_sh_passes, sh_option_override,
23168 sh_print_operand, prepare_move_operands,
23169 sh_can_follow_jump): Remove TARGET_SH1 checks.
23170 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
23171 PROMOTE_MODE): Likewise.
23172 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
23173 movdi): Likewise.
23174
23175 2016-04-30 Alan Modra <amodra@gmail.com>
23176
23177 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
23178 restoring when fixed_reg_p, but allow out-of-line or stmw save.
23179 Check for user regs later to avoid unnecessary looping over regs.
23180 Merge user reg check with non-saved reg check. Don't force
23181 inline VR restore when static chain used.
23182 (rs6000_frame_related): Omit eh_frame info for user regs when
23183 saving.
23184 (fixed_regs_p): Delete.
23185
23186 2016-04-30 Alan Modra <amodra@gmail.com>
23187
23188 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
23189 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
23190 Update all uses.
23191
23192 2016-04-30 Alan Modra <amodra@gmail.com>
23193
23194 PR target/69645
23195 * config/rs6000/rs6000.c (fixed_reg_p): New function.
23196 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
23197 Update all uses.
23198
23199 2016-04-30 Alan Modra <amodra@gmail.com>
23200
23201 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
23202 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
23203 flag_pic test for Darwin.
23204
23205 2016-04-30 Alan Modra <amodra@gmail.com>
23206
23207 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
23208 throw_calls_crossed.
23209 (REG_FREQ_CALLS_CROSSED): Delete.
23210 (REG_N_THROWING_CALLS_CROSSED): Delete.
23211 * regstat.c (regstat_bb_compute_ri): Don't calculate
23212 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
23213 (dump_reg_info): Don't print call cross frequency.
23214 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
23215 and REG_N_THROWING_CALLS_CROSSED.
23216
23217 2016-04-30 Alan Modra <amodra@gmail.com>
23218
23219 * regs.h (struct reg_info_t): Delete live_length.
23220 (REG_LIVE_LENGTH): Delete macro.
23221 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
23222 local_live, local_processed and local_live_last_luid params.
23223 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
23224 Formatting fixes.
23225 (regstat_compute_ri): Adjust for above. Don't set
23226 REG_LIVE_LENGTH.
23227 (dump_reg_info): Don't print live length.
23228 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
23229 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
23230 Localize loop_depth var.
23231
23232 2016-04-30 Alan Modra <amodra@gmail.com>
23233
23234 * ira.c (enum valid_equiv): New.
23235 (validate_equiv_mem): Return enum.
23236 (update_equiv_mem): Create replacement in more cases.
23237 (add_store_equivs): Update validate_equiv_mem call.
23238
23239 2016-04-30 Alan Modra <amodra@gmail.com>
23240
23241 * ira.c (combine_and_move_insns): Rather than scanning insns,
23242 use DF infrastucture to find use and def insns.
23243
23244 2016-04-30 Alan Modra <amodra@gmail.com>
23245
23246 ira.c (combine_and_move_insns): Move invariant conditions..
23247 (ira.c): ..to here. Call combine_and_move_insns before
23248 add_store_equivs. Call grow_reg_equivs later. Allocate
23249 req_equiv later using max_reg_num() rather than global max_regno.
23250 (contains_replace_regs): Delete.
23251 (add_store_equivs): Remove contains_replace_regs test.
23252
23253 2016-04-30 Alan Modra <amodra@gmail.com>
23254
23255 * ira.c (struct equiv_mem_data): New.
23256 (equiv_mem, equiv_mem_modified): Delete static vars.
23257 (validate_equiv_mem_from_store): Use "data" param to communicate..
23258 (validate_equiv_mem): ..from here.
23259
23260 2016-04-30 Alan Modra <amodra@gmail.com>
23261
23262 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
23263 split out from..
23264 (update_reg_equivs): ..here. Move allocation and freeing of
23265 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
23266 end_alias_analysis to..
23267 (ira): ..here.
23268
23269 2016-04-30 Alan Modra <amodra@gmail.com>
23270
23271 * ira.c (pdx_subregs): Delete.
23272 (struct equivalence): Add pdx_subregs field.
23273 (set_paradoxical_subreg): Remove pdx_subregs param. Update
23274 pdx_subregs access.
23275 (update_equiv_regs): Don't create or free pdx_subregs. Update
23276 pdx_subregs access.
23277
23278 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23279
23280 * config/rs6000/altivec.h: Change definitions of vec_xl and
23281 vec_xst.
23282 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
23283 (LD_ELEMREV_V2DI): New.
23284 (LD_ELEMREV_V4SF): New.
23285 (LD_ELEMREV_V4SI): New.
23286 (LD_ELEMREV_V8HI): New.
23287 (LD_ELEMREV_V16QI): New.
23288 (ST_ELEMREV_V2DF): New.
23289 (ST_ELEMREV_V2DI): New.
23290 (ST_ELEMREV_V4SF): New.
23291 (ST_ELEMREV_V4SI): New.
23292 (ST_ELEMREV_V8HI): New.
23293 (ST_ELEMREV_V16QI): New.
23294 (XL): New.
23295 (XST): New.
23296 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23297 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
23298 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
23299 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
23300 (altivec_expand_builtin): Add handling for
23301 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
23302 (rs6000_invalid_builtin): Add error-checking for
23303 RS6000_BTM_P9_VECTOR.
23304 (altivec_init_builtins): Define builtins used to implement vec_xl
23305 and vec_xst.
23306 (rs6000_builtin_mask_names): Define power9-vector.
23307 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
23308 (RS6000_BTM_P9_VECTOR): Define.
23309 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
23310 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
23311 (vsx_ld_elemrev_v2df): Likewise.
23312 (vsx_ld_elemrev_v4sf): Likewise.
23313 (vsx_ld_elemrev_v4si): Likewise.
23314 (vsx_ld_elemrev_v8hi): Likewise.
23315 (vsx_ld_elemrev_v16qi): Likewise.
23316 (vsx_st_elemrev_v2df): Likewise.
23317 (vsx_st_elemrev_v2di): Likewise.
23318 (vsx_st_elemrev_v4sf): Likewise.
23319 (vsx_st_elemrev_v4si): Likewise.
23320 (vsx_st_elemrev_v8hi): Likewise.
23321 (vsx_st_elemrev_v16qi): Likewise.
23322 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
23323 grammar.
23324
23325 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
23326
23327 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
23328 out into ...
23329 (simplify_control_stmt_condition_1): ... here. Recurse into
23330 BIT_AND_EXPRs and BIT_IOR_EXPRs.
23331
23332 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
23333
23334 PR target/69810
23335 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
23336 (zero_extendqi<mode>2_dot): Revert earlier conversion from
23337 define_insn_and_split to define_insn.
23338 (zero_extendqi<mode>2_dot2): Same.
23339 (extendqi<mode>2_dot): Same.
23340 (extendqi<mode>2_dot2): Same.
23341
23342 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23343
23344 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
23345 (probe_stack): New expander.
23346 (probe_stack_<mode>): New insn pattern.
23347
23348 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23349
23350 * config/i386/i386.md
23351 (operations with memory inputs setting flags peephole2):
23352 Remove uneeded REG_P checks. Cleanup pattern generation.
23353
23354 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
23355
23356 * tree-vect-loop.c (vect_transform_loop): Fix
23357 nb_iterations_upper_bound computation for vectorized loop.
23358
23359 2016-04-29 Marek Polacek <polacek@redhat.com>
23360 Jakub Jelinek <jakub@redhat.com>
23361
23362 PR sanitizer/70342
23363 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
23364 TARGET_EXPR_SLOT as a base.
23365
23366 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
23367
23368 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
23369 with 'rCm2' constraints to limit possible immediate size.
23370 (*load_zeroextendqisi_update): Likewise.
23371 (*load_signextendqisi_update): Likewise.
23372 (*loadhi_update): Likewise.
23373 (*load_zeroextendhisi_update): Likewise.
23374 (*load_signextendhisi_update): Likewise.
23375 (*loadsi_update): Likewise.
23376 (*loadsf_update): Likewise.
23377
23378 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23379
23380 * config/i386/predicates.md (constm1_operand): Fix comparison.
23381
23382 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23383
23384 * testsuite/gcc.target/arc/ieee_eq.c: New test.
23385
23386 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
23387
23388 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
23389 remaining SH5 related settings.
23390 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
23391 shmedia_prepare_call_address): Delete.
23392 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
23393 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
23394 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
23395 UNSUPPORTED_SH2A): Remove m5 checks.
23396 (sh_divide_strategy_e): Remove SH5 division strategies.
23397 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
23398 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
23399
23400 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23401
23402 * config/s390/s390.c (s390_rtx_costs): Update documentation.
23403
23404 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23405
23406 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
23407 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
23408 Change lder to ldr.
23409 * config/s390/vector.md ("mov<mode>"): Likewise.
23410
23411 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
23412
23413 * config/s390/constraints.md ("U", "W"): Invoke
23414 s390_mem_constraint with "ZR" and "ZT".
23415 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
23416 addresses when using LRA. Accept also short displacements for S
23417 and T constraints. Do not check for long displacement target for
23418 S and T constraints.
23419 (s390_mem_constraint): Remove handling of U and W constraints.
23420 * config/s390/s390.md (various patterns): Remove the short
23421 displacement constraints (Q and R) if a long displacement
23422 constraint is present. Add longdisp as required CPU capability.
23423 * config/s390/vector.md: Likewise.
23424 * config/s390/vx-builtins.md: Likewise.
23425
23426 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23427
23428 PR target/60040
23429 * reload1.c (reload): Call finish_spills before
23430 restarting reload loop. Skip select_reload_regs
23431 if update_eliminables_and_spill returns true.
23432
23433 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23434
23435 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
23436 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
23437 (umulhisi3_imm): Update predicates and constraint letters.
23438 (umulhisi3_reg): Declare instruction as commutative.
23439 * config/arc/constraints.md (J12, J16): New constraints.
23440 * config/arc/predicates.md (short_unsigned_const_operand): New
23441 predicate.
23442 (arc_short_operand): Likewise.
23443 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
23444
23445 2016-04-29 Richard Biener <rguenther@suse.de>
23446
23447 PR tree-optimization/13962
23448 PR tree-optimization/65686
23449 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
23450 * tree-ssa-alias.c (ptrs_compare_unequal): New function
23451 using PTA to compare pointers.
23452 * match.pd: Add pattern for pointer equality compare simplification
23453 using ptrs_compare_unequal.
23454
23455 2016-04-29 Richard Biener <rguenther@suse.de>
23456
23457 * stor-layout.c (layout_type): Do not build a pointer-to-element
23458 type for arrays.
23459
23460 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23461
23462 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
23463 Use SWI mode iterator. Use general_reg_operand predicate.
23464 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
23465 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
23466 predicates.
23467
23468 2016-04-29 Jakub Jelinek <jakub@redhat.com>
23469
23470 PR middle-end/70843
23471 * fold-const.c (operand_equal_p): Don't verify hash value equality
23472 if arg0 == arg1.
23473 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
23474 and OMP_CLAUSE.
23475
23476 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23477
23478 PR target/70858
23479 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
23480 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
23481 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
23482 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
23483 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
23484
23485 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23486
23487 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
23488 to info. Don't initialize separate fields to 0. Clean up
23489 formatting a bit.
23490
23491 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23492
23493 * config/i386/i386.md (peephole2s for operations with memory inputs):
23494 Use SWI mode iterator.
23495 (peephole2s for operations with memory outputs): Ditto.
23496 Do not check for stack checking probe.
23497
23498 (probe_stack): Remove expander.
23499
23500 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23501 Andrew Burgess <andrew.burgess@embecosm.com>
23502
23503 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
23504 operands as 32-bits.
23505
23506 2016-04-28 Jason Merrill <jason@redhat.com>
23507
23508 * gdbinit.in: Skip line-map.h.
23509
23510 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23511 Andrew Burgess <andrew.burgess@embecosm.com>
23512
23513 * config/arc/arc.c (arc_conditional_register_usage): Take
23514 TARGET_RRQ_CLASS into account.
23515 (arc_print_operand): Support printing 'p' and 's' operands.
23516 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
23517 as 0.
23518 (TARGET_RRQ_CLASS): Define.
23519 (IS_POWEROF2_OR_0_P): Define.
23520 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
23521 alternatives.
23522 (*tst_movb): New define_insn.
23523 (*tst): Avoid recognition if it could prevent '*tst_movb'
23524 combination; replace c/CnL with c/Chs alternative.
23525 (*tst_bitfield_tst): New define_insn.
23526 (*tst_bitfield_asr): New define_insn.
23527 (*tst_bitfield): New define_insn.
23528 (andsi3_i): Add Rrq variant.
23529 (extzv): New define_expand.
23530 (insv): New define_expand.
23531 (*insv_i): New define_insn.
23532 (*movb): New define_insn.
23533 (*movb_signed): New define_insn.
23534 (*movb_high): New define_insn.
23535 (*movb_high_signed): New define_insn.
23536 (*movb_high_signed + 1): New define_split pattern.
23537 (*mrgb): New define_insn.
23538 (*mrgb + 1): New define_peephole2 pattern.
23539 (*mrgb + 2): New define_peephole2 pattern.
23540 * config/arc/arc.opt (mbitops): New option for nps400, uses
23541 TARGET_NPS_BITOPS_DEFAULT.
23542 * config/arc/constraints.md (q): Make register class conditional.
23543 (Rrq): New register constraint.
23544 (Chs): New constraint.
23545 (Clo): New constraint.
23546 (Chi): New constraint.
23547 (Cbf): New constraint.
23548 (Cbn): New constraint.
23549 (C18): New constraint.
23550 (Cbi): New constraint.
23551
23552 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23553
23554 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
23555 dst->popcount.
23556 (bitmap_intersection_of_preds): Ditto.
23557 (bitmap_union_of_succs): Ditto.
23558 (bitmap_union_of_preds): Ditto.
23559 * sbitmap.c (do_popcount): Delete.
23560 (BITMAP_DEBUGGING): Delete.
23561 (sbitmap_verify_popcount): Delete.
23562 (sbitmap_alloc): Don't initialize the popcount field.
23563 (sbitmap_alloc_with_popcount): Delete.
23564 (sbitmap_resize): Don't resize the popcount array.
23565 (sbitmap_vector_alloc): Don't initialize the popcount field.
23566 (bitmap_copy): Don't copy the popcount array.
23567 (bitmap_clear): Don't clear the popcount array.
23568 (bitmap_clear): Delete the popcount array handling.
23569 (bitmap_ior_and_compl): Delete the popcount assert.
23570 (bitmap_not): Ditto.
23571 (bitmap_and_compl): Ditto.
23572 (bitmap_and): Delete the popcount array handling.
23573 (bitmap_xor): Ditto.
23574 (bitmap_ior): Ditto.
23575 (bitmap_or_and): Delete the popcount assert.
23576 (bitmap_and_or): Ditto.
23577 (popcount_table): Delete.
23578 (sbitmap_elt_popcount): Delete.
23579 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
23580 (bitmap_set_bit): Delete the popcount assert.
23581 (bitmap_clear_bit): Ditto.
23582 (sbitmap_free): Don't free the popcount array.
23583 (sbitmap_alloc_with_popcount): Delete declaration.
23584 (sbitmap_popcount): Ditto.
23585
23586 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23587 Andrew Burgess <andrew.burgess@embecosm.com>
23588
23589 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
23590 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
23591 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
23592 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
23593 * config/arc/arc.opt (mcmem): New option.
23594 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
23595 supply length for r/m alternative.
23596 (*extendqisi2_ac): Likewise.
23597 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
23598 r/Uex alternative.
23599 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
23600 (movhi_insn): Likewise.
23601 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
23602 (*zero_extendqihi2_i): Add r/Ucm alternative.
23603 (*zero_extendqisi2_ac): Likewise.
23604 (*zero_extendhisi2_i): Likewise.
23605 * config/arc/constraints.md (Uex): New memory constraint.
23606 (Ucm): New define_constraint.
23607 * config/arc/predicates.md (long_immediate_loadstore_operand):
23608 Return 0 for MEM with cmem_address address.
23609 (cmem_address_0): New predicates.
23610 (cmem_address_1): Likewise.
23611 (cmem_address_2): Likewise.
23612 (cmem_address): Likewise.
23613
23614 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23615
23616 * config/rs6000/rs6000.c (machine_function): Rename
23617 insn_chain_scanned_p to spe_insn_chain_scanned_p.
23618 (rs6000_stack_info): Adjust.
23619
23620 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23621 Andrew Burgess <andrew.burgess@embecosm.com>
23622
23623 * config/arc/constraints.md (Usd): Convert to define_constraint.
23624 (Us<): Likewise.
23625 (Us>): Likewise.
23626
23627 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23628
23629 PR target/70821
23630 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
23631 Add new peephole2 where the first insn is *mov<mode>_or instead of
23632 *mov<mode>_internal.
23633
23634 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
23635
23636 * tracer.c (bb_seen): Make static.
23637
23638 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
23639
23640 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
23641 support, setup defaults.
23642 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
23643 * config/arc/arc.c (arc_init): Add NPS400 support.
23644 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
23645 (TARGET_ARC700): NPS400 is also an ARC700.
23646 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
23647
23648 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23649
23650 PR target/70668
23651 * config/nds32/nds32.md (casesi): Don't access the operands array
23652 out of bounds.
23653
23654 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23655
23656 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
23657 (or $-1,reg peephole2): Ditto.
23658 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
23659
23660 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23661
23662 * doc/extend.texi (Common Function Attributes) [optimize]:
23663 Discourage use of the optimize attribute.
23664
23665 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
23666
23667 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
23668 special case builtin.
23669 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23670 ALTIVEC_BUILTIN_VEC_ADDE.
23671 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23672 support for ALTIVEC_BUILTIN_VEC_ADDE.
23673 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
23674 for __builtin_vec_adde.
23675
23676 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23677
23678 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
23679 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
23680
23681 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23682
23683 PR testsuite/70595
23684 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23685 attributes): Document cilkplus_runtime.
23686
23687 2016-04-28 Martin Jambor <mjambor@suse.cz>
23688
23689 * tree-cfg.c (verify_expr): Verify that local declarations belong to
23690 this function. Call verify_expr on MEM_REFs and bases of other
23691 handled_components.
23692
23693 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23694
23695 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
23696 for WORD_REGISTER_OPERATIONS to runtime check.
23697
23698 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23699
23700 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
23701
23702 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23703
23704 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
23705 big-endian compilation.
23706 * config/arc/arc.md (addf3): Likewise.
23707 (subdf3): Likewise.
23708 (muldf3): Likewise.
23709
23710 2016-04-28 Richard Biener <rguenther@suse.de>
23711
23712 PR tree-optimization/70840
23713 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
23714 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
23715 Mark x * pow(x,c) -> pow(x,c+1) commutative.
23716 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
23717
23718 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23719
23720 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
23721 and explain why in a comment.
23722
23723 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23724
23725 * config/arc/arc.md (cpu_facility): Add fpx variant.
23726 (subdf3): Prohibit use reverse sub when assist operations option
23727 is enabled.
23728 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
23729 instructions only when FPX is enabled.
23730 * testsuite/gcc.target/arc/trsub.c: New test.
23731
23732 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23733
23734 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
23735 mult_operator when calculating "type" attribute.
23736 (*fop_<mode>_1_i387): Ditto.
23737 (*fop_xf_1_i387): Ditto.
23738 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
23739 Use std::swap to swap operands. Use RTL expressions to generate
23740 converted pattern.
23741
23742 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23743 Joern Rennecke <joern.rennecke@embecosm.com>
23744
23745 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
23746 declaration.
23747 (emit_pic_move): Remove.
23748 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
23749 * config/arc/arc.c (emit_pic_move): Removed.
23750 (TARGET_HAVE_TLS): Define.
23751 (arc_conditional_register_usage): Test for arc_tp_regno.
23752 (arc_print_operand, arc_print_operand_address): Handle TLS
23753 unspecs.
23754 (arc_needs_pcl_p): New function.
23755 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
23756 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
23757 (arc_raw_symbolic_reference_mentioned_p): Likewise.
23758 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
23759 (arc_legitimize_tls_address): Likewise.
23760 (DTPOFF_ZERO_SYM): Define.
23761 (arc_legitimize_pic_address): Make it static, handle TLS cases.
23762 (arc_output_pic_addr_const): Print TLS unspecs.
23763 (prepare_pic_move): New function, replaces emit_pic_move.
23764 (arc_legitimate_constant_p): Handle TLS unspecs.
23765 (arc_legitimate_address_p): Likewise.
23766 (arc_rewrite_small_data_p): Use assert for TLS constants.
23767 (prepare_move_operands): Use prepare_pic_move.
23768 (arc_legitimize_address): Legitimize tls addresses.
23769 (arc_epilogue_uses): Check for arc_tp_regno.
23770 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23771 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23772 Define.
23773 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23774 Likewise.
23775 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23776 %(arc_tls_extra_start_spec).
23777 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23778 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23779 (EH_USES): Define.
23780 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23781 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23782 (UNSPEC_TLS_OFF): Add.
23783 (R10_REG): Define.
23784 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23785 (get_thread_pointersi): New patterns.
23786 * config/arc/arc.opt (mtp-regno): New option.
23787 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23788 (move_dest_operand): Likewise.
23789 * configure: Regenerate.
23790 * configure.ac: Add arc*-*-* case to test for tls.
23791 * doc/invoke.texi (ARC options): Document mtp-regno.
23792
23793 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23794
23795 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23796 the new ARC HS SIMD instructions.
23797 (arc_preferred_simd_mode): New function.
23798 (arc_autovectorize_vector_sizes): Likewise.
23799 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23800 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23801 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23802 (arc_init_builtins): Add new SIMD builtin types.
23803 (arc_split_move): Handle 64 bit vector moves.
23804 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23805 (TARGET_PLUS_QMACW): Define.
23806 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23807 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23808 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23809 (VSUBADD4H): New builtins.
23810 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23811 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23812
23813 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
23814 Matthias Klose <doko@debian.org>
23815
23816 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23817
23818 2016-04-28 Richard Biener <rguenther@suse.de>
23819
23820 PR middle-end/70777
23821 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23822 canonicalization.
23823
23824 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
23825
23826 * common/config/sh/sh-common.c: Remove SH5 support.
23827 * config/sh/constraints.md: Likewise.
23828 * config/sh/config/sh/elf.h: Likewise.
23829 * config/sh/linux.h: Likewise.
23830 * config/sh/netbsd-elf.h: Likewise.
23831 * config/sh/predicates.md: Likewise.
23832 * config/sh/sh-c.c: Likewise.
23833 * config/sh/sh-protos.h: Likewise.
23834 * config/sh/sh.c: Likewise.
23835 * config/sh/sh.h: Likewise.
23836 * config/sh/sh.md: Likewise.
23837 * config/sh/sh.opt: Likewise.
23838 * config/sh/sync.md: Likewise.
23839 * config/sh/sh64.h: Delete.
23840 * config/sh/shmedia.h: Likewise.
23841 * config/sh/shmedia.md: Likewise.
23842 * config/sh/sshmedia.h: Likewise.
23843 * config/sh/t-netbsd-sh5-64: Likewise.
23844 * config/sh/t-sh64: Likewise.
23845 * config/sh/ushmedia.h: Likewise.
23846
23847 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23848
23849 * config/i386/i386.md (sign_extend to memory peephole2s): Use
23850 general_reg_operand instead of register_operand predicate.
23851
23852 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23853
23854 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23855
23856 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
23857
23858 * match.pd (A - B > A, A + B < A): New transformations.
23859
23860 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
23861
23862 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23863 which defaults to true. Emit an outer pair of parentheses only if
23864 EMIT_PARENS. When continuing a chain of && or || (or & or |),
23865 don't emit parentheses for the right-hand operand.
23866
23867 2016-04-27 Jeff Law <law@redhat.com>
23868
23869 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23870
23871 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23872
23873 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23874 (altivec_lvx_<mode>_internal): Document.
23875 (altivec_lvx_<mode>_2op): New define_insn.
23876 (altivec_lvx_<mode>_1op): Likewise.
23877 (altivec_lvx_<mode>_2op_si): Likewise.
23878 (altivec_lvx_<mode>_1op_si): Likewise.
23879 (altivec_stvx_<mode>): Remove.
23880 (altivec_stvx_<mode>_internal): Document.
23881 (altivec_stvx_<mode>_2op): New define_insn.
23882 (altivec_stvx_<mode>_1op): Likewise.
23883 (altivec_stvx_<mode>_2op_si): Likewise.
23884 (altivec_stvx_<mode>_1op_si): Likewise.
23885 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23886 Expand vec_ld and vec_st during parsing.
23887 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23888 changes.
23889 (altivec_expand_stvx_be): Likewise.
23890 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23891 address-masking behavior in RTL.
23892 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23893 address-masking behavior in RTL.
23894 (altivec_expand_builtin): Change builtin code arguments for calls
23895 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23896 (insn_is_swappable_p): Avoid incorrect swap optimization in the
23897 presence of lvx/stvx patterns.
23898 (alignment_with_canonical_addr): New function.
23899 (alignment_mask): Likewise.
23900 (find_alignment_op): Likewise.
23901 (recombine_lvx_pattern): Likewise.
23902 (recombine_stvx_pattern): Likewise.
23903 (recombine_lvx_stvx_patterns): Likewise.
23904 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23905 stvx patterns from expand.
23906 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23907 expansions.
23908 (vector_altivec_store_<mode>): Likewise.
23909
23910 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
23911
23912 * config/aarch64/aarch64.md
23913 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23914 remove the "fp" attributes.
23915 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23916 add the "simd" attributes.
23917 (*movdf_aarch64): Likewise.
23918 (*movtf_aarch64): Remove the "fp" attributes.
23919 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23920 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23921
23922 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23923
23924 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23925 rtx to rtx_code_label *.
23926 * rtl.h (maybe_set_first_label_num): Likewise.
23927
23928 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23929
23930 * df-core.c (df_add_problem): Make the problem param be const.
23931 (df_remove_problem): Make local "problem" be const.
23932 * df-problems.c (problem_RD): Make const.
23933 (problem_LR): Likewise.
23934 (problem_LIVE): Likewise.
23935 (problem_MIR): Likewise.
23936 (problem_CHAIN): Likewise.
23937 (problem_WORD_LR): Likewise.
23938 (problem_NOTE): Likewise.
23939 (problem_MD): Likewise.
23940 * df-scan.c (problem_SCAN): Likewise.
23941 * df.h (struct df_problem): Make field "dependent_problem" be
23942 const.
23943 (struct dataflow): Likewise for field "problem".
23944 (df_add_problem): Make param const.
23945
23946 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23947
23948 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23949 inter-unit moves to/from vector registers are enabled. Do not disable
23950 for TARGET_MMX.
23951
23952 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23953
23954 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23955 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23956 #define to...
23957 (enum df_problem_id): ...this new enum.
23958 (struct df_problem): Convert field "id" from "int" to
23959 enum df_problem_id.
23960
23961 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23962
23963 * rtl.def: Update comment for "things in the instruction chain" to
23964 reflect the removal of the leading "i" field for INSN_UID in
23965 r210360. Fix bogus apostrophe.
23966
23967 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23968
23969 * config/i386/i386.md
23970 (lea arith with mem operand + setcc peephole2): Set operator mode.
23971
23972 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
23973
23974 PR target/70155
23975 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23976 (dimode_scalar_to_vector_candidate_p): This.
23977 (timode_scalar_to_vector_candidate_p): New function.
23978 (scalar_to_vector_candidate_p): Likewise.
23979 (timode_check_non_convertible_regs): Likewise.
23980 (timode_remove_non_convertible_regs): Likewise.
23981 (remove_non_convertible_regs): Likewise.
23982 (remove_non_convertible_regs): Renamed to ...
23983 (dimode_remove_non_convertible_regs): This.
23984 (scalar_chain::~scalar_chain): Make it virtual.
23985 (scalar_chain::compute_convert_gain): Make it pure virtual.
23986 (scalar_chain::mark_dual_mode_def): Likewise.
23987 (scalar_chain::convert_insn): Likewise.
23988 (scalar_chain::convert_registers): Likewise.
23989 (scalar_chain::add_to_queue): Make it protected.
23990 (scalar_chain::emit_conversion_insns): Likewise.
23991 (scalar_chain::replace_with_subreg): Likewise.
23992 (scalar_chain::replace_with_subreg_in_insn): Likewise.
23993 (scalar_chain::convert_op): Likewise.
23994 (scalar_chain::convert_reg): Likewise.
23995 (scalar_chain::make_vector_copies): Likewise.
23996 (scalar_chain::convert_registers): New pure virtual function.
23997 (class dimode_scalar_chain): New class.
23998 (class timode_scalar_chain): Likewise.
23999 (scalar_chain::mark_dual_mode_def): Renamed to ...
24000 (dimode_scalar_chain::mark_dual_mode_def): This.
24001 (timode_scalar_chain::mark_dual_mode_def): New function.
24002 (timode_scalar_chain::convert_insn): Likewise.
24003 (dimode_scalar_chain::convert_registers): Likewise.
24004 (scalar_chain::compute_convert_gain): Renamed to ...
24005 (dimode_scalar_chain::compute_convert_gain): This.
24006 (scalar_chain::replace_with_subreg): Renamed to ...
24007 (dimode_scalar_chain::replace_with_subreg): This.
24008 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
24009 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
24010 (scalar_chain::make_vector_copies): Renamed to ...
24011 (dimode_scalar_chain::make_vector_copies): This.
24012 (scalar_chain::convert_reg): Renamed to ...
24013 (dimode_scalar_chain::convert_reg ): This.
24014 (scalar_chain::convert_op): Renamed to ...
24015 (dimode_scalar_chain::convert_op): This.
24016 (scalar_chain::convert_insn): Renamed to ...
24017 (dimode_scalar_chain::convert_insn): This.
24018 (scalar_chain::convert): Call convert_registers.
24019 (convert_scalars_to_vector): Change to scalar_chain pointer to
24020 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
24021 in 32-bit mode. Delete scalar_chain pointer. Call
24022 free_dominance_info in 64-bit mode.
24023 (pass_stv::gate): Remove TARGET_64BIT check.
24024 (ix86_option_override): Put the 64-bit STV pass before the CSE
24025 pass.
24026
24027 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
24028
24029 * dwarf2out.h (struct dw_loc_descr_node): Remove the
24030 dw_loc_frame_offset field.
24031 * dwarf2out.c (new_loc_descr): Likewise.
24032 (resolve_args_picking_1): Turn the VISITED hash set into a
24033 FRAME_OFFSET hash map. Use it to associate a frame offset to
24034 visited nodes. Remove uses of the CHECKING_P macro.
24035 (resolve_args_picking): Update call to resolve_args_picking_1.
24036
24037 2016-04-27 Martin Liska <mliska@suse.cz>
24038
24039 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
24040 (free_loop_data): Release vuses of groups.
24041
24042 2016-04-27 Bin Cheng <bin.cheng@arm.com>
24043
24044 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
24045 instead of redundant use_id and boolean have_use_for.
24046 (struct iv_use): Change sub_id into group_id. Remove field next.
24047 Move fields: related_cands, n_map_members, cost_map and selected
24048 to ...
24049 (struct iv_group): ... here. New structure.
24050 (struct iv_common_cand): Use structure declaration directly.
24051 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
24052 (MAX_CONSIDERED_USES): Rename macro to ...
24053 (MAX_CONSIDERED_GROUPS): ... here.
24054 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
24055 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
24056 (dump_uses): Rename to ...
24057 (dump_groups): ... here. Update all uses.
24058 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
24059 (find_induction_variables): Refactor format of dump information.
24060 (record_sub_use): Delete.
24061 (record_use): Update all uses.
24062 (record_group): New function.
24063 (record_group_use, find_interesting_uses_op): Call above functions.
24064 Update all uses.
24065 (find_interesting_uses_cond): Ditto.
24066 (group_compare_offset): New function.
24067 (split_all_small_groups): Rename to ...
24068 (split_small_address_groups_p): ... here. Update all uses.
24069 (split_address_groups): Update all uses.
24070 (find_interesting_uses): Refactor format of dump information.
24071 (add_candidate_1): Update all uses. Remove redundant check on iv,
24072 base and step.
24073 (add_candidate, record_common_cand): Remove redundant assert.
24074 (add_iv_candidate_for_biv): Update use.
24075 (add_iv_candidate_derived_from_uses): Update all uses.
24076 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
24077 (alloc_use_cost_map): Ditto.
24078 (set_use_iv_cost, get_use_iv_cost): Rename to ...
24079 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
24080 (determine_use_iv_cost_generic): Ditto.
24081 (determine_group_iv_cost_generic): Ditto.
24082 (determine_use_iv_cost_address): Ditto.
24083 (determine_group_iv_cost_address): Ditto.
24084 (determine_use_iv_cost_condition): Ditto.
24085 (determine_group_iv_cost_cond): Ditto.
24086 (determine_use_iv_cost): Ditto.
24087 (determine_group_iv_cost): Ditto.
24088 (set_autoinc_for_original_candidates): Update all uses.
24089 (find_iv_candidates): Update all uses. Refactor dump information.
24090 (determine_use_iv_costs): Ditto.
24091 (determine_iv_costs): Ditto.
24092 (iv_ca_cand_for_use): Rename to ...
24093 (iv_ca_cand_for_group): ... here. Update all uses.
24094 (iv_ca_add_use, iv_ca_add_group): Ditto.
24095 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
24096 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
24097 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
24098 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
24099 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
24100 (create_new_iv, adjust_iv_update_pos): Ditto.
24101 (rewrite_use_address): Delete.
24102 (rewrite_use_address_1): Rename to ...
24103 (rewrite_use_address): ... here.
24104 (rewrite_use_compare): Update all uses.
24105 (rewrite_use): Delete.
24106 (rewrite_uses): Rename to ...
24107 (rewrite_groups): ... here. Update all uses.
24108 (remove_unused_ivs, free_loop_data): Update all uses.
24109 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
24110
24111 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24112
24113 * rtlanal.c (nonzero_bits1): Convert preprocessor check
24114 for WORD_REGISTER_OPERATIONS to runtime check.
24115
24116 2016-04-27 Richard Biener <rguenther@suse.de>
24117
24118 PR ipa/70760
24119 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
24120 aggregate_value_p to determine if a function result is
24121 returned by reference.
24122 (ipa_pta_execute): Functions having their address taken are
24123 not automatically nonlocal.
24124
24125 2016-04-27 Jakub Jelinek <jakub@redhat.com>
24126
24127 PR sanitizer/70683
24128 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
24129 * fold-const.c (operand_equal_p): If flag_checking and
24130 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
24131 and if it returns non-zero, assert iterative_hash_expr on both
24132 args is the same.
24133
24134 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
24135
24136 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
24137
24138 2016-04-27 Nick Clifton <nickc@redhat.com>
24139
24140 PR middle-end/49889
24141 * varasm.c (merge_weak): Generate an error if an attempt is made
24142 to convert a non-weak static function into a weak, public function.
24143
24144 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24145
24146 * params.def (MAX_PARTITION_SIZE): New param.
24147 * doc/invoke.texi: Document lto-max-partition.
24148
24149 2016-04-27 Richard Biener <rguenther@suse.de>
24150
24151 PR ipa/70785
24152 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
24153 function cummulating used_from_other_partition, externally_visible
24154 and force_output from aliases.
24155 (refered_from_nonlocal_var): Likewise.
24156 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
24157 node flags properly.
24158
24159 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
24160
24161 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
24162 (-Wmemset-elt-size): New item.
24163
24164 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
24165
24166 PR ada/70759
24167 * stor-layout.h (internal_reference_types): Delete.
24168 * stor-layout.c (reference_types_internal): Likewise.
24169 (internal_reference_types): Likewise.
24170 (layout_type) <REFERENCE_TYPE>: Adjust.
24171
24172 2016-04-27 Jakub Jelinek <jakub@redhat.com>
24173
24174 PR sanitizer/70683
24175 * tree.h (inchash::add_expr): Add FLAGS argument.
24176 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
24177 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
24178 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
24179 Formatting fix. Adjust recursive calls. For tcc_comparison,
24180 if swap_tree_comparison (code) is smaller than code, hash that
24181 and arguments in the other order. Hash CONVERT_EXPR the same
24182 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
24183 of ADDR_EXPR of decl as the decl itself. Add or remove
24184 OEP_ADDRESS_OF from recursive flags as needed. For
24185 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
24186 operands commutatively and only the third one normally.
24187 For internal CALL_EXPR hash in CALL_EXPR_IFN.
24188
24189 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
24190
24191 * config/rtems.h (LIB_SPEC): Add -latomic.
24192
24193 2016-04-27 Joel Sherrill <joel@rtems.org>
24194
24195 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
24196 xilink.ld and flags not relevant to RTEMS.
24197
24198 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24199
24200 * toplev.c (backend_init_target): Avoid calling init_reload when using
24201 LRA.
24202
24203 2016-04-26 Jakub Jelinek <jakub@redhat.com>
24204
24205 * reorg.c (try_merge_delay_insns): Declare i and j inside the
24206 for loops rather than one for the whole function.
24207
24208 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
24209
24210 * match.pd (X + CST CMP X): New transformation.
24211
24212 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
24213
24214 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
24215 * fold-const.c (fold_binary_loc): Remove 2 transformations
24216 superseded by match.pd.
24217 * match.pd (x+x -> x*2): Generalize to integers.
24218
24219 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
24220
24221 * config/i386/i386.md (operation on memory peephole): Duplicate an
24222 existing peephole and adapt it to match lea rather than an operation
24223 that clobbers CC.
24224
24225 PR rtl-optimization/57193
24226 * opts.c (default_options_table): Add OPT_frename_registers at -O2
24227 and above.
24228 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
24229
24230 2016-04-26 Bin Cheng <bin.cheng@arm.com>
24231
24232 * tree-if-conv.c (any_pred_load_store): New static variable.
24233 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
24234 any_pred_load_store instead of and_mask_load_store.
24235 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
24236 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
24237 (combine_blocks, tree_if_conversion): Ditto.
24238
24239 2016-04-26 Bin Cheng <bin.cheng@arm.com>
24240
24241 PR tree-optimization/70771
24242 PR tree-optimization/70775
24243 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
24244 virtual PHI nodes. Delete parameter.
24245 (if_convertible_loop_p_1): Delete argument to above function.
24246 (predicate_all_scalar_phis): Delete code handling single-argument
24247 PHIs.
24248 (tree_if_conversion): Mark and update virtual SSA.
24249
24250 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24251
24252 PR target/61821
24253 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
24254 (x86_elf_aligned_common): Rename to ...
24255 (x86_elf_aligned_decl_common): ... this.
24256 Add decl arg. Switch to .lbss for largecomm object. Use
24257 LARGECOMM_SECTION_ASM_OP.
24258 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
24259 renaming.
24260 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
24261 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
24262 Pass new decl arg.
24263 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24264 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
24265
24266 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24267
24268 PR target/59407
24269 * config/i386/i386.c (SECTION_LARGE): Define.
24270 (x86_64_elf_select_section): Set it for large data/bss sections.
24271 Only clear SECTION_WRITE for .lrodata.
24272 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
24273 data/bss sections.
24274 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
24275 * varasm.c (default_elf_asm_named_section): Grow flagchars.
24276 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
24277 SECTION_MACH_DEP.
24278 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
24279 * doc/tm.texi: Regenerate.
24280
24281 2016-04-26 Jakub Jelinek <jakub@redhat.com>
24282
24283 PR bootstrap/70704
24284 * configure.ac (--enable-checking): Document extra flag, for
24285 non-release builds default to --enable-checking=yes,extra.
24286 If misc checking and extra checking, define CHECKING_P to 2 instead
24287 of 1.
24288 * common.opt (fchecking=): Add.
24289 * doc/invoke.texi (-fchecking=): Document.
24290 * doc/install.texi: Document --enable-checking changes.
24291 * configure: Regenerated.
24292 * config.in: Regenerated.
24293
24294 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24295
24296 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
24297 attribute instead of which_alternative.
24298 * config/i386/sse.md (*mov<mode>_internal): Ditto.
24299 Use EXT_REX_SSE_REG_P where appropriate.
24300
24301 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24302
24303 * config/i386/predicates.md (const0_operand): Do not match
24304 const_wide_int code.
24305 (const1_operand): Ditto.
24306
24307 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24308
24309 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
24310 for SSE constm1 operands and TARGET_AVX512VL.
24311 (*movti_internal): Ditto.
24312 (*mov<mode>_or): Use constm1_operand predicate.
24313 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
24314 for SSE vector_all_ones operands and TARGET_AVX512VL.
24315 * config/i386/predicates.md (constm1_operand): New predicate.
24316 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
24317 emission of constant -1 load.
24318
24319 2016-04-25 Jason Merrill <jason@redhat.com>
24320
24321 * gdbinit.in: Skip is-a.h.
24322
24323 * attribs.c (register_scoped_attributes): Fix logic.
24324 * attribs.h: Declare register_scoped_attributes.
24325
24326 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24327
24328 * config/rs6000/rs6000-builtin.def: Correct pasto error for
24329 stxvd2x and stxvw4x built-in functions.
24330
24331 2016-04-25 DJ Delorie <dj@redhat.com>
24332
24333 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
24334 (ashrhi3): Likewise.
24335 (lshrhi3): Likewise.
24336
24337 2016-04-25 Richard Biener <rguenther@suse.de>
24338
24339 PR tree-optimization/70780
24340 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
24341 wasn't visited yet.
24342 (compute_antic): Mark blocks with abnormal preds as visited as
24343 they have a final empty antic-in solution already.
24344
24345 2016-04-25 Michael Collison <michael.collison@linaro.org>
24346
24347 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
24348
24349 2016-04-25 Michael Collison <michael.collison@linaro.org>
24350
24351 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
24352 mode is VQI to improve mixed mode vectorization.
24353 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
24354 define_insn to match low half of signed vaddw.
24355 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
24356 define_insn to match high half of signed vaddw.
24357 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
24358 define_insn to match low half of unsigned vaddw.
24359 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
24360 define_insn to match high half of unsigned vaddw.
24361 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
24362 (arm_simd_check_vect_par_cnst_half_p): Likewise.
24363 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
24364 for new function.
24365 (arm_simd_check_vect_par_cnst_half_p): Likewise.
24366 * config/arm/predicates.md (vect_par_constant_high): Support
24367 big endian and simplify by calling
24368 arm_simd_check_vect_par_cnst_half
24369 (vect_par_constant_low): Likewise.
24370
24371 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24372
24373 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
24374 predicate for operand 2.
24375
24376 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
24377 H.J. Lu <hongjiu.lu@intel.com>
24378
24379 * config/i386/i386-protos.h (standard_sse_constant_p): Add
24380 machine_mode argument.
24381 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
24382 constm1_rtx operands. For VOIDmode constants, get mode from
24383 pred_mode. Check mode size if the mode is supported by ABI.
24384 (standard_sse_constant_opcode): Do not use standard_constant_p.
24385 Strictly check ABI support for all-ones operands.
24386 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
24387 immediates. Update calls to standard_sse_constant_p.
24388 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
24389 (ix86_rtx_costs): Ditto.
24390 * config/i386/i386.md (*movxi_internal_avx512f): Use
24391 nonimmediate_or_sse_const_operand instead of vector_move_operand.
24392 Use (v,BC) alternative instead of (v,C). Use register_operand
24393 checks instead of MEM_P.
24394 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
24395 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
24396 isa attribute. Use register_operand checks instead of MEM_P.
24397 (*movti_internal): Use nonimmediate_or_sse_const_operand for
24398 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
24399 alternative and corresponding sse2 isa attribute.
24400 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
24401 to standard_sse_constant_p.
24402 (FP constant splitters): Ditto.
24403 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
24404 (C): Ditto.
24405 * config/i386/predicates.md (constm1_operand): Remove.
24406 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
24407 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
24408 vector_all_ones_operand instead of constm1_operand.
24409
24410 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24411
24412 * print-rtl.c (print_rtx_insn_vec): New function.
24413 * print-rtl.h: New prototype.
24414 * store-motion.c (struct st_expr): Make avail_stores a vector.
24415 (st_expr_entry): Adjust.
24416 (free_st_expr_entry): Likewise.
24417 (print_store_motion_mems): Likewise.
24418 (find_moveable_store): Likewise.
24419 (compute_store_table): Likewise.
24420 (delete_store): Likewise.
24421 (build_store_vectors): Likewise.
24422
24423 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24424
24425 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
24426
24427 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24428
24429 * vec.h (vec_safe_contains): New function.
24430 (vec::contains): Likewise.
24431 (vec::begin): Likewise.
24432 (vec::end): Likewise.
24433
24434 2016-04-23 Jakub Jelinek <jakub@redhat.com>
24435
24436 PR sanitizer/70712
24437 * cfgexpand.c (expand_stack_vars): Fix typo.
24438
24439 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24440
24441 * system.h (list, map, set, vector): Include conditionally.
24442 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
24443 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
24444 * ipa-icf.c (INCLUDE_LIST): Define.
24445 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
24446 * config/sh/sh.c (INCLUDE_VECTOR): Define.
24447 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
24448 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
24449 * cp/logic.cc (INCLUDE_LIST): Define.
24450 * fortran/trans-common.c (INCLUDE_MAP): Define.
24451
24452 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24453
24454 * auto-profile.c: Remove <string.h> include.
24455 * ipa-icf-gimple.c: Remove <list> include.
24456 * diagnostic.c: Remove <new> include.
24457 * genmatch.c: Likewise.
24458 * pretty-print.c: Likewise.
24459 * toplev.c: Likewise
24460 * c/c-objc-common.c: Likewise.
24461 * cp/error.c: Likewise.
24462 * fortran/error.c: Likewise.
24463
24464 2016-04-22 Richard Biener <rguenther@suse.de>
24465
24466 * lto-streamer-in.c (input_ssa_names): Do not allocate
24467 GIMPLE_NOP for all SSA names.
24468 * lto-streamer-out.c (output_ssa_names): Do not output
24469 SSA names that should have been released.
24470
24471 2016-04-22 Richard Biener <rguenther@suse.de>
24472
24473 PR tree-optimization/70740
24474 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
24475 VDEF.
24476
24477 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
24478
24479 PR target/70750
24480 * config/i386/predicates.md (call_insn_operand): Replace
24481 sibcall_memory_operand with memory_operand.
24482
24483 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
24484
24485 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
24486 has_single_use() tests.
24487 (register_edge_assert_for_1): Likewise.
24488 (find_assert_locations_1): Check the liveness bitmap instead of
24489 checking has_single_use().
24490
24491 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
24492
24493 PR target/70728
24494 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
24495 Extract AVX-512BW constraint from AVX.
24496
24497 2016-04-21 Richard Biener <rguenther@suse.de>
24498
24499 PR tree-optimization/70725
24500 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
24501 for phi_convertible_by_degenerating_args.
24502 (predicate_all_scalar_phis): Handle single-argument PHIs.
24503
24504 2016-04-21 Richard Biener <rguenther@suse.de>
24505
24506 PR middle-end/70747
24507 * fold-const.c (fold_comparison): Return properly typed
24508 constant boolean.
24509
24510 2016-04-21 Bin Cheng <bin.cheng@arm.com>
24511
24512 PR tree-optimization/70715
24513 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
24514 after expanding BASE using expand_simple_operations.
24515
24516 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24517
24518 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
24519 New transformations.
24520
24521 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24522
24523 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
24524
24525 2016-04-20 Jan Hubicka <jh@suse.cz>
24526
24527 * ipa-inline.c (can_inline_edge_p): Pass caller info to
24528 ultiimate_alias_target.
24529 (update_callee_keys): Likewise.
24530 (lookup_recursive_calls): Likewise.
24531 (speculation_useful_p): Likewise.
24532
24533 2016-04-20 Jan Hubicka <jh@suse.cz>
24534
24535 PR ipa/70018
24536 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
24537 (set_nothrow_flag_1): ... this; handle interposition correctly;
24538 recurse on aliases and thunks.
24539 (cgraph_node::set_nothrow_flag): New.
24540 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
24541 functions compiled with non-call exceptions that binds to current
24542 def.
24543 (propagate_nothrow): Be safe WRT interposition.
24544 * cgraph.h (set_nothrow_flag): Update prototype.
24545
24546 2016-04-18 Jan Hubicka <jh@suse.cz>
24547
24548 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24549 max_loop_iterations_int.
24550 (tree_unswitch_outer_loop): Likewise.
24551
24552 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24553
24554 PR tree-optimization/69489
24555 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
24556 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
24557 Revise dump message.
24558 (if_convertible_bb_p): Remove check on edge count of basic block's
24559 predecessors.
24560
24561 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24562
24563 PR tree-optimization/56625
24564 PR tree-optimization/69489
24565 * tree-data-ref.h (DR_INNERMOST): New macro.
24566 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
24567 hashing struct innermost_loop_behavior.
24568 (ref_DR_map): Remove.
24569 (innermost_DR_map): New map.
24570 (baseref_DR_map): Revise comment.
24571 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
24572 to innermost_DR_map accroding to its innermost loop behavior.
24573 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
24574 to its innermost loop behavior.
24575 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
24576 Add initialization for innermost_DR_map. Record memory reference
24577 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
24578 have innermost loop behavior.
24579 (if_convertible_loop_p): Remove release for ref_DR_map. Release
24580 innermost_DR_map.
24581
24582 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
24583
24584 * config/i386/i386.md (*lea<mode>_general_1): Rename from
24585 *lea_general_1. Use explicit SWI12 mode interator.
24586 (*lea<mode>_general_2): Rename from *lea_general_2.
24587 Use explicit SWI12 mode interator.
24588 (*lea<mode>_general_3): Rename from *lea_general_3.
24589 Use explicit SWI12 mode interator.
24590 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
24591 Use explicit SWI12 mode interator.
24592 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
24593 Use explicit SWI48 mode interator.
24594
24595 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24596
24597 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
24598 Short-cut unaligned load and store cases. Handle all integer
24599 vector modes.
24600 (ix86_expand_vector_move_misalign): Short-cut unaligned load
24601 and store cases. Call ix86_avx256_split_vector_move_misalign
24602 directly without checking mode class.
24603
24604 2016-04-20 Andrew Pinski <apinski@cavium.com>
24605 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24606
24607 PR target/64971
24608 * config/aarch64/aarch64.md (sibcall): Force call
24609 address to be DImode for ILP32.
24610 (sibcall_value): Likewise.
24611
24612 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24613
24614 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
24615
24616 2016-04-20 Richard Biener <rguenther@suse.de>
24617
24618 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
24619 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
24620 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
24621 (maybe_push_res_to_seq): Adjust.
24622 * gimple-fold.c (maybe_build_generic_op): Likewise.
24623
24624 2016-04-20 Marek Polacek <polacek@redhat.com>
24625
24626 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
24627 rather than true.
24628
24629 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
24630
24631 * config/i386/sse.md (vec_unpacks_lo_hi): Always
24632 use kmovw to support AVX512F target.
24633
24634 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24635
24636 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
24637
24638 2016-04-20 Marek Polacek <polacek@redhat.com>
24639
24640 PR tree-optimization/70725
24641 * tree-if-conv.c (is_false_predicate): New function.
24642 (predicate_mem_writes): Use it.
24643
24644 2016-04-20 Richard Biener <rguenther@suse.de>
24645
24646 PR tree-optimization/70726
24647 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
24648 shift amounts from a pattern stmt operand.
24649
24650 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24651
24652 PR target/70674
24653 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
24654 stack_restore_from_fpr pattern when restoring r15.
24655 (s390_optimize_prologue): Strip away the memory barrier in the
24656 parallel when trying to get rid of restore insns.
24657 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
24658 definition for loading the stack pointer from an FPR. Compared to
24659 the normal move insn this pattern includes a full memory barrier.
24660
24661 2016-04-19 Jakub Jelinek <jakub@redhat.com>
24662
24663 PR middle-end/70680
24664 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
24665 implicitly linear or lastprivate iterator on the outer context.
24666
24667 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24668
24669 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
24670 alignment check.
24671 * config/i386/i386.md (ssememalign): Removed.
24672 * config/i386/sse.md: Remove ssememalign attribute from patterns.
24673
24674 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24675
24676 PR target/69201
24677 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
24678 const short * to __builtin_ia32_loaddquhi512_mask.
24679 (_mm512_maskz_loadu_epi16): Likewise.
24680 (_mm512_mask_storeu_epi16): Pass short * to
24681 __builtin_ia32_storedquhi512_mask.
24682 (_mm512_mask_loadu_epi8): Pass const char * to
24683 __builtin_ia32_loaddquqi512_mask.
24684 (_mm512_maskz_loadu_epi8): Likewise.
24685 (_mm512_mask_storeu_epi8): Pass char * to
24686 __builtin_ia32_storedquqi512_mask.
24687 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
24688 const double * to __builtin_ia32_loadupd512_mask.
24689 (_mm512_mask_loadu_pd): Likewise.
24690 (_mm512_maskz_loadu_pd): Likewise.
24691 (_mm512_storeu_pd): Pass double * to
24692 __builtin_ia32_storeupd512_mask.
24693 (_mm512_mask_storeu_pd): Likewise.
24694 (_mm512_loadu_ps): Pass const float * to
24695 __builtin_ia32_loadups512_mask.
24696 (_mm512_mask_loadu_ps): Likewise.
24697 (_mm512_maskz_loadu_ps): Likewise.
24698 (_mm512_storeu_ps): Pass float * to
24699 __builtin_ia32_storeups512_mask.
24700 (_mm512_mask_storeu_ps): Likewise.
24701 (_mm512_mask_loadu_epi64): Pass const long long * to
24702 __builtin_ia32_loaddqudi512_mask.
24703 (_mm512_maskz_loadu_epi64): Likewise.
24704 (_mm512_mask_storeu_epi64): Pass long long *
24705 to __builtin_ia32_storedqudi512_mask.
24706 (_mm512_loadu_si512): Pass const int * to
24707 __builtin_ia32_loaddqusi512_mask.
24708 (_mm512_mask_loadu_epi32): Likewise.
24709 (_mm512_maskz_loadu_epi32): Likewise.
24710 (_mm512_storeu_si512): Pass int * to
24711 __builtin_ia32_storedqusi512_mask.
24712 (_mm512_mask_storeu_epi32): Likewise.
24713 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
24714 char * to __builtin_ia32_storedquqi256_mask.
24715 (_mm_mask_storeu_epi8): Likewise.
24716 (_mm256_mask_loadu_epi16): Pass const short * to
24717 __builtin_ia32_loaddquhi256_mask.
24718 (_mm256_maskz_loadu_epi16): Likewise.
24719 (_mm_mask_loadu_epi16): Pass const short * to
24720 __builtin_ia32_loaddquhi128_mask.
24721 (_mm_maskz_loadu_epi16): Likewise.
24722 (_mm256_mask_loadu_epi8): Pass const char * to
24723 __builtin_ia32_loaddquqi256_mask.
24724 (_mm256_maskz_loadu_epi8): Likewise.
24725 (_mm_mask_loadu_epi8): Pass const char * to
24726 __builtin_ia32_loaddquqi128_mask.
24727 (_mm_maskz_loadu_epi8): Likewise.
24728 (_mm256_mask_storeu_epi16): Pass short * to.
24729 __builtin_ia32_storedquhi256_mask.
24730 (_mm_mask_storeu_epi16): Pass short * to.
24731 __builtin_ia32_storedquhi128_mask.
24732 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
24733 const double * to __builtin_ia32_loadupd256_mask.
24734 (_mm256_maskz_loadu_pd): Likewise.
24735 (_mm_mask_loadu_pd): Pass onst double * to
24736 __builtin_ia32_loadupd128_mask.
24737 (_mm_maskz_loadu_pd): Likewise.
24738 (_mm256_mask_storeu_pd): Pass double * to
24739 __builtin_ia32_storeupd256_mask.
24740 (_mm_mask_storeu_pd): Pass double * to
24741 __builtin_ia32_storeupd128_mask.
24742 (_mm256_mask_loadu_ps): Pass const float * to
24743 __builtin_ia32_loadups256_mask.
24744 (_mm256_maskz_loadu_ps): Likewise.
24745 (_mm_mask_loadu_ps): Pass const float * to
24746 __builtin_ia32_loadups128_mask.
24747 (_mm_maskz_loadu_ps): Likewise.
24748 (_mm256_mask_storeu_ps): Pass float * to
24749 __builtin_ia32_storeups256_mask.
24750 (_mm_mask_storeu_ps): ass float * to
24751 __builtin_ia32_storeups128_mask.
24752 (_mm256_mask_loadu_epi64): Pass const long long * to
24753 __builtin_ia32_loaddqudi256_mask.
24754 (_mm256_maskz_loadu_epi64): Likewise.
24755 (_mm_mask_loadu_epi64): Pass const long long * to
24756 __builtin_ia32_loaddqudi128_mask.
24757 (_mm_maskz_loadu_epi64): Likewise.
24758 (_mm256_mask_storeu_epi64): Pass long long * to
24759 __builtin_ia32_storedqudi256_mask.
24760 (_mm_mask_storeu_epi64): Pass long long * to
24761 __builtin_ia32_storedqudi128_mask.
24762 (_mm256_mask_loadu_epi32): Pass const int * to
24763 __builtin_ia32_loaddqusi256_mask.
24764 (_mm256_maskz_loadu_epi32): Likewise.
24765 (_mm_mask_loadu_epi32): Pass const int * to
24766 __builtin_ia32_loaddqusi128_mask.
24767 (_mm_maskz_loadu_epi32): Likewise.
24768 (_mm256_mask_storeu_epi32): Pass int * to
24769 __builtin_ia32_storedqusi256_mask.
24770 (_mm_mask_storeu_epi32): Pass int * to
24771 __builtin_ia32_storedqusi128_mask.
24772 * config/i386/i386-builtin-types.def (PCSHORT): New.
24773 (PINT64): Likewise.
24774 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24775 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24776 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24777 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24778 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24779 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24780 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24781 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24782 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24783 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24784 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24785 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24786 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24787 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24788 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24789 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24790 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24791 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24792 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24793 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24794 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24795 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24796 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24797 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24798 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24799 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24800 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24801 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24802 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24803 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24804 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24805 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24806 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24807 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24808 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24809 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24810 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24811 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24812 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24813 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24814 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24815 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24816 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24817 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24818 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24819 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24820 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24821 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24822 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24823 use UNSPEC_STOREU.
24824 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24825 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24826 load nor store.
24827 (ix86_expand_vector_move_misalign): Likewise.
24828 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24829 to scalar function prototype for unaligned load/store builtins.
24830 (ix86_expand_special_args_builtin): Updated.
24831 * config/i386/sse.md (UNSPEC_LOADU): Removed.
24832 (UNSPEC_STOREU): Likewise.
24833 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24834 (VI_ULOADSTORE_F_AVX512VL): Likewise.
24835 (ssescalarsize): Handle V4TI, V2TI and V1TI.
24836 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24837 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24838 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24839 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24840 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24841 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24842 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24843 (<avx512>_storedqu<mode>_mask): Likewise.
24844 (*sse4_2_pcmpestr_unaligned): Likewise.
24845 (*sse4_2_pcmpistr_unaligned): Likewise.
24846 (*mov<mode>_internal): Renamed to ...
24847 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
24848 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24849 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24850 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24851
24852 2016-04-19 Richard Biener <rguenther@suse.de>
24853
24854 PR tree-optimization/70171
24855 * tree-ssa-phiprop.c: Include stor-layout.h.
24856 (phiprop_insert_phi): Handle the aggregate copy case.
24857 (propagate_with_phi): Likewise.
24858
24859 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
24860
24861 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24862 instead of simplify_gen_subreg (... , 0).
24863 (ix86_delegitimize_address): Ditto.
24864 (ix86_split_divmod): Ditto.
24865 (ix86_split_copysign_const): Ditto.
24866 (ix86_split_copysign_var): Ditto.
24867 (ix86_expand_args_builtin): Ditto.
24868 (ix86_expand_round_builtin): Ditto.
24869 (ix86_expand_special_args_builtin): Ditto.
24870 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24871 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24872 (udivmodqi4): Ditto.
24873 (absneg splitters): Ditto.
24874 (*jcc_bt<mode>_1): Ditto.
24875
24876 2016-04-19 Richard Biener <rguenther@suse.de>
24877
24878 PR tree-optimization/70724
24879 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24880 restoring out from ...
24881 (free_scc_vn): ... here.
24882 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24883 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24884 tail merging.
24885 (pass_fre::execute): Restore SSA info.
24886
24887 2016-04-19 Richard Biener <rguenther@suse.de>
24888
24889 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24890 * gimple-walk.c (walk_gimple_op): Initialize it.
24891 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24892 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24893 remapping SSA names of defs.
24894 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24895 adjustment.
24896
24897 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
24898
24899 PR middle-end/70689
24900 * lra-constraints.c (equiv_substition_p): New.
24901 (process_alt_operands): Use it.
24902 (swap_operands): Swap it.
24903 (curr_insn_transform): Update it.
24904
24905 2016-04-18 Michael Matz <matz@suse.de>
24906
24907 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24908 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24909 * tree-core.h (tree_type_common.align): Use bit-field.
24910 (tree_type_common.spare): New.
24911 (tree_decl_common.off_align): Make smaller.
24912 (tree_decl_common.align): Use bit-field.
24913
24914 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24915 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24916 (scan_sharing_clauses): Ditto.
24917 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24918 (omp_finish_file): Ditto.
24919 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24920 (layout_decl): Ditto.
24921 (relayout_decl): Ditto.
24922 (finalize_record_size): Use SET_TYPE_ALIGN.
24923 (finalize_type_size): Ditto.
24924 (finish_builtin_struct): Ditto.
24925 (layout_type): Ditto.
24926 (initialize_sizetypes): Ditto.
24927 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24928 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24929 (lookup_field_for_decl): Use SET_DECL_ALIGN.
24930 (get_chain_field): Ditto.
24931 (get_trampoline_type): Ditto.
24932 (get_nl_goto_field): Ditto.
24933 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24934 SET_DECL_ALIGN.
24935 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24936 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24937 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24938 (build_qualified_type): Use SET_TYPE_ALIGN.
24939 (build_aligned_type, build_range_type_1): Ditto.
24940 (build_atomic_base): Ditto.
24941 (build_common_tree_nodes): Ditto.
24942 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24943 (expand_one_stack_var_at): Ditto.
24944 * coverage.c (build_var): Use SET_DECL_ALIGN.
24945 * except.c (init_eh): Ditto.
24946 * function.c (assign_parm_setup_block): Ditto.
24947 * symtab.c (increase_alignment_1): Ditto.
24948 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24949 * tree-vect-stmts.c (ensure_base_align): Ditto.
24950 * varasm.c (align_variable): Ditto.
24951 (assemble_variable): Ditto.
24952 (build_constant_desc): Ditto.
24953 (output_constant_def_contents): Ditto.
24954
24955 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24956 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24957 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24958 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24959 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24960
24961 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
24962
24963 PR target/70708
24964 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24965 replace %vmovsd with "%vmovq".
24966 (vec_concatv2df): Likewise.
24967
24968 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
24969
24970 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24971 (*vec_extractv2si_0): Ditto.
24972 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24973 (zero_extended_scalar_load_operand splitters): Ditto.
24974 (vec_extract splitters): Ditto.
24975 (*vec_extractv4si_0_zext): Ditto.
24976 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24977 and lowpart_subreg.
24978 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24979 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24980 (*sse4_1_extractps): Use lowpart_subreg.
24981 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24982
24983 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24984
24985 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24986 gld requirements.
24987 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24988 Mention Solaris 11 packaging changes.
24989 Update gas and gld requirements.
24990 Remove reference to pre-Solaris 10 bug.
24991 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24992 systems and bugs.
24993 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24994 with cc.
24995
24996 2016-04-17 Jan Hubicka <jh@suse.cz>
24997
24998 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24999 max_loop_iterations_int.
25000
25001 2016-04-18 Richard Biener <rguenther@suse.de>
25002
25003 PR tree-optimization/43434
25004 * tree-ssa-structalias.c (struct vls_data): New.
25005 (visit_loadstore): Handle all pointer-based accesses.
25006 (compute_dependence_clique): Compute a bitmap of restrict tags
25007 assigned bases and pass it to visit_loadstore.
25008
25009 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
25010
25011 PR target/70711
25012 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
25013 armv8.1-a and armv8.1-a+crc.
25014
25015 2016-04-18 Richard Biener <rguenther@suse.de>
25016
25017 PR tree-optimization/70701
25018 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
25019 references after translating through a memcpy.
25020
25021 2016-04-18 Richard Biener <rguenther@suse.de>
25022
25023 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
25024 (compute_antic): ... here. For partial antic use regular
25025 postorder and scrap iteration.
25026 (compute_partial_antic_aux): Remove unused return value.
25027 (init_pre): Do not allocate postorder.
25028 (fini_pre): Do not free postorder.
25029
25030 2016-04-18 Richard Biener <rguenther@suse.de>
25031
25032 PR middle-end/37870
25033 * expmed.c (extract_bit_field_1): Remove broken case
25034 using a wider MODE_INT mode.
25035
25036 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
25037
25038 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
25039 unless compiling with at least GCC-4.8.
25040
25041 2016-04-17 Jan Hubicka <jh@suse.cz>
25042
25043 PR bootstrap/70706
25044 * graphite.c (graphite_finalize): Update call to
25045 tree_estimate_probability.
25046 * predict.h (tree_estimate_probability): Update prototype.
25047
25048 2016-04-17 Jan Hubicka <jh@suse.cz>
25049
25050 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
25051 (tree_estimate_probability): Likewise.
25052 (pass_profile::execute): Update.
25053 (report_predictor_hitrates): New function.
25054 * profile.c (compute_branch_probabilities): Use it.
25055 * predict.h (report_predictor_hitrates): Declare.
25056
25057 2016-04-17 Jan Hubicka <jh@suse.cz>
25058
25059 PR ipa/70018
25060 * cgraph.h (cgraph_node::set_const_flag,
25061 cgraph_node::set_pure_flag): Update prototype to return bool;
25062 update comment.
25063 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
25064 of interposable symbol are interposable, too.
25065 (cgraph_set_const_flag_1): Rename to ...
25066 (set_const_flag_1): ... this one; change to self recursive function
25067 instead of call_for_symbol_thunks_and_aliases. Handle correctly
25068 clearnig the flag in all variants and also virtual thunks of const
25069 functions are pure; track if any change was done.
25070 (cgraph_node::set_const_flag): Update.
25071 (struct set_pure_flag_info): New struct.
25072 (cgraph_set_pure_flag_1): Rename to ...
25073 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
25074 rather than pointer encoded flags; track if any changes was done;
25075 handle correctly clearning flag and setting flag of aliases already
25076 declared const.
25077 (cgraph_node::set_pure_flag): Update.
25078 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
25079
25080 2016-04-17 Tom de Vries <tom@codesourcery.com>
25081
25082 PR other/70433
25083 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
25084 backslash in label.
25085
25086 2016-04-17 Tom de Vries <tom@codesourcery.com>
25087
25088 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
25089 '{}<> ' as escape-for-record.
25090
25091 2016-04-17 Tom de Vries <tom@codesourcery.com>
25092
25093 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
25094 structure.
25095
25096 2016-04-17 Tom de Vries <tom@codesourcery.com>
25097
25098 PR other/70185
25099 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
25100 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
25101 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
25102 * passes.c (finish_optimization_passes): Only call
25103 finish_graph_dump_file if dfi->graph_dump_initialized.
25104 (execute_function_dump, pass_init_dump_file): Use
25105 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
25106
25107 2016-04-17 Tom de Vries <tom@codesourcery.com>
25108
25109 PR tree-optimization/70256
25110 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
25111 (debug_varmap): New function.
25112
25113 2016-04-17 Tom de Vries <tom@codesourcery.com>
25114
25115 PR other/70183
25116 * passes.c (pass_manager::register_pass): Propagate pflags.
25117
25118 2016-04-17 Tom de Vries <tom@codesourcery.com>
25119
25120 PR other/68875
25121 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
25122 * passes.c (pass_manager::pass_manager): Declare and init p_start in
25123 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
25124 check if it's equal to p_start.
25125 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
25126
25127 2016-04-15 Jan Hubicka <jh@suse.cz>
25128
25129 PR ipa/70018
25130 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
25131 function does not bind to current def.
25132 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
25133 handle conservatively calls to functions that does not need to bind
25134 to current def.
25135 (check_call): Update call of worse_state.
25136 (ignore_edge_for_nothrow): Update.
25137 (ignore_edge_for_pure_const): Likewise.
25138 (propagate_pure_const): Update calls to worse_state.
25139 (skip_function_for_local_pure_const): Reformat comments.
25140
25141 2016-04-15 Jan Hubicka <jh@suse.cz>
25142
25143 PR ipa/70018
25144 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
25145 (cgraph_node::function_symbol): Likewise.
25146 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25147 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
25148 (symtab_node::ultimate_alias_target): Add REF parameter.
25149 (symtab_node::binds_to_current_def_p): Declare.
25150 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
25151 (cgraph_node::function_symbol): Likewise.
25152 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25153 (cgraph_node::get_availability): Likewise.
25154 (cgraph_edge::binds_to_current_def_p): New inline function.
25155 (varpool_node::get_availability): Add REF parameter.
25156 (varpool_node::ultimate_alias_target): Likewise.
25157 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
25158 (symtab_node::binds_to_current_def_p): Likewise.
25159 * varpool.c (varpool_node::get_availability): Likewise.
25160
25161 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
25162
25163 PR target/70662
25164 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
25165 Fix mode size check.
25166
25167 2016-04-15 Jakub Jelinek <jakub@redhat.com>
25168
25169 * BASE-VER: Set to 7.0.0.
25170
25171 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
25172
25173 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
25174
25175 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25176
25177 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
25178 architecture revisions.
25179
25180 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
25181
25182 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
25183 * config/i386/i386.c (ix86_using_red_zone): No longer static.
25184 * config/i386/i386.md (stack decrement to push peepholes): Guard
25185 with !x86_using_red_zone ().
25186
25187 2016-04-15 Jakub Jelinek <jakub@redhat.com>
25188
25189 PR c++/70675
25190 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
25191 to dump_generic_node.
25192 (NIY): Pass also flags to do_niy.
25193
25194 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
25195
25196 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
25197 (simd_clone_vector_of_formal_parm_types)
25198 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
25199 (simd_clone_mangle, simd_clone_create)
25200 (simd_clone_adjust_return_type, create_tmp_simd_array)
25201 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
25202 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
25203 (ipa_simd_modify_function_body, simd_clone_linear_addend)
25204 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
25205 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
25206 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
25207 * omp-simd-clone.c: ... this new file.
25208 (simd_clone_vector_of_formal_parm_types): Make it static.
25209 * Makefile.in (OBJS): Add omp-simd-clone.o.
25210
25211 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
25212
25213 PR target/70662
25214 * config/i386/sse.md: Use proper memory operand modifiers.
25215
25216
25217 2016-04-15 Richard Biener <rguenther@suse.de>
25218 Alan Modra <amodra@gmail.com>
25219
25220 PR tree-optimization/70130
25221 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
25222 when alignment stays not the same and no not use the realign
25223 scheme then.
25224
25225 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25226
25227 PR target/70669
25228 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25229 direct move handlers for KFmode. Change TFmode handlers test from
25230 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
25231
25232 2016-04-14 Jakub Jelinek <jakub@redhat.com>
25233
25234 PR c++/70594
25235 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
25236 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
25237 (inlined_polymorphic_ctor_dtor_block_p): Use it.
25238 * tree-ssa-live.c (remove_unused_scope_block_p): When
25239 in_ctor_dtor_block, avoid discarding not just BLOCKs with
25240 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
25241 block_ultimate_origin is FUNCTION_DECL.
25242 (remove_unused_locals): If current_function_decl is
25243 polymorphic_ctor_dtor_p, pass initial true to
25244 remove_unused_scope_block_p' is_ctor_dtor_block.
25245
25246 2016-04-14 Martin Sebor <msebor@redhat.com>
25247
25248 PR c++/69517
25249 PR c++/70019
25250 PR c++/70588
25251 * doc/extend.texi (Variable Length): Revert.
25252
25253 2016-04-14 Marek Polacek <polacek@redhat.com>
25254 Jan Hubicka <hubicka@ucw.cz>
25255
25256 PR c++/70029
25257 * tree.c (verify_type): Disable the canonical type of main variant
25258 check.
25259
25260 2016-04-14 Jason Merrill <jason@redhat.com>
25261
25262 * cfgexpand.c, expr.c: Revert previous change.
25263
25264 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
25265
25266 PR middle-end/70643
25267 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
25268 when building a mem ref for the incoming reduction variable.
25269
25270 2016-04-14 Richard Biener <rguenther@suse.de>
25271
25272 PR tree-optimization/70614
25273 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
25274 loop if the evolution dropped to chrec_dont_know.
25275 (interpret_condition_phi): Likewise.
25276
25277 2016-04-14 Richard Biener <rguenther@suse.de>
25278
25279 PR tree-optimization/70623
25280 * tree-ssa-pre.c (changed_blocks): Make global ...
25281 (compute_antic): ... local here. Move and fix worklist
25282 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
25283 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
25284 worklist handling, dump when ANTIC_IN changed.
25285 (compute_partial_antic_aux): Remove worklist handling.
25286 (init_pre): Do not compute post dominators. Add a comment about
25287 the CFG order chosen.
25288 (fini_pre): Do not free post dominators.
25289
25290 2016-04-13 Martin Sebor <msebor@redhat.com>
25291
25292 PR c++/69517
25293 PR c++/70019
25294 PR c++/70588
25295 * doc/extend.texi (Variable Length): Document C++ specifics.
25296
25297 2016-04-13 Jakub Jelinek <jakub@redhat.com>
25298
25299 PR c++/70641
25300 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
25301 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
25302 eh edges have been purged.
25303
25304 PR c++/70594
25305 * tree-sra.c (create_access_replacement,
25306 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
25307 gets fancy name.
25308 * tree-pretty-print.c (dump_fancy_name): New function.
25309 (dump_decl_name, dump_generic_node): Use it.
25310
25311 2016-04-13 Jason Merrill <jason@redhat.com>
25312
25313 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
25314 * expr.c (expand_expr_real_1): Likewise.
25315
25316 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
25317
25318 * config/i386/i386.md (kunpckhi): Swap operands.
25319 (kunpcksi): Likewise.
25320 (kunpckdi): Likewise.
25321 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
25322 (vec_pack_trunc_<mode>): Likewise.
25323
25324 2016-04-13 Jakub Jelinek <jakub@redhat.com>
25325
25326 PR debug/70628
25327 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
25328
25329 PR middle-end/70633
25330 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
25331 gimplification turns some element into non-constant.
25332
25333 PR debug/70628
25334 * rtl.h (convert_memory_address_addr_space_1): New prototype.
25335 * explow.c (convert_memory_address_addr_space_1): No longer static,
25336 add NO_EMIT argument and don't call convert_modes if true, pass
25337 it down recursively, remove break after return.
25338 (convert_memory_address_addr_space): Adjust caller.
25339 * simplify-rtx.c (simplify_unary_operation_1): Call
25340 convert_memory_address_addr_space_1 instead of convert_memory_address,
25341 if it returns NULL, don't simplify.
25342
25343 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
25344
25345 PR target/70630
25346 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
25347
25348 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25349
25350 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25351 Bump the upper SIMDLEN limits, so that if the return type or
25352 characteristic type if the return type is void can be passed in
25353 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
25354 allowed.
25355
25356 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25357
25358 PR target/70640
25359 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
25360 Do not use "=" constraint on an input constraint.
25361 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
25362 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
25363 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
25364 generates (neg (abs ...)) instead of (abs ...).
25365
25366 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25367
25368 PR rtl-optimization/70596
25369 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
25370 just invalidate LRA data and reset them. Adjust dump wording.
25371
25372 2016-04-12 Martin Liska <mliska@suse.cz>
25373
25374 Revert
25375 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25376
25377 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25378 estimates here.
25379 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25380 max_loop_iterations_int.
25381 (tree_unswitch_outer_loop): Likewise.
25382 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25383 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25384
25385 2016-04-12 Tom de Vries <tom@codesourcery.com>
25386
25387 PR tree-optimization/68756
25388 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
25389 instead of new_name.
25390
25391 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25392
25393 PR tree-optimization/70602
25394 * tree-sra.c (generate_subtree_copies): Don't write anything into
25395 constant pool decls.
25396
25397 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
25398 regardless whether there are depend clauses or not.
25399
25400 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25401
25402 PR target/70381
25403 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
25404 target attribute and pragma from changing the -mfloat128
25405 and -mfloat128-hardware options.
25406
25407 * doc/extend.texi (Additional Floating Types): Document PowerPC
25408 __float128 restrictions.
25409
25410 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25411
25412 PR target/70133
25413 * config/aarch64/driver-aarch64.c
25414 (aarch64_get_extension_string_for_isa_flags): New.
25415 (arch_extension): Rename to...
25416 (aarch64_arch_extension): ...This.
25417 (ext_to_feat_string): Rename to...
25418 (aarch64_extensions): ...This.
25419 (aarch64_core_data): Keep track of architecture extension flags.
25420 (cpu_data): Rename to...
25421 (aarch64_cpu_data): ...This.
25422 (aarch64_arch_driver_info): Keep track of architecture extension
25423 flags.
25424 (get_arch_name_from_id): Rename to...
25425 (get_arch_from_id): ...This, change return type.
25426 (host_detect_local_cpu): Update and reformat for renames, handle
25427 extensions through common infrastructure.
25428
25429 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25430
25431 PR target/70133
25432 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
25433 track of a canonical flag name.
25434 (all_extensions): Likewise.
25435 (arch_to_arch_name): Also track extension flags enabled by the arch.
25436 (all_architectures): Likewise.
25437 (aarch64_parse_extension): Move to here.
25438 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
25439 rework.
25440 (aarch64_rewrite_selected_cpu): Update for above change.
25441 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
25442 are handled, such that the single explicit value enabled by an
25443 extension is kept seperate from the implicit values it also enables.
25444 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
25445 to here.
25446 (aarch64_parse_extension): New.
25447 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
25448 here to config/aarch64/aarch64-protos.h.
25449 (aarch64_parse_extension): Move from here to
25450 common/config/aarch64/aarch64-common.c.
25451 (aarch64_option_print): Update.
25452 (aarch64_declare_function_name): Likewise.
25453 (aarch64_start_file): Likewise.
25454 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
25455 the canonical flag for extensions.
25456 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
25457 flags.
25458
25459 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25460
25461 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
25462 AARCH64_FL_CRC.
25463
25464 2016-04-09 Tom de Vries <tom@codesourcery.com>
25465
25466 PR tree-optimization/68953
25467 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
25468 first to last subscript.
25469
25470 2016-04-09 Jakub Jelinek <jakub@redhat.com>
25471
25472 PR tree-optimization/70586
25473 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
25474 for any calls.
25475
25476 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
25477
25478 PR lto/70289
25479 PR ipa/70348
25480 PR tree-optimization/70373
25481 PR middle-end/70533
25482 PR middle-end/70534
25483 PR middle-end/70535
25484 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
25485 clauses for acc parallel reductions as necessary. Error on those
25486 that are private.
25487 * omp-low.c (scan_sharing_clauses): Don't install variables which
25488 are used in acc parallel reductions.
25489 (lower_rec_input_clauses): Remove dead code.
25490 (lower_oacc_reductions): Add support for reference reductions.
25491 (lower_reduction_clauses): Remove dead code.
25492 (lower_omp_target): Don't remap variables appearing in acc parallel
25493 reductions.
25494 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
25495
25496 2016-04-08 Jakub Jelinek <jakub@redhat.com>
25497
25498 PR middle-end/70593
25499 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
25500 with multiple SSA_NAME defs, force the outputs other than first
25501 to be live before calling live_track_process_def on each output.
25502
25503 PR rtl-optimization/70574
25504 * fwprop.c (forward_propagate_and_simplify): Don't add
25505 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
25506 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
25507 paradoxical subregs within *loc.
25508
25509 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
25510
25511 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
25512 -ftree-parallelize-loops={0,1}.
25513 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25514 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25515 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25516 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25517 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25518
25519 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
25520
25521 PR sanitizer/70541
25522 * asan.c (instrument_derefs): If we get unknown location, extract it
25523 with EXPR_LOCATION.
25524 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
25525
25526 2016-04-08 Tom de Vries <tom@codesourcery.com>
25527
25528 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
25529 implicit firstprivate clause.
25530
25531 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25532
25533 PR target/70566
25534 * config/arm/thumb2.md (tst + branch-> lsls + branch
25535 peephole below *orsi_not_shiftsi_si): Require that condition
25536 register is dead after the peephole.
25537 (second peephole after the above): Likewise.
25538
25539 2016-04-08 Alan Modra <amodra@gmail.com>
25540
25541 PR target/70117
25542 * builtins.c (fold_builtin_classify): For IBM extended precision,
25543 look at just the high-order double to test for NaN.
25544 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
25545 test just the high double for Inf but both doubles for subnormal
25546 limit.
25547
25548 2016-04-07 Jakub Jelinek <jakub@redhat.com>
25549
25550 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
25551 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
25552 node->simdclone->mask_mode != VOIDmode masks.
25553 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
25554 earlier, use it instead of node->simdclone.
25555 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25556 Set clonei->mask_mode.
25557
25558 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25559
25560 PR c/70436
25561 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
25562 Pass it through to cp_parser_already_scoped_statement.
25563 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
25564 it through to cp_parser_statement.
25565 (cp_parser_statement): Pass IF_P through to
25566 cp_parser_iteration_statement.
25567 (cp_parser_pragma): Adjust call to
25568 cp_parser_iteration_statement.
25569
25570 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25571
25572 PR c/70436
25573 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
25574 resolve a future -Wparentheses warning.
25575 * omp-low.c (scan_sharing_clauses): Likewise.
25576 * tree-parloops.c (eliminate_local_variables): Likewise.
25577
25578 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
25579
25580 PR rtl-optimization/70398
25581 * lra-constraints.c (process_address_1): Check zero scale and code
25582 for reloading with zero scale.
25583
25584 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
25585
25586 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
25587 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
25588
25589 2016-04-06 Jakub Jelinek <jakub@redhat.com>
25590
25591 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25592 Add support for AVX512F clones, include them by default for
25593 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
25594 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
25595 up to 128.
25596
25597 PR middle-end/70550
25598 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
25599 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
25600 firstprivate clauses.
25601 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
25602 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
25603 (lower_omp_target): Set TREE_NO_WARNING for
25604 non-addressable possibly uninitialized vars which are copied into
25605 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
25606
25607 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
25608
25609 * config/pa/predicates.md (integer_store_memory_operand): Accept
25610 REG+D operands with a large offset when reload_in_progress is true.
25611 (floating_point_store_memory_operand): Likewise.
25612
25613 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25614
25615 PR c++/70336
25616 * match.pd (nested int casts): Limit to GIMPLE.
25617
25618 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
25619
25620 PR ipa/66223
25621 * ipa-devirt.c (maybe_record_node): Fix comment; use
25622 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
25623
25624 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25625
25626 PR rtl-optimization/70542
25627 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
25628 if there are any uses other than insn or debug insns.
25629
25630 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
25631 Jakub Jelinek <jakub@redhat.com>
25632
25633 PR tree-optimization/70509
25634 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
25635 Shift HOST_WIDE_INT_1U instead of 1.
25636
25637 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
25638
25639 PR tree-optimization/70509
25640 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
25641 of the vector base type for index.
25642
25643 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
25644
25645 PR target/70510
25646 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
25647
25648 2016-04-05 Richard Biener <rguenther@suse.de>
25649
25650 PR tree-optimization/70526
25651 * tree-sra.c (build_ref_for_offset): Use prev_base to
25652 extract the alias pointer type.
25653
25654 2016-04-05 Richard Biener <rguenther@suse.de>
25655
25656 * dse.c (struct store_info): Remove alias_set member.
25657 (struct read_info_type): Likewise.
25658 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
25659 spill_deleted, clear_alias_set_lookup): Remove.
25660 (get_group_info): Remove dead base == NULL_RTX case.
25661 (dse_step0): Remove initialization of removed variables.
25662 (delete_dead_store_insn): Reomve alias set dumping.
25663 (free_read_records): Remove alias_set handling.
25664 (canon_address): Remove alias_set_out parameter.
25665 (record_store): Remove spill_alias_set, it's always zero.
25666 (check_mem_read_rtx): Likewise.
25667 (dse_step2): Rename from ...
25668 (dse_step2_nospill): ... this. Adjust.
25669 (scan_stores): Rename from ...
25670 (scan_stores_nospill): ... this.
25671 (scan_reads): Rename from ...
25672 (scan_reads_nospill): ... this.
25673 (scan_stores_spill, scan_reads_spill): Remove.
25674 (dse_step3_scan): Remove for_spills argument which is always false.
25675 (dse_step3): Likewise.
25676 (dse_step5): Rename from ...
25677 (dse_step5_nospill): ... this. Remove alias_set handling.
25678 (rest_of_handle_dse): Adjust.
25679
25680 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25681
25682 PR target/70525
25683 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
25684 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
25685 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
25686 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
25687
25688 2016-04-05 Richard Biener <rguenther@suse.de>
25689
25690 PR middle-end/70499
25691 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
25692 non-register type temporaries into SSA.
25693
25694 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
25695
25696 PR ipa/66223
25697 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
25698 calls when sanitizing.
25699 (possible_polymorphic_call_target_p): Fix formatting.
25700
25701 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25702 Jakub Jelinek <jakub@redhat.com>
25703
25704 PR middle-end/70457
25705 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
25706 to ensure a call statement is compatible with a built-in's
25707 prototype.
25708 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
25709 Likewise.
25710
25711 2016-04-04 Richard Biener <rguenther@suse.de>
25712
25713 PR rtl-optimization/70484
25714 * rtl.h (canon_output_dependence): Declare.
25715 * alias.c (canon_output_dependence): New function.
25716 * dse.c (record_store): Use canon_output_dependence rather
25717 than canon_true_dependence.
25718
25719 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25720
25721 PR ipa/68881
25722 * cgraph.h (symtab_node::copy_visibility_from): New function.
25723 * symtab.c (symtab_node::copy_visibility_from): New function.
25724 * ipa-visibility.c (optimize_weakref): New function.
25725 (function_and_variable_visibility): Use it.
25726
25727 2016-04-04 Martin Liska <mliska@suse.cz>
25728
25729 PR hsa/70402
25730 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
25731 value that is really in range handled by SBR instruction.
25732 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
25733 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
25734 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
25735
25736 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
25737
25738 PR target/70416
25739 PR target/67391
25740 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
25741 set, but not for SP_REG operands.
25742
25743 2016-04-02 Martin Sebor <msebor@redhat.com>
25744
25745 PR c++/67376
25746 * fold-const.c (maybe_nonzero_address): New function.
25747 (fold_comparison): Call it. Fold equality and relational
25748 expressions involving null pointers.
25749 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
25750
25751 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
25752
25753 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
25754 the "Y" constraint (scalar FP 0.0 immediate).
25755
25756 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
25757 Add the "const_double" to the list of operand constraints.
25758
25759 2016-04-01 Jakub Jelinek <jakub@redhat.com>
25760
25761 PR rtl-optimization/70467
25762 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
25763 If low word of the last operand is 0, just emit addition/subtraction
25764 for the high word.
25765
25766 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25767
25768 PR target/70404
25769 * config/s390/s390.c (s390_expand_insv): Check for everything
25770 constant instead of just VOIDmode stuff.
25771
25772 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25773
25774 PR target/70496
25775 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25776
25777 2016-04-01 Nathan Sidwell <nathan@acm.org>
25778
25779 * tree.def (TRY_CATCH_EXPR): Correct documentation.
25780
25781 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
25782
25783 PR rtl-optimization/70461
25784 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25785 is necessary.
25786
25787 2016-03-31 Martin Liska <mliska@suse.cz>
25788
25789 PR hsa/70399
25790 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25791 a tree value or an immediate integer value to a buffer
25792 that is eventually copied to a BRIG section.
25793 (emit_immediate_operand): Call the function here.
25794 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25795 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25796 of class' fields that are removed.
25797 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25798 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25799 m_brig_repr_size fields.
25800
25801 2016-03-31 Martin Liska <mliska@suse.cz>
25802
25803 PR hsa/70391
25804 * hsa-gen.c (hsa_function_representation::update_dominance): New
25805 function.
25806 (convert_addr_to_flat_segment): Likewise.
25807 (gen_hsa_memory_set): New alignment argument.
25808 (gen_hsa_ctor_assignment): Likewise.
25809 (gen_hsa_insns_for_single_assignment): Provide alignment
25810 to gen_hsa_ctor_assignment.
25811 (gen_hsa_insns_for_direct_call): Add new argument.
25812 (expand_lhs_of_string_op): New function.
25813 (expand_string_operation_builtin): Likewise.
25814 (expand_memory_copy): New function.
25815 (expand_memory_set): New function.
25816 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25817 (convert_switch_statements): Change signature.
25818 (generate_hsa): Use a return value of the function.
25819 (pass_gen_hsail::execute): Do not call
25820 convert_switch_statements here.
25821 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25822 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25823 (hsa_function_representation::update_dominance): New function.
25824
25825 2016-03-31 Martin Liska <mliska@suse.cz>
25826
25827 PR hsa/70391
25828 * hsa-brig.c (emit_directive_variable): Emit alignment
25829 according to hsa_symbol::m_align.
25830 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25831 (dump_hsa_symbol): Dump alignment of HSA symbols.
25832 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25833 (gen_hsa_addr_with_align): New function.
25834 (hsa_bitmemref_alignment): Use newly added function.
25835 (gen_hsa_insns_for_load): Likewise.
25836 (gen_hsa_insns_for_store): Likewise.
25837 (gen_hsa_memory_copy): New argument added.
25838 (gen_hsa_insns_for_single_assignment): Respect
25839 alignment for assignments processed via gen_hsa_memory_copy.
25840 (gen_hsa_insns_for_direct_call): Likewise.
25841 (gen_hsa_insns_for_return): Likewise.
25842 (gen_function_def_parameters): Set default alignment.
25843 * hsa.c (hsa_object_alignment): New function.
25844 (hsa_byte_alignment): Pasted function.
25845 * hsa.h (hsa_symbol::m_align): New field.
25846
25847 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25848
25849 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25850 scratch field for goto case.
25851
25852 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
25853
25854 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25855
25856 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
25857
25858 PR target/70442
25859 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25860 (scalar_chain::convert_insn): Call convert_op for reg
25861 moves to handle undefined registers.
25862
25863 2016-03-31 Nathan Sidwell <nathan@acm.org>
25864
25865 PR c++/70393
25866 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25867 Assert we don't want to move backwards.
25868
25869 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
25870
25871 PR target/70453
25872 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25873
25874 2016-03-31 Jakub Jelinek <jakub@redhat.com>
25875
25876 PR rtl-optimization/70460
25877 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25878 with operand from REG_LABEL_OPERAND, instead substitute
25879 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25880 Don't do anything for REG_NON_LOCAL_GOTO jumps.
25881
25882 2016-03-31 Martin Liska <mliska@suse.cz>
25883
25884 * passes.c (execute_one_pass): Do not call
25885 todo_after for a discarded function.
25886
25887 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25888
25889 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25890 (no_cost, infinite_cost): Initialize the new field.
25891 (get_computation_cost_at): Record setup cost.
25892 (determine_use_iv_cost_address): Skip cost computation for sub
25893 uses if we can estimate it without losing accuracy.
25894
25895 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25896
25897 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25898 estimates here.
25899 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25900 max_loop_iterations_int.
25901 (tree_unswitch_outer_loop): Likewise.
25902 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25903 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25904
25905 2016-03-30 Richard Biener <rguenther@suse.de>
25906
25907 PR middle-end/70450
25908 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25909
25910 2016-03-30 Jakub Jelinek <jakub@redhat.com>
25911
25912 PR target/70421
25913 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25914 in gen_blendm expander.
25915
25916 2016-03-30 Nick Clifton <nickc@redhat.com>
25917
25918 PR target/62254
25919 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25920 case where we are already provided with an SImode SUBREG.
25921
25922 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
25923
25924 PR target/70439
25925 * config/i386/i386.c (ix86_expand_epilogue): Properly check
25926 conflict between DRAP register and __builtin_eh_return.
25927
25928 2016-03-30 Michael Matz <matz@suse.de>
25929 Richard Biener <rguenther@suse.de>
25930
25931 PR ipa/12392
25932 * ipa-polymorphic-call.c (struct type_change_info): Change
25933 speculative to an unsigned allowing to limit the work we do.
25934 (csftc_abort_walking_p): New inline function..
25935 (check_stmt_for_type_change): Limit the number of may-defs
25936 skipped for speculative devirtualization to
25937 max-speculative-devirt-maydefs.
25938 * params.def (max-speculative-devirt-maydefs): New param.
25939 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25940
25941 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
25942
25943 PR target/63890
25944 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25945 and TARGET_MACHO.
25946
25947 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
25948
25949 PR tree-optimization/59124
25950 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25951 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25952
25953 2016-03-29 Jeff Law <law@redhat.com>
25954
25955 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25956
25957 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25958
25959 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25960 to HOST_WIDE_INT.
25961
25962 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
25963
25964 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25965 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25966 gcrt0.o if linking dynamically.
25967
25968 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25969
25970 PR ipa/70283
25971 * ipa-devirt.c (methods_equal_p): New function.
25972 (compare_virtual_tables): Use it.
25973 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25974 * cgraphclones.c (clone_function_name_1): Use
25975 symbol_table::symbol_suffix_separator.
25976 * coverage.c (build_var): Likewise.
25977 * symtab.c (symbol_table::symbol_suffix_separator): New.
25978
25979 2016-03-29 Jakub Jelinek <jakub@redhat.com>
25980
25981 PR rtl-optimization/70429
25982 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25983 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25984 mode != result_mode.
25985
25986 PR c++/70353
25987 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25988
25989 PR tree-optimization/70405
25990 * ssa-iterators.h (num_imm_uses): Add missing braces.
25991
25992 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
25993
25994 PR rtl-optimization/68695
25995 * ira-color.c (allocno_copy_cost_saving): New.
25996 (improve_allocation): Use it.
25997
25998 2016-03-29 Richard Henderson <rth@redhat.com>
25999
26000 PR middle-end/70355
26001 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
26002
26003 2016-03-29 Richard Biener <rguenther@suse.de>
26004
26005 PR middle-end/70424
26006 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
26007 use alignment returned by get_pointer_alignment_1 if it is
26008 bigger than BITS_PER_UNIT.
26009 * builtins.c (get_pointer_alignment_1): Do not return true
26010 for alignment extracted from SSA info.
26011
26012 2016-03-28 James Bowman <james.bowman@ftdichip.com>
26013
26014 * config/ft32/ft32.opt (mnodiv): New.
26015 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
26016 * doc/invoke.texi (FT32 Options -mnodiv): New.
26017
26018 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
26019
26020 PR target/70406
26021 * config/i386/i386.md (define_split, andn): Fix modes.
26022
26023 2016-03-26 Richard Biener <rguenther@suse.de>
26024 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26025
26026 PR ipa/70366
26027 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
26028 instead of
26029 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
26030 as 2nd argument to cl_optimization_restore().
26031
26032 2016-03-25 Richard Henderson <rth@redhat.com>
26033
26034 PR target/70120
26035 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
26036 * config/aarch64/aarch64-protos.h: Declare it.
26037 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
26038
26039 2016-03-25 Alan Modra <amodra@gmail.com>
26040
26041 PR target/70052
26042 * config/rs6000/constraints.md (j): Simplify.
26043 * config/rs6000/predicates.md (easy_fp_constant): Exclude
26044 decimal float 0.D.
26045 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
26046 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
26047 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
26048 in all constraint alternatives.
26049 (movtd_64bit_nodm): Delete "j" constraint alternative.
26050
26051 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
26052
26053 * tree-ssa-propagate.c: Enhance docs for
26054 SSA_PROP_NOT_INTERESTING.
26055
26056 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
26057
26058 * doc/extend.texi: Fix typo in documentation to pure attribute.
26059
26060 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
26061
26062 PR target/70319
26063 * config/pa/pa.md (bswapdi2): Use a scratch register.
26064
26065 2016-03-24 Richard Henderson <rth@redhat.com>
26066
26067 PR middle-end/69845
26068 * fold-const.c (extract_muldiv_1): Correct test for multiplication
26069 overflow.
26070
26071 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
26072
26073 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
26074 using ix86_expand_binary_operator instead of gen_andsi3.
26075
26076 2016-03-24 Richard Biener <rguenther@suse.de>
26077
26078 PR tree-optimization/70396
26079 * tree-vect-stmts.c (vectorizable_comparison): Use
26080 get_vectype_for_scalar_type.
26081
26082 2016-03-24 Richard Biener <rguenther@suse.de>
26083
26084 PR middle-end/70370
26085 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
26086 with register bases.
26087
26088 2016-03-24 Richard Biener <rguenther@suse.de>
26089
26090 PR tree-optimization/70372
26091 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
26092 build_all_ones_cst to also handle vector types correctly.
26093
26094 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
26095
26096 PR target/70381
26097 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
26098 -mfloat128 here.
26099
26100 2016-03-23 Marek Polacek <polacek@redhat.com>
26101
26102 PR c++/69884
26103 * doc/invoke.texi: Document -Wignored-attributes.
26104
26105 2016-03-23 Bin Cheng <bin.cheng@arm.com>
26106
26107 PR tree-optimization/69042
26108 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
26109 parameter from 30 to 40.
26110
26111 2016-03-23 Bin Cheng <bin.cheng@arm.com>
26112
26113 PR tree-optimization/69042
26114 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
26115 for use with constant offset stripped in base.
26116
26117 2016-03-23 Richard Biener <rguenther@suse.de>
26118
26119 PR middle-end/70251
26120 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
26121 mode compatibility check.
26122 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26123
26124 2016-03-23 Jeff Law <law@redhat.com>
26125
26126 PR tree-optimization/64058
26127 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
26128 CONFLICT_COUNT.
26129 (struct ssa_conflicts): Move up earlier in the file.
26130 (conflicts_, var_map_): New static variables.
26131 (initialize_conflict_count): New function to initialize the
26132 CONFLICT_COUNT field for each conflict pair.
26133 (compare_pairs): Lazily initialize the conflict count and use it
26134 as the first tie-breaker.
26135 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
26136 and wipe conflicts_ and map_ around the call to qsort. Remove
26137 special case for 2 coalesce pairs.
26138 * bitmap.c (bitmap_count_unique_bits): New function.
26139 (bitmap_count_bits_in_word): New function, extracted from
26140 bitmap_count_bits.
26141 (bitmap_count_bits): Use bitmap_count_bits_in_word.
26142 * bitmap.h (bitmap_count_unique_bits): Declare it.
26143
26144 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
26145
26146 PR target/69917
26147 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
26148 transparent alias chain for decl assembler name.
26149 * config/sol2.c (solaris_assemble_visibility): Likewise.
26150
26151 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26152
26153 * config/arm/arm1020e.md (1020call_op): Reduce reservation
26154 duration.
26155 (v10_fdivs): Likewise.
26156 (v10_fdivd): Likewise.
26157
26158 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26159
26160 PR driver/70132
26161 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
26162 to not call fclose twice on file.
26163
26164 2016-03-23 Jakub Jelinek <jakub@redhat.com>
26165
26166 PR tree-optimization/70354
26167 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26168 oprnd0 is wider than oprnd1 and there is a cast from the wider
26169 type to oprnd1, mask it with the mask of the narrower type.
26170
26171 PR target/70321
26172 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
26173 Optimize TARGET_STV splitters, if high or low word of last argument
26174 is 0 or -1.
26175
26176 2016-03-22 Jeff Law <law@redhat.com>
26177
26178 PR target/70232
26179 tree-ssa-threadbackward.c
26180 (fsm_find_control_statement_thread_paths): Correctly distinguish
26181 between old style jump threads vs FSM jump threads.
26182
26183 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
26184
26185 PR target/70302
26186 * config/i386/i386.c (scalar_chain::convert_op): Support
26187 uninitialized register usage case.
26188
26189 2016-03-22 Richard Biener <rguenther@suse.de>
26190
26191 PR middle-end/70251
26192 * genmatch.c (gen_transform): Adjust last parameter to a three-state
26193 int...
26194 (capture::gen_transform): ... to change behavior when substituting
26195 a condition into cond or not-cond expr context.
26196 (dt_simplify::gen_1): Adjust.
26197 * gimple-match-head.c: Include gimplify.h for unshare_expr.
26198 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
26199 last change and instead change to
26200 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
26201 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26202
26203 2016-03-22 Anthony Green <green@moxielogic.com>
26204
26205 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
26206 issue for moxiebox targets.
26207 (CC1PLUS_SPEC): Ditto.
26208
26209 2016-03-22 Richard Biener <rguenther@suse.de>
26210
26211 PR middle-end/70333
26212 * fold-const.c (extract_muldiv_1): Properly perform multiplication
26213 in the wide type.
26214
26215 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
26216
26217 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
26218
26219 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
26220
26221 PR target/70325
26222 * config/i386/i386.c (def_builtin): Handle
26223 OPTION_MASK_ISA_AVX512VL to be and-ed with other
26224 bits.
26225 (const struct builtin_description bdesc_special_args[]):
26226 Remove duplicate ISA bits.
26227
26228 2016-03-22 Jakub Jelinek <jakub@redhat.com>
26229
26230 PR target/70329
26231 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
26232 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
26233 in a way that works also for AVX512BW.
26234
26235 PR target/70300
26236 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
26237 instead of source if operands[1] is xmm16 and above and
26238 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
26239 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
26240
26241 PR c++/70295
26242 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
26243 on assign if (*from_p) is a comparison, set it to
26244 TREE_NO_WARNING (*from_p).
26245
26246 2016-03-21 Jakub Jelinek <jakub@redhat.com>
26247
26248 PR middle-end/70326
26249 * lra.c (restore_scratches): Ignore deleted insns.
26250
26251 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
26252 Jakub Jelinek <jakub@redhat.com>
26253
26254 PR tree-optimization/70317
26255 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
26256 to HONOR_NANS.
26257
26258 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
26259
26260 PR target/70327
26261 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
26262 of ix86_expand_move.
26263 (movoi): Ditto.
26264 (movti): Use general_operand for operand 1 predicate.
26265
26266 2016-03-21 Martin Liska <mliska@suse.cz>
26267
26268 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
26269 insns.
26270 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
26271
26272 2016-03-21 Martin Liska <mliska@suse.cz>
26273
26274 PR ipa/70306
26275 * ipa-icf.c (sem_function::parse): Skip static
26276 constructors and destructors.
26277
26278 2016-03-21 Jakub Jelinek <jakub@redhat.com>
26279
26280 PR target/70296
26281 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
26282 function-like macro, peek following token(s) if it is followed
26283 by CPP_OPEN_PAREN token with optional padding in between, and
26284 if not, don't treat it like a macro.
26285
26286 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
26287 Alexander Monakov <amonakov@ispras.ru>
26288
26289 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
26290 for the stabs debug format.
26291
26292 2016-03-21 Richard Biener <rguenther@suse.de>
26293
26294 PR tree-optimization/70310
26295 * tree-vect-generic.c (expand_vector_condition): Fold the built
26296 condition.
26297
26298 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
26299
26300 PR target/70293
26301 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
26302 Block third alternative for AVX-512VL target,
26303
26304 2016-03-21 Martin Liska <mliska@suse.cz>
26305
26306 PR hsa/70234
26307 * hsa-brig.c (emit_function_directives): Mark unemitted
26308 global variables for emission.
26309 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
26310 (get_symbol_for_decl): Likewise.
26311 * hsa.h (struct hsa_symbol): New flag.
26312
26313 2016-03-21 Richard Biener <rguenther@suse.de>
26314
26315 PR tree-optimization/70288
26316 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
26317 we do not estimate unsimplified all-constant conditionals or
26318 switches as optimized away.
26319
26320 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
26321
26322 PR rtl-optimization/69102
26323 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
26324 when we have a readonly dependency context.
26325
26326 2016-03-18 Jeff Law <law@redhat.com>
26327
26328 PR rtl-optimization/70263
26329 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
26330 (update_equiv_regs): When trying to move a store to after the insn
26331 that sets the source of the store, make sure the store occurs after
26332 the insn that sets the source of the store. When successful note
26333 the REG_EQUIV note created in the dump file.
26334
26335 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
26336 Bernd Schmidt <bschmidt@redhat.com>
26337
26338 * doc/extend.texi: Document more potential problems with basic asms.
26339
26340 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
26341
26342 PR rtl-optimization/70278
26343 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
26344 VOIDmode.
26345
26346 2016-03-18 Jason Merrill <jason@redhat.com>
26347
26348 * calls.c (load_register_parameters): Fix zero size sibcall logic.
26349
26350 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26351
26352 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
26353 values to 128b regs.
26354
26355 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26356
26357 PR tree-optimization/70252
26358 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
26359 boolean vector has a proper number of elements.
26360 (supportable_narrowing_operation): Likewise.
26361
26362 2016-03-18 Tom de Vries <tom@codesourcery.com>
26363
26364 PR ipa/70269
26365 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
26366
26367 2016-03-18 Jakub Jelinek <jakub@redhat.com>
26368
26369 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
26370 instead of replace_rtx for DEBUG_INSNs.
26371
26372 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26373
26374 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
26375 load type reservations.
26376
26377 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
26378
26379 PR target/70188
26380 * config/pa/constraints.md: Revert 2015-02-13 change. Use
26381 define_constraint for "Q" and "T" constraints.
26382
26383 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
26384
26385 Tweak the pipeline model for Exynos M1
26386
26387 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
26388 model.
26389
26390 2016-03-17 David Malcolm <dmalcolm@redhat.com>
26391
26392 PR c/70264
26393 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
26394 where one or both locations aren't within a line_map.
26395
26396 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
26397
26398 PR driver/70192
26399 * opts.c (finish_options): Don't set flag_pie to the default if
26400 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
26401 if it is -1.
26402
26403 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
26404
26405 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
26406 true as ALL_REGS argument to replace_rtx.
26407
26408 2016-03-17 Richard Biener <rguenther@suse.de>
26409
26410 PR debug/70271
26411 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
26412 last.
26413
26414 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26415
26416 PR target/70245
26417 * rtl.h (replace_rtx): Add ALL_REGS argument.
26418 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
26419 equality and assert mode is the same, instead of just rtx pointer
26420 equality.
26421 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
26422 true as ALL_REGS argument to replace_rtx.
26423
26424 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
26425
26426 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
26427 for boolean vector with vector mode only.
26428 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26429
26430 2016-03-17 Nick Clifton <nickc@redhat.com>
26431
26432 PR target/70162
26433 * config/rx/rx.c (rx_print_integer): Print negative constants in
26434 decimal.
26435
26436 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26437
26438 PR target/70261
26439 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
26440
26441 2016-03-16 Richard Henderson <rth@redhat.com>
26442 Richard Biener <rguenth@suse.de>
26443
26444 PR middle-end/70240
26445 PR middle-end/68215
26446 PR tree-opt/68714
26447 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
26448 first operand as is_gimple_condexpr.
26449
26450 PR middle-end/70240
26451 PR middle-end/68215
26452 Revert r231575
26453 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
26454 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
26455 Do not gimplify the result.
26456 (do_unop): Adjust call to tree_vec_extract.
26457 (do_binop): Likewise.
26458 (do_compare): Likewise.
26459 (do_plus_minus): Likewise.
26460 (do_negate): Likewise.
26461 (expand_vector_condition): Likewise.
26462 (do_cond): Likewise.
26463
26464 2016-03-16 Richard Henderson <rth@redhat.com>
26465
26466 PR target/70048
26467 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
26468 (aarch64_classify_address): Use it.
26469 (aarch64_legitimize_address): Force all subexpressions of PLUS
26470 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
26471
26472 2016-03-16 Jakub Jelinek <jakub@redhat.com>
26473 Richard Biener <rguenth@suse.de>
26474
26475 PR target/70245
26476 * rtlanal.c (replace_rtx): For REG, if from is a REG,
26477 return to even if only REGNO is equal, and assert
26478 mode is the same.
26479
26480 2016-03-11 Jeff Law <law@redhat.com>
26481
26482 PR rtl-optimization/70224
26483 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
26484
26485 2016-03-16 Richard Henderson <rth@redhat.com>
26486
26487 PR middle-end/70199
26488 * function.h (struct function): Add has_forced_label_in_static.
26489 * gimplify.c (force_labels_r): Set it.
26490 * lto-streamer-in.c (input_struct_function_base): Read it.
26491 * lto-streamer-out.c (output_struct_function_base): Write it.
26492 * tree-inline.c (has_label_address_in_static_1): Remove.
26493 (copy_forbidden): Remove fndecl parameter; test
26494 has_forced_label_in_static.
26495 (inline_forbidden_p): Update call to copy_forbidden.
26496 (tree_versionable_function_p): Likewise.
26497 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
26498 (chkp_versioning): Likewise.
26499 * tree-inline.h (copy_forbidden): Update decl.
26500
26501 2016-03-16 Marek Polacek <polacek@redhat.com>
26502
26503 PR c/70093
26504 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
26505 function being thunked if the result type doesn't have fixed size.
26506 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
26507 doesn't have fixed size.
26508
26509 2016-03-16 Bin Cheng <bin.cheng@arm.com>
26510
26511 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
26512 reporting malformed loop nest.
26513
26514 2016-03-16 Tom de Vries <tom@codesourcery.com>
26515
26516 PR lto/70187
26517 * ipa-devirt.c (possible_polymorphic_call_targets): Move
26518 nodes.length () == 1 test to before first nodes[0] access.
26519
26520 2016-03-16 Tom de Vries <tom@codesourcery.com>
26521
26522 PR tree-optimization/68715
26523 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
26524 single_pred_p test.
26525
26526 2016-03-16 Tom de Vries <tom@codesourcery.com>
26527
26528 PR tree-optimization/68809
26529 * graphite-scop-detection.c (same_close_phi_node): Test if result types
26530 are the same.
26531
26532 2016-03-16 Carlos O'Donell <carlos@redhat.com>
26533 Sandra Loosemore <sandra@codesourcery.com>
26534
26535 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
26536 on leaf attribute. Mention ELF interposition problems.
26537
26538 2016-03-16 Alan Modra <amodra@gmail.com>
26539
26540 PR rtl-optimization/69195
26541 PR rtl-optimization/47992
26542 * ira.c (indirect_jump_optimize): Ignore artificial defs.
26543 Add comments.
26544
26545 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
26546
26547 PR bootstrap/69513
26548 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
26549
26550 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26551
26552 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
26553
26554 2016-03-15 Jakub Jelinek <jakub@redhat.com>
26555
26556 PR rtl-optimization/70222
26557 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
26558 optimization if mode is different from result_mode, queue up masking
26559 of the result in outer_op. Formatting fix.
26560
26561 PR middle-end/70239
26562 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26563 of safe_grow.
26564
26565 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26566
26567 PR rtl-optimization/69032
26568 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
26569 looping backwards over basic block insns.
26570
26571 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26572
26573 PR target/66660
26574 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
26575 to non-speculative when propagating trap bits.
26576
26577 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26578
26579 PR rtl-optimization/63384
26580 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
26581 DEBUG_INSN_P insns.
26582
26583 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26584
26585 PR target/64411
26586 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
26587 factored out from ...
26588 (sched_analyze_insn): ... here.
26589 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
26590 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
26591 get_implicit_reg_pending_clobbers in it.
26592 (setup_id_reg_sets): Use setup_id_implicit_regs.
26593 (deps_init_id): Ditto.
26594
26595 2016-03-15 Tom de Vries <tom@codesourcery.com>
26596
26597 PR ipa/70161
26598 * cgraph.c (cgraph_node::get_body): Save, reset and restore
26599 dump_file_name.
26600 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
26601 execute_function_dump.
26602 (execute_one_pass): Don't dump function if it will be dumped after ipa
26603 transform.
26604
26605 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26606
26607 * genrecog.c (match_pattern_2): If pred is NULL don't call
26608 safe_predicate_mode on it.
26609
26610 2016-03-14 Jakub Jelinek <jakub@redhat.com>
26611
26612 PR middle-end/70219
26613 * lra-constraints.c (delete_move_and_clobber): Change assertion
26614 to also allow dregno == 0.
26615
26616 2016-03-14 Richard Henderson <rth@redhat.com>
26617
26618 PR tree-opt/68714
26619 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
26620 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
26621 (reassociate_bb): Use optimize_vec_cond_expr; avoid
26622 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
26623 on vectors.
26624
26625 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
26626
26627 PR target/70083
26628 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
26629 regs.
26630 (lra_create_live_ranges_1): initialize hard register biggest_mode to
26631 VOIDmode.
26632 * lra-constraints.c (split_reg): For hard regs, try to find the
26633 biggest single-register mode used in the function.
26634
26635 2016-03-14 Richard Biener <rguenther@suse.de>
26636
26637 PR tree-optimization/56365
26638 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
26639 constants to compare against.
26640
26641 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
26642
26643 PR target/70098
26644 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
26645 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
26646 (define_split for the GPR case): Use int_reg_operand instead of
26647 gpc_reg_operand for the output.
26648
26649 2016-03-14 Tom de Vries <tom@codesourcery.com>
26650
26651 PR tree-optimization/70045
26652 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
26653 create_empty_if_region_on_edge argument.
26654
26655 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
26656
26657 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
26658 (STACK_CHECK_PROTECT): Likewise.
26659 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26660 (STACK_CHECK_PROTECT): Likewise.
26661 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26662 (STACK_CHECK_PROTECT): Likewise.
26663 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
26664 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
26665 (STACK_CHECK_PROTECT): Likewise.
26666
26667 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
26668
26669 PR rtl-optimization/69307
26670 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
26671 registers in modes that span more than one register.
26672
26673 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
26674
26675 PR target/69614
26676 * lra-constraints.c (delete_move_and_clobber): New.
26677 (remove_inheritance_pseudos): Use it.
26678
26679 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
26680
26681 PR ada/70017
26682 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
26683 the libcall is LCT_THROW.
26684 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
26685 for the checking routine.
26686
26687 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26688
26689 PR target/70131
26690 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
26691 optimization if we have direct move.
26692 (roundu32<mode>2_fprs): Likewise.
26693
26694 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
26695
26696 PR target/70123
26697 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
26698 be rematerialized.
26699 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
26700 Arguments swapped. All callers changed. Take reg_renumber into
26701 account, and Calculate and compare register ranges for hard regs.
26702
26703 2016-03-11 Jeff Law <law@redhat.com>
26704
26705 PR tree-optimization/70190
26706 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26707 Handle cases where we can not extract the taken edge, even though we
26708 found a constant value.
26709
26710 PR tree-optimization/64058
26711 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
26712 (num_coalesce_pairs): Move up earlier in file.
26713 (find_coalesce_pair): Initialize the INDEX field for each pair
26714 discovered.
26715 (compare_pairs): No longer sort on the elements in each pair.
26716 Instead break ties with the index of the coalesce pair.
26717
26718 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26719
26720 PR target/70002
26721 * config/aarch64/aarch64-protos.h
26722 (aarch64_save_restore_target_globals): New prototype.
26723 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
26724 Call the above when popping pragma.
26725 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
26726 New function.
26727 (aarch64_set_current_function): Rewrite using the above.
26728
26729 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26730
26731 PR tree-optimization/70177
26732 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
26733 (extract_ops_from_tree): ... this. In the 2 argument
26734 overload remove _1 suffix.
26735 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
26736 (extract_ops_from_tree): ... this.
26737 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
26738 Adjust callers.
26739 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
26740 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
26741 extract_ops_from_tree instead of 2 operand one.
26742
26743 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
26744
26745 PR tree-optimization/70013
26746 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
26747 for constant-pool entries.
26748
26749 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26750
26751 PR rtl-optimization/70174
26752 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
26753 followed by gen_lowpart on force_reg instead of just gen_lowpart.
26754
26755 PR tree-optimization/70169
26756 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
26757 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
26758 for unknown codes.
26759
26760 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26761 Jakub Jelinek <jakub@redhat.com>
26762
26763 PR target/70160
26764 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
26765 of uninitialized values.
26766
26767 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26768
26769 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26770 define_expand.
26771 ("*trunctddd2"): New pattern definition.
26772 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26773 TD->DD truncation.
26774
26775 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26776
26777 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26778 definitions for BFP and DFP rounding modes.
26779 ("fixuns_truncdddi2", "fixuns_trunctddi2")
26780 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26781 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26782 ("fix_trunctf<mode>2"): Use the new constants instead of magic
26783 numbers.
26784
26785 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26786
26787 * config/s390/constraints.md: Adjust comment.
26788 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
26789 s390_decompose_addrstyle_without_index.
26790 * config/s390/predicates.md (shift_count_or_setmem_operand):
26791 Rename to setmem_operand.
26792 * config/s390/s390-protos.h
26793 (s390_decompose_shift_count): Rename to
26794 s390_decompose_addrstyle_without_index.
26795 * config/s390/s390.c (s390_decompose_shift_count)
26796 (s390_mem_constraint, print_shift_count_operand)
26797 (print_operand_address, print_operand): Rename
26798 s390_decompose_shift_count to
26799 s390_decompose_addrstyle_without_index and rename
26800 print_shift_count_operand to print_addrstyle_operand troughout the
26801 file.
26802 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26803 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26804 Rename shift_count_or_setmem_operand to setmem_operand.
26805 * config/s390/vx-builtins.md ("vec_insert<mode>")
26806 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26807 nonmemory_operand.
26808
26809 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26810
26811 PR target/70168
26812 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26813 Handle overlapping retval and newval.
26814
26815 2016-03-10 Nick Clifton <nickc@redhat.com>
26816
26817 PR target/7044
26818 * config/aarch64/aarch64.c
26819 (aarch64_override_options_after_change_1): When forcing
26820 flag_omit_frame_pointer to be true, use a special value that can
26821 be detected if this function is called again, thus preventing
26822 flag_omit_leaf_frame_pointer from being forced to be false.
26823
26824 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26825
26826 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26827 Set x_flag_omit_leaf_frame_pointer when handling
26828 -momit-leaf-frame-pointer.
26829
26830 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26831
26832 PR lto/69589
26833 * cgraph.c (cgraph_node::dump): Dump split_part and
26834 indirect_call_target.
26835 * cgraph.h (cgraph_node): Add indirect_call_target flag.
26836 * ipa.c (has_addr_references_p): Cleanup.
26837 (is_indirect_call_target_p): New.
26838 (walk_polymorphic_call_targets): Do not mark virtuals that may be
26839 called indirectly as local.
26840 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26841
26842 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26843
26844 PR ipa/69630
26845 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26846 on cxa_pure_virtual.
26847
26848 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26849
26850 PR lto/69589
26851 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26852
26853 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26854
26855 PR lto/69589
26856 * tree.c (need_assembler_name_p): Only record main variant type names.
26857
26858 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26859
26860 PR target/70113.
26861 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26862 Always define to 0 or 1.
26863 (TARGET_FIX_ERR_A53_843419): New macro.
26864 * config/aarch64/aarch64-elf-raw.h
26865 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26866 * config/aarch64/aarch64-linux.h: Likewise.
26867 * config/aarch64/aarch64.c
26868 (aarch64_override_options_after_change_1): Do not default
26869 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26870 843419 is on.
26871 (aarch64_attributes): Handle fix-cortex-a53-843419.
26872 (aarch64_can_inline_p): Likewise.
26873 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26874
26875 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
26876 Jakub Jelinek <jakub@redhat.com>
26877
26878 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26879 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26880 DECL_COMMONS if flag_unconstrained_commons is set.
26881 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26882 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26883 (funconstrained-commons): Document.
26884
26885 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26886
26887 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26888 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26889
26890 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
26891
26892 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26893 has a proper number of elements.
26894
26895 2016-03-10 Alan Modra <amodra@gmail.com>
26896
26897 PR rtl-optimization/69195
26898 PR rtl-optimization/47992
26899 * ira.c (recorded_label_ref): Delete.
26900 (update_equiv_regs): Return void.
26901 (indirect_jump_optimize): New function.
26902 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26903 before regstat_compute_ri. Don't rebuild_jump_labels here.
26904 Delete update_regstat.
26905
26906 2016-03-10 Richard Biener <rguenther@suse.de>
26907
26908 PR tree-optimization/70128
26909 * tree-ssa-structalias.c (set_uids_in_ptset): Set
26910 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26911
26912 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26913
26914 PR tree-optimization/70152
26915 * tree-sra.c (replace_removed_params_ssa_names): Copy over
26916 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26917
26918 PR target/70086
26919 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26920 instead of gen_sse2_loadlpd.
26921 * config/i386/sse.md (*vec_concatv2df): Rename to...
26922 (vec_concatv2df): ... this.
26923
26924 PR tree-optimization/70127
26925 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26926
26927 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26928
26929 PR c/68473
26930 PR c++/70105
26931 * diagnostic-show-locus.c (compatible_locations_p): New function.
26932 (layout::layout): Sanitize ranges using compatible_locations_p.
26933
26934 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26935
26936 PR c/68473
26937 PR c++/70105
26938 * diagnostic-show-locus.c (layout_range::layout_range): Replace
26939 location_range param with three const expanded_locations * and a
26940 bool.
26941 (layout::layout): Replace call to
26942 rich_location::lazily_expand_location with get_expanded_location.
26943 Extract the range and perform location expansion here, passing
26944 the results to the layout_range ctor.
26945 * diagnostic.c (source_range::debug): Delete.
26946 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26947 of rich_location::get_expanded_location.
26948 * gcc-rich-location.c (get_range_for_expr): Delete.
26949 (gcc_rich_location::add_expr): Reimplement to avoid the
26950 rich_location::add_range overload that took a location_range,
26951 passing a location_t instead.
26952
26953 2016-03-09 Richard Biener <rguenther@suse.de>
26954 Jakub Jelinek <jakub@redhat.com>
26955
26956 PR tree-optimization/70138
26957 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26958 Also skip vect_double_reduction_def.
26959
26960 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26961
26962 PR target/70049
26963 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26964 if the operand is "m".
26965
26966 2016-03-09 Nathan Sidwell <nathan@acm.org>
26967
26968 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26969
26970 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26971
26972 * config/i386/i386.c (processor_target_table): Fix cost table
26973 intialization order for znver1.
26974
26975 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26976
26977 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26978 - becuase -> because.
26979 * ipa-reference.c (ignore_module_statics): Likewise.
26980 * cgraph.c (cgraph_node::get_body): Likewise.
26981 * ipa-inline.c (early_inliner): Likewise.
26982 * ipa-devirt.c (types_same_for_odr): Likewise.
26983 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26984 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26985
26986 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26987
26988 * tree-ssa-math-opts.c: Fix typo in comment.
26989
26990 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26991
26992 PR target/70110
26993 * config/i386/i386.c (scalar_chain::make_vector_copies,
26994 scalar_chain::convert_reg): Call end_sequence in between
26995 get_insns and emit_conversion_insns rather than after both
26996 calls.
26997
26998 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
26999
27000 PR target/70064
27001 * config/i386/i386.h (machine_function): Add
27002 pc_thunk_call_expanded flag.
27003 (ix86_pc_thunk_call_expanded): New define.
27004 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
27005 (*set_got): Rename insn pattern from set_got.
27006 (*set_got_labelled): Rename inst pattern from set_got_labelled.
27007 * config/i386/i386.c (ix86_compute_frame_layout): Use
27008 ix86_pc_thunk_call_expanded to prevent red-zone.
27009
27010 2016-03-07 Martin Jambor <mjambor@suse.cz>
27011
27012 * hsa.h (hsa_get_ctor_statements): Declare.
27013 (hsa_get_dtor_statements): Likewise.
27014 (hsa_get_kernel_dispatch_type): Likewise.
27015 * hsa.c (hsa_get_ctor_statements): New function.
27016 (hsa_get_dtor_statements): Likewise.
27017 (hsa_get_kernel_dispatch_type): Likewise.
27018 * hsa-brig.c (hsa_cdtor_statements): Removed.
27019 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
27020 hsa_get_dtor_statements.
27021 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
27022 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
27023
27024 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
27025
27026 * config/arm/arm-cores.def (cortex-r8): New.
27027 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
27028 * config/arm/arm-tune.md: Likewise.
27029 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
27030
27031 2016-03-07 Martin Sebor <msebor@redhat.com>
27032
27033 PR rtl-optimization/19705
27034 * doc/invoke.texi (Options That Control Optimization): Clarify
27035 -fno-branch-count-reg.
27036
27037 2016-02-26 Richard Biener <rguenther@suse.de>
27038 Jeff Law <law@redhat.com>
27039
27040 PR tree-optimization/69740
27041 * cfghooks.c (remove_edge): Request loop fixups if we delete
27042 an edge that might turn an irreducible loop into a natural
27043 loop.
27044 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
27045 Move after definition of loops_state_clear.
27046
27047 2016-03-07 Bin Cheng <bin.cheng@arm.com>
27048
27049 PR rtl-optimization/69052
27050 * rtlanal.c (commutative_operand_precedence): Set higher precedence
27051 to CONST_WIDE_INT.
27052
27053 2016-03-07 Tom de Vries <tom@codesourcery.com>
27054
27055 PR tree-optimization/70116
27056 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
27057 is_tm_ending stmts and ubsan/asan internal functions.
27058 (find_duplicate): Use it. Don't test is_tm_ending here.
27059
27060 2016-03-07 Richard Biener <rguenther@suse.de>
27061
27062 PR tree-optimization/70115
27063 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
27064 (propagate_constants_for_unrolling): Use replace_uses_by.
27065
27066 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
27067
27068 PR middle-end/69916
27069 * omp-low.c (struct oacc_loop): Add ifns.
27070 (new_oacc_loop_raw): Initialize it.
27071 (finish_oacc_loop): Clear mask & flags if no ifns.
27072 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
27073 (oacc_loop_xform_loop): Add ifns arg & adjust.
27074 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
27075
27076 2016-03-07 Richard Henderson <rth@redhat.com>
27077
27078 PR rtl-opt/70061
27079 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
27080 (insert_value_copy_on_edge): Likewise.
27081
27082 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27083
27084 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
27085
27086 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27087
27088 PR target/62281
27089 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
27090
27091 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
27092
27093 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
27094
27095 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
27096
27097 Fix sseimul type attribute.
27098 * config/i386/znver1.md
27099 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
27100 znver1_sseimul_avx256_load) : Fix the type attribute.
27101 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
27102 pipe usage and latency.
27103
27104 2016-03-05 Jakub Jelinek <jakub@redhat.com>
27105
27106 PR c++/70084
27107 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
27108 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
27109 to the right type.
27110
27111 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
27112
27113 PR c/69973
27114 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
27115
27116 PR rtl-optimization/69941
27117 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
27118 the reg share its mode.
27119
27120 2016-03-04 Jeff Law <law@redhat.com>
27121
27122 PR tree-optimization/69196
27123 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27124 If the both SSA_NAMEs are anonymous, then consider them unassociated
27125 and include the PHI in the statement count.
27126
27127 2016-03-05 Tom de Vries <tom@codesourcery.com>
27128
27129 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
27130 construct in oacc routine. Check for oacc region in oacc routine.
27131
27132 2016-03-04 Jakub Jelinek <jakub@redhat.com>
27133
27134 PR target/70062
27135 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
27136 2016-02-22 changes, instead don't recurse if RECUR is already true.
27137 Don't change *dynamic_check if RECUR. Adjust recursive caller
27138 to pass true to the new argument.
27139 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
27140
27141 PR target/70059
27142 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
27143 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
27144 fixes.
27145 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
27146
27147 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
27148
27149 PR rtl-optimization/57676
27150 * lra-assigns.c (lra_assign): Guard test for maximum iterations
27151 with flag_checking.
27152
27153 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
27154
27155 * tree-vect-patterns.c (search_type_for_mask): Handle
27156 comparison of booleans.
27157
27158 2016-03-04 Jakub Jelinek <jakub@redhat.com>
27159
27160 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
27161 Fix @xref usage.
27162
27163 PR debug/69947
27164 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
27165 all other ops that have dw_val_class_die_ref operands,
27166 and DW_OP_GNU_entry_value.
27167
27168 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27169
27170 PR rtl-optimization/69904
27171 * config/arm/arm.c (arm_cannot_copy_insn_p):
27172 Return true for load-exclusive instructions.
27173
27174 2016-03-03 Jakub Jelinek <jakub@redhat.com>
27175
27176 PR target/70021
27177 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
27178 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
27179 the pattern no matter if it is used just by non-pattern, pattern
27180 or mix thereof.
27181 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
27182 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
27183 oprnd1 def_stmt is in pattern, don't look through it.
27184
27185 2016-03-03 Marek Polacek <polacek@redhat.com>
27186
27187 PR middle-end/70050
27188 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
27189
27190 2016-03-03 Martin Liska <mliska@suse.cz>
27191
27192 PR tree-optimization/70043
27193 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
27194 previous statement if we see a debug statement.
27195
27196 2016-03-03 Richard Biener <rguenther@suse.de>
27197
27198 PR tree-optimization/55936
27199 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
27200 parameter and guard unsafe equivalence use.
27201 (vrp_evaluate_conditional_warnv_with_ops): Always use
27202 safe equivalences but not via the quadratic compare_names
27203 helper.
27204
27205 2016-03-03 Michael Collison <michael.collison@linaro.org>
27206
27207 PR target/70014
27208 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
27209 for operand 1 to s_register_operand. Change predicate for operand
27210 2 to arm_not_immediate_operand.
27211
27212 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
27213
27214 * doc/tm.texi: Regenerated.
27215
27216 2016-03-02 Richard Henderson <rth@redhat.com>
27217
27218 PR rtl-opt/67145
27219 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
27220 simplification when all args are positive non-fixed registers.
27221
27222 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27223
27224 * target.def (lra_p): Specify that new ports should use LRA.
27225
27226 2016-03-02 Jakub Jelinek <jakub@redhat.com>
27227
27228 PR libgomp/69555
27229 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
27230 gimplify_type_sizes the type they refer to.
27231 (omp_notice_variable): Handle reference vars to VLAs.
27232 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
27233 reference to VLA decls in the second pass instead of first pass.
27234
27235 2016-03-02 Tom de Vries <tom@codesourcery.com>
27236
27237 PR tree-optimization/68659
27238 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
27239 new_expr == NULL_TREE.
27240 (get_new_name): Handle ADDR_EXPR.
27241
27242 2016-03-02 Bin Cheng <bin.cheng@arm.com>
27243
27244 PR rtl-optimization/69052
27245 * loop-invariant.c (canonicalize_address): New function.
27246 (inv_can_prop_to_addr_use): Check validity of address expression
27247 which is canonicalized by above function.
27248
27249 2016-03-02 Alan Modra <amodra@gmail.com>
27250
27251 PR ipa/69990
27252 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
27253 larger alignment.
27254
27255 2016-03-02 Jakub Jelinek <jakub@redhat.com>
27256
27257 PR target/70028
27258 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
27259 (*movhi_internal): Put mask moves from and to memory separately
27260 from moves from/to GPRs.
27261
27262 2016-03-02 Richard Biener <rguenther@suse.de>
27263
27264 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
27265 GENERIC expressions in GIMPLE.
27266
27267 2016-03-02 Richard Biener <rguenther@suse.de>
27268
27269 * config/i386/i386.c (type_natural_mode): Fix typo.
27270
27271 2016-03-02 Nick Clifton <nickc@redhat.com>
27272
27273 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
27274
27275 2016-03-02 Richard Biener <rguenther@suse.de>
27276 Uros Bizjak <ubizjak@gmail.com>
27277
27278 PR target/67278
27279 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
27280
27281 2016-03-02 Richard Biener <rguenther@suse.de>
27282
27283 PR middle-end/67278
27284 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
27285
27286 2016-03-02 Marek Polacek <polacek@redhat.com>
27287
27288 PR c/67854
27289 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
27290 "is promoted to" warning.
27291
27292 2016-03-01 DJ Delorie <dj@redhat.com>
27293
27294 * config.gcc: Deprecate mep-*.
27295
27296 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
27297
27298 PR middle-end/70025
27299 * lra-constraints.c (regno_val_use_in): New.
27300 (match_reload): Use it instead of regno_use_in.
27301
27302 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
27303
27304 PR rtl-optimization/70007
27305 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
27306 references present in REG_EQUAL notes attached to non-SET patterns.
27307
27308 2016-03-01 Jeff Law <law@redhat.com>
27309
27310 PR tree-optimization/69196
27311 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27312 Appropriately clamp the number of statements to copy when the
27313 thread path does not traverse a loop backedge.
27314
27315 PR tree-optimization/69196
27316 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27317 Do count some PHIs in the thread path against the insn count. Decrease
27318 final statement count by one as the control statement in the last
27319 block will get removed. Remove special cased code for handling PHIs
27320 in the last block.
27321
27322 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
27323
27324 PR target/70027
27325 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
27326 asm dialect alternatives to explicit GOTPCREL calls.
27327
27328 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
27329
27330 PR ada/70017
27331 * ira.c (do_reload): Issue warning for generic stack checking here...
27332 * reload1.c (reload): ...instead of here and streamline it.
27333
27334 2016-03-01 Nick Clifton <nickc@redhat.com>
27335
27336 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
27337
27338 2016-03-01 Richard Biener <rguenther@suse.de>
27339
27340 PR tree-optimization/69983
27341 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
27342 types and fall back to operand_equal_p.
27343
27344 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27345
27346 Revert
27347 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27348
27349 * config/s390/constraints.md ("jm8"): New constraint.
27350 * config/s390/predicates.md ("const_int_8bitset_operand"): New
27351 predicate.
27352 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
27353 into ...
27354 ("*setmem_long<setmem_and>"): New pattern.
27355 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
27356 into ...
27357 ("*setmem_long_31z<setmem_and>"): New pattern.
27358 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
27359 New substitution rules with the required attributes.
27360
27361
27362 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27363
27364 Revert
27365 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27366
27367 * gensupport.c (process_substs_on_one_elem): Split loop to
27368 complete mark_operands_used_in_match_dup on all expressions in the
27369 vector first.
27370 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27371 and remove function.
27372
27373 2016-03-01 Richard Biener <rguenther@suse.de>
27374
27375 PR middle-end/70022
27376 * fold-const.c (fold_indirect_ref_1): Fix range checking for
27377 vector BIT_FIELD_REF extract.
27378
27379 2016-03-01 Richard Biener <rguenther@suse.de>
27380
27381 PR tree-optimization/69994
27382 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
27383
27384 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
27385
27386 PR tree-optimization/69956
27387 * tree-vect-stmts.c (supportable_widening_operation): Support
27388 multi-step conversion of boolean vectors.
27389 (supportable_narrowing_operation): Likewise.
27390
27391 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27392
27393 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
27394 anymore.
27395
27396 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27397
27398 * config/s390/subst.md (DSI_VI): New mode iterator.
27399 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
27400 * config/s390/vector.md ("vec_set<mode>"): Move expander before
27401 the insn definition.
27402 ("*vec_set<mode>"): Change predicate and add alternative to
27403 support only either register or const_int operands as element
27404 selector.
27405 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
27406 operands.
27407 ("vec_extract<mode>"): New expander.
27408 ("*vec_extract<mode>"): New insn definition supporting reg and
27409 const_int element selectors.
27410 ("*vec_extract<mode>_plus"): New insn definition supporting
27411 reg+const_int element selectors.
27412 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
27413 following expander+insn definition.
27414 ("<vec_shifts_name><mode>3"): New expander.
27415 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
27416
27417 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27418
27419 * config/s390/s390.md ("*tabort_1"): Change predicate to
27420 nonmemory_operand. Add a second alternative to cover
27421 register as well as const int operands.
27422 ("*tabort_1_plus"): New pattern definition.
27423
27424 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27425
27426 * config/s390/s390.md ("*ashrdi3_cc_31")
27427 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
27428 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
27429 Merge insn definitions into ...
27430 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27431 New pattern definition.
27432 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
27433 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
27434 ("*ashr<mode>3_and"): Merge insn definitions into ...
27435 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27436 New pattern definition.
27437 * config/s390/subst.md ("addr_style_op_cc_subst")
27438 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
27439 substitutions patterns plus attributes.
27440 Add ashiftrt to SUBST iterator.
27441
27442 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27443
27444 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
27445 op2 to nonmemory_operand.
27446 ("*<shift>di3_31", "*<shift>di3_31_and"):
27447 Merge into single pattern definition ...
27448 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
27449 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
27450 pattern definition ...
27451 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
27452 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
27453 iterator.
27454
27455 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27456
27457 * config/s390/predicates.md (const_int_6bitset_operand): New
27458 predicate.
27459 * config/s390/s390.md: Include subst.md.
27460 ("rotl<mode>3"): New expander.
27461 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
27462 ...
27463 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
27464 * config/s390/subst.md: New file.
27465
27466 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27467
27468 * config/s390/s390.md ("op_type", "atype", "length" attributes):
27469 Remove RRR type. It doesn't really exist.
27470 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
27471 attributes.
27472 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
27473 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
27474 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
27475 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
27476 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
27477 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
27478 `enabled' attribute.
27479
27480 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27481
27482 * gensupport.c (process_substs_on_one_elem): Split loop to
27483 complete mark_operands_used_in_match_dup on all expressions in the
27484 vector first.
27485 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27486 and remove function.
27487
27488 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27489
27490 PR target/69706
27491 * config/sparc/sparc.c (NWORDS_UP): Rename to...
27492 (CEIL_NWORDS): ...this. Use CEIL macro.
27493 (compute_fp_layout): Adjust to above renaming.
27494 (function_arg_union_value): Likewise.
27495 (sparc_arg_partial_bytes): Likewise.
27496 (sparc_function_arg_advance): Likewise.
27497
27498 2016-02-29 Jeff Law <law@redhat.com>
27499
27500 PR tree-optimization/70005
27501 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
27502 where an object with a boolean range is compared against a value
27503 outside [0..1].
27504
27505 PR tree-optimization/69999
27506 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
27507 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
27508 loop cleanups.
27509
27510 2016-02-29 Richard Biener <rguenther@suse.de>
27511
27512 PR tree-optimization/69994
27513 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
27514 (get_unary_op): Look through nop conversions.
27515 (ops_equal_values_p): New function, look for equality diregarding
27516 nop conversions.
27517 (eliminate_plus_minus_pair): Use ops_equal_values_p
27518 (repropagate_negates): Do not use get_unary_op here.
27519
27520 2016-02-29 Martin Liska <mliska@suse.cz>
27521
27522 * system.h: Poison ENABLE_CHECKING macro.
27523
27524 2016-02-29 Martin Liska <mliska@suse.cz>
27525
27526 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
27527 is presented in dump flags.
27528 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27529 (hsa_regalloc): Likewise.
27530
27531 2016-02-19 Richard Biener <rguenther@suse.de>
27532
27533 PR tree-optimization/69980
27534 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
27535 permutation of those we need to keep.
27536
27537 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27538
27539 PR target/69706
27540 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
27541 (NWORDS_UP): ...this
27542 (init_cumulative_args): Minor tweaks.
27543 (sparc_promote_function_mode): Likewise.
27544 (scan_record_type): Delete.
27545 (traverse_record_type): New function template.
27546 (classify_data_t): New structure type.
27547 (classify_registers): New inline function.
27548 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
27549 exhausted. Instantiate traverse_record_type on classify_registers and
27550 deal with the case of a structure passed in slot #15 with no FP field
27551 in the first word.
27552 (assign_data_t): New structure type.
27553 (compute_int_layout): New static function.
27554 (compute_fp_layout): Likewise.
27555 (count_registers): New inline function.
27556 (assign_int_registers): New static function.
27557 (assign_fp_registers): Likewise.
27558 (assign_registers): New inline function.
27559 (function_arg_record_value_1): Delete.
27560 (function_arg_record_value_2): Likewise.
27561 (function_arg_record_value_3): Likewise.
27562 (function_arg_record_value): Adjust to above changes. Instantiate
27563 traverse_record_type on count_registers to first count the number of
27564 registers to be used and then on assign_registers to assign them.
27565 (function_arg_union_value): Adjust to above renaming.
27566 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
27567 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
27568 case of a structure passed in slot #15
27569 (sparc_function_arg_advance): Likewise.
27570 (function_arg_padding): Minor tweak.
27571
27572 2016-02-29 Richard Biener <rguenther@suse.de>
27573
27574 PR tree-optimization/69720
27575 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
27576 the adjustment_def path for possibly vectorized defs.
27577 (vect_create_epilog_for_reduction): Handle vectorized initial
27578 defs properly.
27579
27580 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
27581
27582 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
27583
27584 2016-02-27 Jeff Law <law@redhat.com>
27585
27586 Revert
27587 2016-02-26 Richard Biener <rguenther@suse.de>
27588 Jeff Law <law@redhat.com>
27589
27590 PR tree-optimization/69740
27591 * cfghooks.c (remove_edge): Request loop fixups if we delete
27592 an edge that might turn an irreducible loop into a natural
27593 loop.
27594
27595 2016-02-27 Jakub Jelinek <jakub@redhat.com>
27596
27597 PR rtl-optimization/69896
27598 * tree-vect-generic.c (get_compute_type): Avoid single element
27599 vector types.
27600
27601 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
27602
27603 Rename the AArch64 tuning option and related functions to enable the
27604 Newton series for the reciprocal square root to reflect its
27605 approximative characteristic.
27606
27607 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
27608 function to "aarch64_emit_approx_rsqrt".
27609 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
27610 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
27611 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
27612 (xgene1_tunings): Likewise.
27613 (use_rsqrt_p): Likewise.
27614 (aarch64_emit_swrsqrt): Use new function name.
27615 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
27616 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
27617 text explaining this option.
27618 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
27619
27620 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27621
27622 PR target/69969
27623 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27624 complain about -mallow-movmisalign without -mvsx if
27625 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
27626
27627 2016-02-26 Joel Sherrill <joel@rtems.org>
27628
27629 * config.gcc: Add x86_64-*-rtems*.
27630 * config/i386/rtems-64.h: New file.
27631
27632 2016-02-26 Joel Sherrill <joel@rtems.org>
27633
27634 * config.gcc: Add aarch64-*-rtems*.
27635 * config/aarch64/rtems.h: New file.
27636
27637 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
27638
27639 PR target/69946
27640 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
27641 shift amount using %h. Add comment.
27642
27643 2016-02-26 Richard Biener <rguenther@suse.de>
27644 Jeff Law <law@redhat.com>
27645
27646 PR tree-optimization/69740
27647 * cfghooks.c (remove_edge): Request loop fixups if we delete
27648 an edge that might turn an irreducible loop into a natural
27649 loop.
27650
27651 2016-02-26 Martin Jambor <mjambor@suse.cz>
27652
27653 PR middle-end/69920
27654 * tree-sra.c (sra_modify_assign): Do not remove loads of
27655 uninitialized aggregates to SSA_NAMEs.
27656
27657 2016-02-26 Richard Henderson <rth@redhat.com>
27658
27659 PR target/69709
27660 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
27661 pseudo in case the target rtx matches the source of the left
27662 shift.
27663
27664 2016-02-26 Martin Jambor <mjambor@suse.cz>
27665
27666 PR hsa/69568
27667 * hsa.h (hsa_type_packed_p): Declare.
27668 * hsa.c (hsa_type_packed_p): New function.
27669 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
27670 loads.
27671 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
27672 * hsa-brig.c (emit_basic_insn): Likewise.
27673
27674 2016-02-26 Martin Jambor <mjambor@suse.cz>
27675
27676 pr hsa/69674
27677 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
27678 pointers.
27679 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
27680
27681 2016-02-26 Martin Jambor <mjambor@suse.cz>
27682
27683 * hsa.h (is_a_helper): New overload for hsa_op_immed for
27684 hsa_op_with_type operands.
27685 (hsa_unsigned_type_for_type): Declare.
27686 * hsa.c (hsa_unsigned_type_for_type): New function.
27687 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
27688 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
27689 the finalizer. Do not emit extra move.
27690
27691 2016-02-26 Martin Jambor <mjambor@suse.cz>
27692
27693 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
27694 atomic operations in private segment.
27695
27696 2016-02-26 Martin Jambor <mjambor@suse.cz>
27697
27698 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
27699 statements to wi->info. Also disallow omp simd constructs.
27700 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
27701 for not gridifying. Dump special string for omp_for.
27702
27703 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27704
27705 PR target/69245
27706 * config/aarch64/aarch64.c (aarch64_set_current_function):
27707 Save/restore target globals when switching to
27708 target_option_default_node.
27709
27710 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27711
27712 PR target/69613
27713 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
27714 Return 0 if !SHIFT_COUNT_TRUNCATED.
27715
27716 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27717 Eric Botcazou <ebotcazou@adacore.com>
27718
27719 PR rtl-optimization/69891
27720 * dse.c (scan_insn): If we can't figure out memset arguments
27721 or they are non-constant, call clear_rhs_from_active_local_stores.
27722
27723 2016-02-26 Martin Liska <mliska@suse.cz>
27724
27725 * doc/extend.texi: Mention clog10, clog10f an clog10l
27726 in Builtins section.
27727
27728 2016-02-26 Martin Liska <mliska@suse.cz>
27729
27730 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
27731 CHECKING_P.
27732 (resolve_args_picking_1): Likewise.
27733 * dwarf2out.h (struct GTY): Likewise.
27734
27735 2016-02-26 Martin Liska <mliska@suse.cz>
27736
27737 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
27738 with flag_checking.
27739 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27740
27741 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27742 Martin Liska <mliska@suse.cz>
27743
27744 * doc/install.texi: Mention --enable-valgrind-annotations.
27745
27746 2016-02-26 Richard Biener <rguenther@suse.de>
27747
27748 PR tree-optimization/69551
27749 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
27750 looking through aliases adjust DECL_PT_UID to refer to the
27751 ultimate alias target.
27752
27753 2016-02-25 Martin Liska <mliska@suse.cz>
27754
27755 PR middle-end/69919
27756 * alloc-pool.c (after_memory_report): New variable.
27757 * alloc-pool.h (base_pool_allocator ::release): Do not use
27758 the infrastructure if after_memory_report.
27759 * toplev.c (toplev::main): Mark after memory report.
27760
27761 2016-02-25 Richard Biener <rguenther@suse.de>
27762
27763 PR tree-optimization/48795
27764 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
27765
27766 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
27767
27768 PR driver/68463
27769 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
27770 offloading is enabled and -fopenacc or -fopenmp is specified.
27771 (CRTOFFLOADEND): Likewise.
27772 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27773 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27774 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27775 (offload_objects_file_name): New static var.
27776 (tool_cleanup): Remove offload_objects_file_name file.
27777 (find_offloadbeginend): Replace with ...
27778 (find_crtoffloadtable): ... this.
27779 (run_gcc): Remove offload_argc and offload_argv.
27780 Get offload_objects_file_name from -foffload-objects=... option.
27781 Read names of object files with offload from this file, pass them to
27782 compile_images_for_offload_targets. Don't call find_offloadbeginend and
27783 don't pass offloadbegin and offloadend to the linker. Don't pass
27784 offload non-LTO files to the linker, because now they're not claimed.
27785
27786 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
27787
27788 PR ipa/69630
27789 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27790 on builtin_unreachable.
27791
27792 2016-02-25 Jakub Jelinek <jakub@redhat.com>
27793
27794 PR rtl-optimization/69896
27795 * regcprop.c: Include cfgrtl.h.
27796 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27797 than remembered mode, either delete it (if noop_move_p), or
27798 treat like copy_p but not noop_p instruction.
27799
27800 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27801
27802 PR debug/69705
27803 * dwarf2out.c (gen_variable_die): Work around buggy LTO
27804 - allow NULL decl for Fortran DW_TAG_common_block variables.
27805
27806 2016-02-24 Jason Merrill <jason@redhat.com>
27807
27808 * common.opt (flifetime-dse): Add -flifetime-dse=1.
27809
27810 2016-02-24 Richard Biener <rguenther@suse.de>
27811 Jakub Jelinek <jakub@redhat.com>
27812
27813 PR middle-end/69760
27814 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27815 conditionally executed ops to well-defined overflow behavior.
27816
27817 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27818
27819 PR middle-end/69915
27820 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27821 elements.
27822
27823 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27824
27825 PR rtl-optimization/69886
27826 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27827 argument. Use it when checking validity of set instructions.
27828 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27829 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27830 callsite.
27831 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27832 * store-motion.c (find_moveable_store): Update
27833 can_assign_to_reg_without_clobbers_p callsite.
27834
27835 2016-02-24 Richard Biener <rguenther@suse.de>
27836
27837 PR middle-end/68963
27838 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27839 bogus check.
27840 (record_nonwrapping_iv): Do not fall back to the low/high bound
27841 for non-constant IV bases if the stmt is not always executed.
27842
27843 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27844
27845 * config/arm/arm-cores.def (cortex-a32): New entry.
27846 * config/arm/arm-tables.opt: Regenerate.
27847 * config/arm/arm-tune.md: Regenerate.
27848 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27849 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27850 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27851 for -mcpu and -mtune.
27852
27853 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27854
27855 PR target/69875
27856 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27857 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27858 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27859 (atomic_loaddi_1): Delete.
27860 (atomic_loaddi): Rewrite expander using the above changes.
27861
27862 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27863
27864 PR c/69918
27865 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27866 2 to 3.
27867
27868 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27869 Richard Biener <rguenth@suse.de>
27870
27871 PR middle-end/69909
27872 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27873 set_mem_attributes if tem is SSA_NAME which got expanded
27874 as a MEM.
27875
27876 2016-02-24 Richard Biener <rguenther@suse.de>
27877
27878 PR tree-optimization/69907
27879 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27880 end of permutations for BB vectorization.
27881
27882 2016-02-24 Christian Bruel <christian.bruel@st.com>
27883
27884 * config/arm/arm-c.c (arm_option_override): Initialize
27885 target_option_current_node.
27886 * config/arm/arm.c (arm_pragma_target_parse): Replace
27887 build_target_option_node call by target_option_current_node.
27888 Set target_option_current_node.
27889 Fix comments.
27890
27891 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27892
27893 PR target/69810
27894 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27895 define_insn_and_split to define_insn.
27896 (zero_extendqi<mode>2_dot2): Same.
27897 (extendqi<mode>2_dot): Same.
27898 (extendqi<mode>2_dot2): Same.
27899
27900 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27901
27902 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27903 and add bypass for AES{D,E} and AESMC pairs.
27904 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27905 and AESMC pairs.
27906
27907 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27908
27909 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27910 series for reciprocal square root in Exynos M1.
27911
27912 2016-02-23 Martin Sebor <msebor@redhat.com>
27913
27914 PR c/69759
27915 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27916 __builtin_alloca_with_align.
27917
27918 2016-02-23 Richard Henderson <rth@redhat.com>
27919
27920 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27921 (ix86_register_pragmas): Remove __seg_tls.
27922 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27923 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27924 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27925 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27926 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27927 * doc/extend.texi (__seg_tls): Remove item.
27928
27929 2016-02-23 Richard Biener <rguenther@suse.de>
27930
27931 * alloc-pool.h (struct allocation_object): Make id member
27932 conditional on CHECKING_P again.
27933 (get_instance): Adjust.
27934 (base_pool_allocator): Likewise.
27935
27936 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
27937
27938 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27939 (parallelize_loops): In OpenACC kernels mode, set n_threads to
27940 zero.
27941 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27942 flag_openacc.
27943 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27944
27945 2016-02-23 Richard Biener <rguenther@suse.de>
27946
27947 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27948 * bitmap.h (struct bitmap_usage): Likewise.
27949 (bitmap_move): Declare.
27950 * bitmap.c (register_overhead): Take size_t argument.
27951 (bitmap_move): New function.
27952 * df-problems.c (df_rd_transfer_function): Use bitmap_move
27953 to properly account overhead.
27954 * tree.c (free_node): Use tree_size.
27955
27956 2016-02-23 Jakub Jelinek <jakub@redhat.com>
27957
27958 PR c++/69902
27959 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27960 when inverting comparison.
27961
27962 PR c/69900
27963 * common.opt (Wunreachable-code): Add Warning flag.
27964
27965 2016-02-23 Mark Wielaard <mjw@redhat.com>
27966 Jakub Jelinek <jakub@redhat.com>
27967
27968 PR c/69911
27969 * cgraphunit.c (check_global_declaration): Check main_input_filename
27970 and DECL_SOURCE_FILE are not NULL.
27971
27972 2016-02-23 Martin Jambor <mjambor@suse.cz>
27973
27974 PR tree-optimization/69666
27975 * tree-sra.c (sra_modify_assign): Do not attempt to create
27976 default_def replacements for unscalarizable regions.
27977
27978 2016-02-20 Mark Wielaard <mjw@redhat.com>
27979
27980 PR c/28901
27981 * cgraphunit.c (check_global_declaration): Check level of
27982 warn_unused_const_variable and main_input_filename.
27983 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27984 (-Wunused-variable): For C implies -Wunused-const-variable=1.
27985 (-Wunused-const-variable): Explain levels 1 and 2.
27986
27987 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27988
27989 PR target/69888
27990 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27991 identical arguments. Formatting and spelling fixes.
27992
27993 PR target/69885
27994 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27995 be specified.
27996
27997 PR target/69894
27998 PR target/69895
27999 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
28000 and m68k-devices.def.
28001 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
28002 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
28003
28004 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
28005
28006 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
28007 and HImode registers.
28008
28009 2016-02-22 Richard Biener <rguenther@suse.de>
28010
28011 PR tree-optimization/69882
28012 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
28013 preserve permutations present because of gaps.
28014 (vect_supported_load_permutation_p): Always continue checking
28015 permutations after vect_attempt_slp_rearrange_stmts.
28016
28017 2016-02-22 Bin Cheng <bin.cheng@arm.com>
28018
28019 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
28020 min_profitable_estimate, rather than min_profitable_iters.
28021
28022 2016-02-22 Jakub Jelinek <jakub@redhat.com>
28023
28024 PR target/69885
28025 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
28026 SImode for last match_operand.
28027
28028 2016-02-22 Martin Liska <mliska@suse.cz>
28029
28030 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
28031 return bitsize - 1 as the return value.
28032
28033 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
28034
28035 PR target/69806
28036 PR target/54089
28037 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
28038 Handle negative shift counts.
28039 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
28040 force_reg on the shift constant.
28041 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
28042 (lshrsi3_d): Handle negative shift counts.
28043
28044 2016-02-22 Richard Biener <rguenther@suse.de>
28045 Tom de Vries <tom@codesourcery.com>
28046
28047 * graph.c: Include dumpfile.h.
28048 (print_graph_cfg): Split into three overloads.
28049 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
28050
28051 2016-02-22 Tom de Vries <tom@codesourcery.com>
28052
28053 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
28054 dump-fn.
28055
28056 2016-02-22 Richard Biener <rguenther@suse.de>
28057
28058 PR ipa/37448
28059 * ipa-inline-transform.c (inline_call): When not updating
28060 overall summaries adjust self size by the growth estimate.
28061 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
28062 hash-set, do not update overall summaries here. Renamed from ...
28063 (inline_to_all_callers): ... this which is now wrapping the
28064 above and performing delayed overall summary update.
28065 (early_inline_small_functions): Delay updating of the overall
28066 summary.
28067
28068 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
28069
28070 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
28071 variable.
28072
28073 2016-02-19 Jakub Jelinek <jakub@redhat.com>
28074
28075 PR driver/69805
28076 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
28077 :%* in %:gt() argument.
28078 (greater_than_spec_func): Adjust for expecting only numbers,
28079 if there are more than two numbers, compare the last two.
28080
28081 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
28082
28083 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
28084 -Wnarrowing with -std.
28085
28086 2016-02-19 Jakub Jelinek <jakub@redhat.com>
28087
28088 PR c++/69851
28089 * expr.c (store_field): Don't use bit-field path if exp is
28090 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
28091 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
28092 and the assignment can be performed by bitwise copy. Formatting
28093 fix.
28094
28095 PR middle-end/69838
28096 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
28097 call copy_reg_eh_region_note_forward on before and/or after sequences
28098 and remove note from insn if it no longer can throw.
28099
28100 PR target/69820
28101 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
28102 if TARGET_AVX512BW.
28103
28104 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28105
28106 * config/s390/vector.md: Add missing commutative operand markers
28107 to the patterns which qualify for one.
28108 * config/s390/vx-builtins.md: Likewise.
28109
28110 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28111
28112 * config/s390/vector.md (VI, VI_QHS): Add single element vector
28113 types to mode iterators.
28114 (vec_double): ... and mode attribute.
28115 * config/s390/vx-builtins.md (non_vec_int): Likewise.
28116
28117 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28118
28119 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
28120 Change the predicate of op2 from nonimmediate to general and let
28121 reload fix it if necessary.
28122
28123 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28124
28125 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
28126
28127 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28128
28129 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
28130 mode.
28131
28132 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28133
28134 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
28135 * config/s390/s390.c (s390_expand_vec_movstr): New function.
28136 * config/s390/s390.md ("movstr<P:mode>"): Call
28137 s390_expand_vec_movstr.
28138
28139 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28140
28141 * config/s390/s390.md: Add missing output modifier for operand 1
28142 to print it as address properly.
28143
28144 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28145
28146 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
28147 * config/s390/2964.md: New file.
28148 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
28149 of insn grouping attributes depending on the CPU level.
28150 (s390_get_unit_mask): New function.
28151 (s390_sched_score): Remove the OOO from the scheduling macros.
28152 Add loop to calculate a score for the instruction mix.
28153 (s390_sched_reorder): Likewise plus improve debug output.
28154 (s390_sched_variable_issue): Rename macros as above. Calculate
28155 the unit distances after actually scheduling an insn. Improve
28156 debug output.
28157 (s390_sched_init): Clear last_scheduled_unit_distance array.
28158 * config/s390/s390.md: Include 2964.md.
28159
28160 2016-02-18 Jakub Jelinek <jakub@redhat.com>
28161
28162 PR target/69671
28163 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
28164 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
28165 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
28166 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
28167 *avx512f_<code>v8div16qi2_mask_1): New insns.
28168
28169 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
28170
28171 PR target/68404
28172 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
28173 2016-02-09 change.
28174
28175 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
28176 earlyclobber from target. Use wF constraint for fused memory
28177 address.
28178 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
28179
28180 2016-02-18 Jakub Jelinek <jakub@redhat.com>
28181 Martin Liska <mliska@suse.cz>
28182
28183 PR sanitizer/69863
28184 * cfgexpand.c (asan_sanitize_stack_p): New function.
28185 (partition_stack_vars): Use the function.
28186 (expand_stack_vars): Likewise.
28187 (defer_stack_allocation): Likewise.
28188 (expand_used_vars): Likewise.
28189
28190 2016-02-18 Richard Biener <rguenther@suse.de>
28191
28192 PR middle-end/69553
28193 * fold-const.c (operand_equal_p): Properly compare offsets for
28194 IMAGPART_EXPR and ARRAY_REF.
28195
28196 2016-02-18 Nick Clifton <nickc@redhat.com>
28197
28198 PR target/62254
28199 PR target/69610
28200 * config/arm/arm.c (arm_option_override_internal): Disable
28201 interworking if the target does not support thumb instructions.
28202 (arm_reload_in_hi): Handle the case where a register to register
28203 move needs reloading because there is no simple pattern to handle
28204 it.
28205 (arm_reload_out_hi): Likewise.
28206
28207 2016-02-18 Richard Biener <rguenther@suse.de>
28208
28209 PR middle-end/69854
28210 * match.pd: Don't use fold_binary or fold_unary for folding
28211 constants.
28212
28213 2016-02-17 Jakub Jelinek <jakub@redhat.com>
28214
28215 PR c++/69850
28216 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
28217 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
28218 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
28219 warn on gimple_no_warning_p statements.
28220
28221 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
28222
28223 * doc/extend.texi (C++ Attributes): Correct description of
28224 warn_unused type attribute.
28225
28226 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28227
28228 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
28229 correct instruction.
28230
28231 2016-02-17 Richard Biener <rguenther@suse.de>
28232
28233 PR rtl-optimization/69609
28234 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
28235 (find_traces_1_round): When ending a trace update cached priority
28236 of successors.
28237 (bb_to_key): Use cached priority when available.
28238 (copy_bb): Initialize cached priority.
28239 (reorder_basic_blocks_software_trace_cache): Likewise.
28240
28241 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28242
28243 PR target/69161
28244 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
28245 New predicate.
28246 (aarch64_comparison_operator): Break overly long line into two.
28247 (aarch64_comparison_operation): Likewise.
28248 * config/aarch64/aarch64.md (cstorecc4): Use
28249 aarch64_comparison_operator_mode instead of
28250 aarch64_comparison_operator.
28251 (cstore<mode>4): Likewise.
28252 (aarch64_cstore<mode>): Likewise.
28253 (*cstoresi_insn_uxtw): Likewise.
28254 (cstore<mode>_neg): Likewise.
28255 (*cstoresi_neg_uxtw): Likewise.
28256
28257 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28258
28259 PR target/69161
28260 * config/arm/predicates.md (arm_comparison_operator_mode):
28261 New predicate.
28262 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
28263 instead of arm_comparison_operator.
28264 (*mov_negscc): Likewise.
28265 (*mov_notscc): Likewise.
28266 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
28267 (*thumb2_mov_negscc): Likewise.
28268 (*thumb2_mov_negscc_strict_it): Likewise.
28269 (*thumb2_mov_notscc): Likewise.
28270 (*thumb2_mov_notscc_strict_it): Likewise.
28271
28272 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
28273
28274 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
28275 Add missing return.
28276
28277 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
28278
28279 * config/visium/visium.c (machine_libfunc_index): New enum.
28280 (machine_libfuncs): New structure.
28281 (visium_libfuncs): New static variable.
28282 (TARGET_INIT_LIBFUNCS): Define to...
28283 (visium_init_libfuncs): ...this. New function.
28284 (expand_block_move_4): Use the appropriate libfunc.
28285 (expand_block_move_2): Likewise.
28286 (expand_block_move_1): Likewise.
28287 (expand_block_set_4): Likewise.
28288 (expand_block_set_2): Likewise.
28289 (expand_block_set_1): Likewise.
28290 (visium_trampoline_init): Likewise.
28291
28292 2016-02-17 Nick Clifton <nickc@redhat.com>
28293
28294 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
28295 TI's devices.csv file as of March 2016.
28296
28297 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
28298
28299 PR Target/48344
28300 * opts-global.c (handle_common_deferred_options): Introduce and
28301 initialize two global variables to remember command-line options
28302 specifying a stack-limiting register.
28303 * opts.h: Add extern declarations of the two new global variables.
28304 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
28305 variable based on the values of the two new global variables.
28306
28307 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28308
28309 PR c/69835
28310 * common.opt (Wnonnull-compare): New warning.
28311 * doc/invoke.texi (-Wnonnull): Remove text about comparison
28312 of arguments against NULL.
28313 (-Wnonnull-compare): Document.
28314 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
28315 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
28316 * passes.def (pass_warn_nonnull_compare): Add.
28317 * gimple-ssa-nonnull-compare.c: New file.
28318
28319 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28320
28321 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
28322 AARCH64_EXTRA_TUNE_RECIP_SQRT.
28323
28324 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28325
28326 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
28327 reciprocal sqrt for -mlow-precision-recip-sqrt.
28328
28329 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28330 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28331
28332 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
28333 always use lane loads to construct non-constant vectors.
28334
28335 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28336
28337 * config/aarch64/aarch64.md
28338 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
28339 constraints for operand 3.
28340 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
28341
28342 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28343 Richard Biener <rguenther@suse.de>
28344
28345 PR tree-optimization/69820
28346 * tree-vect-patterns.c (type_conversion_p): Return false if
28347 *orig_type is unsigned single precision or boolean.
28348 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
28349 Formatting fix.
28350
28351 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28352
28353 PR rtl-optimization/69764
28354 PR rtl-optimization/69771
28355 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
28356 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
28357
28358 2016-02-16 Richard Biener <rguenther@suse.de>
28359
28360 PR tree-optimization/69776
28361 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
28362 sets from caller.
28363 (indirect_refs_may_alias_p): Likewise.
28364 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
28365 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
28366 according to tbaa_p.
28367 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
28368 (optimize_stmt): For redundant store discovery do not allow tbaa.
28369
28370 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
28371
28372 PR tree-optimization/69714
28373 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
28374 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
28375
28376 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
28377
28378 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
28379 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
28380 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
28381 * config/arc/arc.c (arc_init): Check FPU options.
28382 (get_arc_condition_code): Handle new CC_FPU* modes.
28383 (arc_select_cc_mode): Likewise.
28384 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
28385 register pair only. Allow access for ARCv2 accumulator.
28386 (gen_compare_reg): Whenever we have FPU support use FPU compare
28387 instructions.
28388 (arc_reorg): Don't generate brcc insns when FPU compare
28389 instructions are involved.
28390 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
28391 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
28392 floating point emulation.
28393 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
28394 (REVERSE_CONDITION): Add new CC_FPU* modes.
28395 (TARGET_FP_SP_BASE): Define.
28396 (TARGET_FP_DP_BASE): Likewise.
28397 (TARGET_FP_SP_FUSED): Likewise.
28398 (TARGET_FP_DP_FUSED): Likewise.
28399 (TARGET_FP_SP_CONV): Likewise.
28400 (TARGET_FP_DP_CONV): Likewise.
28401 (TARGET_FP_SP_SQRT): Likewise.
28402 (TARGET_FP_DP_SQRT): Likewise.
28403 (TARGET_FP_DP_AX): Likewise.
28404 * config/arc/arc.md (ARCV2_ACC): New constant.
28405 (type): New fpu type attribute.
28406 (SDF): Conditional iterator.
28407 (cstore<mode>, cbranch<mode>): Change expand condition.
28408 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
28409 handles FPU/FPX cases as well.
28410 * config/arc/arc.opt (mfpu): New option.
28411 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
28412 Renamed.
28413 (adddf3, muldf3, subdf3): Removed.
28414 * config/arc/predicates.md (proper_comparison_operator): Recognize
28415 CC_FPU* modes.
28416 * config/arc/fpu.md: New file.
28417 * doc/invoke.texi (ARC Options): Document mfpu option.
28418
28419 2016-02-16 Richard Biener <rguenther@suse.de>
28420
28421 PR rtl-optimization/69291
28422 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
28423 noce_operand_ok check.
28424
28425 2016-02-16 Tom de Vries <tom@codesourcery.com>
28426
28427 PR lto/67709
28428 * omp-low.c (simd_clone_create): Remove call to
28429 symtab->call_cgraph_insertion_hooks.
28430
28431 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28432
28433 PR tree-optimization/69802
28434 * tree-ssa-reassoc.c (update_range_test): If op is
28435 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
28436 op == 1 test of precision 1 integral op, otherwise handle
28437 that case as op itself. Fix up formatting.
28438 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
28439 up formatting.
28440
28441 2016-02-16 Richard Biener <rguenther@suse.de>
28442
28443 PR tree-optimization/69586
28444 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
28445 types for conversion sources.
28446
28447 2016-02-16 Richard Biener <rguenther@suse.de>
28448
28449 PR middle-end/69801
28450 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
28451 mask OEP_ADDRESS_OF.
28452
28453 2016-02-16 Alan Modra <amodra@gmail.com>
28454
28455 PR target/68973
28456 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
28457 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28458 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
28459 (p8_mtvsrwz): New.
28460 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
28461 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
28462 (p8_fmrgow_<mode>): Likewise.
28463 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
28464 changes.
28465 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
28466 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
28467 to use movdi_internal64. Remove op0_di.
28468 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
28469
28470 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
28471
28472 Add support for the FCCMP insn types
28473
28474 * config/aarch64/aarch64.md (fccmp): Change insn type.
28475 (fccmpe): Likewise.
28476 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
28477 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
28478 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
28479 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
28480 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
28481 * config/arm/types.md (fccmps): Add new insn type.
28482 (fccmpd): Likewise.
28483
28484 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
28485
28486 * alias.c (get_alias_set): Fix a typo in comment.
28487
28488 2016-02-15 Richard Biener <rguenther@suse.de>
28489
28490 PR tree-optimization/69595
28491 * match.pd: Complete range test simplification to true.
28492
28493 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
28494
28495 PR rtl-optimization/69648
28496 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
28497 pic_offset_table_rtx.
28498
28499 PR rtl-optimization/69752
28500 * ira.c (update_equiv_regs): When looking for more than a single SET,
28501 also take other side effects into account.
28502
28503 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28504
28505 * config/s390/s390.c (s390_function_profiler): Add a new sequence
28506 for z900+ CPUs in 31-bit mode.
28507
28508 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28509
28510 * common/config/s390/s390-common.c (s390_supports_split_stack):
28511 New function.
28512 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
28513 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
28514 * config/s390/s390.c (struct machine_function): New field
28515 split_stack_varargs_pointer.
28516 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
28517 in s390_emit_prologue.
28518 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
28519 vararg pointer.
28520 (morestack_ref): New global.
28521 (SPLIT_STACK_AVAILABLE): New macro.
28522 (s390_expand_split_stack_prologue): New function.
28523 (s390_live_on_entry): New function.
28524 (s390_va_start): Use split-stack vararg pointer if appropriate.
28525 (s390_asm_file_end): Emit the split-stack note sections.
28526 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
28527 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
28528 (UNSPECV_SPLIT_STACK_CALL): New unspec.
28529 (UNSPECV_SPLIT_STACK_DATA): New unspec.
28530 (split_stack_prologue): New expand.
28531 (split_stack_space_check): New expand.
28532 (split_stack_data): New insn.
28533 (split_stack_call): New expand.
28534 (split_stack_call_*): New insn.
28535 (split_stack_cond_call): New expand.
28536 (split_stack_cond_call_*): New insn.
28537
28538 2016-02-15 Richard Biener <rguenther@suse.de>
28539
28540 PR tree-optimization/69783
28541 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28542 Add trivially correct cases.
28543
28544 2016-02-15 Tom de Vries <tom@codesourcery.com>
28545
28546 PR lto/69655
28547 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
28548 do_force_output.
28549 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
28550
28551 2016-02-15 Richard Biener <rguenther@suse.de>
28552
28553 PR tree-optimization/69776
28554 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
28555 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
28556 indicate whether we can use TBAA to disambiguate against stores.
28557 Use alias-set zero if not.
28558 (visit_reference_op_store): Do not use TBAA when looking up
28559 redundant stores.
28560 * tree-ssa-pre.c (compute_avail): Use TBAA here.
28561 (eliminate_dom_walker::before_dom_children): But not when looking
28562 up redundant stores.
28563
28564 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
28565
28566 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
28567
28568 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28569
28570 * config/i386/znver1.md
28571 (znver1_pop, znver1_pop_mem,
28572 znver1_load_imov_double_store,
28573 znver1_load_imov_direct_store,
28574 znver1_load_imov_direct_load,
28575 znver1_load_imov_double_load): Add new.
28576 (znver1_insn, znver1_insn_load): Add icmov type.
28577 (znver1_sseavx_fma,
28578 znver1_sseavx_fma_load,
28579 znver1_avx256_fma,
28580 znver1_avx256_fma_load): Fix pipe usage.
28581
28582 2016-02-14 Alan Modra <amodra@gmail.com>
28583
28584 PR target/68973
28585 * reload.c (find_reloads_address_1): For pre/post-inc/dec
28586 with an invalid hard reg, reload just the reg not the entire
28587 pre/post-inc/dec address expression.
28588
28589 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28590
28591 PR target/67260
28592 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
28593 fixed R1_REG scratch reg.
28594 (sibcall_value_pcrel_fdpic): Likewise.
28595
28596 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28597
28598 PR target/67636
28599 PR target/64345
28600 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
28601
28602 2016-02-12 Walter Lee <walt@tilera.com>
28603
28604 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
28605 * config/tilegx/t-tilegx: Likewise.
28606
28607 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28608
28609 PR other/69554
28610 * diagnostic-show-locus.c (struct line_span): New struct.
28611 (layout::get_first_line): Delete.
28612 (layout::get_last_line): Delete.
28613 (layout::get_num_line_spans): New member function.
28614 (layout::get_line_span): Likewise.
28615 (layout::print_heading_for_line_span_index_p): Likewise.
28616 (layout::get_expanded_location): Likewise.
28617 (layout::calculate_line_spans): Likewise.
28618 (layout::m_first_line): Delete.
28619 (layout::m_last_line): Delete.
28620 (layout::m_line_spans): New field.
28621 (layout::layout): Update comment. Replace m_first_line and
28622 m_last_line with m_line_spans, replacing their initialization
28623 with a call to calculate_line_spans.
28624 (diagnostic_show_locus): When printing source lines and
28625 annotations, rather than looping over a single span
28626 of lines, instead loop over each line_span within
28627 the layout, with an inner loop over the lines within them.
28628 Call the context's start_span callback when changing line spans.
28629 * diagnostic.c (diagnostic_initialize): Initialize start_span.
28630 (diagnostic_build_prefix): Break out the building of the location
28631 part of the string into...
28632 (diagnostic_get_location_text): ...this new function, rewriting
28633 it from nested ternary expressions to a sequence of "if"
28634 statements.
28635 (default_diagnostic_start_span_fn): New function.
28636 * diagnostic.h (diagnostic_start_span_fn): New typedef.
28637 (diagnostic_context::start_span): New field.
28638 (default_diagnostic_start_span_fn): New prototype.
28639
28640 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28641
28642 PR driver/69779
28643 * gcc.c (driver::finalize): Fix cleanup of "specs".
28644
28645 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28646
28647 PR driver/69265
28648 PR driver/69453
28649 * gcc.c (driver::driver): Initialize m_option_suggestions.
28650 (driver::~driver): Clean up m_option_suggestions.
28651 (suggest_option): Convert to...
28652 (driver::suggest_option): ...this, and split out into
28653 driver::build_option_suggestions and find_closest_string.
28654 (driver::build_option_suggestions): New function, from
28655 first half of suggest_option. Special-case
28656 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
28657 the sanitizer_opts array. For options of enum types, add the
28658 various enum values to the candidate strings.
28659 (driver::handle_unrecognized_options): Remove "const".
28660 * gcc.h (driver::handle_unrecognized_options): Likewise.
28661 (driver::build_option_suggestions): New decl.
28662 (driver::suggest_option): New decl.
28663 (driver::m_option_suggestions): New field.
28664 * opts-common.c (add_misspelling_candidates): New function.
28665 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
28666 and make non-static.
28667 * opts.h (sanitizer_opts): New array decl.
28668 (add_misspelling_candidates): New function decl.
28669 * spellcheck.c (find_closest_string): New function.
28670 * spellcheck.h (find_closest_string): New function decl.
28671
28672 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28673
28674 PR rtl-optimization/69764
28675 PR rtl-optimization/69771
28676 * optabs.c (expand_binop_directly): For shift_optab_p, force
28677 convert_modes with VOIDmode if xop1 has VOIDmode.
28678
28679 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
28680
28681 PR target/69729
28682 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
28683 to correctly determine instrumentation thunks.
28684
28685 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28686
28687 PR ipa/69241
28688 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
28689 type by reference, force lhs on the call.
28690
28691 PR ipa/68672
28692 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
28693 Compute retval and retbnd early in all cases if split_part_return_p
28694 and return_bb is not EXIT. Remove all clobber stmts and reset
28695 all debug stmts that refer to SSA_NAMEs defined in split part,
28696 except if it is retval, in that case replace the old retval with the
28697 lhs of the call to the split part.
28698
28699 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28700
28701 revert:
28702 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28703
28704 PR middle-end/66726
28705 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28706 whose result is used in PHI.
28707 (maybe_optimize_range_tests): Likewise.
28708 (final_range_test_p): Likweise.
28709
28710 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28711
28712 PR middle-end/66726
28713 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28714 whose result is used in PHI.
28715 (maybe_optimize_range_tests): Likewise.
28716 (final_range_test_p): Likweise.
28717
28718 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28719
28720 * cgraph.c: Spelling fixes - behaviour -> behavior and
28721 neighbour -> neighbor.
28722 * target.def: Likewise.
28723 * sel-sched.c: Likewise.
28724 * config/mips/mips.c: Likewise.
28725 * config/arc/arc.md: Likewise.
28726 * config/arm/cortex-a57.md: Likewise.
28727 * config/arm/arm.c: Likewise.
28728 * config/arm/neon.md: Likewise.
28729 * config/arm/arm-c.c: Likewise.
28730 * config/vms/vms-c.c: Likewise.
28731 * config/s390/s390.c: Likewise.
28732 * config/i386/znver1.md: Likewise.
28733 * config/i386/i386.c: Likewise.
28734 * config/ia64/hpux-unix2003.h: Likewise.
28735 * config/msp430/msp430.md: Likewise.
28736 * config/rx/rx.c: Likewise.
28737 * config/rx/rx.md: Likewise.
28738 * config/aarch64/aarch64-simd.md: Likewise.
28739 * config/aarch64/aarch64.c: Likewise.
28740 * config/nvptx/nvptx.c: Likewise.
28741 * config/bfin/bfin.c: Likewise.
28742 * config/cris/cris.opt: Likewise.
28743 * config/rs6000/rs6000.c: Likewise.
28744 * target.h: Likewise.
28745 * spellcheck.c: Likewise.
28746 * ira-build.c: Likewise.
28747 * tree-inline.c: Likewise.
28748 * builtins.c: Likewise.
28749 * lra-constraints.c: Likewise.
28750 * explow.c: Likewise.
28751 * hwint.h: Likewise.
28752 * targhooks.c: Likewise.
28753 * tree-vect-data-refs.c: Likewise.
28754 * expr.c: Likewise.
28755 * doc/tm.texi: Likewise.
28756 * doc/extend.texi: Likewise.
28757 * doc/install.texi: Likewise.
28758 * doc/md.texi: Likewise.
28759 * tree-ssa-tail-merge.c: Likewise.
28760 * sched-int.h: Likewise.
28761 * match.pd: Likewise.
28762 * sched-ebb.c: Likewise.
28763 * target.def (omit_struct_return_reg): Likewise.
28764 * gimple-ssa-isolate-paths.c: Likewise.
28765 (find_implicit_erroneous_behaviour): Renamed to...
28766 (find_implicit_erroneous_behavior): ... this.
28767 (find_explicit_erroneous_behaviour): Renamed to...
28768 (find_explicit_erroneous_behavior): ... this.
28769 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28770
28771 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
28772
28773 PR rtl-optimization/64682
28774 PR rtl-optimization/69567
28775 PR rtl-optimization/69737
28776 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28777 in I2 as well, just lose it.
28778
28779 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28780
28781 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28782 New variable.
28783 (aarch64_last_printed_tune_string): Likewise.
28784 (aarch64_declare_function_name): Only output .arch assembler
28785 directive if it will be different from the previously output
28786 directive. Same for .tune comment but only if -dA is set.
28787 (aarch64_start_file): New function.
28788 (TARGET_ASM_FILE_START): Define.
28789
28790 2016-02-11 David Malcolm <dmalcolm@redhat.com>
28791
28792 PR plugins/69758
28793 * Makefile.in (PLUGIN_HEADERS): Add params.list.
28794
28795 2016-02-11 Jakub Jelinek <jakub@redhat.com>
28796
28797 PR target/65313
28798 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28799 -Wmaybe-uninitialized warning.
28800
28801 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
28802
28803 PR target/69713
28804 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28805
28806 2016-02-11 Richard Biener <rguenther@suse.de>
28807
28808 PR rtl-optimization/69291
28809 * ifcvt.c (noce_try_store_flag_constants): Do not allow
28810 subexpressions affected by changing the result.
28811
28812 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
28813
28814 PR target/69148
28815 * lra-constraints.c (curr_insn_transform): Find in/out operands
28816 for secondary memory moves. Update dups.
28817
28818 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
28819
28820 PR tree-optimization/69652
28821 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28822 to nested loop, did source re-formatting, skip debug statements,
28823 add check on statement with volatile operand, remove dead scalar
28824 statements.
28825
28826 2016-02-10 Jakub Jelinek <jakub@redhat.com>
28827 Patrick Palka <ppalka@gcc.gnu.org>
28828
28829 PR ipa/69241
28830 PR c++/69649
28831 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28832 calls if the return type is TREE_ADDRESSABLE.
28833 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28834 * ipa-split.c (split_function): Fix doubled "we" in comment.
28835 Use void return type for the split part even if
28836 !split_point->split_part_set_retval.
28837
28838 2016-02-10 Bin Cheng <bin.cheng@arm.com>
28839
28840 PR tree-optimization/68021
28841 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28842 when computing the value of biv cand by itself.
28843
28844 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28845
28846 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28847 (cortexa57_tunings): Likewise.
28848 (cortexa72_tunings): Likewise.
28849 (arch_macro_fusion_pair_p): Add support for AES fusion.
28850 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28851 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28852 Allow virtual registers before reload so early scheduling works.
28853 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28854 correct latency and pipeline.
28855 (cortex_a57_crypto_complex): Likewise.
28856 (cortex_a57_crypto_xor): Likewise.
28857 (define_bypass): Add AES bypass.
28858
28859 2016-02-10 Richard Biener <rguenther@suse.de>
28860
28861 PR tree-optimization/69726
28862 * passes.def: Add DCE pass before late uninit.
28863 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28864 really fixup if-conversions job.
28865
28866 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28867
28868 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28869 (arm_cortex_a57_tune): Likewise.
28870 (aarch_macro_fusion_pair_p): Add support for AES fusion.
28871 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28872
28873 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
28874
28875 * timevar.def (TV_PHASE_DBGINFO): Delete.
28876 (TV_PHASE_CHECK_DBGINFO): Likewise.
28877 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28878
28879 2016-02-10 Richard Biener <rguenther@suse.de>
28880
28881 PR tree-optimization/69719
28882 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28883 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28884
28885 2016-02-09 Andrew Pinski <apinski@cavium.com>
28886
28887 PR tree-opt/69282
28888 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28889 get_vcond_mask_icode returns false.
28890
28891 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28892
28893 PR target/68404
28894 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28895 an ADDIS that adds a pointer to a large constant that sets the
28896 upper16 bits with a load operation.
28897
28898 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28899
28900 PR target/68532
28901 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28902 order.
28903 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28904 endian.
28905 (vzipq_s16): Likewise.
28906 (vzipq_s32): Likewise.
28907 (vzipq_f32): Likewise.
28908 (vzipq_u8): Likewise.
28909 (vzipq_u16): Likewise.
28910 (vzipq_u32): Likewise.
28911 (vzipq_p8): Likewise.
28912 (vzipq_p16): Likewise.
28913
28914 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28915
28916 PR target/68532
28917 * config/arm/arm.c (neon_endian_lane_map): New function.
28918 (neon_vector_pair_endian_lane_map): New function.
28919 (arm_evpc_neon_vuzp): Allow for big endian lane order.
28920 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28921 endian.
28922 (vuzpq_s16): Likewise.
28923 (vuzpq_s32): Likewise.
28924 (vuzpq_f32): Likewise.
28925 (vuzpq_u8): Likewise.
28926 (vuzpq_u16): Likewise.
28927 (vuzpq_u32): Likewise.
28928 (vuzpq_p8): Likewise.
28929 (vuzpq_p16): Likewise.
28930
28931 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
28932
28933 PR target/69634
28934 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28935 debug insns.
28936
28937 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
28938
28939 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28940 truncate const_int operand 1 to QImode.
28941
28942 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
28943
28944 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28945 corresponding to an abnormal edge.
28946
28947 2016-02-09 Tom de Vries <tom@codesourcery.com>
28948
28949 PR tree-optimization/69599
28950 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28951 function.
28952 (find_func_aliases_for_builtin_call, find_func_clobbers)
28953 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
28954 partition.
28955
28956 2016-02-09 Richard Biener <rguenther@suse.de>
28957
28958 PR tree-optimization/69715
28959 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28960 LHS on calls as non-rewritable.
28961
28962 2016-02-09 Tom de Vries <tom@codesourcery.com>
28963
28964 PR lto/69707
28965 * lto-wrapper.c (append_diag_options): New function.
28966 (compile_offload_image): Call append_diag_options.
28967
28968 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
28969
28970 PR other/69722
28971 * doc/extend.texi (Flag Output Operands): Correct sectioning.
28972 Minor copy-edit to fix verb tenses.
28973
28974 2016-02-08 Jakub Jelinek <jakub@redhat.com>
28975
28976 PR tree-optimization/69209
28977 * ipa-split.c (split_function): If split part is not
28978 returning retval, retval has gimple type but is not
28979 gimple value, force it into a SSA_NAME first.
28980
28981 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
28982
28983 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28984 outdated section.
28985
28986 2016-02-08 Jason Merrill <jason@redhat.com>
28987
28988 PR c++/69631
28989 * convert.c (convert_to_integer_1): Check dofold on truncation
28990 distribution.
28991 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28992 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28993 Rename from *_nofold.
28994 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28995 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28996
28997 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
28998
28999 PR target/60410
29000 * tree.c (build_common_tree_nodes): Remove short_double argument.
29001 All callers changed.
29002 * tree.h (build_common_tree_nodes): Adjust declaration.
29003 * doc/invoke.texi (-fshort-double): Remove documentation.
29004 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
29005 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
29006 * lto-wrapper.c (merge_and_complain, append_compiler_options)
29007 (append_linker_options): Don't handle OPT_fshort_double.
29008
29009 PR rtl-optimization/68730
29010 * lra-remat.c (insn_to_cand_activation): New static variable.
29011 (lra_remat): Allocate and free it.
29012 (create_cand): New arg activation. Initialize a field in
29013 insn_to_cand_activation if it is nonnull.
29014 (create_cands): Pass the activation insn to create_cand when making
29015 a candidate involving an output reload. Reorganize code a little.
29016 (do_remat): Keep track of active status of candidates in a separate
29017 bitmap.
29018
29019 2016-02-08 Richard Biener <rguenther@suse.de>
29020
29021 PR tree-optimization/69719
29022 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29023 Properly use absolute of the difference of the two offsets to
29024 compare or adjust the segment length.
29025
29026 2016-02-08 Richard Biener <rguenther@suse.de>
29027 Jeff Law <law@redhat.com>
29028
29029 PR target/68273
29030 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
29031 types for anonymous SSA names.
29032
29033 2016-02-08 Richard Biener <rguenther@suse.de>
29034
29035 PR rtl-optimization/69274
29036 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
29037
29038 2016-02-08 Jeff Law <law@redhat.com>
29039
29040 PR tree-optimization/65917
29041 * tree-ssa-dom.c (record_temporary_equivalences): Record both
29042 equivalences from if (x == y) style conditionals.
29043 (loop_depth_of_name): Remove.
29044 (record_equality): Remove loop depth check.
29045 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
29046 (const_and_copies::record_const_or_copy_raw): New member function.
29047 * tree-ssa-scopedtables.c
29048 (const_and_copies::record_const_or_copy_raw): New, factored out of
29049 (const_and_copies::record_const_or_copy): Call new member function.
29050
29051 2016-02-05 Jeff Law <law@redhat.com>
29052
29053 PR tree-optimization/68541
29054 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
29055 (count_stmts_in_block): New function.
29056 (poor_ifcvt_candidate_code): Likewise.
29057 (is_feasible_trace): Add some heuristics to determine when path
29058 splitting is profitable.
29059 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
29060 is a diamond with a single exit.
29061
29062 2016-02-05 Martin Sebor <msebor@redhat.com>
29063
29064 PR c++/69662
29065 * doc/invoke.texi: Update -Wplacement-new to take an optional
29066 argument.
29067
29068 2016-02-06 Richard Henderson <rth@redhat.com>
29069
29070 PR c/69643
29071 * tree.c (tree_nop_conversion_p): Do not strip casts into or
29072 out of non-standard address spaces.
29073
29074 2016-02-05 Jakub Jelinek <jakub@redhat.com>
29075
29076 PR rtl-optimization/69691
29077 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
29078
29079 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
29080
29081 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
29082 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
29083 (*ieee128_mfvsrd_64bit): Likewise.
29084 (*ieee128_mfvsrd_32bit): Likewise.
29085
29086 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
29087
29088 PR target/69369
29089 Revert r232560:
29090 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
29091
29092 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
29093 instrumented_version.
29094
29095 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
29096
29097 * doc/invoke.texi (Optimize Options): In table of --param options
29098 rename second occurrence of tracer-min-branch-ratio to
29099 tracer-min-branch-probability, rename
29100 tracer-min-branch-ratio-feedback to
29101 tracer-min-branch-probability-feedback and clarify description,
29102 rename sched-spec-state-edge-prob-cutoff to
29103 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
29104 to selsched-insns-to-rename, rename lto-minpartition to
29105 lto-min-partition, delete reorder-blocks-duplicate and
29106 reorder-blocks-duplicate-feedback.
29107
29108 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29109
29110 * config/s390/s390.c (s390_register_info_set_ranges): Remove
29111 superfluous loops.
29112
29113 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
29114
29115 * doc/extend.texi: S/390: Correct some typos.
29116
29117 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29118
29119 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
29120
29121 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29122
29123 PR target/69625
29124 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
29125 (s390_register_info_gprtofpr): Use new macros above.
29126 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
29127 its name.
29128 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
29129 its name. Adjust restore and save gpr ranges.
29130 (s390_register_info_set_ranges): New function.
29131 (s390_register_info): Use new macros above. Call
29132 s390_register_info_set_ranges.
29133 (s390_optimize_register_info): Likewise.
29134 (s390_hard_regno_rename_ok): Use new macros.
29135 (s390_hard_regno_scratch_ok): Likewise.
29136 (s390_emit_epilogue): Likewise.
29137 (s390_can_use_return_insn): Likewise.
29138 (s390_optimize_prologue): Likewise.
29139 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
29140
29141 2016-02-05 Jakub Jelinek <jakub@redhat.com>
29142
29143 PR bootstrap/69677
29144 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
29145 alignment fixes.
29146 (ix86_option_override_internal): Disable TARGET_STV even for
29147 -m{incoming,preferred}-stack-boundary=3.
29148
29149 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29150
29151 * config.gcc: Mark deprecated rtems targets as obsolete.
29152
29153 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
29154
29155 PR rtl-optimization/64682
29156 PR rtl-optimization/69567
29157 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
29158 before I2 only if the register is both used and set in I2.
29159
29160 2016-02-04 DJ Delorie <dj@redhat.com>
29161
29162 * config/msp430/msp430.c (msp430_start_function): Add function type.
29163
29164 2016-02-04 Jakub Jelinek <jakub@redhat.com>
29165
29166 PR fortran/69368
29167 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
29168
29169 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
29170
29171 PR rtl-optimization/69577
29172 Revert:
29173 2015-10-29 Richard Henderson <rth@redhat.com>
29174
29175 PR target/68124
29176 PR rtl-opt/67609
29177 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
29178 sse check to the exact conditions of PR 67609.
29179
29180 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
29181
29182 PR target/69667
29183 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
29184 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
29185 not allowed into the traditional Altivec registers.
29186 (movtd_64bit_nodm): Likewise.
29187 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
29188
29189 2016-02-04 David Malcolm <dmalcolm@redhat.com>
29190
29191 * config/aarch64/cortex-a57-fma-steering.c
29192 (aarch64_register_fma_steering): Remove "static" from arguments
29193 to register_pass.
29194
29195 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
29196
29197 PR target/69619
29198 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
29199 twice when complex.
29200
29201 2016-02-04 Mike Frysinger <vapier@gentoo.org>
29202
29203 * doc/invoke.texi: Delete -mno-fma4.
29204
29205 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
29206
29207 PR rtl-optimization/69577
29208 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
29209 (find_subregs_of_mode): Update accordingly. Iterate over partial
29210 definitions.
29211
29212 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
29213
29214 * config/arm/arm-protos.h (neon_reinterpret): Remove.
29215 * config/arm/arm.c (neon_reinterpret): Remove.
29216 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
29217 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
29218 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
29219 vreinterpretti): Remove.
29220 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
29221 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
29222 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
29223 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
29224 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
29225 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
29226 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
29227 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
29228 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
29229 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
29230 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
29231 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
29232 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
29233 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
29234 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
29235 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
29236 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
29237 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
29238 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
29239 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
29240 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
29241 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
29242 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
29243 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
29244 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
29245 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
29246 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
29247 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
29248 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
29249 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
29250 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
29251 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
29252 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
29253 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
29254 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
29255 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
29256 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
29257 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
29258 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
29259 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
29260 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
29261 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
29262 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
29263 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
29264 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
29265 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
29266 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
29267 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
29268 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
29269 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
29270 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
29271 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
29272 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
29273 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
29274 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
29275 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
29276 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
29277 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
29278 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
29279 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
29280 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
29281 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
29282 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
29283 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
29284 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
29285 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
29286 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
29287 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
29288 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
29289 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
29290 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
29291 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
29292 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
29293 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
29294 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
29295 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
29296 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
29297 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
29298 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
29299 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
29300 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
29301 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
29302 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
29303 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
29304 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
29305 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
29306 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
29307 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
29308 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
29309 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
29310 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
29311 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
29312 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
29313 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
29314 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
29315 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
29316 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
29317 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
29318 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
29319 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
29320 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
29321 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
29322 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
29323
29324 2016-02-04 Martin Liska <mliska@suse.cz>
29325
29326 PR sanitizer/69276
29327 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
29328 that are gimple_store_p.
29329 (maybe_instrument_call): Likewise.
29330
29331 2016-02-04 Bin Cheng <bin.cheng@arm.com>
29332
29333 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
29334 register scaling out of memory reference and comment why.
29335
29336 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29337
29338 PR target/65932
29339 PR target/67714
29340 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
29341 folding the source of a SET.
29342
29343 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29344
29345 PR target/65932
29346 PR target/67714
29347 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
29348 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
29349
29350 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
29351
29352 PR target/65932
29353 PR target/67714
29354 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
29355 HImode.
29356
29357 2016-02-04 Christian Bruel <christian.bruel@st.com>
29358
29359 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
29360 * config/arm/arm.c (arm_set_current_function): Likewise.
29361
29362 2016-02-04 Jakub Jelinek <jakub@redhat.com>
29363 Ilya Enkovich <enkovich.gnu@gmail.com>
29364 H.J. Lu <hongjiu.lu@intel.com>
29365
29366 PR target/69454
29367 * config/i386/i386.c (convert_scalars_to_vector): Remove
29368 stack alignment fixes.
29369 (ix86_option_override_internal): Disable TARGET_STV if stack
29370 might not be aligned enough.
29371 (ix86_minimum_alignment): Assert that TARGET_STV is false.
29372
29373 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
29374
29375 * config/i386/x86-tune.def: Disable default prefetching
29376 for -march=znver1.
29377
29378 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29379 Vladimir Makarov <vmakarov@redhat.com>
29380
29381 PR target/69461
29382 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
29383 in validating fused toc addresses.
29384
29385 2016-02-03 Jakub Jelinek <jakub@redhat.com>
29386
29387 PR c/69627
29388 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
29389 range->m_caret fields if range->m_show_caret_p is false.
29390
29391 PR target/69644
29392 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29393 Force oldval into register if it does not satisfy reg_or_short_operand
29394 predicate. Fix up formatting.
29395
29396 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
29397 Alexandre Oliva <aoliva@redhat.com>
29398
29399 PR target/69461
29400 * lra-constraints.c (simplify_operand_subreg): Check additionally
29401 address validity after potential reloading.
29402 (process_address_1): Check insns validity. In case of failure do
29403 nothing.
29404
29405 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
29406
29407 PR target/69118
29408 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
29409 Fix target.
29410
29411 2016-02-02 Jakub Jelinek <jakub@redhat.com>
29412
29413 * wide-int.cc (canonize_uhwi): New function.
29414 (wi::divmod_internal): Use it.
29415
29416 2016-02-02 James Norris <jnorris@codesourcery.com>
29417
29418 * gimplify.c (omp_notice_variable): Add usage check.
29419
29420 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
29421
29422 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
29423 like LE, GE, LT, GT when emitting relational operator.
29424
29425 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29426
29427 * ira-costs.c (find_costs_and_classes): Add extra argument.
29428 * target.def (ira_change_pseudo_allocno_class): Add parameter.
29429 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
29430 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
29431 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
29432 Add best_class parameter, and return it if not ALL_REGS.
29433 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
29434 Add parameter.
29435 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
29436 Update target hook.
29437
29438 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29439
29440 * config/aarch64/aarch64.c
29441 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
29442 (aarch64_ira_change_pseudo_allocno_class): New function.
29443
29444 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
29445
29446 PR target/67032
29447 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
29448
29449 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29450
29451 * config/avr/avr.c (avr_option_override): Set
29452 PARAM_ALLOW_STORE_DATA_RACES to 1.
29453
29454 2016-02-02 Richard Biener <rguenther@suse.de>
29455
29456 PR tree-optimization/69595
29457 * match.pd: Add range test simplifications to true/false.
29458
29459 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
29460
29461 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
29462 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
29463 instead.
29464
29465 2016-02-02 Richard Biener <rguenther@suse.de>
29466
29467 PR tree-optimization/69606
29468 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
29469 info on the result before moving a stmt.
29470
29471 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
29472
29473 PR middle-end/68542
29474 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
29475 branch with vector comparison.
29476 * config/i386/sse.md (VI48_AVX): New mode iterator.
29477 (define_expand "cbranch<mode>4): Add support for conditional branch
29478 with vector comparison.
29479 * tree-vect-loop.c (optimize_mask_stores): New function.
29480 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
29481 has_mask_store field of vect_info.
29482 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
29483 vectorized loops having masked stores after vec_info destroy.
29484 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
29485 correspondent macros.
29486 (optimize_mask_stores): Add prototype.
29487
29488 2016-02-02 Alan Modra <amodra@gmail.com>
29489
29490 PR target/69548
29491 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
29492 allow subregs.
29493
29494 2016-02-02 Alan Modra <amodra@gmail.com>
29495
29496 PR target/68662
29497 * config/rs6000/rs6000.c (need_toc_init): New var, set it
29498 whenever toc_label_name used.
29499 (rs6000_file_start): Don't set up toc section here,
29500 (rs6000_output_function_epilogue): do so here instead,
29501 (rs6000_xcoff_file_start): and here.
29502 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
29503 (load_toc_aix_di): Likewise.
29504
29505 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29506
29507 PR rtl-optimization/69592
29508 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
29509 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
29510 (num_sign_bit_copies_binary_arith_p): New inline function.
29511 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
29512
29513 2016-02-01 Jeff Law <law@redhat.com>
29514
29515 PR tree-optimization/69580
29516 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
29517 * tree-ssa-threadbackward.c
29518 (fsm_find_control_statement_thread_paths): Do not try to walk
29519 through large PHI nodes.
29520
29521 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29522
29523 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
29524 when count is incremented above limit, don't analyze further
29525 insns afterwards.
29526
29527 * omp-low.c (oacc_parse_default_dims): Avoid
29528 -Wsign-compare warning, make sure value fits into int
29529 rather than just unsigned int.
29530
29531 2016-02-01 Bin Cheng <bin.cheng@arm.com>
29532
29533 PR tree-optimization/67921
29534 * fold-const.c (split_tree): New parameters. Convert pointer
29535 type variable part to proper type before negating.
29536 (fold_binary_loc): Pass new arguments to split_tree.
29537
29538 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
29539
29540 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
29541 (nvptx_goacc_validate_dims): Extend to handle global defaults.
29542 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
29543 * doc/tm.texti: Rebuilt.
29544 * doc/invoke.texi (fopenacc-dim): Document.
29545 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
29546 (append_compiler_options): Likewise.
29547 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
29548 (oacc_parse_default_dims): New.
29549 (oacc_validate_dims): Add USED arg. Select non-unity default when
29550 possible.
29551 (oacc_loop_fixed_partitions): Return mask of used partitions.
29552 (oacc_loop_auto_partitions): Emit dump info.
29553 (oacc_loop_partition): Return mask of used partitions.
29554 (execute_oacc_device_lower): Parse default dimension arg. Adjust
29555 loop partitioning and validation calls.
29556
29557 2016-02-01 Richard Biener <rguenther@suse.de>
29558
29559 PR middle-end/69556
29560 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
29561
29562 2016-02-01 Richard Biener <rguenther@suse.de>
29563
29564 PR tree-optimization/69574
29565 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
29566 of asserting return chrec_dont_know.
29567
29568 2016-02-01 Martin Liska <mliska@suse.cz>
29569
29570 * mem-stats-traits.h: Add copyright header.
29571 * mem-stats.h: Likewise.
29572
29573 2016-02-01 Richard Biener <rguenther@suse.de>
29574
29575 PR tree-optimization/69579
29576 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
29577 Do not propagate through abnormal PHI results.
29578
29579 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
29580
29581 * postreload.c (reload_cse_simplify): Remove dead code.
29582
29583 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29584
29585 PR rtl-optimization/69570
29586 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
29587 if there is more than one set, not if there is a single set.
29588
29589 2016-02-01 Richard Henderson <rth@redhat.com>
29590
29591 PR rtl-opt/69535
29592 * combine.c (make_compound_operation): When looking through a
29593 subreg, make sure to re-extend to the width of the outer mode.
29594
29595 2016-01-30 Jakub Jelinek <jakub@redhat.com>
29596
29597 PR tree-optimization/69546
29598 * wide-int.cc (wi::divmod_internal): For unsigned division
29599 where both operands fit into uhwi, if o1 is 1 and o0 has
29600 msb set, if divident_prec is larger than bits per hwi,
29601 clear another quotient word and return 2 instead of 1.
29602 Similarly for remainder with msb in HWI set, if dividend_prec
29603 is larger than bits per hwi.
29604
29605 2016-01-29 Martin Jambor <mjambor@suse.cz>
29606
29607 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
29608 Use short lowercase names.
29609 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
29610 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
29611 acq_rel one. Protect warning agains segfaults if
29612 get_memory_order_name returns NULL.
29613 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
29614 with release semantics. Do not warn if get_memory_order already did.
29615 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
29616 semantics. Fix check for relaxed or acquire semantics. Do not warn
29617 if get_memory_order already did.
29618
29619 2016-01-29 Sebastian Pop <s.pop@samsung.com>
29620
29621 * doc/install.texi: Document that isl-0.16 is supported.
29622
29623 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
29624
29625 PR target/69299
29626 * config/i386/constraints.md (Bm): Describe as special memory
29627 constraint.
29628 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
29629 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29630 * genpreds.c (struct constraint_data): Add is_special_memory.
29631 (have_special_memory_constraints, special_memory_start): New
29632 static vars.
29633 (special_memory_end): Ditto.
29634 (add_constraint): Add new arg is_special_memory. Add code to
29635 process its true value. Update have_special_memory_constraints.
29636 (process_define_constraint): Pass the new arg.
29637 (process_define_register_constraint): Ditto.
29638 (choose_enum_order): Process special memory.
29639 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
29640 function insn_extra_special_memory_constraint.
29641 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29642 * gensupport.c (process_rtx): Process
29643 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29644 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
29645 * ira-lives.c (single_reg_class): Use
29646 insn_extra_special_memory_constraint.
29647 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
29648 * lra-constraints.c (process_alt_operands): Ditto.
29649 (curr_insn_transform): Use insn_extra_special_memory_constraint.
29650 * recog.c (asm_operand_ok, preprocess_constraints): Process
29651 CT_SPECIAL_MEMORY.
29652 * reload.c (find_reloads): Ditto.
29653 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
29654 * stmt.c (parse_input_constraint): Use
29655 insn_extra_special_memory_constraint.
29656
29657 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29658
29659 PR target/69530
29660 * lra-splill.c (lra_final_code_change): Revert r229087 by
29661 removing all sub-registers.
29662
29663 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
29664
29665 PR target/65604
29666 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
29667
29668 2016-01-29 Jakub Jelinek <jakub@redhat.com>
29669
29670 PR target/69551
29671 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
29672 SSE1, copy target into the temporary reg first before recursing
29673 on it.
29674
29675 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29676
29677 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
29678 with vm.
29679
29680 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29681
29682 * ginclude/stdarg.h: Test __cplusplus instead of
29683 __GXX_EXPERIMENTAL_CXX0X__.
29684
29685 2016-01-29 Richard Biener <rguenther@suse.de>
29686
29687 PR tree-optimization/69547
29688 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
29689 Do not mark clobbers necessary.
29690 (mark_all_reaching_defs_necessary_1): Likewise.
29691
29692 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29693
29694 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
29695 declaration name with %qs and print it in both error messages.
29696 Also fix indentation.
29697
29698 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29699
29700 PR other/69006
29701 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
29702 trailing blank line from error message.
29703
29704 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29705
29706 PR c++/69462
29707 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
29708 for C++-11.
29709
29710 2016-01-29 Richard Biener <rguenther@suse.de>
29711
29712 PR middle-end/69537
29713 * match.pd: Allow all integral types when simplifying a
29714 widening or sign-changing conversion.
29715
29716 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29717
29718 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
29719 back to setting codegen_error to fail codegen.
29720
29721 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
29722
29723 PR target/69459
29724 * config/i386/constraints.md (C): Only accept constant zero operand.
29725 (BC): New constraint.
29726 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
29727 instead of C constraint.
29728 * doc/md.texi (Machine Constraints): Update description
29729 of C constraint.
29730
29731 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
29732
29733 PR target/68400
29734 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
29735
29736 2016-01-28 Jakub Jelinek <jakub@redhat.com>
29737
29738 PR middle-end/69542
29739 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
29740 non-debug insns.
29741
29742 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
29743
29744 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
29745 branches if using guessed profile.
29746
29747 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
29748
29749 * graphite-optimize-isl.c (optimize_isl): Fix dump.
29750
29751 2016-01-28 Richard Henderson <rth@redhat.com>
29752
29753 PR target/69305
29754 * config/aarch64/aarch64-modes.def (CC_Cmode): New
29755 * config/aarch64/aarch64-protos.h: Update.
29756 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
29757 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
29758 (aarch64_get_condition_code_1): Handle CC_Cmode.
29759 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
29760 (*add<mode>3_compareC_cconly_imm): New.
29761 (*add<mode>3_compareC_cconly): New.
29762 (*add<mode>3_compareC_imm): New.
29763 (add<mode>3_compareC): New.
29764 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
29765 to be first. Use aarch64_carry_operation.
29766 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
29767 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29768 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29769 (subti3): Use subdi3_compare1.
29770 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29771 (sub<mode>3_compare1): New.
29772 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29773 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29774 (*subsi3_carryin_uxtw): Likewise.
29775 (*ngc<mode>, *ngcsi_uxtw): Likewise.
29776 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29777 * config/aarch64/iterators.md (DWI): New.
29778 * config/aarch64/predicates.md (aarch64_carry_operation): New.
29779 (aarch64_borrow_operation): New.
29780
29781 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29782
29783 * graphite-optimize-isl.c (optimize_isl): Print a different debug
29784 message when isl does not return a valid schedule.
29785
29786 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29787
29788 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29789 Remove comments from class declarations: they are already in the code
29790 close by the defs.
29791
29792 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29793
29794 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29795 codegen_error_p.
29796 (ternary_op_to_tree): Same.
29797 (unary_op_to_tree): Same.
29798 (nary_op_to_tree): Same.
29799 (gcc_expression_from_isl_expr_op): Same.
29800 (gcc_expression_from_isl_expression): Same.
29801 (graphite_create_new_loop): Same.
29802 (graphite_create_new_loop_guard): Same.
29803 (build_iv_mapping): Same.
29804 (graphite_create_new_guard): Same.
29805 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29806 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29807
29808 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29809
29810 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29811 instead of setting codegen_error to fail codegen.
29812
29813 2016-01-28 Jason Merrill <jason@redhat.com>
29814
29815 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29816
29817 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29818
29819 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29820 Remove CONST_INT_P check in CCMP cost calculation.
29821
29822 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29823
29824 * config/aarch64/aarch64.c (generic_vector_cost):
29825 Set vec_permute_cost.
29826 (cortexa57_vector_cost): Likewise.
29827 (exynosm1_vector_cost): Likewise.
29828 (xgene1_vector_cost): Likewise.
29829 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29830 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29831 Add vec_permute_cost entry.
29832
29833 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29834
29835 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29836 immediate as %1.
29837 (add<mode>3_compare0): Likewise.
29838 (addsi3_compare0_uxtw): Likewise.
29839 (add<mode>3nr_compare0): Likewise.
29840 (compare_neg<mode>): Likewise.
29841 (<optab><mode>3): Likewise.
29842
29843 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
29844
29845 * tree-vect-stmts.c (vectorizable_comparison): Add
29846 NULL check for vectype.
29847
29848 2016-01-28 Richard Biener <rguenther@suse.de>
29849
29850 PR tree-optimization/69466
29851 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29852 Account for PHIs we couldn't duplicate.
29853
29854 2016-01-28 Martin Liska <mliska@suse.cz>
29855
29856 PR pch/68758
29857 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29858 instead of ENABLE_VALGRIND_CHECKING.
29859
29860 2016-01-27 Richard Henderson <rth@redhat.com>
29861
29862 PR rtl-opt/69447
29863 * lra-remat.c (subreg_regs): New.
29864 (dump_candidates_and_remat_bb_data): Dump it.
29865 (operand_to_remat): Reject if operand in subreg_regs.
29866 (set_bb_regs): Collect subreg_regs.
29867 (lra_remat): Init and free subreg_regs. Compute
29868 calculate_local_reg_remat_bb_data before create_cands.
29869
29870 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
29871
29872 PR target/68986
29873 * config/i386/i386.c (ix86_update_stack_boundary): Don't
29874 change stack_alignment_needed for __tls_get_addr call.
29875
29876 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
29877
29878 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29879
29880 2016-01-27 Jeff Law <law@redhat.com>
29881
29882 PR tree-optimization/68398
29883 PR tree-optimization/69196
29884 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29885 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29886 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29887 Only count PHIs in the last block in the path. The others will
29888 const/copy propagate away. Add heuristic to allow more irreducible
29889 subloops to be created when it is likely profitable to do so.
29890
29891 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29892 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
29893 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
29894
29895 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29896
29897 PR lto/69254
29898 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29899 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29900 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29901 * tree-streamer-in.c: Include asan.h.
29902 (streamer_get_builtin_tree): For builtins in sanitizer
29903 range call initialize_sanitizer_builtins and retry.
29904
29905 2016-01-27 Ian Lance Taylor <iant@google.com>
29906
29907 * common.opt (fkeep-gc-roots-live): New undocumented option.
29908 * tree-ssa-loop-ivopts.c (add_candidate_1): If
29909 -fkeep-gc-roots-live, skip pointers.
29910 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29911 NULL.
29912
29913 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
29914
29915 PR target/69512
29916 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29917 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29918
29919 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
29920
29921 PR target/68380
29922 * configure.ac: NetBSD provides SSP in its C library.
29923 * configure: Updated.
29924
29925 2016-01-27 Richard Biener <rguenther@suse.de>
29926
29927 PR tree-optimization/69166
29928 * tree-vect-loop.c (vect_is_simple_reduction): Always check
29929 reduction code for commutativity / associativity.
29930
29931 2016-01-27 Martin Jambor <mjambor@suse.cz>
29932
29933 PR tree-optimization/69355
29934 * tree-sra.c (analyze_access_subtree): Correct hole detection when
29935 total_scalarization fails.
29936
29937 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
29938
29939 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29940 power9.
29941
29942 2016-01-27 Christian Bruel <christian.bruel@st.com>
29943
29944 PR target/69245
29945 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29946 Move arm_reset_previous_fndecl and set_target_option_current_node in
29947 the conditional part. Call save_restore_target_globals.
29948 * config/arm/arm.c (arm_set_current_function):
29949 Refactor to better support #pragma target and attribute mix.
29950 Call save_restore_target_globals.
29951 * config/arm/arm-protos.h (save_restore_target_globals): New function.
29952
29953 2016-01-27 Martin Liska <mliska@suse.cz>
29954
29955 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29956 reference for an HSA kernel and its host function.
29957
29958 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29959
29960 PR tree-optimization/69399
29961 * wide-int.h (wi::lrshift): For larger precisions, only
29962 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29963
29964 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
29965
29966 * config/arc/predicates.md (proper_comparison_operator): Reject
29967 constant-constant comparison.
29968
29969 2016-01-26 Tom de Vries <tom@codesourcery.com>
29970
29971 PR tree-optimization/69110
29972 * tree-data-ref.c (initialize_data_dependence_relation): Handle
29973 DR_NUM_DIMENSIONS == 0.
29974
29975 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29976 Sebastian Pop <s.pop@samsung.com>
29977
29978 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29979 isl_ast_op_cond and isl_ast_op_select.
29980 (gcc_expression_from_isl_expr_op): Same.
29981
29982 2016-01-26 Jason Merrill <jason@redhat.com>
29983
29984 PR c++/68782
29985 * tree.c (recompute_constructor_flags): Split out from
29986 build_constructor.
29987 (verify_constructor_flags): New.
29988 * tree.h: Declare them.
29989
29990 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
29991
29992 PR rtl-optimization/69217
29993 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29994 are no TYPE_FIELDS set for the record type.
29995
29996 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29997
29998 PR target/68662
29999 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
30000 toc_label_name unconditionally.
30001 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
30002 SYMBOL_REF string. Use toc_label_name instead of constructing
30003 LCTOC1.
30004 (rs6000_elf_declare_function_name): Use toc_label_name instead of
30005 constructing LCTOC1.
30006
30007 2016-01-26 Martin Sebor <msebor@redhat.com>
30008
30009 PR other/69477
30010 * doc/extend.texi (Common Type Attributes): Move text that talks about
30011 attribute packed from attribute aligned to the section discussing
30012 the former attribute for clarity.
30013
30014 2016-01-26 Richard Henderson <rth@redhat.com>
30015
30016 PR middle-end/60908
30017 * trans-mem.c (tm_region_init): Mark entry block as visited.
30018
30019 2016-01-26 David Malcolm <dmalcolm@redhat.com>
30020
30021 PR other/69006
30022 * diagnostic-show-locus.c (layout::print_source_line): Replace
30023 call to pp_newline with call to layout::print_newline.
30024 (layout::print_annotation_line): Likewise.
30025 (layout::move_to_column): Likewise.
30026 (layout::print_any_fixits): After printing any fixits, print a
30027 trailing newline, if necessary.
30028 (layout::print_newline): New method, resetting any colorization
30029 before a newline.
30030 (diagnostic_show_locus): Move the pp_newline to before the
30031 early bailout. Remove dummy block enclosing the layout instance.
30032 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
30033 of pp_newline_and_flush with pp_flush.
30034 (diagnostic_append_note): Delete use of pp_newline.
30035 (diagnostic_append_note_at_rich_loc): Delete.
30036 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
30037 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
30038 when newline characters are added to the buffer.
30039
30040 2016-01-26 Michael Matz <matz@suse.de>
30041
30042 * configure.ac (ac_cv_std_swap_in_utility): New test.
30043 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
30044 * configure: Regenerate.
30045 * config.in: Regenerate.
30046
30047 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
30048
30049 * config/arc/arc.md (cstoresi4): Force operand into register.
30050 (arcset<code>): Fix predicate.
30051 (arcsetltu): Likewise.
30052 (arcsetgeu): Likewise.
30053 (arcsethi): Likewise.
30054 (arcsetls): Likewise.
30055
30056 2016-01-26 Jakub Jelinek <jakub@redhat.com>
30057
30058 PR tree-optimization/69483
30059 * gimple-fold.c (canonicalize_constructor_val): Return NULL
30060 if base has error_mark_node type.
30061
30062 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
30063
30064 PR target/68620
30065 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
30066 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
30067 New helper macros.
30068 (vget_lane_f16): Handle big-endian.
30069 (vgetq_lane_f16): Likewise.
30070 (vset_lane_f16): Likewise.
30071 (vsetq_lane_f16): Likewise.
30072 * config/arm/iterators.md (VQXMOV): Add V8HF.
30073 (VDQ): Add V4HF and V8HF.
30074 (V_reg): Handle V4HF and V8HF.
30075 (Is_float_mode): Likewise.
30076 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
30077 neon_vdup_nv8hf): New patterns.
30078 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
30079 Use VD_LANE iterator.
30080 (neon_vld1_dup<mode>): Use VQ2 iterator.
30081
30082 2016-01-26 Nathan Sidwell <nathan@acm.org>
30083
30084 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
30085 (set_oacc_fn_attrib): Add IS_KERNEL arg.
30086 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
30087 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
30088 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
30089 (oacc_validate_dims): Add LEVEL arg, don't return level.
30090 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
30091 oacc_validate_dims.
30092 (execute_oacc_device_lower): Adjust, add more dump output.
30093 * tree-ssa-loop.c (gate_oacc_kernels): Use
30094 oacc_fn_attrib_kernels_p.
30095 * tree-parloops.c (create_parallel_loop): Adjust
30096 set_oacc_fn_attrib call.
30097
30098 2016-01-26 Jakub Jelinek <jakub@redhat.com>
30099
30100 PR lto/69254
30101 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
30102 (append_compiler_options): Handle -fcilkplus.
30103 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
30104
30105 2016-01-26 Nick Clifton <nickc@redhat.com>
30106
30107 PR target/66655
30108 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
30109 been marked as DECL_ONE_ONLY but we do not the means to make it
30110 so, then do not allow it to bind locally.
30111
30112 2016-01-26 Jakub Jelinek <jakub@redhat.com>
30113
30114 PR lto/69254
30115 * opts.h (parse_sanitizer_options): New prototype.
30116 * opts.c (sanitizer_opts): New array.
30117 (parse_sanitizer_options): New function.
30118 (common_handle_option): Use parse_sanitizer_options.
30119
30120 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
30121
30122 PR target/68986
30123 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
30124 alignment adjustment to ...
30125 (ix86_update_stack_boundary): Here. Don't over-align stack for
30126 __tls_get_addr.
30127 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
30128 if __tls_get_addr is called.
30129
30130 2016-01-26 Christian Bruel <christian.bruel@st.com>
30131
30132 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
30133
30134 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
30135
30136 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
30137
30138 2016-01-26 Richard Biener <rguenther@suse.de>
30139
30140 PR middle-end/69467
30141 * match.pd: Guard X * CST CMP 0 pattern with single_use.
30142
30143 2016-01-26 Richard Biener <rguenther@suse.de>
30144
30145 PR tree-optimization/69452
30146 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
30147 (move_computations_dom_walker::before_dom_children): Rename
30148 to ...
30149 (move_computations_worker): This.
30150 (move_computations): Perform an RPO rather than a DOM walk.
30151
30152 2016-01-26 Jakub Jelinek <jakub@redhat.com>
30153
30154 PR target/69442
30155 * combine.c (combine_instructions): For REG_EQUAL note with
30156 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
30157 to the underlying register.
30158 * doc/rtl.texi (REG_EQUAL): Document the behavior of
30159 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
30160
30161 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
30162
30163 PR target/67896
30164 * config/aarch64/aarch64-builtins.c
30165 (aarch64_init_simd_builtin_types): Do not set structural
30166 equality to __Poly{8,16,64,128}_t types.
30167
30168 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
30169
30170 PR tree-optimization/69400
30171 * wide-int.cc (wi_pack): Take the precision as argument and
30172 perform canonicalization here rather than in the callers.
30173 Use the main loop to handle all full-width HWIs. Add a
30174 zero HWI if in_len isn't a full result.
30175 (wi::divmod_internal): Update accordingly.
30176 (wi::mul_internal): Likewise. Simplify.
30177
30178 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
30179 Sebastian Pop <s.pop@samsung.com>
30180
30181 * graphite-poly.c (apply_poly_transforms): Simplify.
30182 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
30183 (print_isl_map): Same.
30184 (print_isl_union_map): Same.
30185 (print_isl_schedule): New.
30186 (debug_isl_schedule): New.
30187 * graphite-dependences.c (scop_get_reads): Do not call
30188 isl_union_map_add_map that is undocumented isl functionality.
30189 (scop_get_must_writes): Same.
30190 (scop_get_may_writes): Same.
30191 (scop_get_original_schedule): Remove.
30192 (scop_get_dependences): Do not call isl_union_map_compute_flow that
30193 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
30194 (compute_deps): Remove.
30195 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
30196 (debug_schedule_ast): New.
30197 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
30198 set_separate_option.
30199 (graphite_regenerate_ast_isl): Add dump.
30200 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
30201 from scop->transformed_schedule.
30202 (graphite_regenerate_ast_isl): Add more dump.
30203 * graphite-optimize-isl.c (optimize_isl): Set
30204 scop->transformed_schedule. Check whether schedules are equal.
30205 (apply_poly_transforms): Move here.
30206 * graphite-poly.c (apply_poly_transforms): ... from here.
30207 (free_poly_bb): Static.
30208 (free_scop): Static.
30209 (pbb_number_of_iterations_at_time): Remove.
30210 (print_isl_ast): New.
30211 (debug_isl_ast): New.
30212 (debug_scop_pbb): New.
30213 * graphite-scop-detection.c (print_edge): Move.
30214 (print_sese): Move.
30215 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
30216 (build_scop_scattering): Remove.
30217 (create_pw_aff_from_tree): Assert instead of bailing out.
30218 (add_condition_to_pbb): Remove unused code, do not fail.
30219 (add_conditions_to_domain): Same.
30220 (add_conditions_to_constraints): Remove.
30221 (build_scop_context): New.
30222 (add_iter_domain_dimension): New.
30223 (build_iteration_domains): Initialize pbb->iterators.
30224 Call add_conditions_to_domain.
30225 (nested_in): New.
30226 (loop_at): New.
30227 (index_outermost_in_loop): New.
30228 (index_pbb_in_loop): New.
30229 (outermost_pbb_in): New.
30230 (add_in_sequence): New.
30231 (add_outer_projection): New.
30232 (outer_projection_mupa): New.
30233 (add_loop_schedule): New.
30234 (build_schedule_pbb): New.
30235 (build_schedule_loop): New.
30236 (embed_in_surrounding_loops): New.
30237 (build_schedule_loop_nest): New.
30238 (build_original_schedule): New.
30239 (build_poly_scop): Call build_original_schedule.
30240 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
30241 (free_poly_dr): Remove.
30242 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
30243 (free_poly_bb): Remove.
30244 (debug_loop_vec): Remove.
30245 (print_isl_ast): Declare.
30246 (debug_isl_ast): Declare.
30247 (scop_do_interchange): Remove.
30248 (scop_do_strip_mine): Remove.
30249 (scop_do_block): Remove.
30250 (flatten_all_loops): Remove.
30251 (optimize_isl): Remove.
30252 (pbb_number_of_iterations_at_time): Remove.
30253 (debug_scop_pbb): Declare.
30254 (print_schedule_ast): Declare.
30255 (debug_schedule_ast): Declare.
30256 (struct scop): Remove schedule. Add original_schedule,
30257 transformed_schedule.
30258 (free_gimple_poly_bb): Remove.
30259 (print_generated_program): Remove.
30260 (debug_generated_program): Remove.
30261 (unify_scattering_dimensions): Remove.
30262 * sese.c (print_edge): ... here.
30263 (print_sese): ... here.
30264 (debug_edge): ... here.
30265 (debug_sese): ... here.
30266 * sese.h (print_edge): Declare.
30267 (print_sese): Declare.
30268 (dump_edge): Declare.
30269 (dump_sese): Declare.
30270
30271 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
30272 Sebastian Pop <s.pop@samsung.com>
30273
30274 * Makefile.in: Set ISLVER in site.exp.
30275
30276 2016-01-25 Jakub Jelinek <jakub@redhat.com>
30277
30278 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
30279 DECL_VALUE_EXPR of new_var even for the non-array case. Look
30280 through DECL_VALUE_EXPR for expansion.
30281
30282 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
30283
30284 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
30285 the frame info after reload completed.
30286
30287 2016-01-25 Jeff Law <law@redhat.com>
30288
30289 PR tree-optimization/69196
30290 PR tree-optimization/68398
30291 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
30292 tree-ssa-threadupdate.c.
30293 (determine_bb_domination_status): Prototype
30294 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
30295 (determine_bb_domination_status): No longer static.
30296 (valid_jump_thread_path): Remove code to detect characteristics
30297 of the jump thread path not associated with correctness.
30298 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
30299 Correct test for thread path length. Count PHIs for real operands as
30300 statements that need to be copied. Do not count ASSERT_EXPRs.
30301 Look at all the blocks in the thread path. Compute and selectively
30302 filter thread paths based on threading through the latch, threading
30303 a multiway branch or crossing a multiway branch.
30304
30305 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30306
30307 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
30308 decl with __attribute__ ((unused)) annotation.
30309
30310 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
30311
30312 PR target/69421
30313 * tree-vect-stmts.c (vectorizable_condition): Check vectype
30314 of operands is compatible with a statement vectype.
30315
30316 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
30317
30318 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
30319 improve wording for mixed storage order support.
30320
30321 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
30322
30323 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
30324 (vcvt_u64_f64): Likewise.
30325 (vcvta_s64_f64): Likewise.
30326 (vcvta_u64_f64): Likewise.
30327 (vcvtm_s64_f64): Likewise.
30328 (vcvtm_u64_f64): Likewise.
30329 (vcvtn_s64_f64): Likewise.
30330 (vcvtn_u64_f64): Likewise.
30331 (vcvtp_s64_f64): Likewise.
30332 (vcvtp_u64_f64): Likewise.
30333
30334 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
30335
30336 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
30337 (arc_init): Check validity mll64 option.
30338 (arc_save_restore): Use double load/store instruction.
30339 (arc_expand_movmem): Likewise.
30340 (arc_split_move): Don't split if we have double load/store
30341 instructions. Returns a boolean.
30342 (arc_process_double_reg_moves): Change function to return boolean
30343 instead of a sequence of instructions.
30344 (arc_dwarf_register_span): New function.
30345 * config/arc/arc-protos.h (arc_split_move): Change prototype.
30346 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
30347 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
30348 (*movdf_insn): Likewise.
30349 * config/arc/arc.opt (mll64): New option.
30350 * config/arc/predicates.md (even_register_operand): New predicate.
30351 * doc/invoke.texi (ARC Options): Add mll64 documentation.
30352
30353 2016-01-25 Richard Biener <rguenther@suse.de>
30354
30355 PR lto/69393
30356 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
30357 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
30358 DECL_NAMELESS.
30359 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
30360
30361 2016-01-25 Richard Biener <rguenther@suse.de>
30362
30363 PR tree-optimization/69376
30364 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
30365 flag.
30366 (VN_INFO_ANTI_RANGE_P): New inline.
30367 (VN_INFO_RANGE_TYPE): Likewise.
30368 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
30369 SSA_NAME_ANTI_RANGE_P.
30370 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
30371 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30372 Properly query VN_INFO_RANGE_TYPE.
30373
30374 2016-01-25 Nick Clifton <nickc@redhat.com>
30375
30376 PR target/66655
30377 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
30378
30379 2016-01-23 Tom de Vries <tom@codesourcery.com>
30380
30381 PR tree-optimization/69426
30382 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
30383 removed clobber.
30384
30385 2016-01-23 Jakub Jelinek <jakub@redhat.com>
30386
30387 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
30388 "the the" with "the" in the comments.
30389 * ipa-devirt.c (build_type_inheritance_graph,
30390 update_type_inheritance_graph): Likewise.
30391 * tree.c (build_function_type_list_1): Likewise.
30392 * cfgloopmanip.c (scale_loop_profile): Likewise.
30393 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
30394 * gimple-ssa-split-paths.c
30395 (find_block_to_duplicate_for_splitting_paths): Likewise.
30396 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
30397 * expr.c (convert_move): Likewise.
30398 * var-tracking.c (vt_stack_adjustments): Likewise.
30399 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
30400 * tree-vrp.c (test_for_singularity): Likewise.
30401
30402 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
30403 directly instead of building a temporary tree.
30404
30405 PR bootstrap/69434
30406 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
30407 remove <algorithm> include.
30408
30409 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30410
30411 PR target/69432
30412 * config/i386/i386.c: Include dojump.h.
30413 (expand_small_movmem_or_setmem,
30414 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
30415 fixes.
30416 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
30417 if dynamic_check != -1.
30418
30419 2016-01-21 Jeff Law <law@redhat.com>
30420
30421 PR middle-end/69347
30422 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
30423 record_temporary_equivalences. Rewritten to avoid unnecessary calls
30424 into dominated_by_p.
30425 (cprop_into_successor_phis): Avoid unnecessary tests.
30426
30427 2016-01-22 Richard Henderson <rth@redhat.com>
30428
30429 PR target/69416
30430 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
30431 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
30432
30433 2016-01-22 Michael Matz <matz@suse.de>
30434
30435 * system.h (string, algorithm): Include only conditionally.
30436 (new): Include always under C++.
30437 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
30438 * final.c (toplevel): Ditto.
30439 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
30440 * genconditions.c (write_header): Make gencondmd.c define
30441 INCLUDE_STRING.
30442 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
30443
30444 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
30445 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
30446
30447 2016-01-22 Christian Bruel <christian.bruel@st.com>
30448
30449 PR target/68674
30450 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
30451
30452 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30453
30454 PR target/69403
30455 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
30456 define_insn_and_split. Ensure operands[1] and operands[0] do not
30457 get assigned the same register.
30458
30459 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
30460
30461 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
30462
30463 2016-01-22 Christian Bruel <christian.bruel@st.com>
30464
30465 * config/arm/arm-c.c (arm_pragma_target_parse):
30466 Remove warn_builtin_macro_redefined overwrite.
30467
30468 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30469
30470 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
30471 flag_non_call_exceptions compatibility.
30472
30473 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30474
30475 PR debug/66668
30476 * dwarf2out.c (add_child_die_after): New function.
30477 (dwarf_qual_info_t): New type.
30478 (dwarf_qual_info): New variable.
30479 (qualified_die_p): New function.
30480 (modified_type_die): For -fdebug-types-section, ensure
30481 canonical order of qualifiers. Put qualified DIEs adjacent
30482 to the corresponding non-qualified type DIE and search there
30483 for existing qualified DIEs.
30484
30485 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30486
30487 * doc/extend.texi (scalar_storage_order type attribute): Document
30488 restriction on type punning and aliasing, and remove future tense.
30489
30490 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
30491
30492 PR target/69252
30493 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
30494 first stage.
30495
30496 2016-01-21 Jeff Law <law@redhat.com>
30497
30498 PR middle-end/69347
30499 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
30500 useless call to record_temporary_equivalences.
30501 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
30502 allocate 10 slots in the bb_path vector and let it grow as needed.
30503 (fsm_find_control_statement_thread_paths): Similarly for the next_path
30504 vector.
30505
30506 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30507
30508 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
30509 Detangle.
30510 * configure: Regenerate.
30511
30512 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
30513
30514 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
30515 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
30516
30517 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
30518
30519 PR middle-end/66178
30520 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
30521 drop EXPAND_INITIALIZER.
30522 * rtl.h (contains_symbolic_reference_p): Declare.
30523 * rtlanal.c (contains_symbolic_reference_p): New function.
30524 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
30525 a subtraction into a NOT if symbolic constants are involved.
30526
30527 2016-01-21 Anton Blanchard <anton@samba.org>
30528 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30529
30530 PR target/63354
30531 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
30532 #define.
30533 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30534 function.
30535
30536 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30537
30538 * config/microblaze/microblaze.c
30539 (get_branch_target): New.
30540 (insert_wic_for_ilb_runout): New.
30541 (insert_wic): New.
30542 (microblaze_machine_dependent_reorg): New.
30543 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
30544 * config/microblaze/microblaze.md
30545 (UNSPEC_IPREFETCH): Define.
30546 (iprefetch): New pattern
30547 * config/microblaze/microblaze.opt
30548 (mxl-prefetch): New flag.
30549
30550 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30551
30552 * config/microblaze/microblaze.h
30553 (FIXED_REGISTERS): Update in macro.
30554 (CALL_USED_REGISTERS): Update in macro.
30555
30556 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
30557
30558 PR rtl-optimization/68920
30559 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
30560 moves.
30561
30562 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
30563
30564 PR rtl-optimization/68990
30565 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
30566 pseudo instead of inheritance ones.
30567
30568 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30569 Nick Clifton <nickc@redhat.com>
30570
30571 PR target/69129
30572 PR target/69012
30573 * config/mips/mips.c (mips_compute_frame_info): Initialise
30574 args_size and hard_frame_pointer_offset fields of the frame
30575 structure before calling mips_global_pointer.
30576
30577 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30578
30579 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
30580 label reference.
30581 * configure: Regenerate.
30582
30583 2016-01-21 Richard Biener <rguenther@suse.de>
30584
30585 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
30586
30587 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30588
30589 * config/s390/s390.c (s390_asm_declare_function_size): Add code
30590 to actually emit the .size directive.
30591
30592 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
30593 Jakub Jelinek <jakub@redhat.com>
30594
30595 PR target/69187
30596 PR target/65624
30597 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
30598 args array size by one to avoid buffer overflow.
30599
30600 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30601
30602 * config/s390/s390.md (pool_section_start): Use switch_to_section
30603 to select proper read-only data section instead of hardcoding
30604 .rodata.
30605 (pool_section_end): Use switch_to_section to match the above.
30606
30607 2016-01-21 Richard Biener <rguenther@suse.de>
30608
30609 PR tree-optimization/69378
30610 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
30611 (set_ssa_val_to): Use it for dominance checks taking into
30612 account not executable edges.
30613
30614 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30615
30616 PR c++/69355
30617 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
30618 for bitsize instead of GET_MODE_PRECISION (mode).
30619
30620 2016-01-20 Martin Sebor <msebor@redhat.com>
30621
30622 PR c/52291
30623 * extend.texi (__sync Builtins): Clarify the semantics of
30624 __sync_fetch_and_OP built-ins on pointers.
30625 (__atomic Builtins): Same.
30626
30627 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30628 Sebastian Pop <s.pop@samsung.com>
30629
30630 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
30631 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
30632 (is_valid_rename): Same.
30633 (translate_isl_ast_to_gimple::get_rename): Same.
30634 (translate_isl_ast_to_gimple::rename_all_uses): Same.
30635 (translate_isl_ast_to_gimple::rename_uses): Same.
30636 (get_new_name): Check for close_phi nodes.
30637 (copy_loop_phi_args): Use phi_node_kind.
30638 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
30639 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
30640
30641 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30642 Sebastian Pop <s.pop@samsung.com>
30643
30644 Revert commit r229783.
30645 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
30646 Remove use of parameter_rename_map.
30647 (copy_def): Remove.
30648 (copy_internal_parameters): Remove.
30649 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
30650 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
30651 (free_sese_info): Do not free parameter_rename_map.
30652 (set_rename): Do not use parameter_rename_map.
30653 (rename_uses): Update call to set_rename.
30654 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
30655 * sese.h (parameter_rename_map_t): Remove.
30656 (struct sese_info_t): Remove field parameter_rename_map.
30657
30658 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30659 Sebastian Pop <s.pop@samsung.com>
30660
30661 * graphite-isl-ast-to-gimple.c: Fix comment.
30662 * graphite-scop-detection.c (defined_in_loop_p): New.
30663 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
30664 names defined in loop.
30665
30666 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30667 Sebastian Pop <s.pop@samsung.com>
30668
30669 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
30670 Discard unstructured if-then-else regions.
30671
30672 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30673 Sebastian Pop <s.pop@samsung.com>
30674
30675 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
30676 (cleanup_loop_iter_dom): Remove.
30677 (build_loop_iteration_domains): Remove.
30678 (build_scop_context): Remove.
30679 (build_scop_iteration_domain): Remove.
30680 (add_loop_constraints): New.
30681 (build_iteration_domains): New.
30682 (build_poly_scop): Call build_iteration_domains.
30683
30684 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30685 Sebastian Pop <s.pop@samsung.com>
30686
30687 * graphite-scop-detection.c
30688 (scop_detection::harmful_loop_in_region): Free dom and loops.
30689 (scop_detection::loop_body_is_valid_scop): Free bbs.
30690
30691 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30692 Sebastian Pop <s.pop@samsung.com>
30693
30694 * graphite-scop-detection.c (record_loop_in_sese): New.
30695 (gather_bbs::before_dom_children): Call record_loop_in_sese.
30696 (build_scops): Remove call to build_sese_loop_nests.
30697 * sese.c (sese_record_loop): Remove.
30698 (build_sese_loop_nests): Remove.
30699 (new_sese_info): Remove region->loops.
30700 (free_sese_info): Same.
30701 * sese.h (sese_contains_loop): Same.
30702 (build_sese_loop_nests): Remove.
30703 (sese_contains_loop): Remove.
30704
30705 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30706 Sebastian Pop <s.pop@samsung.com>
30707
30708 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
30709 loop_is_valid_in_scop.
30710 (scop_detection::harmful_stmt_in_region): Renamed
30711 harmful_loop_in_region.
30712 Call loop_is_valid_in_scop.
30713
30714 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30715 Sebastian Pop <s.pop@samsung.com>
30716
30717 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
30718 isl_ast_node_mark.
30719
30720 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30721 Sebastian Pop <s.pop@samsung.com>
30722
30723 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
30724 * graphite.h (struct poly_bb): Remove field is_reduction.
30725 (PBB_IS_REDUCTION): Remove.
30726
30727 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30728 Sebastian Pop <s.pop@samsung.com>
30729
30730 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
30731 (add_pdr_constraints): Same.
30732 (scop_get_reads): Same.
30733 (scop_get_must_writes): Same.
30734 (scop_get_may_writes): Same.
30735 (scop_get_original_schedule): Same.
30736 (extend_schedule): Same.
30737 (apply_schedule_on_deps): Same.
30738 (carries_deps): Same.
30739 (compute_deps): Same.
30740 (scop_get_dependences): Same.
30741 * graphite-isl-ast-to-gimple.c
30742 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
30743 * graphite-optimize-isl.c (get_schedule_for_band): Same.
30744 (get_schedule_for_band_list): Same.
30745 (get_schedule_map): Same.
30746 (apply_schedule_map_to_scop): Same.
30747 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30748 (build_loop_iteration_domains): Same.
30749 (add_condition_to_pbb): Same.
30750 (add_param_constraints): Same.
30751 (pdr_add_memory_accesses): Same.
30752 (pdr_add_data_dimensions): Same.
30753
30754 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30755
30756 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
30757 requirements.
30758
30759 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30760
30761 * common.opt (feliminate-dwarf2-dups): Replace references to
30762 "DWARF 2" with just "DWARF".
30763 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
30764 * doc/extend.texi: Likewise.
30765 * doc/cpp.texi: Likewise.
30766 * doc/invoke.texi: Likewise.
30767 (Option Summary): Add -gdwarf to list of Debugging Options.
30768 (Debugging Options): Document -gdwarf.
30769 * doc/contrib.texi: Spell "DWARF" like that.
30770
30771 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30772
30773 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30774 warning. Fix up formatting.
30775
30776 PR middle-end/67653
30777 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30778 attempt to mark memory input operand addressable and
30779 call prepare_gimple_addressable in that case. Don't adjust
30780 input_location for diagnostics, use error_at instead.
30781
30782 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
30783
30784 * config/rs6000/ppc-auxv.h: New file.
30785 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30786 (cpu_is): Likewise.
30787 (cpu_supports): Likewise.
30788 * config/rs6000/rs6000.c: include "ppc-auxv.h".
30789 (cpu_is_info): New variable.
30790 (cpu_supports_info): Likewise.
30791 (tcb_verification_symbol): Likewise.
30792 (cpu_builtin_p): Likewise.
30793 (cpu_expand_builtin): New function.
30794 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30795 (rs6000_init_builtins): Likewise.
30796 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30797 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30798 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30799 * configure: Regenerate.
30800 * config.in: Likewise.
30801 * doc/extend.texi (PowerPC Built-in Functions): Document
30802 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30803
30804 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
30805
30806 PR target/68609
30807 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30808 domain check.
30809 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30810 for V4SFmode.
30811
30812 2016-01-20 Richard Henderson <rth@redhat.com>
30813
30814 PR bootstrap/69343
30815 PR bootstrap/69339
30816 PR tree-opt/68964
30817 Revert:
30818 * tree.c (tm_define_builtin): New.
30819 (find_tm_vector_type): New.
30820 (build_tm_vector_builtins): New.
30821 (build_common_builtin_nodes): Call it.
30822
30823 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
30824
30825 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30826 (arm_fp_ok): Likewise.
30827 (arm_fp): Likewise.
30828 (arm_crypto): Likewise.
30829
30830 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30831 Richard Biener <rguenther@suse.de>
30832
30833 PR tree-optimization/69328
30834 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30835 vectors have same number of elements.
30836 (vectorizable_condition): Fix masked version recognition.
30837
30838 2016-01-20 Richard Biener <rguenther@suse.de>
30839
30840 PR tree-optimization/69345
30841 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30842 (VN_INFO_PTR_INFO): Likewise.
30843 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30844 info when it is equal between non-dominating SSA names.
30845 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30846 Make sure to look at original SSA infos.
30847
30848 2016-01-20 Jeff Law <law@redhat.com>
30849
30850 PR target/25114
30851 * config/m68k/predicates.md (pow2_m1_operand): New predicate
30852 extracted from ...
30853 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30854 (pc_or_label_operand): New predicate.
30855 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30856 tests for small integers that are 2^n - 1.
30857
30858 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
30859
30860 * doc/invoke.texi (Options Summary): Add '.' after @xref.
30861
30862 2016-01-19 Jeff Law <law@redhat.com>
30863
30864 PR middle-end/69347
30865 * tree-ssa-threadbackwards.c
30866 (fsm_find_control_statement_thread_paths): Do not try to lookup
30867 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30868
30869 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30870
30871 * doc/lto.texi: Remove text that says only Gold has linker plugin
30872 support.
30873
30874 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
30875
30876 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30877 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30878 the DIE accordingly.
30879 (modified_type_die): Add REVERSE parameter and pass it recursively,
30880 as well as to base_type_die. Adjust presence check accordingly.
30881 (base_type_for_mode): Adjust call to modified_type_die.
30882 (add_type_attribute): Add REVERSE parameter and pass it to
30883 modified_type_die.
30884 (generic_parameter_die): Adjust call to add_type_attribute.
30885 (add_scalar_info): Likewise.
30886 (add_subscript_info): Likewise.
30887 (gen_array_type_die): Likewise.
30888 (gen_descr_array_type_die): Likewise.
30889 (gen_entry_point_die): Likewise.
30890 (gen_enumeration_type_die): Likewise.
30891 (gen_formal_parameter_die): Likewise.
30892 (gen_subprogram_die): Likewise.
30893 (gen_variable_die ): Likewise.
30894 (gen_const_die): Likewise.
30895 (gen_field_die): Likewise.
30896 (gen_pointer_type_die): Likewise.
30897 (gen_reference_type_die): Likewise.
30898 (gen_ptr_to_mbr_type_die): Likewise.
30899 (gen_inheritance_die): Likewise.
30900 (gen_subroutine_type_die): Likewise.
30901 (gen_typedef_die): Likewise.
30902 (force_type_die): Adjust call to modified_type_die.
30903
30904 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
30905
30906 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30907 flow throughout the file. Fix broken link to Objective-C 2.0
30908 documentation.
30909 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30910 errors.
30911
30912 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30913
30914 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30915
30916 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30917
30918 PR ipa/66223
30919 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30920 (maybe_record_node): Record cxa_pure_virtual as the only possible
30921 target if there are not ohter candidates.
30922 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30923
30924 2016-01-19 Richard Biener <rguenther@suse.de>
30925
30926 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30927 (get_memory_order): Likewise.
30928
30929 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
30930
30931 * tree-vect-stmts.c (vectorizable_store): Check
30932 rhs vectype.
30933
30934 2016-01-19 David Malcolm <dmalcolm@redhat.com>
30935
30936 PR jit/68446
30937 * gcc.c (driver::decode_argv): Add call to
30938 init_opts_obstack before init_options_struct.
30939 * opts.c (init_opts_obstack): Remove idempotency.
30940 (init_options_struct): Replace call to init_opts_obstack
30941 with a gcc_assert to verify that it has already been called.
30942 * toplev.c (toplev::main): Add call to init_opts_obstack before
30943 calls to init_options_struct.
30944 (toplev::finalize): Move cleanup of opts_obstack next to
30945 cleanup of save_decoded_options, clearing the latter, and
30946 save_decoded_options_count.
30947
30948 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30949
30950 PR target/69135
30951 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30952 attribute to unconditional. Remove %? from output template.
30953
30954 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30955 Jiong Wang <jiong.wang@arm.com>
30956
30957 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30958 generated from different expand order.
30959
30960 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30961
30962 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30963 Add support for CCMP costing.
30964
30965 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30966
30967 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30968 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30969 (fccmpe<mode>): Likewise.
30970 (fcmp): Rename to fcmp and globalize pattern.
30971 (fcmpe): Likewise.
30972 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30973 (aarch64_gen_ccmp_next): Add FP support.
30974
30975 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30976
30977 * target.def (gen_ccmp_first): Update documentation.
30978 (gen_ccmp_next): Likewise.
30979 * doc/tm.texi (gen_ccmp_first): Update documentation.
30980 (gen_ccmp_next): Likewise.
30981 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30982 expand_ccmp_expr_1. Improve comments.
30983 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30984 (ccmp_ior<mode>): Remove pattern.
30985 (cmp<mode>): Remove expand.
30986 (cmp): Globalize pattern.
30987 (cstorecc4): Use cc_register.
30988 (mov<mode>cc): Remove ccmp_cc_register check.
30989 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30990 Simplify after removal of CC_DNE/* modes.
30991 (aarch64_ccmp_mode_to_code): Remove.
30992 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
30993 In 'k' case use integer as condition.
30994 (aarch64_nzcv_codes): Remove inverted cases.
30995 (aarch64_code_to_ccmode): Remove.
30996 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
30997 comparison with CC register to be used in folowing CCMP/branch/CSEL.
30998 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30999 pattern. Return the comparison with CC register. Invert conditions
31000 when bitcode is OR.
31001 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
31002 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
31003
31004 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31005
31006 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31007 instrumented_version.
31008
31009 2016-01-19 Richard Biener <rguenther@suse.de>
31010
31011 PR tree-optimization/69336
31012 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
31013 handled components with get_ref_base_and_extent.
31014 (equal_mem_array_ref_p): Adjust.
31015
31016 2016-01-19 Jakub Jelinek <jakub@redhat.com>
31017
31018 PR debug/65779
31019 * shrink-wrap.c: Include valtrack.h.
31020 (move_insn_for_shrink_wrap): Add DEBUG argument. If
31021 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
31022 in between insn and where it will be moved to. Call
31023 dead_debug_insert_temp.
31024 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
31025 first and dead_debug_local_finish at the end.
31026 For uses and defs bitmap, handle all regs in between REGNO and
31027 END_REGNO, not just the first one.
31028
31029 2016-01-19 Richard Biener <rguenther@suse.de>
31030
31031 PR tree-optimization/69352
31032 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
31033 (equal_mem_array_ref_p): Constrain size and max size properly.
31034 Compare the reverse flag.
31035
31036 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
31037
31038 * ira.c (ira): Update regstat data if we deleted insns.
31039
31040 2016-01-19 Jakub Jelinek <jakub@redhat.com>
31041
31042 PR rtl-optimization/68955
31043 PR rtl-optimization/64557
31044 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
31045 here. Fix up formatting.
31046 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
31047
31048 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31049
31050 PR lto/69133
31051 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
31052 assume that the node has body.
31053 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
31054 check.
31055
31056 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31057
31058 * lto-streamer-out.c (lto_output): Do not stream instrumentation
31059 thunks.
31060
31061 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31062
31063 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
31064 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
31065
31066 2016-01-19 Martin Jambor <mjambor@suse.cz>
31067 Martin Liska <mliska@suse.cz>
31068 Michael Matz <matz@suse.de>
31069
31070 * Makefile.in (OBJS): Add new source files.
31071 (GTFILES): Add hsa.c.
31072 * common.opt (disable_hsa): New variable.
31073 (-Whsa): New warning.
31074 * config.in (ENABLE_HSA): New.
31075 * configure.ac: Treat hsa differently from other accelerators.
31076 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
31077 $enable_offloading.
31078 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
31079 * doc/install.texi (Configuration): Document --with-hsa-runtime,
31080 --with-hsa-runtime-include, --with-hsa-runtime-lib and
31081 --with-hsa-kmt-lib.
31082 * doc/invoke.texi (-Whsa): Document.
31083 (hsa-gen-debug-stores): Likewise.
31084 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
31085 to invoke offload compiler for hsa acclerator.
31086 * opts.c (common_handle_option): Determine whether HSA offloading
31087 should be performed.
31088 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
31089 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
31090 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
31091 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
31092 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
31093 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
31094 GF_OMP_FOR_KIND_GRID_LOOP.
31095 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
31096 (pp_gimple_stmt_1): Likewise.
31097 * gimple-walk.c (walk_gimple_stmt): Likewise.
31098 * gimple.c (gimple_build_omp_grid_body): New function.
31099 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
31100 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
31101 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
31102 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
31103 GF_OMP_TEAMS_GRID_PHONY.
31104 (gimple_statement_omp_single_layout): Updated comments.
31105 (gimple_build_omp_grid_body): New function.
31106 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
31107 (gimple_omp_for_grid_phony): New function.
31108 (gimple_omp_for_set_grid_phony): Likewise.
31109 (gimple_omp_parallel_grid_phony): Likewise.
31110 (gimple_omp_parallel_set_grid_phony): Likewise.
31111 (gimple_omp_teams_grid_phony): Likewise.
31112 (gimple_omp_teams_set_grid_phony): Likewise.
31113 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
31114 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
31115 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
31116 (BUILT_IN_GOMP_TARGET): Updated type.
31117 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
31118 (adjust_for_condition): New function.
31119 (get_omp_for_step_from_incr): Likewise.
31120 (extract_omp_for_data): Moved parts to adjust_for_condition and
31121 get_omp_for_step_from_incr.
31122 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
31123 (fixup_child_record_type): Bail out if receiver_decl is NULL.
31124 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
31125 (scan_omp_parallel): Do not create child functions for phony
31126 constructs.
31127 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
31128 (scan_omp_1_op): Checking assert we are not remapping to
31129 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
31130 (parallel_needs_hsa_kernel_p): New function.
31131 (expand_parallel_call): Register apprpriate parallel child
31132 functions as HSA kernels.
31133 (grid_launch_attributes_trees): New type.
31134 (grid_attr_trees): New variable.
31135 (grid_create_kernel_launch_attr_types): New function.
31136 (grid_insert_store_range_dim): Likewise.
31137 (grid_get_kernel_launch_attributes): Likewise.
31138 (get_target_argument_identifier_1): Likewise.
31139 (get_target_argument_identifier): Likewise.
31140 (get_target_argument_value): Likewise.
31141 (push_target_argument_according_to_value): Likewise.
31142 (get_target_arguments): Likewise.
31143 (expand_omp_target): Call get_target_arguments instead of looking
31144 up for teams and thread limit.
31145 (grid_expand_omp_for_loop): New function.
31146 (grid_arg_decl_map): New type.
31147 (grid_remap_kernel_arg_accesses): New function.
31148 (grid_expand_target_kernel_body): New function.
31149 (expand_omp): Call it.
31150 (lower_omp_for): Do not emit phony constructs.
31151 (lower_omp_taskreg): Do not emit phony constructs but create for them
31152 a temporary variable receiver_decl.
31153 (lower_omp_taskreg): Do not emit phony constructs.
31154 (lower_omp_teams): Likewise.
31155 (lower_omp_grid_body): New function.
31156 (lower_omp_1): Call it.
31157 (grid_reg_assignment_to_local_var_p): New function.
31158 (grid_seq_only_contains_local_assignments): Likewise.
31159 (grid_find_single_omp_among_assignments_1): Likewise.
31160 (grid_find_single_omp_among_assignments): Likewise.
31161 (grid_find_ungridifiable_statement): Likewise.
31162 (grid_target_follows_gridifiable_pattern): Likewise.
31163 (grid_remap_prebody_decls): Likewise.
31164 (grid_copy_leading_local_assignments): Likewise.
31165 (grid_process_kernel_body_copy): Likewise.
31166 (grid_attempt_target_gridification): Likewise.
31167 (grid_gridify_all_targets_stmt): Likewise.
31168 (grid_gridify_all_targets): Likewise.
31169 (execute_lower_omp): Call grid_gridify_all_targets.
31170 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
31171 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
31172 (tree_omp_clause): Added union field dimension.
31173 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
31174 * tree.c (omp_clause_num_ops): Added number of arguments of
31175 OMP_CLAUSE__GRIDDIM_.
31176 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
31177 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
31178 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
31179 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
31180 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
31181 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
31182 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
31183 * tree-pass.h (make_pass_gen_hsail): Declare.
31184 (make_pass_ipa_hsa): Likewise.
31185 * ipa-hsa.c: New file.
31186 * lto-section-in.c (lto_section_name): Add hsa section name.
31187 * lto-streamer.h (lto_section_type): Add hsa section.
31188 * timevar.def (TV_IPA_HSA): New.
31189 * hsa-brig-format.h: New file.
31190 * hsa-brig.c: New file.
31191 * hsa-dump.c: Likewise.
31192 * hsa-gen.c: Likewise.
31193 * hsa.c: Likewise.
31194 * hsa.h: Likewise.
31195 * toplev.c (compile_file): Call hsa_output_brig.
31196 * hsa-regalloc.c: New file.
31197
31198 2016-01-18 Jeff Law <law@redhat.com>
31199
31200 PR tree-optimization/69320
31201 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
31202 ranged object, do nothing if the RHS constant is not [0..1].
31203 (optimize_stmt): Comparing a boolean ranged object against a
31204 constant outside [0..1] results in a compile-time constant.
31205
31206 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
31207 test.
31208
31209 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
31210
31211 * doc/invoke.texi (Invoking GCC): Add new section to menu.
31212 (Option Summary): Update to reflect new section and moved options.
31213 (C++ Dialect Options): Move -fstats to new section.
31214 (Debugging Options): Move all dump, statistics, and other GCC
31215 developer options to new section. Rewrite section introduction
31216 and re-order remaining options to put the more basic ones first.
31217 (Optimization Options): Move -fira-verbose and -flto-report* to
31218 new section.
31219 (Developer Options): New section incorporating moved options.
31220 * doc/cppopts.texi (-dM): Update cross-reference.
31221
31222 2016-01-18 Richard Henderson <rth@redhat.com>
31223
31224 PR target/69176
31225 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
31226 operands to pseudo only if CSE is expected. Split long immediate
31227 operands only after reload, and for the stack pointer.
31228 (*add<GPI>3_pluslong): Remove.
31229 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
31230 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
31231 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
31232 (*add<GPI>3 peepholes): New.
31233 (*add<GPI>3 splitters): New.
31234 * config/aarch64/constraints.md (Upl): New.
31235 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
31236
31237 2016-01-18 Richard Biener <rguenther@suse.de>
31238
31239 PR tree-optimization/69297
31240 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
31241 stmt at most once.
31242 (vect_bb_vectorization_profitable_p): Clear visited flag again.
31243
31244 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
31245
31246 PR middle-end/68542
31247 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
31248 of mixind vector and scalar types.
31249 (fold_relational_const): Add handling of vector
31250 comparison with boolean result.
31251 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
31252 comparison of vector operands with boolean result for EQ/NE only.
31253 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
31254 (verify_gimple_cond): Likewise.
31255 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
31256 valid type of VAL.
31257
31258 2016-01-18 Joseph Myers <joseph@codesourcery.com>
31259
31260 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
31261 !TARGET_OCTEON.
31262
31263 2016-01-18 Richard Biener <rguenther@suse.de>
31264
31265 PR middle-end/69308
31266 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
31267
31268 2016-01-18 Tom de Vries <tom@codesourcery.com>
31269
31270 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
31271
31272 2016-01-18 Tom de Vries <tom@codesourcery.com>
31273
31274 * omp-low.c (set_oacc_fn_attrib): Make extern.
31275 * omp-low.h (set_oacc_fn_attrib): Declare.
31276 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
31277 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
31278 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
31279 Add and handle function parameter oacc_kernels_p.
31280 (find_reduc_addr, get_omp_data_i_param): New function.
31281 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
31282 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
31283 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
31284 Calculate dominance info. Skip loops that are not in a kernels region
31285 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
31286 (pass_parallelize_loops::execute): Call parallelize_loops with
31287 oacc_kernels_p argument.
31288 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
31289 New member function.
31290 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
31291 * passes.def: Add argument to pass_parallelize_loops instantation.
31292
31293 2016-01-18 Tom de Vries <tom@codesourcery.com>
31294
31295 * tree-parloops.c (pass_parallelize_loops::execute): Allow
31296 pass_parallelize_loops to be run outside the loop pipeline.
31297
31298 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31299
31300 * tree-scalar-evolution.c (follow_copies_to_constant): New.
31301 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
31302
31303 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31304
31305 PR target/63679
31306 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
31307 using get_ref_base_and_extent.
31308 (equal_mem_array_ref_p): New.
31309 (hashable_expr_equal_p): Add call to previous.
31310
31311 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31312
31313 PR target/63679
31314 * tree-sra.c (disqualified_constants, constant_decl_p): New.
31315 (sra_initialize): Allocate disqualified_constants.
31316 (sra_deinitialize): Free disqualified_constants.
31317 (disqualify_candidate): Update disqualified_constants when appropriate.
31318 (create_access): Scan for constant-pool entries as we go along.
31319 (scalarizable_type_p): Add check against type_contains_placeholder_p.
31320 (maybe_add_sra_candidate): Allow constant-pool entries.
31321 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
31322 (initialize_constant_pool_replacements): New.
31323 (sra_modify_assign): Avoid mangling assignments created by previous,
31324 and don't generate writes into constant pool.
31325 (sra_modify_function_body): Call initialize_constant_pool_replacements.
31326
31327 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
31328
31329 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
31330 andnot instruction.
31331 (scalar_chain::convert_op): Likewise.
31332 * config/i386/i386.md (*andndi3_doubleword): New.
31333
31334 2016-01-18 Richard Biener <rguenther@suse.de>
31335
31336 PR tree-optimization/69170
31337 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
31338 building a vector from scalar results of a pattern stmt.
31339
31340 2016-01-18 Jakub Jelinek <jakub@redhat.com>
31341
31342 * haifa-sched.c (autopref_multipass_init): Work around
31343 -Wmaybe-uninitialized warning.
31344
31345 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
31346
31347 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
31348 against the constant 0.
31349
31350 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31351
31352 PR tree-optimization/68799
31353 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
31354 look up phi candidates in the statement-candidate map.
31355 (phi_add_costs): Likewise.
31356 (record_phi_increments): Likewise.
31357 (phi_incr_cost): Likewise.
31358 (ncd_with_phi): Likewise.
31359 (all_phi_incrs_profitable): Likewise.
31360
31361 2016-01-17 Jakub Jelinek <jakub@redhat.com>
31362
31363 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
31364 -Wmaybe-uninitialized warning.
31365
31366 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
31367
31368 * doc/invoke.texi (Invoking GCC): Add new section to menu.
31369 (Option Summary): Update to reflect new section and moved options.
31370 (C++ Dialect Options): Move -fvtable-verify and related options.
31371 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
31372 and profiling-related options.
31373 (Optimization Options): Move profile generation options and
31374 -fstack-protector and related options.
31375 (Instrumentation Options): New section incorporating moved options.
31376 (Code Generation Options): Move -finstrument-functions and
31377 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
31378
31379 2016-01-16 Tom de Vries <tom@codesourcery.com>
31380
31381 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
31382
31383 2016-01-16 Tom de Vries <tom@codesourcery.com>
31384
31385 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
31386
31387 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
31388
31389 * hash-table.h (hash_table::empty): Turn into an inline wrapper
31390 that checks whether the table is already empty. Rename the
31391 original implementation to...
31392 (hash_table::empty_slot): ...this new private function.
31393
31394 2016-01-15 David Malcolm <dmalcolm@redhat.com>
31395
31396 PR diagnostic/68899
31397 * diagnostic-show-locus.c (layout::print_source_line): Move x
31398 offset of line until after call to
31399 get_line_width_without_trailing_whitespace.
31400
31401 2016-01-15 Jeff Law <law@redhat.com>
31402
31403 PR tree-optimization/69270
31404 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
31405 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
31406 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
31407 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
31408 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
31409 ssa_name_has_boolean_range and constant_boolean_node.
31410
31411 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
31412
31413 PR rtl-optimization/69030
31414 * lra-spills.c (remove_pseudos): Check nrefs and make the function
31415 returning bool.
31416 (spill_pseudos): Delete debug insn for dead pseudo.
31417 (lra_spill): Initiate spill_hard_reg and slots memory separately.
31418
31419 2016-01-15 Jiong Wang <jiong.wang@arm.com>
31420
31421 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
31422 New.
31423 (TYPES_UNOPUS): Likewise.
31424 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
31425 builtin type, from UNOP to UNOPUS.
31426 (lbtruncuv4sf): Likewise.
31427 (lbtruncuv2df): Likewise.
31428 (lrounduv2sf): Likewise.
31429 (lrounduv4sf): Likewise.
31430 (lrounduv2df): Likewise.
31431 (lroundusf): Likewise.
31432 (lroundusf): Likewise.
31433 (lceiluv2sf): Likewise.
31434 (lceiluv4sf): Likewise.
31435 (lceiluv2df): Likewise.
31436 (lceilusf): Likewise.
31437 (lceiludf): Likewise.
31438 (lflooruv2sf): Likewise.
31439 (lflooruv4sf): Likewise.
31440 (lflooruv2df): Likewise.
31441 (lfloorusf): Likewise.
31442 (lfloorudf): Likewise.
31443 (lfrintnuv2sf): Likewise.
31444 (lfrintnuv4sf): Likewise.
31445 (lfrintnuv2df): Likewise.
31446 (lfrintnusf): Likewise.
31447 (lfrintnudf): Likewise.
31448 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
31449 conversion.
31450 (vcvtq_u32_f32): Likewise.
31451 (vcvtq_u64_f64): Likewise.
31452 (vcvta_u32_f32): Likewise.
31453 (vcvtaq_u32_f32): Likewise.
31454 (vcvtaq_u64_f64): Likewise.
31455 (vcvtm_u32_f32): Likewise.
31456 (vcvtmq_u32_f32): Likewise.
31457 (vcvtmq_u64_f64): Likewise.
31458 (vcvtn_u32_f32): Likwise.
31459 (vcvtnq_u32_f32): Likewise.
31460 (vcvtnq_u64_f64): Likewise.
31461 (vcvtp_u32_f32): Likewise.
31462 (vcvtpq_u32_f32): Likewise.
31463 (vcvtpq_u64_f64): Likewise.
31464 (vcvtmd_u64_f64): Likewise.
31465 (vcvtms_u32_f32): Likewise.
31466 (vcvtad_u64_f64): Likewise.
31467 (vcvtas_u32_f32): Likewise.
31468 (vcvtnd_u64_f64): Likewise.
31469 (vcvtns_u32_f32): Likewise.
31470 (vcvtpd_u64_f64): Likewise.
31471 (vcvtps_u32_f32): Likewise.
31472
31473 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31474
31475 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
31476 CSEL of zero_extended registers.
31477
31478 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31479
31480 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31481 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
31482
31483 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31484
31485 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
31486 false when argument string is not found in the attributes table
31487 at all.
31488
31489 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
31490
31491 PR target/68609
31492 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
31493 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
31494 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
31495 precision estimate.
31496
31497 2016-01-15 Richard Biener <rguenther@suse.de>
31498
31499 PR tree-optimization/66856
31500 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
31501 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
31502 (vect_create_new_slp_node): Increment stmt reference count.
31503 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
31504 an SLP tree before swapping operands.
31505 (vect_build_slp_tree): Likewise.
31506 (destroy_bb_vec_info): Free stmt info after SLP instances.
31507 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
31508 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
31509 (STMT_VINFO_NUM_SLP_USES): New macro.
31510
31511 2016-01-15 Richard Biener <rguenther@suse.de>
31512
31513 PR debug/69137
31514 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
31515 (add_linkage_name): ... here.
31516 (gen_typedef_die): Use add_linkage_name_raw instead of
31517 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
31518 if necessary.
31519
31520 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
31521
31522 * gimplify.c (oacc_default_clause): Decode reference and pointer
31523 types for both kernels and parallel regions.
31524
31525 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
31526
31527 PR middle-end/69246
31528 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
31529
31530 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31531
31532 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
31533 (convert_scalars_to_vector): Likewise.
31534
31535 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
31536
31537 * doc/extend.texi (Type Traits): Fix grammar.
31538
31539 2016-01-15 Martin Jambor <mjambor@suse.cz>
31540
31541 * tree-inline.c (remap_decl): Use existing dclarations if
31542 remapping a type and prevent_decl_creation_for_types.
31543 (replace_locals_stmt): Do an initial remapping of non-VLA typed
31544 decls first. Do real remapping with
31545 prevent_decl_creation_for_types set.
31546 * tree-inline.h (copy_body_data): New field
31547 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
31548 padding.
31549
31550 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31551
31552 * config/s390/s390.opt (mmvcle): More verbose help text.
31553
31554 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31555
31556 * config/s390/s390.opt: Add period to -mzvector option text.
31557
31558 2016-01-15 Richard Biener <rguenther@suse.de>
31559
31560 PR tree-optimization/68961
31561 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
31562 of invariants in stores again.
31563
31564 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31565
31566 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
31567
31568 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31569
31570 * config/i386/i386.c (ix86_expand_branch): Don't split
31571 DI mode xor instruction to SI mode.
31572
31573 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31574
31575 PR ipa/68148
31576 * ipa-icf.c (sem_function::merge): Virtual functions may become
31577 reachable even if they address is not taken and there are no
31578 idrect calls.
31579
31580 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31581
31582 * lto-streamer-out.c (subtract_estimated_size): New function.
31583 (get_symbol_initial_value): Use it.
31584
31585 2016-01-15 Christian Bruel <christian.bruel@st.com>
31586
31587 PR target/65837
31588 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
31589 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
31590 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
31591 use add_builtin_function_ext_scope instead of add_builtin_function.
31592 (neon_set_p, neon_crypto_set_p): Remove.
31593 (arm_init_builtins): Always call arm_init_neon_builtins and
31594 arm_init_crypto_builtins.
31595 (arm_expand_builtin): Check that builtins are allowed for the arch.
31596 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
31597 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
31598 arm_init_neon_builtins call.
31599
31600 2016-01-15 Richard Biener <rguenther@suse.de>
31601
31602 PR tree-optimization/69117
31603 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
31604 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
31605 of the leader conservatively.
31606 (free_scc_vn): Restore original SSA name infos.
31607
31608 2016-01-14 Jeff Law <law@redhat.com>
31609
31610 PR tree-optimization/69270
31611 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
31612 single bit of precision, verify it's also unsigned.
31613 (record_edge_info): Use constant_boolean_node rather than fold_convert
31614 to convert boolean_true/boolean_false to the right type.
31615
31616 2016-01-14 Richard Henderson <rth@redhat.com>
31617
31618 PR rtl-opt/69014
31619 * loop-doloop.c (record_reg_sets): New.
31620 (doloop_optimize): Reject the transform if the sequence
31621 clobbers registers live at the end of the loop block.
31622 (doloop_optimize_loops): Enable df_live if needed.
31623
31624 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31625
31626 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
31627 * config/rs6000/rs6000.c: Likewise.
31628 * config/rs6000/rs6000.h: Likewise.
31629 * config/rs6000/rs6000.md: Likewise.
31630 * doc/extend.texi: Likewsie.
31631
31632 2016-01-14 Jeff Law <law@redhat.com>
31633
31634 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
31635 typo.
31636
31637 2016-01-14 Richard Henderson <rth@redhat.com>
31638
31639 PR c/69272
31640 PR tree-opt/68964
31641 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
31642 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
31643 instead of builtin_decl_declared_p to test for declaration.
31644
31645 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
31646
31647 * doc/loop.texi (Loop Analysis and Representation): Document
31648 loop_depth function.
31649
31650 2016-01-14 Tom de Vries <tom@codesourcery.com>
31651
31652 PR tree-optimization/68773
31653 * omp-low.c (expand_omp_target): Don't set force_output.
31654 * varpool.c (varpool_node::get_create): Same.
31655 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
31656 offload_funcs with force_output.
31657
31658 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31659
31660 PR debug/69244
31661 * lra-eliminations.c (move_plus_up): Don't change anything if either
31662 the outer or inner subreg mode is not MODE_INT.
31663 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
31664 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
31665
31666 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31667
31668 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
31669 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
31670 reduc_uplus_@var{m}): Remove.
31671 * expr.c (expand_expr_real_2): Remove expansion path for
31672 reduc_[us](min|max|plus) optabs.
31673 * optabs-tree.c (scalar_reduc_to_vector): Remove.
31674 * optabs-tree.h (scalar_reduc_to_vector): Remove.
31675 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
31676 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
31677 * tree-vect-loop.c (vectorizable_reduction): Remove test for
31678 reduc_[us](min|max|plus) optabs.
31679
31680 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31681
31682 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
31683 (reduc_plus_scal_v2sf): New.
31684 (reduc_smax_v2sf): Rename to...
31685 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
31686 (reduc_smin_v2sf): Rename to...
31687 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
31688
31689 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
31690
31691 * alias.c (compare_base_symbol_refs): New function.
31692 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
31693 it.
31694
31695 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31696
31697 PR middle-end/68146
31698 PR tree-optimization/69155
31699 * tree-complex.c: Include cfganal.h.
31700 (phis_to_revisit): New variable.
31701 (extract_component): Add phiarg_p argument. Assert that returned
31702 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
31703 (update_phi_components): Partly rewrite to use loop over real/imag
31704 components instead of code duplication. If extract_component returns
31705 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
31706 create_tmp_reg into the PHI node instead, and mention the phi triplet
31707 in phis_to_revisit.
31708 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
31709 in phis_to_revisit at the end.
31710
31711 2016-01-14 Richard Biener <rguenther@suse.de>
31712
31713 PR tree-optimization/68060
31714 * tree-vect-loop.c (vect_is_simple_reduction): Check the
31715 outer loop reduction is only used in the inner loop before
31716 detecting a double reduction.
31717
31718 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31719
31720 PR target/68269
31721 * combine.c (expand_field_assignment): Punt if compute_mode is
31722 unsupported scalar mode.
31723
31724 2016-01-14 Richard Biener <rguenther@suse.de>
31725
31726 PR tree-optimization/66856
31727 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
31728 SLP node only if it built successfully.
31729 (vect_analyze_slp_instance): Adjust.
31730
31731 2016-01-14 Jeff Law <law@redhat.com>
31732
31733 PR tree-optimization/69270
31734 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
31735 (record_edge_info): Use it. Convert boolean_{true,false}_node
31736 to the type of op0.
31737
31738 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
31739
31740 PR ipa/66487
31741 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
31742 use block_ultimate_origin
31743 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
31744
31745 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31746
31747 * doc/invoke.texi (Submodel Options): Rename section to
31748 "Machine-Dependent Options" to better reflect its content.
31749 Rewrite introductory text to remove archaic CPU names.
31750 Update references.
31751
31752 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31753
31754 * doc/invoke.texi (Code Gen Options): Move section up in file,
31755 before target-specific options. Update menu and option summary
31756 to reflect the new section ordering.
31757
31758 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31759
31760 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
31761 (C++ Dialect Options): Add cross-reference to -std option.
31762 * doc/standards.texi (C++ Language): Document C++14 support.
31763
31764 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31765
31766 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
31767 for pack/unpack functions for __ibm128.
31768 (PACK_IF): Likewise.
31769 (UNPACK_IF): Likewise.
31770
31771 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31772 support for __ibm128 pack/unpack functions.
31773 (rs6000_invalid_builtin): Likewise.
31774 (rs6000_init_builtins): Likewise.
31775 (rs6000_opt_masks): Likewise.
31776
31777 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31778 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31779 functions
31780 (RS6000_BTM_COMMON): Likewise.
31781
31782 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31783 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31784 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31785 128-bit floating point. Add support for the double values to be
31786 in Altivec registers for TF/IF packing and unpacking, but restrict
31787 TD packing sub-fields to be FPR registers. Don't allow overlapped
31788 register support for packing. Allow pack inputs to be memory
31789 locations. Don't build generator functions for unpack<mode>_dm
31790 and unpack<mode>_nodm.
31791 (unpack<mode>_dm): Likewise.
31792 (unpack<mode>_nodm): Likewise.
31793 (pack<mode>): Likewise.
31794
31795 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31796 built-in functions to pack/unpack explicit __ibm128 values.
31797 (__builtin_unpack_ibm128): Likewise.
31798
31799 * doc/extend.texi (PowerPC Built-in Functions): Document
31800 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31801
31802 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
31803
31804 PR c/66208
31805 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31806 Add new arg loc and pass it down as context.
31807 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31808 to the location to use for the warning.
31809 (check_function_arguments): New arg loc. All callers changed. Pass
31810 it to check_function_nonnull.
31811 * c-common.h (check_function_arguments): Adjust declaration.
31812
31813 2016-01-13 Jakub Jelinek <jakub@redhat.com>
31814
31815 PR tree-optimization/69156
31816 * gimple.c (validate_type): Removed.
31817 (gimple_builtin_call_types_compatible_p): Use
31818 useless_type_conversion_p instead of validate_type.
31819 * value-prof.c (gimple_stringop_fixed_value): Fold
31820 icall_size to correct type.
31821
31822 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31823
31824 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31825 effects.
31826
31827 2016-01-13 Richard Henderson <rth@redhat.com>
31828
31829 PR tree-opt/68964
31830 * target.def (builtin_tm_load, builtin_tm_store): Remove.
31831 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31832 (ix86_builtin_tm_store): Remove.
31833 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31834 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31835 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31836 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31837 * doc/tm.texi: Rebuild.
31838
31839 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31840 (BUILT_IN_TM_MEMCPY_RTWN): New.
31841 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31842 fallback from vector to integer helpers.
31843 (build_tm_load): Handle vector types directly, instead of
31844 via target hook.
31845 (build_tm_store): Likewise.
31846 (expand_assign_tm): Prepare for register types not handled by
31847 the above. Copy them to memory and use memcpy.
31848 * tree.c (tm_define_builtin): New.
31849 (find_tm_vector_type): New.
31850 (build_tm_vector_builtins): New.
31851 (build_common_builtin_nodes): Call it.
31852
31853 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
31854
31855 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31856 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
31857
31858 2016-01-13 Tom de Vries <tom@codesourcery.com>
31859
31860 PR tree-optimization/69169
31861 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31862 handled_struct_type param.
31863 (create_variable_info_for, intra_create_variable_infos): Call
31864 create_variable_info_for_1 with extra arg.
31865
31866 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
31867
31868 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31869 and "armv8.1-a+crc" entries.
31870
31871 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
31872
31873 PR target/69228
31874 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31875 Change first operand predicate from register_or_constm1_operand
31876 to register_operand.
31877 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31878 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31879 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31880 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31881 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31882 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31883 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31884 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31885 comparison with constm1_rtx from vec_prefetch_gen part.
31886
31887 2016-01-13 Richard Biener <rguenther@suse.de>
31888
31889 PR tree-optimization/69013
31890 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31891 Exchange assert for a test.
31892
31893 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31894
31895 PR target/69247
31896 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31897
31898 2016-01-13 Richard Biener <rguenther@suse.de>
31899
31900 PR tree-optimization/69242
31901 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31902 assert with a check.
31903
31904 2016-01-13 Richard Biener <rguenther@suse.de>
31905
31906 PR tree-optimization/69186
31907 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31908 Properly guard vect_update_misalignment_for_peel call.
31909
31910 2016-01-12 Jeff Law <law@redhat.com>
31911
31912 PR tree-optimization/pr67755
31913 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31914 "need_profile_correction".
31915 (thread_block_1): Initialize new field to false by default. If we
31916 have multiple thread paths through a common joiner to different
31917 final targets, then set new field to true.
31918 (compute_path_counts): Only do count adjustment when it's really
31919 needed.
31920
31921 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31922
31923 * doc/invoke.texi (Spec Files): Move section down in file, past
31924 all command-line option descriptions.
31925
31926 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31927
31928 PR middle-end/54809
31929 * doc/gty.texi: Remove documentation of mark_hook.
31930 * gengtype.c (struct write_types_data): Remove code to support
31931 mark_hook attribute.
31932 (walk_type): Likewise.
31933 (write_func_for_structure): Likewise.
31934
31935 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31936
31937 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31938 Directory Options, and -specs= to Overall Options.
31939 (Overall Options): Adjust similarly. Reorder to group related
31940 options together. Make -specs= cross-reference the spec file details.
31941 (Directory Options): Adjust similarly.
31942
31943 2016-01-12 Jeff Law <law@redhat.com>
31944
31945 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31946
31947 2016-01-12 Olivier Hainque <hainque@adacore.com>
31948
31949 * gcc.c (spec_undefvar_allowed): New global.
31950 (process_command): Set to true when running for --version or --help,
31951 alone or together.
31952 (getenv_spec_function): When the variable is not defined, use the
31953 variable name as the variable value if we're allowed not to issue
31954 a fatal error.
31955
31956 2016-01-12 Bin Cheng <bin.cheng@arm.com>
31957
31958 PR tree-optimization/68911
31959 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31960 information computed for expression "init + nit * step".
31961
31962 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31963
31964 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
31965 about name of GCC executable. Remove deleted node from menu.
31966 (Directory Options) <-B>: Remove cross-reference to deleted node.
31967 (Target Options): Delete section.
31968
31969 2016-01-12 Christian Bruel <christian.bruel@st.com>
31970
31971 PR target/69180
31972 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31973 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31974
31975 2016-01-12 Jakub Jelinek <jakub@redhat.com>
31976
31977 PR target/69198
31978 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31979 aligned_mem is properly set for AVX512-VL floating point masked
31980 stores.
31981
31982 PR target/69175
31983 * ifcvt.c (cond_exec_process_if_block): When removing the last
31984 insn from then_bb, remove also any possible barriers that follow it.
31985
31986 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
31987
31988 PR target/68456
31989 PR target/69226
31990 * config/i386/iamcu.h (SIZE_TYPE): New macro.
31991 (PTRDIFF_TYPE): Likewise.
31992 (WCHAR_TYPE): Likewise.
31993 (WCHAR_TYPE_SIZE): Likewise.
31994 (STDINT_LONG32): Likewise.
31995
31996 2016-01-12 Richard Biener <rguenther@suse.de>
31997
31998 PR tree-optimization/69053
31999 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
32000 convert initial value for cond reductions.
32001
32002 2016-01-12 Richard Biener <rguenther@suse.de>
32003
32004 PR tree-optimization/69007
32005 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
32006 widen_sum after dot_prod and sad.
32007
32008 2016-01-12 Richard Biener <rguenther@suse.de>
32009
32010 PR tree-optimization/69168
32011 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
32012 pattern stmt SLP type.
32013 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
32014 end up unused so cope with that case.
32015
32016 2016-01-12 Richard Biener <rguenther@suse.de>
32017
32018 PR tree-optimization/69157
32019 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
32020 stmts def type only during analyze phase.
32021 (vectorizable_call): Likewise.
32022 (vectorizable_simd_clone_call): Likewise.
32023 (vectorizable_conversion): Likewise.
32024 (vectorizable_assignment): Likewise.
32025 (vectorizable_shift): Likewise.
32026 (vectorizable_operation): Likewise.
32027 (vectorizable_store): Likewise.
32028 (vectorizable_load): Likewise.
32029
32030 2016-01-12 Richard Biener <rguenther@suse.de>
32031
32032 PR tree-optimization/69174
32033 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
32034 space.
32035 (vectorizable_load): Properly compute the number of loads needed
32036 for permuted strided SLP loads and do not spuriously assign
32037 to SLP_TREE_VEC_STMTS.
32038
32039 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
32040
32041 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
32042 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
32043 (MD_EXEC_PREFIX): Remove.
32044 (MD_STARTFILE_PREFIX) Removee.
32045 (FILE_NAME_ABSOLUTE_P): Remove.
32046 (CPP_SPEC): Do not read macros from sys/version.h.
32047 (LINK_COMMAND_SPEC): Remove.
32048 (LOCAL_INCLUDE_DIR): Remove.
32049 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
32050 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
32051 (POST_LINK_SPEC): Define to invoke stubify after linker
32052 (LIBSTDCXX): Remove define
32053 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
32054 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
32055 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
32056 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
32057 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
32058 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
32059 (i386_djgpp_asm_named_section): Add propotype of new procedure
32060
32061 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
32062 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
32063 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
32064 in config/i386/djgpp.h).
32065 (STANDARD_STARTFILE_PREFIX_2): Define identical to
32066 STANDARD_STARTFILE_PREFIX_1.
32067 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
32068 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
32069 installation errors.
32070 (MAX_OFILE_ALIGNMENT): Define to 128.
32071 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
32072
32073 * config/i386/djgpp.c: New file. Add implementation of
32074 i386_djgpp_asm_named_section.
32075
32076 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
32077
32078 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
32079 Add rule for building djgpp.o.
32080
32081 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32082
32083 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
32084 (rtx_is_swappable_p): Reductions are swappable.
32085 (insn_is_swappable_p): V2DF reductions are swappable.
32086
32087 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
32088
32089 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
32090 reloads for other unsupported memory operands.
32091
32092 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
32093 Jim Wilson <jim.wilson@linaro.org>
32094
32095 PR target/69194
32096 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
32097 copy_to_mode_reg instead of force_reg.
32098
32099 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
32100
32101 PR target/69225
32102 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
32103 TARGET_80387 is true.
32104
32105 2016-01-11 Jakub Jelinek <jakub@redhat.com>
32106
32107 PR target/69071
32108 * lra-eliminations.c (move_plus_up): Only move plus up
32109 if subreg of the constant can be simplified into constant
32110 and use the simplified subreg of the constant instead of
32111 the original constant.
32112
32113 * fold-const.c (fold_convertible_p): Don't return true
32114 for conversion of VECTOR_TYPE to same sized integral type.
32115 (fold_convert_loc): Fix up formatting. Fold conversion of
32116 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
32117 instead of NOP_EXPR.
32118
32119 PR tree-optimization/69214
32120 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
32121 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
32122 Formatting fix.
32123
32124 PR tree-optimization/69207
32125 * tree-vect-slp.c (vect_get_constant_vectors): For
32126 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
32127 fold_convertible_p to vector_type's element type, and always
32128 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
32129
32130 2016-01-11 Richard Biener <rguenther@suse.de>
32131
32132 PR tree-optimization/69173
32133 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
32134 fixup the cycle if all stmts are in a pattern.
32135
32136 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
32137
32138 PR middle-end/68999
32139 * alias.c (base_alias_check): Move check for addresses with
32140 alignment ANDs before the call for compare_base_decls.
32141 (memrefs_conflict_p): Return -1 for different decls
32142 that went through alignment adjustments.
32143
32144 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32145
32146 PR rtl-optimization/68796
32147 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
32148 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
32149 and QImode comparisons against zero with CC_NZmode.
32150 * config/aarch64/iterators.md (short_mask): New mode_attr.
32151
32152 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
32153
32154 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
32155 (<avx512>_store<mode>_mask): Likewise.
32156
32157 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
32158 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32159
32160 PR rtl-optimization/68841
32161 * ifcvt.c (struct noce_if_info): Add orig_x field.
32162 (bbs_ok_for_cmove_arith): Add to_rename parameter.
32163 Don't record conflicts on to_rename if it's present.
32164 Allow memory destinations in sets.
32165 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
32166 blocks, passing orig_x to the checks.
32167 (noce_process_if_block): Set if_info->orig_x appropriately.
32168
32169 2016-01-11 Tom de Vries <tom@codesourcery.com>
32170
32171 PR tree-optimization/69069
32172 * tree-parloops.c (create_parallel_loop): Add missing phi args.
32173
32174 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
32175
32176 PR rtl-optimization/68920
32177 * config/i386/i386.c (ix86_option_override_internal): Restrict number
32178 of conditional moves for RTL if-conversion to 1 for
32179 TARGET_ONE_IF_CONV_INSN.
32180 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
32181 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
32182 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
32183 parameter to restirct number of conditional moves for
32184 RTL if-conversion.
32185 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
32186 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
32187 conditionl moves.
32188
32189 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
32190
32191 PR bootstrap/69123
32192 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
32193 onepart vars. Fix typo in comment. Fix reversed condition in
32194 unshare test.
32195 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
32196
32197 PR bootstrap/69123
32198 * var-tracking.c (dump_onepart_variable_differences): New.
32199 (dataflow_set_different): If a detailed dump is requested,
32200 delay early returns and dump differences between onepart
32201 variables present before and after, and added variables.
32202
32203 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
32204
32205 PR target/69010
32206 * expr.c (expand_expr_real_1): For boolean vector constants
32207 with a scalar mode use const_scalar_mask_from_tree.
32208 (const_scalar_mask_from_tree): New.
32209 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
32210 assigned to a mask type to handle constants.
32211
32212 2016-01-11 Martin Jambor <mjambor@suse.cz>
32213
32214 PR ipa/69044
32215 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
32216 useless parameters if we cannot change function signature.
32217
32218 2016-01-11 Martin Jambor <mjambor@suse.cz>
32219
32220 PR ipa/66616
32221 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
32222 flag.
32223
32224 2016-01-11 Tom de Vries <tom@codesourcery.com>
32225
32226 PR tree-optimization/69109
32227 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
32228 latch with phi.
32229
32230 2016-01-11 Tom de Vries <tom@codesourcery.com>
32231
32232 PR tree-optimization/69108
32233 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
32234 res is not used in a phi.
32235
32236 2016-01-11 Yury Gribov <y.gribov@samsung.com>
32237
32238 PR 67425
32239 * common.opt (frandom-seed): Fix parameter name.
32240 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
32241
32242 2016-01-11 Tom de Vries <tom@codesourcery.com>
32243
32244 PR tree-optimization/69058
32245 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
32246 not supported.
32247
32248 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
32249
32250 * config/arc/arc.opt (mdiv-rem): Add period to the end.
32251 (mcode-density): Likewise.
32252
32253 2016-01-10 Tom de Vries <tom@codesourcery.com>
32254
32255 PR tree-optimization/69062
32256 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
32257 (parallelize_loops): Don't paralelize loop that has phi with address
32258 arg.
32259
32260 2016-01-10 Tom de Vries <tom@codesourcery.com>
32261
32262 PR tree-optimization/69039
32263 * tree-parloops.c (try_create_reduction_list): Only allow single exit
32264 phi for reduction.
32265
32266 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
32267
32268 PR middle-end/68743
32269 * match.pd: Require target has function_c99_misc before doing
32270 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
32271
32272 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
32273
32274 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
32275 use GMPINC.
32276 * configure: Regenerate.
32277
32278 2016-01-09 Jakub Jelinek <jakub@redhat.com>
32279
32280 PR middle-end/50865
32281 PR tree-optimization/69097
32282 * fold-const.h (expr_not_equal_to): New prototype.
32283 * fold-const.c: Include stringpool.h and tree-ssanames.h.
32284 (expr_not_equal_to): New function.
32285 * match.pd (X % -Y is the same as X % Y): Don't optimize
32286 unless X is known not to be equal to minimum or Y is known
32287 not to be equal to -1.
32288 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
32289 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
32290 (simplify_stmt_using_ranges): Adjust caller.
32291 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
32292 substitute_and_fold.
32293
32294 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
32295
32296 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
32297 w/o DECL_NAME.
32298
32299 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32300
32301 PR tree-optimization/69167
32302 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
32303 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
32304 ops[0] comparison.
32305 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
32306
32307 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
32308 Richard Biener <rguenther@suse.de>
32309
32310 PR tree-optimization/68707
32311 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
32312 instances that can be handled via vect_load_lanes.
32313
32314 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
32315
32316 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
32317 if we can't determine address equivalence.
32318 * alias.c (compare_base_decl): Update for changed return value of
32319 symtab_node::equal_address_to.
32320
32321 2016-01-08 Jason Merrill <jason@redhat.com>
32322
32323 PR c++/68983
32324 PR c++/67557
32325 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
32326 * expr.c (store_field): Not here.
32327 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
32328 call with TREE_ADDRESSABLE type.
32329 * tree-cfg.c (verify_gimple_call): Adjust.
32330
32331 2016-01-08 Olivier Hainque <hainque@adacore.com>
32332
32333 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
32334 libc_internal.
32335
32336 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
32337
32338 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
32339 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
32340 (reduc_smin_v2sf): Rename to...
32341 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
32342 (reduc_splus_v2sf): Rename to...
32343 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
32344
32345 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32346
32347 PR tree-optimization/69162
32348 * gimplify.c (gimplify_va_arg_expr): Encode original type of
32349 valist argument in another argument.
32350 (gimplify_modify_expr): Adjust for the above change. Cleanup.
32351 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
32352 to determine the va_list type, build a MEM_REF instead of
32353 build_fold_indirect_ref.
32354
32355 PR tree-optimization/69172
32356 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
32357 gimple_build.
32358
32359 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
32360
32361 PR tree-optimization/67781
32362 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
32363 and cmpnop in two steps: first the ones not accessed in original
32364 gimple expression in a endian independent way and then the ones not
32365 accessed in the final result in an endian-specific way.
32366
32367 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32368
32369 PR tree-optimization/69083
32370 * tree-vect-slp.c (vect_get_constant_vectors): For
32371 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
32372 element type. If op is fold_convertible_p to vector_type's element
32373 type, use NOP_EXPR instead of VCE.
32374
32375 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
32376
32377 PR rtl-optimization/67778
32378 PR rtl-optimization/68634
32379 PR rtl-optimization/68909
32380 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
32381 block from the stack until done with it. Remove a superfluous
32382 bitmap set. Remove a superfluous bitmap test.
32383
32384 2016-01-07 Martin Sebor <msebor@redhat.com>
32385
32386 PR c/68966
32387 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
32388 constraint on the type of arguments.
32389
32390 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
32391
32392 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
32393 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
32394 unaligned_access on the gcc_options set.
32395 * config/arm/arm.c (arm_option_override_internal): Use
32396 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
32397
32398 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
32399
32400 PR target/69140
32401 * config/i386/i386.c (ix86_frame_pointer_required): Enable
32402 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
32403
32404 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
32405
32406 Revert
32407 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32408
32409 PR target/69140
32410 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32411 depending on frame_pointer_needed before remaining integer and SSE
32412 registers are saved.
32413
32414 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
32415
32416 PR 1078
32417 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
32418
32419 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
32420
32421 PR target/69171
32422 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
32423 Use the "xBm" constraint.
32424 (float<sseintvecmodelower><mode>2<mask_name><round_name):
32425 Likewise.
32426 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
32427 (sse_cvtsi2ssq<round_name>): Likewise.
32428 (sse_cvtss2si<round_name>): Likewise.
32429 (sse_cvtss2siq<round_name>): Likewise.
32430 (sse2_cvtsi2sdq<round_name>): Likewise.
32431 (sse2_cvtsd2si<round_name>): Likewise.
32432 (sse2_cvtsd2siq<round_name>): Likewise.
32433 * config/i386/subst.md (round_nimm_scalar_predicate): New
32434 predicate.
32435
32436 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
32437
32438 PR middle-end/67639
32439 * varasm.c (make_decl_rtl): Mark invalid register vars as
32440 DECL_EXTERNAL.
32441
32442 PR rtl-optimization/66206
32443 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
32444 All callers changed.
32445
32446 2016-01-07 Jakub Jelinek <jakub@redhat.com>
32447
32448 PR tree-optimization/69141
32449 * tree-ssa-pre.c: Include langhooks.h.
32450 (eliminate_dom_walker::before_dom_children): Use
32451 lang_hooks.decl_printable_name instead of
32452 cgraph_node::get ()->name ().
32453
32454 PR middle-end/68960
32455 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
32456 it and DECL_ALIGN too.
32457
32458 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
32459
32460 * config/mips/mips-ftypes.def: Sort to lexicographical order.
32461
32462 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32463
32464 PR target/69140
32465 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32466 depending on frame_pointer_needed before remaining integer and SSE
32467 registers are saved.
32468
32469 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32470
32471 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
32472 mode iterator with VSX_M2.
32473 (*p9_vecstore_<mode>): Likewise.
32474 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
32475 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
32476 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
32477 (define_split for VSX_LE128 stores): Likewise.
32478 (define_peephole2 for TImode LE swaps): Likewise.
32479 (define_split for VSX_LE128 post-reload stores): Likewise.
32480
32481 2016-01-06 Marek Polacek <polacek@redhat.com>
32482
32483 PR sanitizer/69099
32484 * convert.c (convert_to_integer_1): Adjust call to
32485 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
32486 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
32487 EXPR instead of ARG.
32488 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
32489
32490 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32491
32492 PR 1078
32493 * doc/extend.texi (RL78 Variable Attributes): New section.
32494
32495 2016-01-05 Marek Polacek <polacek@redhat.com>
32496
32497 PR c/69104
32498 * builtins.c (get_memmodel): Use expansion point location rather than
32499 the input location. Call warning_at rather than warning.
32500 (expand_builtin_atomic_compare_exchange): Likewise.
32501 (expand_builtin_atomic_load): Likewise.
32502 (expand_builtin_atomic_store): Likewise.
32503 (expand_builtin_atomic_clear): Likewise.
32504
32505 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32506
32507 PR target/68991
32508 * config/i386/i386.c (ix86_expand_vector_logical_operator):
32509 Replace nonimmediate_operand with vector_operand.
32510 * config/i386/predicates.md (vector_operand): New predicate.
32511 (general_vector_operand): Replace nonimmediate_operand with
32512 vector_operand.
32513 * config/i386/sse.md: Replace nonimmediate_operand with
32514 vector_operand and m constraint with Bm constraint on SSE
32515 patterns with 16-byte memory operand.
32516 * config/i386/subst.md (round_nimm_predicate): Replace
32517 nonimmediate_operand with vector_operand.
32518 (round_saeonly_nimm_predicate): Likewise.
32519 (round_saeonly_nimm_scalar_predicate): New.
32520
32521 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32522
32523 PR target/68991
32524 * config/i386/constraints.md (Bm): New constraint.
32525 * config/i386/predicates.md (vector_memory_operand): New
32526 predicate.
32527 * config/i386/sse.md: Replace xm with xBm in plusminus and
32528 any_logic patterns.
32529
32530 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32531
32532 PR 1078
32533 * doc/extend.texi (V850 Function Attributes): New section.
32534 (V850 Variable Attributes): New section.
32535
32536 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32537
32538 PR 1078
32539 * doc/extend.texi (MicroBlaze Function Attributes): Document
32540 interrupt_handler and fast_interrupt attributes.
32541
32542 2016-01-05 Sergei Trofimovich <siarheit@google.com>
32543
32544 PR other/60465
32545 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
32546 for local symbolic operands.
32547 * config/ia64/predicates.md (local_symbolic_operand64): New
32548 predicate.
32549
32550 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32551
32552 PR rtl-optimization/68651
32553 * combine.c (combine_simplify_rtx): Canonicalize x + x into
32554 x << 1.
32555
32556 2016-01-05 Nathan Sidwell <nathan@acm.org>
32557
32558 * alias.c (compare_base_decls): Use symtab_node::get.
32559
32560 2016-01-05 Nick Clifton <nickc@redhat.com>
32561
32562 PR target/68770
32563 * ira-costs.c (copy_cost): Initialise the t_icode field of the
32564 secondary_reload_info structure.
32565
32566 PR target/66655
32567 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
32568 decls if weak support is available.
32569
32570 2016-01-04 Martin Sebor <msebor@redhat.com>
32571
32572 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
32573
32574 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32575
32576 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
32577 OPTION_MASK_P9_DFORM.
32578
32579 * config/rs6000/constraints.md (wo constraint): New constraint for
32580 ISA 3.0 (power9).
32581
32582 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
32583 for wo constraint.
32584 (rs6000_init_hard_regno_mode_ok): Likewise.
32585
32586 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
32587 wo constraint.
32588
32589 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
32590 expanders not to have constraints. Add support for ISA 3.0 xxperm
32591 instruction. Add support for fusing xxlor with xxperm.
32592 (altivec_vperm_<mode>_internal): Likewise.
32593 (altivec_vperm_v8hiv16qi): Likewise.
32594 (altivec_vperm_<mode>v16q): Likewise.
32595 (altivec_vperm_<mode>_uns): Likewise.
32596 (vperm_v8hiv4si): Likewise.
32597 (vperm_v16qiv8hi): Likewise.
32598
32599 * doc/md.texi (RS/6000 constraints): Document wo constraint.
32600
32601 2016-01-04 Jakub Jelinek <jakub@redhat.com>
32602
32603 Update copyright years.
32604
32605 * gcc.c (process_command): Update copyright notice dates.
32606 * gcov-dump.c (print_version): Ditto.
32607 * gcov.c (print_version): Ditto.
32608 * gcov-tool.c (print_version): Ditto.
32609 * gengtype.c (create_file): Ditto.
32610 * doc/cpp.texi: Bump @copying's copyright year.
32611 * doc/cppinternals.texi: Ditto.
32612 * doc/gcc.texi: Ditto.
32613 * doc/gccint.texi: Ditto.
32614 * doc/gcov.texi: Ditto.
32615 * doc/install.texi: Ditto.
32616 * doc/invoke.texi: Ditto.
32617
32618 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32619
32620 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
32621 modes larger than TImode as TImode if NEON is not enabled.
32622
32623 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32624
32625 PR target/69100
32626 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
32627 mode for %f0-%f31 only if TARGET_FPU.
32628
32629 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32630
32631 PR target/69072
32632 * config/sparc/sparc.c (scan_record_type): Take into account subfields
32633 to compute the PACKED_P predicate.
32634 (function_arg_record_value): Minor tweaks.
32635
32636 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32637
32638 * doc/install.texi (--with-multilib-list): Describe the meaning of the
32639 option for arm*-*-* targets.
32640
32641 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
32642
32643 * doc/extend.texi (Common Function Attributes): Move docs for
32644 MSP430-specific attributes to....
32645 (MSP430 Function Attributes): ...here. Delete the redundant
32646 entries and copy-edit the remaining text.
32647 (MSP430 Variable Attributes): Use uniform format for index
32648 entries and add a cross-reference to the corresponding function
32649 attribute docs.
32650
32651 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
32652
32653 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
32654 -finite-math typo.
32655 (x86 Options): Likewise.
32656
32657 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32658
32659 PR 1078
32660
32661 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
32662 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
32663 to corresponding attribute.
32664
32665 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32666
32667 * doc/extend.texi (Common Function Attributes) <noplt>: Move
32668 to correct alphabetization of table. Copy-edit and correct
32669 markup.
32670 <stack_protect>: Likewise.
32671 <target_clones>: Likewise.
32672 <simd>: Likewise.
32673 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
32674 Correct punctuation.
32675 (Code Gen Options) <-fno-plt>: Copy-edit.
32676
32677 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32678
32679 PR target/68917
32680 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
32681 SI values. Explicitly convert SI to DI and vice-versa.
32682
32683 2016-01-01 Jakub Jelinek <jakub@redhat.com>
32684
32685 PR tree-optimization/69070
32686 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
32687 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
32688
32689 PR sanitizer/69055
32690 * ubsan.c (ubsan_instrument_float_cast): Call
32691 initialize_sanitizer_builtins.
32692
32693 PR target/69015
32694 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
32695 \f
32696 Copyright (C) 2016 Free Software Foundation, Inc.
32697
32698 Copying and distribution of this file, with or without modification,
32699 are permitted in any medium without royalty provided the copyright
32700 notice and this notice are preserved.