]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Tweak LRA handling of shared spill slots
[thirdparty/gcc.git] / gcc / ChangeLog
1 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2 Alan Hayward <alan.hayward@arm.com>
3 David Sherwood <david.sherwood@arm.com>
4
5 * function.h (spill_slot_alignment): Declare.
6 * function.c (spill_slot_alignment): New function.
7 * lra-spills.c (slot): Add align and size fields.
8 (assign_mem_slot): Use them in the call to assign_stack_local.
9 (add_pseudo_to_slot): Update the fields.
10 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
11
12 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
13 Alan Hayward <alan.hayward@arm.com>
14 David Sherwood <david.sherwood@arm.com>
15
16 * stor-layout.c (layout_type): Allow the caller to set the mode of
17 a float type. Only choose one here if the mode is still VOIDmode.
18 * tree.c (build_common_tree_nodes): Set the type mode of decimal
19 floats before calling layout_type.
20 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
21
22 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
23
24 * tree-tailcall.c (find_tail_calls): Allow calls to reference
25 local variables if all references are known to be direct.
26
27 2016-11-25 Jakub Jelinek <jakub@redhat.com>
28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29
30 PR middle-end/78501
31 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
32 non null and it's precision matches precision of lhs's type.
33
34 2016-11-24 Martin Sebor <msebor@redhat.com>
35
36 PR tree-optimization/78476
37 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
38 Add a member.
39 (handle_gimple_call): Adjust signature.
40 (try_substitute_return_value): Remove calls to bounded functions
41 with zero buffer size whose result is known.
42 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
43
44 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
45
46 * varasm.c (assemble_start_function): Wrap align_log definition in
47 ASM_OUTPUT_MAX_SKIP_ALIGN.
48
49 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
50
51 * config/i386/i386.md (wide AND insn to QImode splitter): Use
52 explicit mode macros.
53 (wide OR insn to QImode splitter): Ditto.
54
55 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
56
57 PR rtl-optimization/77541
58 * lra-constraints.c (struct input_reload): Add field match_p.
59 (get_reload_reg): Check modes of input reloads to generate unique
60 value reload pseudo.
61 (match_reload): Add input reload pseudo for the current insn.
62
63 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
64
65 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
66 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
67 architecture levels.
68 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
69 the aarch64_fp16_type_node, not all HFmode types.
70 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
71 (aarch64_scalar_mode_supported_p): Likewise.
72 (aarch64_excess_precision): New.
73 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
74 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
75 (TARGET_C_EXCESS_PRECISION): Likewise.
76
77 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
78
79 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
80 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
81
82 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
83
84 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
85 (<optab>dihf2): Likewise.
86 (aarch64_fp16_<optab><mode>hf2): New.
87
88 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
89
90 PR target/67822
91 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
92
93 >>>>>>> .r242853
94 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
95
96 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
97 Enable REE at -O2 and higher.
98 * config/sparc/sparc.c (sparc_option_override): Disable it by default
99 in 32-bit mode.
100
101 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
102
103 PR target/48863
104 PR inline-asm/70184
105 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
106 (new_temp_expr_table): Initialise reg_vars_cnt.
107 (free_temp_expr_table): Release reg_vars_cnt.
108 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
109 field of TAB.
110 (find_replaceable_in_bb): Use the above to record register variable
111 write occurrences and cancel replacement across them.
112
113 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
114
115 PR rtl-optimization/78437
116 * ree.c (get_uses): New function.
117 (combine_reaching_defs): When a copy is needed, return false if any
118 reaching use of the source register reads it in a mode larger than
119 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
120
121 2016-11-24 Martin Liska <mliska@suse.cz>
122
123 * gimple-pretty-print.c (dump_edge_probability): New function.
124 (dump_gimple_switch): Dump label edge probabilities.
125 (dump_gimple_cond): Likewise.
126 (dump_gimple_label): Dump
127 (dump_gimple_bb_header): Dump basic block frequency.
128 (pp_cfg_jump): Replace e->dest argument with e.
129 (dump_implicit_edges): Likewise.
130 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
131 Use gimple_bb (at) instead of at->bb.
132
133 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
134
135 * common.opt (flimit-function-alignment): New.
136 * doc/invoke.texi (-flimit-function-alignment): Document.
137 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
138 * final.c (shorten_branches): Set it.
139 * varasm.c (assemble_start_function): Limit alignment if
140 requested.
141
142 2016-11-24 Richard Biener <rguenther@suse.de>
143
144 PR tree-optimization/71595
145 * cfgloopmanip.h (remove_path): Add irred_invalidated and
146 loop_closed_ssa_invalidated parameters, defaulted to NULL.
147 * cfgloopmanip.c (remove_path): Likewise, pass them along to
148 called functions. Only fix irred flags if the caller didn't
149 request state.
150 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
151 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
152 to remove_path.
153
154 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
155
156 PR rtl-optimization/78120
157 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
158 cases, and additionally test against max_seq_cost for speed
159 optimization.
160 (noce_process_if_block): Compute an estimate for the original cost when
161 optimizing for speed, using the minimum of then and else block costs.
162
163 PR rtl-optimization/78120
164 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
165
166 PR rtl-optimization/78120
167 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
168
169 2016-11-24 Bin Cheng <bin.cheng@arm.com>
170
171 * match.pd: Refine type conversion in result expr for below pattern:
172 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
173
174 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
175
176 PR middle-end/78429
177 * tree.h (wi::fits_to_boolean_p): New predicate.
178 (wi::fits_to_tree_p): Use it for boolean types.
179 * tree.c (int_fits_type_p): Likewise.
180
181 2016-11-24 Martin Liska <mliska@suse.cz>
182
183 * print-tree.c (struct bucket): Remove.
184 (print_node): Add new argument which drives whether a tree node
185 is printed briefly or not.
186 (debug_tree): Replace a custom hash table with hash_set<T>.
187 * print-tree.h (print_node): Add the argument.
188
189 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
190
191 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
192
193 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
194
195 PR target/78458
196 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
197 if it is at least NREGS wide.
198
199 2016-11-23 Joseph Myers <joseph@codesourcery.com>
200
201 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
202 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
203 TFmode, IFmode and KFmode.
204
205 2016-11-23 Joseph Myers <joseph@codesourcery.com>
206
207 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
208 pattern.
209
210 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
211
212 * combine.c (change_zero_ext): Only change the mode of a hard register
213 destination if can_change_dest_mode holds for that.
214
215 2016-11-23 Jeff Law <law@redhat.com>
216
217 * varasm.c (assemble_name): Increase buffer size for name.
218
219 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
220
221 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
222
223 * doc/extend.texi: Constify first argument to __builtin_object_size.
224
225 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
226
227 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
228 to be used. Add brackets around macro argument.
229
230 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
231
232 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
233
234 2016-11-23 Jakub Jelinek <jakub@redhat.com>
235
236 PR sanitizer/69278
237 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
238 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
239
240 2016-11-23 Jakub Jelinek <jakub@redhat.com>
241
242 PR middle-end/69183
243 * omp-low.c (build_outer_var_ref): Change lastprivate argument
244 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
245 on worksharing constructs, treat it like clauses on simd construct.
246 Formatting fix.
247 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
248 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
249 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
250 of true as last argument to build_outer_var_ref.
251
252 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
253
254 * config/i386/i386.md (*movqi_internal): Calculate mode
255 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
256 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
257 (*k<logic><mode>): Calculate mode attribute depending on
258 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
259 (*andqi_1): Calculate mode attribute of alternative 3 depending
260 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
261 (kandn<mode>): Calculate mode attribute of alternative 2 depending
262 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
263 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
264 iterator. Calculate mode attribute of alternative 1 depending
265 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
266 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
267 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
268
269 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
270
271 PR middle-end/78153
272 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
273 * tree-vrp.c (extract_range_basic): Handle case for
274 CFN_BUILT_IN_STRLEN.
275
276 2016-11-23 Jeff Law <law@redhat.com>
277
278 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
279
280 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
281 in boolean context warning.
282
283 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
284
285 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
286
287 PR target/63250
288 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
289 (arm_fp16_type_node): ...This, make visibile.
290 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
291 arm_fp16_type_node.
292 (arm_init_simd_builtin_types): Likewise.
293 (arm_init_fp16_builtins): Likewise.
294 * config/arm/arm.c (arm_excess_precision): New.
295 (arm_floatn_mode): Likewise.
296 (TARGET_C_EXCESS_PRECISION): Likewise.
297 (TARGET_FLOATN_MODE): Likewise.
298 (arm_promoted_type): Only promote arm_fp16_type_node.
299 * config/arm/arm.h (arm_fp16_type_node): Declare.
300
301 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
302
303 * config/arm/arm.c (arm_convert_to_type): Delete.
304 (TARGET_CONVERT_TO_TYPE): Delete.
305 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
306 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
307 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
308 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
309 are in fast math mode, and have no single step hardware instruction.
310 (extendhfdf2): Only expand through SFmode if we don't have a
311 single-step hardware instruction.
312 * config/arm/vfp.md (*truncdfhf2): New.
313 (extendhfdf2): Likewise.
314
315 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
316
317 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
318 provides HFmode.
319
320 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
321
322 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
323 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
324 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
325 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
326 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
327 * doc/tm.texi: Regenerate.
328 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
329
330 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
331
332 * toplev.c (init_excess_precision): Delete most logic.
333 * tree.c (excess_precision_type): Rewrite to use
334 TARGET_EXCESS_PRECISION.
335 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
336 more generic fashion.
337 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
338 __STDC_WANT_IEC_60559_TYPES_EXT__.
339
340 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
341
342 * common.opt (fpermitted-flt-eval-methods): New.
343 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
344 * flag_types.h (permitted_flt_eval_methods): New.
345
346 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
347
348 * config/m68k/m68k.c (m68k_excess_precision): New.
349 (TARGET_C_EXCESS_PRECISION): Define.
350
351 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
352
353 * config/s390/s390.c (s390_excess_precision): New.
354 (TARGET_C_EXCESS_PRECISION): Define.
355
356 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
357
358 * config/i386/i386.c (ix86_excess_precision): New.
359 (TARGET_C_EXCESS_PRECISION): Define.
360
361 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
362
363 * target.def (excess_precision): New hook.
364 * target.h (flt_eval_method): New.
365 (excess_precision_type): Likewise.
366 * targhooks.c (default_excess_precision): New.
367 * targhooks.h (default_excess_precision): New.
368 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
369 * doc/tm.texi: Regenerate.
370
371 2016-11-23 Martin Sebor <msebor@redhat.com>
372
373 PR middle-end/78461
374 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
375 set the minimum number of bytes for an unknown string to zero.
376
377 2016-11-23 Martin Jambor <mjambor@suse.cz>
378 Martin Liska <mliska@suse.cz>
379
380 * hsa-builtins.def: New file.
381 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
382 * builtins.def: Include hsa-builtins.def.
383 (DEF_HSA_BUILTIN): New macro.
384 * dumpfile.h (OPTGROUP_OPENMP): Define.
385 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
386 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
387 GF_OMP_FOR_GRID_GROUP_ITER.
388 (gimple_omp_for_grid_phony): Added checking assert.
389 (gimple_omp_for_set_grid_phony): Likewise.
390 (gimple_omp_for_grid_intra_group): New function.
391 (gimple_omp_for_set_grid_intra_group): Likewise.
392 (gimple_omp_for_grid_group_iter): Likewise.
393 (gimple_omp_for_set_grid_group_iter): Likewise.
394 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
395 previosuly only distribute loop was permitted.
396 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
397 (grid_get_kernel_launch_attributes): Support multiple HSA grid
398 dimensions.
399 (grid_expand_omp_for_loop): Likewise and also support standalone
400 distribute constructs. New parameter INTRA_GROUP, updated both users.
401 (grid_expand_target_grid_body): Support standalone distribute
402 constructs.
403 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
404 (pass_data_expand_omp_ssa): Likewise.
405 (pass_data_omp_device_lower): Likewsie.
406 (pass_data_lower_omp): Likewise.
407 (pass_data_diagnose_omp_blocks): Likewise.
408 (pass_data_oacc_device_lower): Likewise.
409 (pass_data_omp_target_link): Likewise.
410 (grid_lastprivate_predicate): New function.
411 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
412 gridified loops.
413 (lower_omp_for): Support standalone distribute constructs.
414 (grid_prop): New type.
415 (grid_safe_assignment_p): Check for assignments to group_sizes, new
416 parameter GRID.
417 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
418 it to callee.
419 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
420 optimization info messages.
421 (grid_find_single_omp_among_assignments): Likewise.
422 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
423 (grid_parallel_clauses_gridifiable): New function.
424 (grid_inner_loop_gridifiable_p): Likewise.
425 (grid_dist_follows_simple_pattern): Likewise.
426 (grid_gfor_follows_tiling_pattern): Likewise.
427 (grid_call_permissible_in_distribute_p): Likewise.
428 (grid_handle_call_in_distribute): Likewise.
429 (grid_dist_follows_tiling_pattern): Likewise.
430 (grid_target_follows_gridifiable_pattern): Support standalone
431 distribute constructs.
432 (grid_var_segment): New enum.
433 (grid_mark_variable_segment): New function.
434 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
435 if a new argument says so.
436 (grid_process_grid_body): New function.
437 (grid_eliminate_combined_simd_part): Likewise.
438 (grid_mark_tiling_loops): Likewise.
439 (grid_mark_tiling_parallels_and_loops): Likewise.
440 (grid_process_kernel_body_copy): Support standalone distribute
441 constructs.
442 (grid_attempt_target_gridification): New grid variable holding overall
443 gridification state. Support standalone distribute constructs and
444 collapse clauses.
445 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
446 * hsa.h (hsa_bb): Add method method append_phi.
447 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
448 occurences in all files too.
449 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
450 (is_a_helper <hsa_insn_br *>::test): New function.
451 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
452 branch instructions.
453 (hsa_insn_signal): Make a direct descendant of
454 hsa_insn_basic. Add memorder constructor parameter and
455 m_memory_order and m_signalop member variables.
456 (hsa_insn_queue): Changed constructor parameters to common form.
457 Added m_segment and m_memory_order member variables.
458 (hsa_summary_t): Add private member function
459 process_gpu_implementation_attributes.
460 (hsa_function_summary): Rename m_binded_function to
461 m_bound_function.
462 (hsa_insn_basic_p): Remove typedef.
463 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
464 (hsa_op_reg_p): Remove typedef.
465 (hsa_function_representation): Change hsa_op_reg_p into plain
466 pointers.
467 (hsa_insn_phi): Removed new and delete operators.
468 (hsa_insn_br): Likewise.
469 (hsa_insn_cbr): Likewise.
470 (hsa_insn_sbr): Likewise.
471 (hsa_insn_cmp): Likewise.
472 (hsa_insn_mem): Likewise.
473 (hsa_insn_atomic): Likewise.
474 (hsa_insn_signal): Likewise.
475 (hsa_insn_seg): Likewise.
476 (hsa_insn_call): Likewise.
477 (hsa_insn_arg_block): Likewise.
478 (hsa_insn_comment): Likewise.
479 (hsa_insn_srctype): Likewise.
480 (hsa_insn_packed): Likewise.
481 (hsa_insn_cvt): Likewise.
482 (hsa_insn_alloca): Likewise.
483 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
484 (process_gpu_implementation_attributes): New function.
485 (link_functions): Move some functionality into it. Adjust after
486 renaming m_binded_functions to m_bound_functions.
487 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
488 to the list of instructions with no output registers.
489 (get_in_type): Return this if it is a register of
490 matching size.
491 (hsa_get_declaration_name): Moved to...
492 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
493 temporary string on an obstack instead from ggc.
494 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
495 down to two overloads.
496 (hsa_allocp_operand_address): Removed.
497 (hsa_allocp_operand_immed): Likewise.
498 (hsa_allocp_operand_reg): Likewise.
499 (hsa_allocp_operand_code_list): Likewise.
500 (hsa_allocp_operand_operand_list): Likewise.
501 (hsa_allocp_inst_basic): Likewise.
502 (hsa_allocp_inst_phi): Likewise.
503 (hsa_allocp_inst_mem): Likewise.
504 (hsa_allocp_inst_atomic): Likewise.
505 (hsa_allocp_inst_signal): Likewise.
506 (hsa_allocp_inst_seg): Likewise.
507 (hsa_allocp_inst_cmp): Likewise.
508 (hsa_allocp_inst_br): Likewise.
509 (hsa_allocp_inst_sbr): Likewise.
510 (hsa_allocp_inst_call): Likewise.
511 (hsa_allocp_inst_arg_block): Likewise.
512 (hsa_allocp_inst_comment): Likewise.
513 (hsa_allocp_inst_queue): Likewise.
514 (hsa_allocp_inst_srctype): Likewise.
515 (hsa_allocp_inst_packed): Likewise.
516 (hsa_allocp_inst_cvt): Likewise.
517 (hsa_allocp_inst_alloca): Likewise.
518 (hsa_allocp_bb): Likewise.
519 (hsa_obstack): New.
520 (hsa_init_data_for_cfun): Initialize obstack.
521 (hsa_deinit_data_for_cfun): Release memory of the obstack.
522 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
523 (hsa_op_reg::operator new): Likewise.
524 (hsa_op_address::operator new): Likewise.
525 (hsa_op_code_list::operator new): Likewise.
526 (hsa_op_operand_list::operator new): Likewise.
527 (hsa_insn_basic::operator new): Likewise.
528 (hsa_insn_phi::operator new): Likewise.
529 (hsa_insn_br::operator new): Likewise.
530 (hsa_insn_sbr::operator new): Likewise.
531 (hsa_insn_cmp::operator new): Likewise.
532 (hsa_insn_mem::operator new): Likewise.
533 (hsa_insn_atomic::operator new): Likewise.
534 (hsa_insn_signal::operator new): Likewise.
535 (hsa_insn_seg::operator new): Likewise.
536 (hsa_insn_call::operator new): Likewise.
537 (hsa_insn_arg_block::operator new): Likewise.
538 (hsa_insn_comment::operator new): Likewise.
539 (hsa_insn_srctype::operator new): Likewise.
540 (hsa_insn_packed::operator new): Likewise.
541 (hsa_insn_cvt::operator new): Likewise.
542 (hsa_insn_alloca::operator new): Likewise.
543 (hsa_init_new_bb): Likewise.
544 (hsa_bb::append_phi): New function.
545 (gen_hsa_phi_from_gimple_phi): Use it.
546 (get_symbol_for_decl): Fix dinstinguishing between
547 global and local functions. Put local variables into a segment
548 according to their attribute or static flag, if there is one.
549 (hsa_insn_br::hsa_insn_br): New.
550 (hsa_insn_br::operator new): Likewise.
551 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
552 (query_hsa_grid_nodim): New function.
553 (multiply_grid_dim_characteristics): Likewise.
554 (gen_get_num_threads): Likewise.
555 (gen_get_num_teams): Reimplemented.
556 (gen_get_team_num): Likewise.
557 (gen_hsa_insns_for_known_library_call): Updated calls to the above
558 helper functions.
559 (get_memory_order_name): Removed.
560 (get_memory_order): Likewise.
561 (hsa_memorder_from_tree): New function.
562 (gen_hsa_ternary_atomic_for_builtin): Renamed to
563 gen_hsa_atomic_for_builtin, can also create signals.
564 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
565 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
566 (hsa_insn_atomic): Fix function comment.
567 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
568 ancestor constructor and initialization of new member variables.
569 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
570 member variables.
571 (hsa_get_host_function): Handle functions with no bound CPU
572 implementation. Fix binded to bound.
573 (get_brig_function_name): Likewise.
574 (HSA_SORRY_ATV): Remove semicolon after macro.
575 (HSA_SORRY_AT): Likewise.
576 (omp_simple_builtin::generate): Add missing semicolons.
577 (hsa_insn_phi::operator new): Removed.
578 (hsa_insn_br::operator new): Likewise.
579 (hsa_insn_cbr::operator new): Likewise.
580 (hsa_insn_sbr::operator new): Likewise.
581 (hsa_insn_cmp::operator new): Likewise.
582 (hsa_insn_mem::operator new): Likewise.
583 (hsa_insn_atomic::operator new): Likewise.
584 (hsa_insn_signal::operator new): Likewise.
585 (hsa_insn_seg::operator new): Likewise.
586 (hsa_insn_call::operator new): Likewise.
587 (hsa_insn_arg_block::operator new): Likewise.
588 (hsa_insn_comment::operator new): Likewise.
589 (hsa_insn_srctype::operator new): Likewise.
590 (hsa_insn_packed::operator new): Likewise.
591 (hsa_insn_cvt::operator new): Likewise.
592 (hsa_insn_alloca::operator new): Likewise.
593 (get_symbol_for_decl): Accept CONST_DECLs, put them to
594 readonly segment.
595 (gen_hsa_addr): Also process CONST_DECLs.
596 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
597 copies.
598 (gen_hsa_unary_operation): Make sure the function does
599 not use bittype source type for firstbit and lastbit operations.
600 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
601 source type.
602 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
603 instruction.
604 (emit_branch_insn): Renamed to emit_cond_branch_insn.
605 Emit the width stored in the class.
606 (emit_generic_branch_insn): New function.
607 (emit_insn): Call emit_generic_branch_insn.
608 (emit_signal_insn): Remove obsolete comment. Update
609 member variable name, pick a type according to profile.
610 (emit_alloca_insn): Remove obsolete comment.
611 (emit_atomic_insn): Likewise.
612 (emit_queue_insn): Get segment and memory order from the IR object.
613 (hsa_brig_section): Make allocate_new_chunk, chunks
614 and cur_chunk provate, add a default NULL parameter to add method.
615 (hsa_brig_section::add): Added a new parameter, store pointer to
616 output data there if it is non-NULL.
617 (emit_function_directives): Use this new parameter instead of
618 calculating the pointer itself, fix function comment.
619 (hsa_brig_emit_function): Add forgotten endian conversion.
620 (hsa_output_kernels): Remove unnecessary building of
621 kernel_dependencies_vector_type.
622 (emit_immediate_operand): Declare.
623 (emit_directive_variable): Also emit initializers of CONST_DECLs.
624 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
625 (verify_function_arguments): Properly detect variadic
626 arguments.
627 * hsa-dump.c (hsa_width_specifier_name): New function.
628 (dump_hsa_insn_1): Dump generic branch instructions, update signal
629 member variable name. Special dumping for queue objects.
630 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
631 m_binded_functions to m_bound_functions. Copy externally visible flag
632 to the node.
633 (ipa_hsa_write_summary): Likewise.
634 (ipa_hsa_read_section): Likewise.
635
636 2016-11-23 Richard Biener <rguenther@suse.de>
637
638 PR tree-optimization/78396
639 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
640 vectorize try vectorizing an if-converted body using BB vectorization.
641
642 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
643 Alan Hayward <alan.hayward@arm.com>
644 David Sherwood <david.sherwood@arm.com>
645
646 * rtlanal.c (subreg_get_info): Use more local variables.
647 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
648 occupies at least one register. Assume that full hard registers
649 have consistent endianness. Share previously-duplicated if block.
650 Rework the main handling so that it operates on independently-
651 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
652 to check lowpart offsets, without trying to find an equivalent
653 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
654 as a final register-endianness correction.
655
656 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
657
658 PR target/77881
659 PR bootstrap/78390
660 PR target/78438
661 PR bootstrap/78477
662 * combine.c (make_compound_operation_int): Do not convert a subreg of
663 a non-constant logical shift right to a zero_extract. Handle the case
664 where some zero bits have been shifted into the range covered by that
665 subreg.
666
667 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
668 Alan Hayward <alan.hayward@arm.com>
669 David Sherwood <david.sherwood@arm.com>
670
671 * rtl.h (subreg_size_offset_from_lsb): Declare.
672 (subreg_offset_from_lsb): New function.
673 (subreg_size_lowpart_offset): Declare.
674 (subreg_lowpart_offset): Turn into an inline function.
675 (subreg_size_highpart_offset): Declare.
676 (subreg_highpart_offset): Turn into an inline function.
677 * emit-rtl.c (subreg_size_lowpart_offset): New function.
678 (subreg_size_highpart_offset): Likewise
679 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
680
681 2016-11-23 Richard Biener <rguenther@suse.de>
682
683 PR tree-optimization/78482
684 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
685 (remove_forwarder_block_with_phi): When merging with a loop
686 header creates a new latch reset number of iteration information
687 of the loop.
688
689 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
690
691 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
692 (*ashrsi3_extend0): ...this. Accept constant integers.
693 (*ashrsi3_extend2): Rename to...
694 (*ashrsi3_extend1): ...this.
695 (*ashrsi3_extend2): New pattern.
696 (*lshrsi3_extend1): Accept constant integers.
697 (*lshrsi3_extend2): Fix condition on operand 2.
698
699 2016-11-23 Martin Liska <mliska@suse.cz>
700
701 * config/i386/i386.c: Initialize function pointer to NULL.
702
703 2016-11-23 Bin Cheng <bin.cheng@arm.com>
704
705 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
706 for A == C1 ? A : C2 to below.
707 * match.pd: Move from above to here:
708 (cond (eq (convert1? x) c1) (convert2? x) c2)
709 -> (cond (eq x c1) c1 c2).
710
711 2016-11-23 Bin Cheng <bin.cheng@arm.com>
712
713 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
714 for A cmp C1 ? A : C2 to below, also simplify remaining code.
715 * match.pd: Move and extend simplification from above to here:
716 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
717 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
718 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
719
720 2016-11-23 Martin Liska <mliska@suse.cz>
721 Martin Jambor <mjambor@suse.cz>
722
723 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
724
725 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
726
727 PR target/78213
728 * opts.c (finish_options): Set -fsyntax-only if running self tests.
729
730 2016-11-23 Richard Biener <rguenther@suse.de>
731
732 PR middle-end/71762
733 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
734 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
735
736 2016-11-23 Richard Biener <rguenther@suse.de>
737
738 PR lto/78472
739 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
740 fields.
741
742 2016-11-23 Richard Biener <rguenther@suse.de>
743 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
744
745 PR tree-optimization/78154
746 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
747 returns it's argument and the argument is nonnull.
748 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
749 ATT_RETNONNULL_NOTHROW_LEAF.
750 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
751 ATTR_RETNONNULL_NOTHROW_LEAF.
752 (BUILT_IN_STPCPY): Likewise.
753 (BUILT_IN_STPNCPY): Likewise.
754 (BUILT_IN_MEMPCPY_CHK): Likewise.
755 (BUILT_IN_STPCPY_CHK): Likewise.
756 (BUILT_IN_STPNCPY_CHK): Likewise.
757 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
758 (BUILT_IN_STRNCAT): Likewise.
759 (BUILT_IN_STRNCPY): Likewise.
760 (BUILT_IN_MEMSET_CHK): Likewise.
761 (BUILT_IN_STRCAT_CHK): Likewise.
762 (BUILT_IN_STRCPY_CHK): Likewise.
763 (BUILT_IN_STRNCAT_CHK): Likewise.
764 (BUILT_IN_STRNCPY_CHK): Likewise.
765
766 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
767
768 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
769 * fold-const.h (tree_expr_nonzero_p) : Declare.
770 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
771
772 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
773
774 * system.h (HAVE_DESIGNATED_INITIALIZERS,
775 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
776 "defined" in macros.
777 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
778 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
779 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
780
781 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
782
783 PR target/60300
784 * config/avr/constraints.md (Csp): Widen range to [-11..6].
785 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
786 of RCALLs in prologue to 3.
787
788 2016-11-22 Michael Collison <michael.collison@arm.com>
789
790 * config/aarch64/aarch64-protos.h
791 (aarch64_and_split_imm1, aarch64_and_split_imm2)
792 (aarch64_and_bitmask_imm): New prototypes
793 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
794 New overloaded function to create bit mask covering the
795 lowest to highest bits set.
796 (aarch64_and_split_imm2): New overloaded functions to create bit
797 mask of zeros between first and last bit set.
798 (aarch64_and_bitmask_imm): New function to determine if a integer
799 is a valid two instruction "and" operation.
800 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
801 allowing wider range of constants with "and" operations.
802 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
803 "and" operator from matching restricted constant range used for
804 ior and xor operators.
805 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
806 for constants in "and" operantions.
807 (UsP constraint): New DImode constraint for constants
808 in "and" operations.
809 * config/aarch64/iterators.md (lconst2): New mode iterator.
810 (LOGICAL2): New code iterator.
811 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
812 predicate.
813 (aarch64_logical_and_operand): New predicate allowing extended
814 constants for "and" operations.
815
816 2016-11-22 Walter Lee <walt@tilera.com>
817
818 * config/tilegx/tilegx.md (trap): New pattern.
819 * config/tilepro/tilepro.md (trap): Likewise.
820
821 2016-11-22 Walter Lee <walt@tilera.com>
822
823 * config/tilegx/tilegx.md (*zero_extract): Use
824 define_insn_and_split instead of define_insn; Handle pos + size >
825 64.
826 (*sign_extract): Likewise.
827
828 2016-11-22 Marek Polacek <polacek@redhat.com>
829
830 PR tree-optimization/78455
831 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
832
833 2016-11-22 Ian Lance Taylor <iant@golang.org>
834
835 PR go/78431
836 PR go/78432
837 * godump.c (go_format_type): Always pass alignment as 1 when
838 calling go_append_padding at end of struct/union.
839
840 2016-11-22 Jakub Jelinek <jakub@redhat.com>
841
842 PR target/78451
843 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
844 _mm512_setzero_hi): Removed.
845 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
846 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
847 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
848 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
849 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
850 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
851 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
852 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
853 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
854 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
855 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
856 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
857 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
858 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
859 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
860 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
861 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
862 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
863 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
864 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
865 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
866 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
867 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
868 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
869 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
870 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
871 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
872 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
873 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
874 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
875 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
876 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
877 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
878 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
879 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
880 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
881 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
882 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
883 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
884 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
885 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
886 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
887 _mm512_setzero_qi or _mm512_setzero_hi.
888 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
889 _mm512_maskz_dbsad_epu8): Formatting fixes.
890 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
891 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
892 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
893 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
894 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
895 _mm512_setzero_qi or _mm512_setzero_hi.
896
897 2016-11-22 Nathan Sidwell <nathan@acm.org>
898
899 * gcc-ar.c (main): Fix indentation.
900 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
901 * ggc-page.c (move_ptes_to_front): Fix formatting.
902 * hsa-dump.c (dump_has_cfun): Fix indentation.
903 * sel-sched-ir.h: Remove trailing blank lines.
904
905 2016-11-22 Jakub Jelinek <jakub@redhat.com>
906 Alexander Monakov <amonakov@ispras.ru>
907
908 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
909 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
910 (omp_clause_code_name): Add _simt_ name.
911 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
912 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
913 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
914 (scan_omp_simd): New function.
915 (scan_omp_1_stmt): Use it in target regions if needed.
916 (omp_max_vf): Don't max with omp_max_simt_vf.
917 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
918 OMP_CLAUSE__SIMT_ is present.
919 (lower_rec_input_clauses): Compute maybe_simt from presence of
920 OMP_CLAUSE__SIMT_.
921 (lower_lastprivate_clauses): Likewise.
922 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
923 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
924 * internal-fn.def (GOMP_USE_SIMT): New internal function.
925 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
926
927 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
928
929 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
930 (expand_GOMP_SIMT_VF): New.
931 (expand_GOMP_SIMT_LAST_LANE): New.
932 (expand_GOMP_SIMT_ORDERED_PRED): New.
933 (expand_GOMP_SIMT_VOTE_ANY): New.
934 (expand_GOMP_SIMT_XCHG_BFLY): New.
935 (expand_GOMP_SIMT_XCHG_IDX): New.
936 * internal-fn.def (GOMP_SIMT_LANE): New.
937 (GOMP_SIMT_VF): New.
938 (GOMP_SIMT_LAST_LANE): New.
939 (GOMP_SIMT_ORDERED_PRED): New.
940 (GOMP_SIMT_VOTE_ANY): New.
941 (GOMP_SIMT_XCHG_BFLY): New.
942 (GOMP_SIMT_XCHG_IDX): New.
943 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
944 (create_omp_child_function): ...here. Set "omp target entrypoint"
945 or "omp declare target" attribute based on is_gimple_omp_offloaded.
946 (omp_max_simt_vf): New. Use it...
947 (omp_max_vf): ...here.
948 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
949 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
950 (lower_omp_ordered): Likewise, for "ordered" lowering.
951 (expand_omp_simd): Add SIMT transforms.
952 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
953 (execute_omp_device_lower): New.
954 (pass_data_omp_device_lower): New.
955 (pass_omp_device_lower): New pass.
956 (make_pass_omp_device_lower): New.
957 * passes.def (pass_omp_device_lower): Position new pass.
958 * tree-pass.h (PROP_gimple_lomp_dev): Define.
959 (make_pass_omp_device_lower): Declare.
960
961 2016-11-22 Jakub Jelinek <jakub@redhat.com>
962
963 PR target/78451
964 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
965 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
966 _mm_setzero_di.
967 (_mm_maskz_load_epi64): Likewise.
968 (_mm_setzero_hi): Removed.
969 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
970 _mm_setzero_di.
971 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
972 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
973 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
974 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
975 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
976 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
977 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
978 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
979 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
980 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
981 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
982 Likewise.
983 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
984 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
985 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
986 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
987 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
988 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
989 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
990 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
991 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
992 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
993 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
994 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
995 instead of _mm_setzero_hi.
996 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
997 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
998 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
999 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
1000 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
1001 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
1002 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
1003 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
1004 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
1005 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
1006 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
1007 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
1008 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
1009 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
1010 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
1011 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
1012 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
1013 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
1014 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
1015 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
1016 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
1017 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
1018 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
1019 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
1020 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
1021 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
1022 _mm_setzero_di.
1023 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
1024 instead of _mm_setzero_hi.
1025 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
1026 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
1027 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
1028 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
1029 _mm_setzero_si128 instead of _mm_setzero_di.
1030 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
1031 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
1032 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
1033 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
1034 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
1035 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
1036 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
1037 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
1038 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
1039 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
1040 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
1041 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
1042 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
1043 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
1044 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
1045 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
1046 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
1047 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
1048 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
1049 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
1050 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
1051 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
1052 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
1053 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
1054 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
1055 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
1056 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
1057 _mm512_maskz_insertf32x8): Formatting fixes.
1058 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
1059 _mm_setzero_si128 instead of _mm_setzero_di.
1060 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
1061 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
1062 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
1063 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
1064 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
1065 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
1066 _mm_setzero_si128 instead of _mm_setzero_di.
1067 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
1068 Likewise in macros.
1069 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
1070 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
1071 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
1072 _mm_setzero_si128 instead of _mm_setzero_hi.
1073 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
1074 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
1075 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
1076 instead of _mm_setzero_di.
1077 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
1078 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
1079 _mm_setzero_hi.
1080 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
1081 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
1082 _mm_setzero_hi.
1083 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
1084 _mm_setzero_di.
1085 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
1086 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
1087 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
1088
1089 2016-11-22 Carl Love <cel@us.ibm.com>
1090
1091 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
1092 equal and vector compare not equal. The vector compares take two
1093 arguments of type vector bool char, vector bool short, vector bool int,
1094 vector bool long long with the same return type.
1095 * doc/extend.texi: Update built-in documentation file for the new
1096 powerpc built-ins.
1097
1098 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
1099
1100 * Makefile.in ($(lang_checks_parallelized)): Fix detection
1101 of -j argument.
1102
1103 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1104
1105 * config.gcc: Allow new rmprofile value for configure option
1106 --with-multilib-list.
1107 * config/arm/t-rmprofile: New file.
1108 * doc/install.texi (--with-multilib-list): Document new rmprofile value
1109 for ARM.
1110
1111 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1112
1113 PR target/78439
1114 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
1115 register operand in alternatives 4,5,6.
1116
1117 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
1118
1119 PR target/77904
1120 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
1121 in save register mask if it is needed.
1122
1123 2016-11-22 Jakub Jelinek <jakub@redhat.com>
1124
1125 PR tree-optimization/78436
1126 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
1127 (shift_bytes_in_array, shift_bytes_in_array_right,
1128 merged_store_group::apply_stores): Formatting fixes.
1129 (clear_bit_region): Likewise. Use memset.
1130 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
1131 instead of EXPR and inerted instead of inserted. Use memset instead
1132 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
1133 if shift_amnt is 0.
1134
1135 PR middle-end/78416
1136 * expmed.c (expand_divmod): Use wide_int for computation of
1137 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
1138 Use size <= HOST_BITS_PER_WIDE_INT instead of
1139 HOST_BITS_PER_WIDE_INT >= size.
1140
1141 PR tree-optimization/78445
1142 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
1143 any_complicated_phi, version loop even if flag_tree_loop_if_convert
1144 is 1. Formatting fix.
1145
1146 2016-11-22 Martin Liska <mliska@suse.cz>
1147
1148 PR ipa/78309
1149 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
1150 (sem_function::get_hash): Use the new field.
1151 (sem_function::parse): Remove an argument from ctor.
1152 (sem_variable::parse): Likewise.
1153 (sem_variable::get_hash): Use the new field.
1154 (sem_item_optimizer::read_section): Use new ctor and set hash.
1155 * ipa-icf.h: _hash is removed from sem_item::sem_item,
1156 sem_variable::sem_variable, sem_function::sem_function.
1157
1158 2016-11-21 Jeff Law <law@redhat.com>
1159
1160 PR target/68538
1161 * config/cris/cris.md: Don't call copy_to_mode_reg unless
1162 can_create_pseudo_p is true.
1163
1164 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1165
1166 PR target/68803
1167 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
1168 *rotldi3_insert_7): New define_insns.
1169
1170 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1171
1172 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
1173 so that DImode can be allocated to FP/vector registers in more
1174 cases, and we can avoid direct move operations. If the register
1175 needs reloading, prefer GPRs over FP/vector registers. In the
1176 case of FPR vs. Altivec registers, prefer FPR registers unless we
1177 have the ISA 3.0 reg+offset scalar instructions.
1178 (movdi_internal64): Likewise.
1179
1180 2016-11-21 Jakub Jelinek <jakub@redhat.com>
1181
1182 PR middle-end/67335
1183 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
1184 for tmp simd array if DECL_NAME (parm) is NULL.
1185
1186 2016-11-20 Jeff Law <law@redhat.com>
1187
1188 PR target/25128
1189 * config/m68k/predicates.md (swap_peephole_relational_operator): New
1190 predicate.
1191 * config/m68k/m68k.md (relational tests against 65535/65536): New
1192 peephole2.
1193
1194 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1195
1196 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
1197
1198 2016-11-21 Martin Sebor <msebor@redhat.com>
1199
1200 * doc/invoke.texi (-fprintf-return-value): Document that option
1201 is enabled by default.
1202
1203 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1204
1205 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
1206 for-loop declaration of loop variable.
1207 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
1208 * config/avr/avr.c (avr_popcount_each_byte)
1209 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
1210 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
1211 (avr_expand_epilogue, avr_function_arg_advance)
1212 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
1213 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
1214 (avr_adjust_reg_alloc_order, output_reload_in_const)
1215 (avr_conditional_register_usage, avr_find_unused_d_reg)
1216 (avr_map_decompose, avr_fold_builtin): Same.
1217
1218 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1219
1220 * config/avr/avr.c (avr_popcount): Remove static function.
1221 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
1222
1223 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
1224
1225 * arm.opt (mapcs-float): Delete option.
1226 * arm.c (arm_option_override): Remove hunk relating to
1227 TARGET_APCS_FLOAT.
1228 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
1229
1230 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
1231
1232 * tree-tailcall.c (process_assignment): Simplify the check for
1233 a valid copy, allowing the source to be a local variable as
1234 well as an SSA name.
1235 (find_tail_calls): Allow copies between local variables to follow
1236 the call. Allow the result to be stored in any local variable,
1237 even if it's an aggregate.
1238 (eliminate_tail_call): Check whether the result is an SSA name
1239 before updating its SSA_NAME_DEF_STMT.
1240
1241 2016-11-21 David Malcolm <dmalcolm@redhat.com>
1242
1243 PR preprocessor/78324
1244 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1245 -ftrack-macro-expansion has a value other than 2.
1246
1247 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1248
1249 PR rtl-optimization/78400
1250 * shrink-wrap.c (try_shrink_wrapping_separate): Call
1251 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
1252 and df_update_exit_block_uses.
1253
1254 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1255
1256 PR c++/71973
1257 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
1258 new default-enabled warning..
1259 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
1260 (BT_PTR_CONST_STRING): Updated.
1261 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
1262 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
1263 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
1264 (strftime): Update builtin function.
1265 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
1266 * tree.h (const_tm_ptr_type_node): New type node.
1267 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
1268 const_tm_ptr_type_node.
1269
1270 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1271
1272 PR tree-optimization/78413
1273 * tree-if-conv.c (versionable_outer_loop_p): Require that both
1274 inner and outer loop latches have single predecessors.
1275
1276 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1277
1278 PR target/78093
1279 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
1280 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
1281
1282 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1283
1284 * rtl.h: Adjust prototype.
1285 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
1286 (dead_or_set_regno_p): Likewise.
1287
1288 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1289
1290 * rtl.h: Adjust prototype.
1291 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
1292
1293 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1294
1295 * function.c (contains): Change argument type to rtx_insn *.
1296 (prologue_contains): Likewise.
1297 (epilogue_contains): Likewise.
1298 (prologue_epilogue_contains): Likewise.
1299 * function.h: Adjust prototype.
1300
1301 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1302
1303 * optabs.c (emit_libcall_block): Change argument type to
1304 rtx_insn *.
1305 * optabs.h: Adjust prototype.
1306
1307 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1308
1309 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
1310 (fixup_reorder_chain): Adjust.
1311 * cfgrtl.h: Adjust prototype.
1312
1313 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1314
1315 * rtl.h: Adjust prototype.
1316 * rtlanal.c (replace_label_in_insn): Change argument type to
1317 rtx_insn *.
1318
1319 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1320
1321 * config/v850/v850.c (expand_prologue): Adjust.
1322 (expand_epilogue): Likewise.
1323 * expr.c (init_expr_target): Likewise.
1324 * genrecog.c (print_subroutine): Always make the argument type
1325 rtx_insn *.
1326 * recog.h: Adjust prototype.
1327
1328 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1329
1330 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
1331 up variables to make some rtx_insn *.
1332 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1333 * config/arc/arc.c: Likewise.
1334 * config/arm/arm.c: Likewise.
1335 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
1336 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
1337 Likewise.
1338 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1339
1340 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1341
1342 * config/arm/arm.c (legitimize_pic_address): Change to use
1343 rtx_insn * as the type of variables.
1344 (arm_pic_static_addr): Likewise.
1345 (arm_emit_movpair): Likewise.
1346 * config/c6x/c6x.c (reorg_split_calls): Likewise.
1347 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
1348 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
1349 * config/frv/frv.md: Likewise.
1350 * config/i386/i386-protos.h: Likewise.
1351 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1352 (ix86_split_fp_branch): Likewise.
1353 (predict_jump): Likewise.
1354 * config/ia64/ia64.c: Likewise.
1355 * config/mcore/mcore.c: Likewise.
1356 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1357 * config/s390/s390.c: Likewise.
1358 * config/s390/s390.md: Likewise.
1359 * config/spu/spu.md: Likewise.
1360 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
1361 * lower-subreg.c (resolve_simple_move): Likewise.
1362
1363 2016-11-20 Jeff Law <law@redhat.com>
1364
1365 PR target/48551
1366 * reload.h (struct target_reload): Make x_double_reg_address_ok
1367 be per-mode rather.
1368 * reload.c (find_reloads_address): Check if double_reg_address_ok
1369 is true for the mode of the memory reference.
1370 * reload1.c (init_reload): Initialize double_reg_address_ok for
1371 each mode.
1372
1373 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
1374
1375 PR middle-end/61409
1376 * tree-ssa-uninit.c: Define new global max_phi_args.
1377 (compute_uninit_opnds_pos): Use max_phi_args.
1378 (prune_uninit_phi_opnds): Same.
1379 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
1380 missing NUM_PREDS in function comment.
1381 (can_one_predicate_be_invalidated_p): New.
1382 (can_chain_union_be_invalidated_p): New.
1383 (flatten_out_predicate_chains): New.
1384 (uninit_ops_invalidate_phi_use): New.
1385 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
1386
1387 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1388
1389 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
1390 * match.pd (A /[ex] B CMP C): New simplifications.
1391
1392 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1393
1394 * match.pd (0 / X, X / X, X % X): New simplifications.
1395
1396 2016-11-19 Jakub Jelinek <jakub@redhat.com>
1397
1398 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
1399 when checking if callee's isa flags are subset of caller's isa flags.
1400 Fix comment wording.
1401
1402 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
1403 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
1404 instead and using = 0 instead of &= 0.
1405
1406 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
1407 ix86_add_new_builtins): Formatting fixes.
1408 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
1409 (ix86_get_builtin): Likewise.
1410
1411 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
1412 don't initialize it, don't use it for the case where it isn't
1413 provable %{z} nor using the same argument, instead move merge
1414 argument into a new pseudo and use that as target. Formatting fixes.
1415
1416 2016-11-19 Jeff Law <law@redhat.com>
1417
1418 PR target/25111
1419 * config/m68k/m68k.md (bsetdreg): New pattern.
1420 (bchgdreg, bclrdreg): Likewise.
1421
1422 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
1423
1424 PR target/78426
1425 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1426 instead of force_reg.
1427 (sh_expand_setmem): Likewise.
1428
1429 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
1430
1431 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
1432
1433 2016-11-18 Walter Lee <walt@tilera.com>
1434
1435 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1436 end-of-bundle marker for consecutive barriers.
1437
1438 2016-11-18 Walter Lee <walt@tilera.com>
1439
1440 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1441
1442 2016-11-18 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR middle-end/78419
1445 * multiple_target.c (get_attr_len): Start with argnum and increment
1446 argnum on every arg. Use strchr in a loop instead of counting commas
1447 manually.
1448 (get_attr_str): Increment argnum for every comma in the string.
1449 (separate_attrs): Use for instead of while loop, simplify.
1450 (expand_target_clones): Rename defenition argument to definition.
1451 Free attrs and attr_str even when diagnosing errors. Temporarily
1452 change input_location around targetm.target_option.valid_attribute_p
1453 calls. Don't emit warning or errors if that function fails.
1454
1455 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
1456
1457 PR debug/78191
1458 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
1459 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
1460 abbrev_opt_base_type_end only by increasing die_abbrev, before
1461 any other dies.
1462 (optimize_abbrev_table): Don't change abbrev numbers of
1463 base types and CU or optimize implicit consts in them if
1464 calc_base_type_die_sizes has been called during build_abbrev_table.
1465 (calc_base_type_die_sizes): If abbrev_opt_start, set
1466 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
1467
1468 2016-11-18 Jeff Law <law@redhat.com>
1469
1470 PR target/25112
1471 * config/m68k/m68k.c (moveq feeding equality comparison): New
1472 peepholes.
1473 * config/m68k/predicates.md (addq_subq_operand): New predicate.
1474 (equality_comparison_operator): Likewise.
1475
1476 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1477
1478 * rtlanal.c (load_extend_op): Move to...
1479 * rtl.h: ...here and make inline.
1480
1481 2016-11-18 Terry Guo <terry.guo@arm.com>
1482 Thomas Preud'homme <thomas.preudhomme@arm.com>
1483
1484 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
1485 * config/arm/arm-opts.h: Include arm-flags.h.
1486 (struct arm_arch_core_flag): Define.
1487 (arm_arch_core_flags): Define.
1488 * config/arm/arm-protos.h: Include arm-flags.h
1489 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
1490 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
1491 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
1492 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
1493 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
1494 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
1495 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
1496 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
1497 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
1498 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
1499 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
1500 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
1501 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
1502 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
1503 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
1504 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
1505 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
1506 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
1507 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
1508 ARM_FSET_CPU_SUBSET): Move to ...
1509 * config/arm/arm-flags.h: This new file.
1510 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
1511 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
1512 (TARGET_MODE_SPECS): Define.
1513 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
1514
1515 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1516
1517 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
1518 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
1519 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
1520 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
1521 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
1522 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
1523 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
1524 missing and make value unsigned.
1525 (arm_feature_set): Use unsigned entries instead of unsigned long.
1526
1527 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1528
1529 Re-apply after PR bootstrap/77359 is fixed:
1530 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1531
1532 * explow.c (get_dynamic_stack_size): Take known alignment of stack
1533 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
1534 size needed.
1535
1536 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1537
1538 PR bootstrap/77359
1539 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
1540 variables in functions calling alloca. Also update the ASCII
1541 drawings.
1542 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
1543 (STACK_DYNAMIC_OFFSET): Likewise.
1544 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
1545 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
1546 macros to aix.h.
1547
1548 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1549 Alan Hayward <alan.hayward@arm.com>
1550 David Sherwood <david.sherwood@arm.com>
1551
1552 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
1553 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
1554 (add_const_value_attribute): Likewise.
1555 * explow.c (plus_constant): Likewise.
1556 * expmed.c (expand_mult, make_tree): Likewise.
1557 * expr.c (convert_modes): Likewise.
1558 * loop-doloop.c (doloop_optimize): Likewise.
1559 * postreload.c (reload_cse_simplify_set): Likewise.
1560 * simplify-rtx.c (simplify_const_unary_operation): Likewise
1561 (simplify_binary_operation_1, simplify_const_binary_operation):
1562 Likewise.
1563 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
1564 * wide-int.h: Update documentation to recommend rtx_mode_t
1565 instead of std::make_pair.
1566
1567 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1568 Alan Hayward <alan.hayward@arm.com>
1569 David Sherwood <david.sherwood@arm.com>
1570
1571 * tree.h (SET_DECL_MODE): New macro.
1572 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
1573 (expand_gimple_basic_block): Likewise.
1574 * function.c (split_complex_args): Likeise.
1575 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1576 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
1577 * stor-layout.c (layout_decl, relayout_decl): Likewise.
1578 (finish_bitfield_representative): Likewise.
1579 * tree.c (make_node_stat): Likewise.
1580 * tree-inline.c (remap_ssa_name): Likewise.
1581 (tree_function_versioning): Likewise.
1582 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1583 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1584 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1585 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1586 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1587 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1588 * varasm.c (make_debug_expr_from_rtl): Likewise.
1589
1590 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
1591
1592 PR rtl-optimization/71785
1593 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
1594 (duplicate_computed_gotos): New function.
1595 (pass_duplicate_computed_gotos::execute): Rewrite.
1596
1597 2016-11-17 Jeff Law <law@redhat.com>
1598
1599 PR target/47192
1600 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
1601 barrier prior to deallocating the stack.
1602
1603 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
1606 to make better use of cmem loads in the case where a single bit is
1607 being accessed.
1608 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
1609
1610 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
1611
1612 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
1613 F_AVX5124FMAPS.
1614 (isa_names_table): Handle new features.
1615
1616 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
1617 Andrew Senkevich <andrew.senkevich@intel.com>
1618
1619 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
1620 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
1621 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
1622 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
1623 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
1624 * config/i386/avx5124fmapsintrin.h: New file.
1625 * config/i386/avx5124vnniwintrin.h: Ditto.
1626 * config/i386/constraints.md (h): New constraint.
1627 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
1628 * config/i386/driver-i386.c (host_detect_local_cpu):
1629 Detect avx5124fmaps, avx5124vnniw.
1630 * config/i386/i386-builtin-types.def: Add types
1631 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
1632 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
1633 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
1634 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
1635 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
1636 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
1637 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
1638 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
1639 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
1640 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
1641 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
1642 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
1643 __builtin_ia32_vp4dpwssds_mask): New.
1644 * config/i386/i386-c.c (ix86_target_macros_internal):
1645 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
1646 * config/i386/i386-modes.def: Fixed comment typos, added new
1647 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
1648 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
1649 -mavx5124vnniw.
1650 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
1651 (ix86_option_override_internal): Handle new options.
1652 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
1653 avx5124vnniw.
1654 (ix86_expand_builtin): Handle new builtins.
1655 (ix86_additional_allocno_class_p): New.
1656 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
1657 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
1658 (reg_class): Add MOD4_SSE_REGS.
1659 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
1660 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
1661 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
1662 avx5124vnniwintrin.h.
1663 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
1664 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
1665 (define_mode_iterator IMOD4): New.
1666 (define_mode_attr imod4_narrow): Ditto.
1667 (define_insn "mov<mode>"): Ditto.
1668 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1669 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1670 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1671 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1672 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1673 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1674 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1675 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1676 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1677 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1678 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1679 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1680 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1681 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1682 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1683 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1684 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1685 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1686 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1687 * genmodes.c (mode_size_inline): Extend return type.
1688 * machmode.h (mode_size, mode_base_align): Extend type.
1689
1690 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
1691
1692 PR target/78101
1693 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1694 the appropriate checks for SFmode/DFmode load/stores in GPR
1695 registers.
1696 (fusion_addis_mem_combo_store): Likewise.
1697 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1698 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1699 d-form instructions for traditional Altivec registers.
1700 (emit_fusion_p9_load): Likewise.
1701 (emit_fusion_p9_store): Likewise.
1702 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1703 early clobber from scratch register. Do not match if the register
1704 being stored is the scratch register.
1705 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1706 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1707 instructions for traditional Altivec registers.
1708 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1709 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1710 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1711
1712 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1713
1714 PR target/77933
1715 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1716 being live in the function and lr needing to be saved. Distinguish
1717 between already saved pushable registers and registers to push.
1718 Check for LR being an available pushable register.
1719
1720 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1721
1722 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1723 string input is a string constant.
1724 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1725 via cmpstrnsi even if neither string is constant.
1726
1727 2016-11-17 Jakub Jelinek <jakub@redhat.com>
1728
1729 PR middle-end/78201
1730 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1731 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1732 instead, return false if it is NULL, or doesn't fit into uhwi, or
1733 is larger or equal to targetm.max_anchor_offset.
1734
1735 2016-11-17 Pip Cet <pipcet@gmail.com>
1736 Eric Botcazou <ebotcazou@adacore.com>
1737
1738 PR rtl-optimization/78355
1739 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1740 needs to deal with unaligned accesses.
1741 * doc/tm.texi: Regenerate.
1742 * lra-constraints.c (simplify_operand_subreg): Only invoke
1743 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1744
1745 2016-11-17 David Malcolm <dmalcolm@redhat.com>
1746
1747 * input.c (selftest::test_lexer_string_locations_long_line): New
1748 function.
1749 (selftest::test_lexer_string_locations_raw_string_multiline): New
1750 function.
1751 (selftest::input_c_tests): Call the new functions, via
1752 for_each_line_table_case.
1753
1754 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1755
1756 * config/aarch64/aarch64.md (mov<mode>): Call
1757 aarch64_split_dimode_const_store on DImode constant stores.
1758 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1759 New prototype.
1760 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1761 function.
1762
1763 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1764 Richard Biener <rguenther@suse.de>
1765
1766 PR tree-optimization/77848
1767 * tree-if-conv.c (tree_if_conversion): Always version loops unless
1768 the user specified -ftree-loop-if-convert.
1769
1770 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1771
1772 PR target/77308
1773 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1774 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1775 *thumb2_strd_base_neg): Recognize insn regardless of
1776 current_tune->prefer_ldrd_strd.
1777 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1778 whenever possible.
1779
1780 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1781
1782 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1783 instruction type.
1784
1785 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1786
1787 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1788 for arcem.
1789 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1790 * config/arc/arc-cpus.def (quarkse_em): Add.
1791 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1792 * config/arc/arc-opts.h (FPX_QK): Define.
1793 * config/arc/arc-tables.opt: Regenerate.
1794 * config/arc/arc.c (gen_compare_reg): Change.
1795 (arc_register_move_cost): Avoid Dy,Dx moves.
1796 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1797 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1798 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1799 New expands.
1800 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1801 (fix_truncsfsi2_fpu): Rename.
1802 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1803 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1804 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1805 * config/arc/t-multilib: Regenerate.
1806
1807 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
1808
1809 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1810 appropriate.
1811 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1812 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1813 (avr_rtx_costs_1, extra_constraint_Q): Same.
1814 (avr_address_cost): Use SUBREG_P if possible.
1815
1816 2016-11-17 Richard Biener <rguenther@suse.de>
1817
1818 PR middle-end/78383
1819 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1820 non-local goto into CFG.
1821
1822 2016-11-17 Richard Biener <rguenther@suse.de>
1823
1824 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1825 backward compatibility.
1826 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1827 * tree-if-conv.c (pass_if_conversion::gate): Do not test
1828 flag_tree_loop_if_convert_stores.
1829 (pass_if_conversion::execute): Likewise.
1830
1831 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1832
1833 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1834 const_double code before calling aarch64_float_const_zero_rtx_p.
1835
1836 2016-11-17 Richard Biener <rguenther@suse.de>
1837
1838 PR tree-optimization/78306
1839 * ipa-inline-analysis.c (initialize_inline_failed): Do not
1840 inhibit inlining if function calls cilk_spawn.
1841 (can_inline_edge_p): Likewise.
1842
1843 2016-11-17 Richard Biener <rguenther@suse.de>
1844
1845 PR middle-end/78305
1846 * fold-const.c (negate_expr_p): Fix multiplication case.
1847
1848 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
1849
1850 PR target/78357
1851 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1852 condition.
1853 (TARGET_INIT_LIBFUNCS): Delete definition and...
1854 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1855 comments.
1856
1857 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
1858
1859 * config/netbsd-stdint.h: New.
1860 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1861 (x86_64-*-netbsd*): Likewise.
1862
1863 2016-11-16 Andrew PInski <apinski@cavium.com>
1864
1865 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1866 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1867 flag_aarch64_verbose_cost instead of checking for details dump.
1868 (aarch64_rtx_costs_wrapper): Likewise.
1869
1870 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1871
1872 PR rtl-optimization/78378
1873 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1874 inner only if pos is 0. Fix up formatting.
1875
1876 2016-11-17 Alan Modra <amodra@gmail.com>
1877
1878 PR rtl-optimization/78325
1879 PR rtl-optimization/70890
1880 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1881 for dead regno.
1882
1883 2016-11-16 Jason Merrill <jason@redhat.com>
1884
1885 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1886
1887 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1888 Richard Biener <rguenther@suse.de>
1889
1890 PR tree-optimization/77848
1891 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1892 an outer loop, only save basic block aux information for the inner
1893 loop.
1894 (versionable_outer_loop_p): New function.
1895 (tree_if_conversion): Version the outer loop instead of the inner
1896 one if the pattern will be recognized for outer-loop
1897 vectorization.
1898
1899 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * gcc/bb-reorder.c: Remove 'toplev.h' include.
1902 (pass_partition_blocks::gate): No longer check
1903 user_defined_section_attribute, instead check the function decl
1904 for a section attribute.
1905 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1906 set user_defined_section_attribute.
1907 * gcc/final.c (rest_of_handle_final): Likewise.
1908 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1909 * gcc/toplev.h: Remove declaration of
1910 user_defined_section_attribute.
1911
1912 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1913
1914 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1915 Explicitly switch between JR and JRC for the table jump. Adjust
1916 instruction count.
1917
1918 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1919
1920 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1921 `insn_count' to 11 rather than 16.
1922
1923 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1924
1925 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1926 `ltu' rather than `leu' operation in the RTL pattern
1927
1928 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1929
1930 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1931 missing <d> instruction prefixes throughout. Correct
1932 formatting.
1933
1934 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1935
1936 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1937 rather than R_MIPS_JALR relocation in microMIPS code. Do not
1938 cancel short delay slots in PIC call relaxation.
1939
1940 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1941
1942 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1943 general register with general register or ARM constant into SP
1944 register.
1945
1946 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1947
1948 PR fortran/78299
1949 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1950 that loop->header == body_bb if broken_loop.
1951
1952 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
1953
1954 * tree-ssa-math-opts.c (bswap_replace): Remove test
1955 of SLOW_UNALIGNED_ACCESS.
1956
1957 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
1958
1959 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1960 is selected. Pass -mgomp to offload compiler in OpenMP case.
1961 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1962 declaration from nvptx.c.
1963 (nvptx_gen_shuffle): Declare.
1964 (nvptx_output_set_softstack): Declare.
1965 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1966 (need_softstack_decl): New variable.
1967 (need_unisimt_decl): New variable.
1968 (diagnose_openacc_conflict): New. Use it...
1969 (nvptx_option_override): ...here. Handle TARGET_GOMP.
1970 (nvptx_encode_section_info): Handle "shared" attribute.
1971 (write_as_kernel): Restrict to OpenACC target regions.
1972 (init_softstack_frame): New.
1973 (nvptx_init_unisimt_predicate): New.
1974 (write_omp_entry): New. Use it...
1975 (nvptx_declare_function_name): ...here to emit OpenMP target region
1976 entrypoints. Handle TARGET_SOFT_STACK. Call
1977 nvptx_init_unisimt_predicate.
1978 (nvptx_output_set_softstack): New.
1979 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
1980 (nvptx_gen_shuffle): Export.
1981 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
1982 predicate.
1983 (nvptx_print_operand): Fix handling of instruction predicates.
1984 (nvptx_get_unisimt_master): New helper function.
1985 (nvptx_get_unisimt_predicate): Ditto.
1986 (nvptx_call_insn_is_syscall_p): Ditto.
1987 (nvptx_unisimt_handle_set): Ditto.
1988 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
1989 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
1990 (nvptx_handle_shared_attribute): New. Use it...
1991 (nvptx_attribute_table): ... here (new entry).
1992 (nvptx_record_offload_symbol): Handle NULL attributes.
1993 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
1994 (nvptx_simt_vf): New.
1995 (TARGET_SIMT_VF): Define.
1996 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
1997 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
1998 -muniform-simt option is active.
1999 (STACK_SIZE_MODE): Define.
2000 (FIXED_REGISTERS): Adjust.
2001 (SOFTSTACK_SLOT_REGNUM): New.
2002 (SOFTSTACK_PREV_REGNUM): New.
2003 (REGISTER_NAMES): Adjust.
2004 (struct machine_function): New fields.
2005 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
2006 (UNSPEC_VOTE_BALLOT): Ditto.
2007 (UNSPEC_LANEID): Ditto.
2008 (UNSPECV_NOUNROLL): Ditto.
2009 (atomic): New attribute.
2010 (predicable): New attribute. Generate predicated forms via
2011 define_cond_exec.
2012 (br_true): Mark as not predicable.
2013 (br_false): Ditto.
2014 (br_true_uni): Ditto.
2015 (br_false_uni): Ditto.
2016 (return): Ditto.
2017 (trap_if_true): Ditto.
2018 (trap_if_false): Ditto.
2019 (nvptx_fork): Ditto.
2020 (nvptx_forked): Ditto.
2021 (nvptx_joining): Ditto.
2022 (nvptx_join): Ditto.
2023 (nvptx_barsync): Ditto.
2024 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
2025 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
2026 (allocate_stack_<mode>): Remove unused pattern.
2027 (set_softstack_insn): New pattern.
2028 (restore_stack_block): Handle for TARGET_SOFT_STACK.
2029 (nvptx_vote_ballot): New pattern.
2030 (omp_simt_lane): Ditto.
2031 (omp_simt_last_lane): Ditto.
2032 (omp_simt_ordered): Ditto.
2033 (omp_simt_vote_any): Ditto.
2034 (omp_simt_xchg_bfly): Ditto.
2035 (omp_simt_xchg_idx): Ditto.
2036 (nvptx_nounroll): Ditto.
2037 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
2038 (atomic_exchange<mode>): Ditto.
2039 (atomic_fetch_add<mode>): Ditto.
2040 (atomic_fetch_addsf): Ditto.
2041 (atomic_fetch_<logic><mode>): Ditto.
2042 * config/nvptx/nvptx.opt (msoft-stack): New option.
2043 (muniform-simt): Ditto.
2044 (mgomp): Ditto.
2045 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
2046 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
2047 * doc/invoke.texi (msoft-stack): Document.
2048 (muniform-simt): Document
2049 (mgomp): Document.
2050 * doc/tm.texi: Regenerate.
2051 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
2052 * target.def: Define it.
2053 * target-insns.def (omp_simt_lane): New.
2054 (omp_simt_last_lane): New.
2055 (omp_simt_ordered): New.
2056 (omp_simt_vote_any): New.
2057 (omp_simt_xchg_bfly): New.
2058 (omp_simt_xchg_idx): New.
2059
2060 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
2061
2062 * config/mips/mips-protos.h (mips_set_text_contents_type): New
2063 prototype.
2064 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
2065 (ASM_OUTPUT_CASE_END): Likewise.
2066 * config/mips/mips.c (mips_set_text_contents_type): New function.
2067 (mips16_emit_constants): Record the pool's initial label number
2068 with the `consttable' insn. Emit a `consttable_end' insn at the end.
2069 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
2070 for `consttable' insns.
2071 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
2072 for `consttable_end' insns.
2073 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
2074 (consttable): Add operand.
2075 (consttable_end): New insn.
2076
2077 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
2078
2079 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
2080 * tree-if-conv.c (tree_if_conversion): Make public.
2081 * * tree-if-conv.h: New file.
2082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
2083 dynamic alias checks for epilogues.
2084 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
2085 * tree-vect-loop.c: include tree-if-conv.h.
2086 (new_loop_vec_info): Add zeroing orig_loop_info field.
2087 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
2088 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
2089 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
2090 using passed argument.
2091 (vect_transform_loop): Check if created epilogue should be returned
2092 for further vectorization with less vf. If-convert epilogue if
2093 required. Print vectorization success for epilogue.
2094 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
2095 if it is required, pass loop_vinfo produced during vectorization of
2096 loop body to vect_analyze_loop.
2097 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2098 orig_loop_info.
2099 (LOOP_VINFO_ORIG_LOOP_INFO): New.
2100 (LOOP_VINFO_EPILOGUE_P): New.
2101 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
2102 (vect_do_peeling): Change prototype to return epilogue.
2103 (vect_analyze_loop): Add argument of loop_vec_info type.
2104 (vect_transform_loop): Return created loop.
2105
2106 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2107
2108 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
2109 component as used also if LR_REGNO is a live input to the bb.
2110 * df-scan.c (df_get_entry_block_def_set): Return immediately after
2111 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
2112 (df_get_exit_block_use_set): Ditto.
2113 * df.h (df_scan_flags): New enum.
2114 * shrink-wrap.c (try_shrink_wrapping_separate): Set
2115 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
2116 df_update_entry_block_defs and df_update_exit_block_uses
2117 at the start; clear the flag and call those functions at the end.
2118
2119 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2120 Alan Hayward <alan.hayward@arm.com>
2121 David Sherwood <david.sherwood@arm.com>
2122
2123 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
2124 nb_iterations to the number of latch iterations rather than the
2125 number of loop iterations.
2126
2127 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2128 Alan Hayward <alan.hayward@arm.com>
2129 David Sherwood <david.sherwood@arm.com>
2130
2131 * combine.c (maybe_swap_commutative_operands): New function.
2132 (combine_simplify_rtx): Use it.
2133 (change_zero_ext): Likewise.
2134 (make_compound_operation_int): New function, split out of...
2135 (make_compound_operation): ...here. Use
2136 maybe_swap_commutative_operands for both.
2137
2138 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
2139
2140 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
2141 (neon-vfpv3): New FPU, currently an alias for 'neon'.
2142 * arm/arm-tables.opt: Regenerated.
2143 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
2144 neon-vfpv3.
2145 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
2146 and 'neon' are aliases for specific implementations.
2147
2148 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2149 Alan Hayward <alan.hayward@arm.com>
2150 David Sherwood <david.sherwood@arm.com>
2151
2152 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
2153 and use it in the final call to gen_rtx_fmt_ee.
2154 (expand_vec_cond_expr): Update accordingly.
2155 (expand_vec_cmp_expr): Likewise.
2156
2157 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2158 Alan Hayward <alan.hayward@arm.com>
2159 David Sherwood <david.sherwood@arm.com>
2160
2161 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
2162
2163 2016-11-16 Richard Biener <rguenther@suse.de>
2164
2165 PR middle-end/78333
2166 * gimplify.c (gimplify_function_tree): Do not instrument
2167 GNU extern inline functions.
2168
2169 2016-11-16 Martin Liska <mliska@suse.cz>
2170
2171 PR sanitizer/78270
2172 * gimplify.c (gimplify_switch_expr): Always save previous
2173 gimplify_ctxp->live_switch_vars.
2174
2175 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
2178 zero_extract operations to allow a movb to occur.
2179 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
2180 * testsuite/gcc.target/arc/movb-2.c: Likewise.
2181 * testsuite/gcc.target/arc/movb-5.c: Likewise.
2182 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
2183 little endian arc.
2184
2185 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2186 Alan Hayward <alan.hayward@arm.com>
2187 David Sherwood <david.sherwood@arm.com>
2188
2189 * expr.c (emit_group_load_1): Tighten check for whether an
2190 access involves only one operand of a CONCAT. Use extract_bit_field
2191 for constants if the bit range does span the whole operand.
2192
2193 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2194 Alan Hayward <alan.hayward@arm.com>
2195 David Sherwood <david.sherwood@arm.com>
2196
2197 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
2198
2199 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2200 Alan Hayward <alan.hayward@arm.com>
2201 David Sherwood <david.sherwood@arm.com>
2202
2203 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
2204 all three iteration counts with an any_* test. Use a single update
2205 for each count. Fix the calculation of nb_iterations_estimate.
2206
2207 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2208
2209 * config/pdp11/pdp11.c: Include dbxout.h.
2210
2211 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2212
2213 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
2214
2215 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2216
2217 PR target/78364
2218 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
2219 proper ranges for an SBFX instruction.
2220 (extzv_t2): Likewise for UBFX.
2221
2222 2016-11-16 Richard Biener <rguenther@suse.de>
2223
2224 PR tree-optimization/78348
2225 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
2226 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
2227 (classify_partition): Set PKIND_MEMCPY if dependence analysis
2228 revealed no dependency, PKIND_MEMMOVE otherwise.
2229
2230 2016-11-16 Jakub Jelinek <jakub@redhat.com>
2231
2232 PR sanitizer/77823
2233 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
2234 it points to non-NULL tree, use it instead of ubsan_create_data.
2235 (instrument_si_overflow): Handle vector signed integer overflow
2236 checking.
2237 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
2238 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
2239 vector IFN_UBSAN_CHECK_*.
2240 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
2241 pass it through to ubsan_build_overflow_builtin.
2242 (expand_neg_overflow, expand_mul_overflow): Likewise.
2243 (expand_vector_ubsan_overflow): New function.
2244 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
2245 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
2246 (expand_arith_overflow): Adjust expand_*_overflow callers.
2247
2248 2016-11-16 Matthias Klose <doko@ubuntu.com>
2249
2250 * doc/install.texi: Remove references to java/libjava.
2251
2252 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
2253
2254 * tree-ssa-coalesce.c (register_default_def): Remove
2255 register_ssa_partition.
2256 (create_outofssa_var_map): Likewise.
2257 * tree-ssa-live.c (register_ssa_partition_check): Remove.
2258 * tree-ssa-live.h (register_ssa_partition): Likewise.
2259
2260 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2261
2262 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
2263 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
2264 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
2265 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
2266 rtx when all sub-rtx are also permanent.
2267 (attr_eq): Simplify.
2268 (attr_copy_rtx): Remove.
2269 (make_canonical, get_attr_value): Use attr_equal_p.
2270 (copy_boolean): Rehash NOT.
2271 (simplify_test_exp_in_temp,
2272 optimize_attrs): Remove call to attr_copy_rtx.
2273 (attr_alt_intersection, attr_alt_union,
2274 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
2275 (make_automaton_attrs): Use attr_eq.
2276
2277 2016-11-15 Matthias Klose <doko@ubuntu.com>
2278
2279 * doc/install.texi: Remove references to java/libjava.
2280 * doc/sourcebuild.texi: Likewise.
2281 * doc/invoke.texi: Likewise.
2282 * doc/standards.texi: Likewise.
2283
2284 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2285 Alan Hayward <alan.hayward@arm.com>
2286 David Sherwood <david.sherwood@arm.com>
2287
2288 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
2289 of VOIDmode.
2290 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2291 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2292 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2293 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2294 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2295 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2296 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2297
2298 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2299 Alan Hayward <alan.hayward@arm.com>
2300 David Sherwood <david.sherwood@arm.com>
2301
2302 * dce.c (check_argument_store): Pass the size instead of
2303 the memory reference.
2304 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
2305
2306 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2307 Alan Hayward <alan.hayward@arm.com>
2308 David Sherwood <david.sherwood@arm.com>
2309
2310 * alias.c (canon_rtx): Use simplify_gen_binary.
2311
2312 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2313 Alan Hayward <alan.hayward@arm.com>
2314 David Sherwood <david.sherwood@arm.com>
2315
2316 * rtl.h (load_extend_op): Declare.
2317 * rtlanal.c (load_extend_op): New function.
2318 (nonzero_bits1): Use it.
2319 (num_sign_bit_copies1): Likewise.
2320 * cse.c (cse_insn): Likewise.
2321 * fold-const.c (fold_single_bit_test): Likewise.
2322 (fold_unary_loc): Likewise.
2323 * fwprop.c (free_load_extend): Likewise.
2324 * postreload.c (reload_cse_simplify_set): Likewise.
2325 (reload_cse_simplify_operands): Likewise.
2326 * combine.c (try_combine): Likewise.
2327 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
2328 subreg_lowpart_p checks.
2329
2330 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2331 Alan Hayward <alan.hayward@arm.com>
2332 David Sherwood <david.sherwood@arm.com>
2333
2334 * combine.c (simplify_shift_const_1): Use the number of bits
2335 in the inner mode to determine the range of the shift.
2336 When handling shifts of vectors, skip any rules that apply
2337 only to scalars.
2338
2339 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2340 Alan Hayward <alan.hayward@arm.com>
2341 David Sherwood <david.sherwood@arm.com>
2342
2343 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
2344 handling VOIDmode.
2345
2346 2016-11-15 Matthias Klose <doko@ubuntu.com>
2347
2348 * doc/install.texi: Remove references to gcj/libjava.
2349 * doc/invoke.texi: Likewise.
2350
2351 2016-11-15 Jeff Law <law@redhat.com>
2352
2353 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
2354 parameter. Callers changed.
2355 (check-subpath_and_update_thread_path): Extracted from
2356 fsm_find_control_statement_thread_paths.
2357 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
2358 (handle_phi, handle_assignment): Allow any constant node, not
2359 just INTEGER_CST.
2360
2361 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
2362
2363 * config/arc/arc-arch.h: New file.
2364 * config/arc/arc-arches.def: Likewise.
2365 * config/arc/arc-cpus.def: Likewise.
2366 * config/arc/arc-options.def: Likewise.
2367 * config/arc/t-multilib: Likewise.
2368 * config/arc/genmultilib.awk: Likewise.
2369 * config/arc/genoptions.awk: Likewise.
2370 * config/arc/arc-tables.opt: Likewise.
2371 * config/arc/driver-arc.c: Likewise.
2372 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
2373 * common/config/arc/arc-common.c (arc_handle_option): Trace
2374 toggled options.
2375 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
2376 options; check for supported cpu against arc-cpus.def file.
2377 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
2378 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
2379 * config/arc/arc-c.def: Add emacs local variables.
2380 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
2381 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
2382 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
2383 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
2384 (DEFAULT_arc_fpu_build): Define.
2385 (DEFAULT_arc_mpy_option): Define.
2386 * config/arc/arc-protos.h (arc_init): Delete.
2387 * config/arc/arc.c (arc_cpu_name): New variable.
2388 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
2389 (arc_arc700, arc_arc600, arc_arc601): New variable.
2390 (arc_init): Add static; remove selection of default tune value,
2391 cleanup obsolete error messages.
2392 (arc_override_options): Make use of .def files for selecting the
2393 right cpu and option configurations.
2394 * config/arc/arc.h (stdbool.h): Include.
2395 (TARGET_CPU_DEFAULT): Define.
2396 (CPP_SPEC): Remove mcpu=NPS400 handling.
2397 (arc_cpu_to_as): Declare.
2398 (EXTRA_SPEC_FUNCTIONS): Define.
2399 (OPTION_DEFAULT_SPECS): Likewise.
2400 (ASM_DEFAULT): Remove.
2401 (ASM_SPEC): Use arc_cpu_to_as.
2402 (DRIVER_SELF_SPECS): Remove deprecated options.
2403 (arc_base_cpu): Declare.
2404 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
2405 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
2406 variable.
2407 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
2408 * config/arc/arc.md (attr_cpu): Remove.
2409 * config/arc/arc.opt (mno-mpy): Deprecate.
2410 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
2411 (mcpu=ARCHS): Remove.
2412 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
2413 Deprecate.
2414 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
2415 (arc_fpu): Use new defines.
2416 (mpy-option): Change to use numeric or string like inputs.
2417 * config/arc/t-arc (driver-arc.o): New target.
2418 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
2419 * config/arc/t-arc-newlib: Delete.
2420 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
2421 * doc/invoke.texi (ARC): Update arc options.
2422
2423 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
2424
2425 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
2426 insn at the beginning of the constant pool.
2427 (mips_insert_insn_pseudos): New function.
2428 (mips_machine_reorg2): Call it.
2429 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
2430 UNSPEC_INSN_PSEUDO enum values.
2431 (insn_pseudo, consttable): New insns.
2432
2433 2016-11-15 Michael Matz <matz@suse.de>
2434
2435 PR missed-optimization/77881
2436 * combine.c (simplify_comparison): Remove useless subregs
2437 also inside the loop, not just after it.
2438 (make_compound_operation): Recognize some subregs as being
2439 masking as well.
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 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
2446 GET_MODE_SIZE typo.
2447
2448 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2449
2450 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
2451 for using xxinsertw and vinsert{b,h} on ISA 3.0.
2452
2453 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
2454 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
2455 vinsert{b,h} on ISA 3.0.
2456
2457 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2458
2459 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2460 and cmpnop in two steps: first the ones not accessed in original gimple
2461 expression in a endian independent way and then the ones not accessed
2462 in the final result in an endian-specific way.
2463 (bswap_replace): Stop doing big endian adjustment.
2464
2465 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
2466
2467 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
2468 (*ashl<mode>3_doubleword): Ditto.
2469
2470 2016-11-14 Martin Liska <mliska@suse.cz>
2471
2472 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
2473
2474 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
2475 Richard Biener <rguenther@suse.de>
2476
2477 * doc/invoke.texi (fgimple): Document.
2478 * dumpfile.h (TDF_GIMPLE): Add.
2479 * dumpfile.c (dump_options): Add gimple.
2480 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
2481 for TDF_GIMPLE.
2482 (dump_gimple_label): Likewise.
2483 (dump_gimple_phi): Likewise.
2484 (dump_gimple_bb_header): Likewise.
2485 (dump_phi_nodes): Likewise.
2486 (pp_cfg_jump): Likewise. Pass in dump flags.
2487 (dump_implicit_edges): Adjust.
2488 * passes.c (pass_init_dump_file): Do not dump function header
2489 for TDF_GIMPLE.
2490 * tree-cfg.c (dump_function_to_file): Dump function return type
2491 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
2492 GIMPLE stmts.
2493 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
2494 (dump_generic_node): Likewise.
2495 * function.h (struct function): Add pass_startwith member.
2496 * passes.c (execute_one_pass): Implement startwith.
2497 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
2498 and assign proper version for parsed ssa names.
2499 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
2500 * internal-fn.c (expand_PHI): New function.
2501 * internal-fn.h (expand_PHI): Declared here.
2502 * internal-fn.def: New defination for PHI.
2503 * tree-cfg.c (lower_phi_internal_fn): New function.
2504 (build_gimple_cfg): Call it.
2505 (verify_gimple_call): Condition for passing label as arg in internal
2506 function PHI.
2507 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
2508 present PHIs with arguments.
2509
2510 2016-11-14 Martin Liska <mliska@suse.cz>
2511
2512 PR bootstrap/78069
2513 * common.opt: Add prefer-atomic as a new enum value for
2514 -fprofile-update.
2515 * coretypes.h: Likewise.
2516 * doc/invoke.texi: Document the new option value.
2517 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
2518 * tree-profile.c (tree_profiling): Select default value
2519 of -fprofile-update when 'prefer-atomic' is selected.
2520
2521 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2522
2523 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
2524 (cortex_a57_alu_shift): ...here.
2525
2526 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2527
2528 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
2529 Use bfx attribute.
2530 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2531 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2532 (<optab>si3_insn_uxtw): Likewise.
2533 (<optab><mode>3_insn): Likewise.
2534 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
2535 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
2536 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
2537 (<optab><mode>): Likewise.
2538 (insv<mode>): Likewise.
2539 (andim_ashift<mode>_bfiz): Likewise.
2540 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
2541 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2542 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
2543 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
2544 (exynos_m1_alu_p): Likewise.
2545 * config/arm/types.md: Add bfx.
2546 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
2547
2548 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2549
2550 * config/aarch64/aarch64.c (cortexa57_vector_cost):
2551 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
2552
2553 2016-11-14 Richard Biener <rguenther@suse.de>
2554
2555 PR tree-optimization/78312
2556 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
2557 flow-sensitive info.
2558
2559 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
2560
2561 PR target/78093
2562 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
2563 * config/avr/avr.opt (-mabsdata): New option.
2564 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
2565 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
2566 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
2567 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
2568 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
2569 spec depending on AVR_ISA_LDS.
2570 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
2571
2572 2016-11-13 Jakub Jelinek <jakub@redhat.com>
2573
2574 * match.pd: Don't try to compare addresses of variables with
2575 DECL_VALUE_EXPR.
2576
2577 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
2578
2579 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
2580 (propagate_vr_accross_jump_function): Handle unary expressions.
2581 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2582 (load_from_param_1): New.
2583 (load_from_unmodified_param): Factor common part into load_from_param_1.
2584 (load_from_param): New.
2585 (compute_complex_assign_jump_func): Handle unary expressions.
2586 (update_jump_functions_after_inlining): Likewise.
2587 (ipa_write_jump_function): Likewise.
2588 (ipa_read_jump_function): Likewise.
2589
2590 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2591
2592 PR c/35503
2593 * doc/invoke.texi: Document Wrestrict.
2594 * pretty-print.c (pp_format): Add case for "Z" specifier.
2595 (test_pp_format): Test "Z" specifier.
2596
2597 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2598
2599 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
2600 original function needs a static chain.
2601
2602 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
2603
2604 PR target/78336
2605 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
2606 ASM_OUTPUT_DEF.
2607
2608 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2609
2610 PR target/77957
2611 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2612 return early if !optional_tbtab.
2613
2614 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
2615
2616 PR rtl-optimization/59461
2617 * doc/rtl.texi (paradoxical subregs): Add missing word.
2618 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
2619 in modes with precision larger than that of last_set_mode.
2620 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
2621 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
2622 REGs to paradoxical SUBREGs.
2623 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
2624 larger than a word before invoking LOAD_EXTEND_OP on it.
2625
2626 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2627
2628 PR target/78243
2629 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
2630 element order for little endian ordering.
2631
2632 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
2633 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
2634 number.
2635
2636 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
2637
2638 PR target/78310
2639 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
2640 when calculating operand 2.
2641 (rotate to rotatex zext splitter): Ditto.
2642
2643 2016-11-11 Jeff Law <law@redhat.com>
2644
2645 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
2646 function.
2647 (stmt_uses_name_in_undefined_way): New function, extracted from
2648 find_implicit_erroneous_behavior and extended for div/mod case.
2649 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
2650 find_explicit_erroneous_behavior and extended for div/mod case.
2651 (find_implicit_erroneous_behavior): Use new helper function.
2652 (find_explicit_erroneous_behavior): Use new helper function.
2653
2654 2016-11-11 Richard Biener <rguenther@suse.de>
2655
2656 PR tree-optimization/71575
2657 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2658 bogus assert.
2659
2660 2016-11-11 Richard Biener <rguenther@suse.de>
2661
2662 PR middle-end/78295
2663 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2664 about uninitialized destination arg of BIT_INSERT_EXPR.
2665
2666 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
2667
2668 PR c/37998
2669 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2670 terminology. Expand to remove ambiguity.
2671
2672 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2673
2674 PR rtl-optimization/78232
2675 * combine.c (try_combine): Add a big comment about why reusing i2dest
2676 is undesirable.
2677 (change_zero_ext): Do not call simplify_gen_binary, do the
2678 simplifications manually.
2679
2680 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2681
2682 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2683 enable HImode and QImode to go in vector registers by default if
2684 the -mvsx-small-integer option is enabled.
2685 (rs6000_secondary_reload_simple_move): Likewise.
2686 (rs6000_preferred_reload_class): Don't force integer constants to
2687 be loaded into vector registers that we can easily make into
2688 memory (or being created in the GPRs and moved over with direct move).
2689 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2690 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2691 vector extraction on ISA 3.0 when the scalar integer can be
2692 allocated in vector registers. Generate the VEC_SELECT directy,
2693 and don't use UNSPEC's to avoid having the scalar type in a vector
2694 register. Make the expander target registers, and let the
2695 combiner fold in results storing to memory, if the machine
2696 supports stores.
2697 (vsx_extract_<mode>_di): Likewise.
2698 (vsx_extract_<mode>_p9): Likewise.
2699 (vsx_extract_<mode>_di_p9): Likewise.
2700 (vsx_extract_<mode>_store_p9): Likewise.
2701 (vsx_extract_si): Likewise.
2702 (vsx_extract_<mode>_p8): Likewise.
2703 (p9_lxsi<wd>zx): Delete, no longer used.
2704 (p9_stxsi<wd>x): Likewise.
2705 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2706 integers in vector registers for ISA 3.0.
2707 (QHI): Update comment.
2708 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2709 vector extract instructions in sign/zero extend.
2710 (zero_extendhi<mode>): Likewise.
2711 (extendqi<mode>): Likewise.
2712 (extendhi<mode>2): Likewise.
2713 (HImode splitter for load/sign extend in vector register): Likewise.
2714 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2715 optimizing floating point conversions to/from small data types and
2716 rewrite it to support QImode/HImode being allowed in vector
2717 registers on ISA 3.0.
2718 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2719 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2720 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2721 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2722 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2723 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2724 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2725 VSPLITISW on ISA 2.07.
2726 (movhi_internal): Combine movhi_internal and movqi_internal into
2727 one mov<mode>_internal with an iterator. Add support for QImode
2728 and HImode being allowed in vector registers. Make large number
2729 of attributes and constraints easier to read.
2730 (movqi_internal): Likewise.
2731 (mov<mode>_internal): Likewise.
2732 (movdi_internal64): Fix constraint to allow loading -16..15 with
2733 VSPLITISW on ISA 2.07.
2734 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2735 well as DImode.
2736
2737 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
2738
2739 PR rtl-optimization/78241
2740 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2741 but emit initial peel copy if niter expr is not reliable.
2742
2743 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2744
2745 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2746 (maybe_record_trace_start): If the CFI is different on the new and
2747 old paths, print out both to the dump file before ICEing.
2748
2749 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
2750
2751 * target.def (additional_allocno_class_p): New.
2752 * hooks.h (hook_bool_reg_class_t_false): New prototype.
2753 * hooks.c (hook_bool_reg_class_t_false): New.
2754 * ira.c (setup_allocno_and_important_classes): Use the new hook.
2755 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2756 * doc/tm.texi: Update.
2757
2758 2016-11-10 Jason Merrill <jason@redhat.com>
2759
2760 * gengtype.c (new_structure): Append to structures list.
2761 (find_structure): Likewise.
2762
2763 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
2764
2765 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2766 this_dir is 2. Check for this_dir non-zero before dir != this_dir
2767 check.
2768
2769 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2770
2771 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2772 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2773 TRUNC_DIV_EXPR.
2774 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
2775 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2776 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
2777 teams distribute parallel for simd even to distribute and teams
2778 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
2779 OMP_CLAUSE_DEPEND_SINK case.
2780 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2781 (omp_no_lastprivate): Removed.
2782 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2783 (gimplify_omp_for): Likewise.
2784 (computable_teams_clause): Fail for automatic vars from current
2785 function not yet seen in bind expr.
2786 * langhooks.c (lhd_omp_scalar_p): New function.
2787 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2788 * varpool.c (varpool_node::get_create): Set node->offloading
2789 even for DECL_EXTERNAL decls.
2790 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2791 (LANG_HOOKS_OMP_SCALAR_P): Define.
2792 (LANG_HOOKS_DECLS): Use it.
2793
2794 2016-11-10 Martin Liska <mliska@suse.cz>
2795
2796 PR sanitizer/78270
2797 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2798 only when SWITCH_BODY is a BIND_EXPR.
2799
2800 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
2801
2802 PR debug/78112
2803 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2804 on the context only when it has no DIE yet.
2805
2806 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
2807
2808 * arm.h (target_cpus): Delete.
2809 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2810 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2811 (all_architectures): Likewise.
2812 (arm_option_override): Adjust use of CPU enums.
2813 (arm_sched_reorder): Likewise.
2814 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2815 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2816 * arm/genopt.sh (processor_type): Prefix enumeration entries with
2817 TARGET_CPU_.
2818 * arm-tables.opt: Regenerated.
2819
2820 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
2821
2822 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2823 (falkor): New core.
2824 * config/aarch64/aarch64-tune.md: Regenerated.
2825 * config/arm/arm-cores.def (falkor): New core.
2826 * config/arm/arm-tables.opt: Regenerated.
2827 * config/arm/arm-tune.md: Regenerated.
2828 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2829 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2830 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2831 (ARM Options/-mtune): Likewise.
2832
2833 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2834
2835 Revert
2836 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2837
2838 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2839 (propagate_vr_accross_jump_function): Likewise.
2840 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2841 (load_from_param_1): New.
2842 (load_from_unmodified_param): Factor common part into load_from_param_1.
2843 (load_from_param): New.
2844 (compute_complex_assign_jump_func): Handle unary expressions.
2845 (ipa_write_jump_function): Likewise.
2846 (ipa_read_jump_function): Likewise.
2847
2848 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2849
2850 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2851 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2852 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2853 is a const_int.
2854
2855 2016-11-09 David Malcolm <dmalcolm@redhat.com>
2856
2857 * print-rtl-function.c: Include varasm.h.
2858 (print_any_param_name): New function.
2859 (print_param): New function.
2860 (print_rtx_function): Call print_param for each argument.
2861 * print-rtl.c (rtx_writer::finish_directive): New function.
2862 * print-rtl.h (rtx_writer::finish_directive): New decl.
2863
2864 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
2865
2866 PR target/78262
2867 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2868 operand 0 as earlyclobber.
2869 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2870
2871 2016-11-09 Martin Liska <mliska@suse.cz>
2872
2873 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2874
2875 2016-11-09 Jakub Jelinek <jakub@redhat.com>
2876
2877 PR target/77718
2878 * builtins.c (expand_builtin_memcmp): Formatting fix.
2879
2880 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2881 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2882 or of them, renumber other enumerators.
2883 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2884 * doc/invoke.texi: Document -fsanitize=shift-base and
2885 -fsanitize-shift-exponent, document -fsanitize=shift as
2886 having those 2 suboptions.
2887
2888 2016-11-09 Richard Biener <rguenther@suse.de>
2889
2890 * fold-const.c (tree_swap_operands_p): Remove unused arg.
2891 * fold-const.c (tree_swap_operands_p): Likewise.
2892 (fold_binary_loc): Adjust.
2893 (fold_ternary_loc): Likewise.
2894 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2895 * gimple-fold.c (fold_stmt_1): Likewise.
2896 * gimple-match-head.c (gimple_resimplify2): Likewise.
2897 (gimple_resimplify3): Likewise.
2898 (gimple_simplify): Likewise.
2899 * tree-ssa-dom.c (record_equality): Likewise.
2900 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2901 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2902 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2903
2904 2016-11-09 Richard Biener <rguenther@suse.de>
2905
2906 * tree-ssa-dom.c (canonicalize_comparison): Remove.
2907 (optimize_stmt): Remove redundant pre-propagation canonicalization
2908 of comparison operand order.
2909
2910 2016-11-09 Martin Liska <mliska@suse.cz>
2911
2912 * fold-const-call.c (fold_const_call): Fix the folding.
2913
2914 2016-11-09 Richard Biener <rguenther@suse.de>
2915
2916 * common.opt (flag_evaluation_order): Remove.
2917 * expr.c (expand_operands): Remove code guarded by
2918 flag_evaluation_order.
2919 * fold-const.c (reorder_operands_p): Remove, it always returns
2920 true.
2921 (negate_expr_p): Remove calls to reorder_operands_p.
2922 (fold_negate_expr): Likewise.
2923 (tree_swap_operands_p): Likewise.
2924 (fold_binary_loc): Likewise.
2925
2926 2016-11-09 Andreas Schwab <schwab@suse.de>
2927
2928 PR target/78254
2929 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2930 insns operating on a register.
2931
2932 2016-11-09 Richard Biener <rguenther@suse.de>
2933
2934 PR tree-optimization/78007
2935 * tree-vect-stmts.c (vectorizable_bswap): New function.
2936 (vectorizable_call): Call vectorizable_bswap for
2937 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2938
2939 2016-11-09 Richard Biener <rguenther@suse.de>
2940
2941 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2942 Look at the DR_BASE_ADDRESS object for forcing alignment.
2943
2944 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2945
2946 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2947 (propagate_vr_accross_jump_function): Likewise.
2948 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2949 (load_from_param_1): New.
2950 (load_from_unmodified_param): Factor common part into load_from_param_1.
2951 (load_from_param): New.
2952 (compute_complex_assign_jump_func): Handle unary expressions.
2953 (ipa_write_jump_function): Likewise.
2954 (ipa_read_jump_function): Likewise.
2955
2956 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2957
2958 PR ipa/78121
2959 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2960 Also fold constant passed as argument while computing value range.
2961 (propagate_constants_accross_call): Pass param type.
2962 * ipa-prop.c: export ipa_get_callee_param_type.
2963 * ipa-prop.h: export ipa_get_callee_param_type.
2964
2965 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2966
2967 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2968 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2969
2970 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2971
2972 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
2973 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
2974 ASAN_STACK_MAGIC_MIDDLE.
2975 (asan_global_struct): Increase the size of fields.
2976 (asan_add_global): Add new field constructor.
2977 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
2978 __asan_version_mismatch_check_v8.
2979
2980 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
2981
2982 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
2983 at runtime.
2984
2985 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
2986
2987 PR target/70799
2988 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2989 Handle ASHIFT and LSHIFTRT.
2990 (dimode_scalar_chain::compute_convert_gain): Ditto.
2991 (dimode_scalar_chain::convert_insn): Ditto.
2992
2993 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2994
2995 * gimple-ssa-store-merging.c: Include selftest.h
2996 (verify_array_eq): New function.
2997 (verify_shift_bytes_in_array): Likewise.
2998 (verify_shift_bytes_in_array_right): Likewise.
2999 (verify_clear_bit_region): Likewise.
3000 (verify_clear_bit_region_be): Likewise.
3001 (store_merging_c_tests): Likewise.
3002 * selftest.h (store_merging_c_tests): Declare prototype.
3003 * selftest-run-tests.c (selftest::run_tests): Run
3004 store_merging_c_tests.
3005
3006 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3007
3008 * config/arm/arm.opt (mold-rtx-costs): Delete.
3009 (mnew-generic-costs): Delete.
3010 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
3011 * config/arm/arm.c (arm_rtx_costs_1): Delete.
3012 (arm_size_rtx_costs): Likewise.
3013 (arm_slowmul_rtx_costs): Likewise.
3014 (arm_fastmul_rtx_costs): Likewise.
3015 (arm_xscale_rtx_costs): Likewise.
3016 (arm_9e_rtx_costs): Likewise.
3017 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3018 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3019 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3020 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3021 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3022 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
3023 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
3024 arm_cortex_m7_tune):
3025 Delete rtx_costs field.
3026 (arm_new_rtx_costs): Rename to...
3027 (arm_rtx_costs_internal): ... This.
3028 (arm_rtx_costs): Remove old way of doing rtx costs.
3029
3030 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3031
3032 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
3033 (arm_fastmul_tune): Likewise.
3034 (arm_strongarm_tune): Likewise.
3035 (arm_xscale_tune): Likewise.
3036 (arm_9e_tune): Likewise.
3037 (arm_marvell_pj4_tune): Likewise.
3038 (arm_v6t2_tune): Likewise.
3039 (arm_v6m_tune): Likewise.
3040 (arm_fa726te_tune): Likewise.
3041
3042 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3043
3044 PR tree-optimization/78234
3045 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
3046 in start != 0 case.
3047
3048 2016-11-08 Martin Liska <mliska@suse.cz>
3049
3050 PR testsuite/78242
3051 * dbgcnt.def: Add new debug counter asan_use_after_scope.
3052 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
3053 with a value expr. Do not add artificial variables to
3054 live_switch_vars. Use the debug counter.
3055 (gimplify_target_expr): Use the debug counter.
3056 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
3057 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
3058 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
3059
3060 2016-11-08 Richard Biener <rguenther@suse.de>
3061
3062 * tree-vect-stmts.c (get_group_load_store_type): If the
3063 access is aligned do not trigger peeling for gaps.
3064 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3065 force alignment of vars with DECL_USER_ALIGN.
3066
3067 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
3068
3069 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
3070
3071 2016-11-08 Richard Biener <rguenther@suse.de>
3072
3073 PR tree-optimization/78205
3074 * tree-vect-stmts.c (vectorizable_load): Move check whether
3075 we may run into gaps when BB vectorizing SLP permutations ...
3076 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
3077 here where we can do a more precise check.
3078
3079 2016-11-08 Richard Biener <rguenther@suse.de>
3080
3081 PR tree-optimization/78224
3082 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3083 Split the fallthru edge in case its successor may have PHIs.
3084 Do not free dominance info.
3085
3086 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3087
3088 PR target/78229
3089 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3090 EH info even for bzhi and pdep/pext.
3091
3092 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
3093
3094 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
3095 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
3096
3097 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3098
3099 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
3100 if appropriate.
3101 * config/rs6000/vector.md (div<mode>3): Ditto.
3102
3103 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
3104
3105 * configure.ac (.hidden): Change to conftest_s string. Provide string
3106 for AIX assembler.
3107 (gcc_cv_ld_hidden): Yes for AIX.
3108 * configure: Regenerate.
3109
3110 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
3111
3112 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
3113 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
3114 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
3115 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3116 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
3117 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
3118 from #if to if.
3119 (rs6000_xcoff_visibility): New.
3120 (rs6000_xcoff_declare_function_name): Add visibility support.
3121 (rs6000_xcoff_asm_globalize_decl_name): New.
3122 (rs6000_xcoff_asm_output_aligned_decl_common): New.
3123 (rs6000_asm_weaken_decl): New.
3124 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
3125 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
3126 reference function.
3127
3128 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
3129
3130 PR driver/78206
3131 * incpath.c (remove_dup): Also silently ignore EPERM.
3132
3133 2016-11-07 Martin Jambor <mjambor@suse.cz>
3134
3135 * tree.c (verify_type_variant): Use pointer comparison to check that
3136 TYPE_SIZE_UNIT match.
3137
3138 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3139
3140 PR target/77834
3141 * dse.c (dse_step5): Call scan_reads even if just
3142 insn_info->frame_read. Improve and fix dump file messages.
3143
3144 PR target/78227
3145 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
3146 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
3147
3148 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3149
3150 PR middle-end/35691
3151 * match.pd: Add following two patterns:
3152 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
3153 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
3154
3155 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
3156
3157 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
3158 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
3159 * rtl.h (duplicate_reg_notes): Declare.
3160 * rtlanal.c (duplicate_reg_note): New function.
3161
3162 PR rtl-optimization/77309
3163 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
3164 don't assume an equality comparison for plain COMPARE.
3165 (simplify_comparison): Pass a more accurate code to
3166 make_compound_operation.
3167
3168 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
3169
3170 * target.def (compute_pressure_classes): New target hook.
3171 * doc/tm.texi.in: Document it.
3172 * doc/tm.texi: Regenerate.
3173 * ira.c (setup_pressure_classes): Call target hook if defined.
3174
3175 2016-11-07 David Malcolm <dmalcolm@redhat.com>
3176
3177 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
3178 method.
3179 (rtx_writer::print_rtx): In compact mode, omit trailing operands
3180 that have the default values.
3181 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
3182 method.
3183 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
3184 label string from expected dump.
3185 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
3186 from expected dump.
3187
3188 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3189
3190 PR target/77834
3191 * alias.c (nonoverlapping_memrefs_p): If one decl is
3192 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
3193
3194 2016-11-07 Richard Biener <rguenther@suse.de>
3195
3196 PR target/78229
3197 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3198 EH info.
3199
3200 2016-11-07 Richard Biener <rguenther@suse.de>
3201
3202 PR tree-optimization/78218
3203 * gimple-ssa-store-merging.c
3204 (pass_store_merging::terminate_all_aliasing_chains):
3205 Drop unused argument, fix alias check to also consider uses.
3206 (pass_store_merging::execute): Adjust.
3207
3208 2016-11-07 Richard Biener <rguenther@suse.de>
3209
3210 PR tree-optimization/78228
3211 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
3212 undefined behavior.
3213
3214 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3215
3216 PR target/77822
3217 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
3218 aarch64_simd_shift_imm_<mode> predicate for operand 1.
3219 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
3220 to restrict them to an appropriate range and add FAIL check if the
3221 region they specify is out of range. Delete useless constraint
3222 strings.
3223 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
3224 2 and 3 to restrict their range and add pattern predicate.
3225
3226 2016-11-07 Martin Liska <mliska@suse.cz>
3227
3228 * asan.c (enum asan_check_flags): Move the enum to header file.
3229 (asan_init_shadow_ptr_types): Make type creation more generic.
3230 (shadow_mem_size): New function.
3231 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
3232 Rewritten stack unpoisoning code.
3233 (build_shadow_mem_access): Add new argument return_address.
3234 (instrument_derefs): Instrument local variables if use after scope
3235 sanitization is enabled.
3236 (asan_store_shadow_bytes): New function.
3237 (asan_expand_mark_ifn): Likewise.
3238 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
3239 * asan.h (enum asan_mark_flags): Moved here from asan.c
3240 (asan_protect_stack_decl): Protect all declaration that need
3241 to live in memory.
3242 (asan_sanitize_use_after_scope): New function.
3243 (asan_no_sanitize_address_p): Likewise.
3244 * cfgexpand.c (partition_stack_vars): Consider
3245 asan_sanitize_use_after_scope in condition.
3246 (expand_stack_vars): Likewise.
3247 * common.opt (-fsanitize-address-use-after-scope): New option.
3248 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3249 Explain the parameter.
3250 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
3251 * gimplify.c (build_asan_poison_call_expr): New function.
3252 (asan_poison_variable): Likewise.
3253 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
3254 variables that have address taken.
3255 (gimplify_decl_expr): Likewise.
3256 (gimplify_target_expr): Likewise for C++ temporaries.
3257 (sort_by_decl_uid): New function.
3258 (gimplify_expr): Unpoison all variables for a label we can jump
3259 from outside of a scope.
3260 (gimplify_switch_expr): Unpoison variables defined in the switch
3261 context.
3262 (gimplify_function_tree): Clear asan_poisoned_variables.
3263 (asan_poison_variables): New function.
3264 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
3265 * internal-fn.c (expand_ASAN_MARK): New function.
3266 * internal-fn.def (ASAN_MARK): Declare.
3267 * opts.c (finish_options): Handle -fstack-reuse if
3268 -fsanitize-address-use-after-scope is enabled.
3269 (common_handle_option): Enable address sanitization if
3270 -fsanitize-address-use-after-scope is enabled.
3271 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
3272 New parameter.
3273 * params.h: Likewise.
3274 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
3275 * sanitizer.def: Define __asan_poison_stack_memory and
3276 __asan_unpoison_stack_memory functions.
3277 * asan.c (asan_mark_poison_p): New function.
3278 (transform_statements): Handle asan_mark_poison_p calls.
3279 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
3280
3281 2016-11-07 Tamar Christina <tamar.christina@arm.com>
3282
3283 PR driver/78196
3284 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
3285
3286 2016-11-07 Martin Liska <mliska@suse.cz>
3287
3288 * tree-profile.c (gimple_gen_time_profiler): Set proper type
3289 to time_profiler_counter_ptr.
3290
3291 2016-11-07 Richard Biener <rguenther@suse.de>
3292
3293 PR tree-optimization/37150
3294 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
3295 parameter.
3296 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
3297 (vect_analyze_slp_cost_1): Account for the real number of
3298 permutations emitted and for dead loads.
3299 (vect_transform_slp_perm_load): Add n_perms parameter counting
3300 the number of emitted permutations.
3301 * tree-vect-stmts.c (vectorizable_load): Adjust.
3302
3303 2016-11-07 Richard Biener <rguenther@suse.de>
3304
3305 PR tree-optimization/78189
3306 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
3307 alignment computation.
3308
3309 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
3310
3311 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
3312
3313 2016-11-05 Martin Sebor <msebor@redhat.com>
3314
3315 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
3316 documentation.
3317
3318 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
3319
3320 PR bootstrap/78188
3321 PR c++/71848
3322 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
3323
3324 2016-11-04 Jakub Jelinek <jakub@redhat.com>
3325
3326 PR target/77834
3327 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
3328 doesn't have rtl set.
3329
3330 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3331
3332 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
3333 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
3334 rs6000_gimple_fold_builtin.
3335 (rs6000_gimple_fold_builtin): New function. Add handling for
3336 early expansion of vector addition builtins.
3337
3338 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3339
3340 * expr.h (copy_blkmode_from_reg): Delete.
3341 * expr.c (copy_blkmode_from_reg): Make static.
3342
3343 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3344
3345 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
3346 * combine.c (LOAD_EXTEND_OP): Delete.
3347 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
3348 * cse.c (LOAD_EXTEND_OP): Delete.
3349 * fold-const.c (LOAD_EXTEND_OP): Likewise.
3350 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
3351 * postreload.c (LOAD_EXTEND_OP): Delete.
3352 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
3353 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
3354 (find_reloads): Likewise.
3355 * reload1.c (eliminate_regs_1): Likewise.
3356 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
3357 (num_sign_bit_copies1): Likewise.
3358
3359 2016-11-04 David Malcolm <dmalcolm@redhat.com>
3360
3361 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
3362 (selftest::ix86_test_dumping_hard_regs): New function.
3363 (selftest::ix86_run_selftests): New function.
3364 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
3365 selftest::ix86_run_selftests.
3366 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
3367 * doc/tm.texi: Regenerate
3368 * selftest-rtl.h: New file.
3369 * rtl-tests.c: Include "selftest-rtl.h".
3370 (selftest::assert_rtl_dump_eq): Make non-static.
3371 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
3372 (selftest::test_dumping_regs): Update comment.
3373 * selftest-run-tests.c: Include "target.h".
3374 (selftest::run_tests): If non-NULL, call
3375 targetm.run_target_selftests.
3376 * target.def (run_target_selftests): New hook.
3377
3378 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3379
3380 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
3381 representative core for this architecture.
3382 * config/arm/arm-cores.def (cortex-m33): Define new processor.
3383 * config/arm/arm-tables.opt: Regenerate.
3384 * config/arm/arm-tune.md: Likewise.
3385 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
3386 valid -mcpu options.
3387 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
3388
3389 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3390
3391 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
3392 representative core for this architecture.
3393 * config/arm/arm-cores.def (cortex-m23): Define new processor.
3394 * config/arm/arm-tables.opt: Regenerate.
3395 * config/arm/arm-tune.md: Likewise.
3396 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
3397 this tuning parameters apply to in the comment.
3398 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
3399 valid -mcpu options.
3400 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
3401
3402 2016-11-04 Bin Cheng <bin.cheng@arm.com>
3403
3404 * fold-const.c (fold_cond_expr_with_comparison): Remove call
3405 to pedantic_non_lvalue_loc. Remove useless code for lvalue
3406 where cond_expr can't be a lvalue.
3407
3408 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
3409
3410 * config/arc/arc.c (arc_process_double_reg_moves): Use
3411 gen_dexcl_2op call.
3412 * config/arc/arc.md (movsi_insn): Disable unsupported move
3413 instructions for ARCv2 cores.
3414 (movdi): Use prepare_move_operands.
3415 (movsf, movdf): Use move_dest_operand predicate.
3416 * config/arc/constraints.md (Chs): Enable when barrel shifter is
3417 present.
3418 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
3419 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
3420 also a destination.
3421 (dexcl_3op_peep2_insn_nores): Likewise.
3422 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
3423 (LINK_COMMAND_SPEC): Remove.
3424
3425 2016-11-04 Richard Biener <rguenther@suse.de>
3426
3427 PR middle-end/78185
3428 * loop-invariant.c (find_exits): Record entering inner
3429 loops as possibly exiting to handle infinite sub-loops.
3430 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
3431 (fill_always_executed_in_1): Honor infinite child loops.
3432
3433 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3434
3435 PR target/78192
3436 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
3437 has already been adjusted for endianness, so don't adjust it any
3438 further.
3439
3440 PR target/77993
3441 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
3442 ICmode unless we have standard PowerPC floating point.
3443 * config/rs6000/rs6000.md (FP iterator): Likewise.
3444 (FMOVE128 iterator): Likewise.
3445
3446 2016-11-03 Jakub Jelinek <jakub@redhat.com>
3447 Alexandre Oliva <aoliva@redhat.com>
3448 Jason Merrill <jason@redhat.com>
3449
3450 PR debug/28767
3451 PR debug/56974
3452 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
3453 langhook.
3454 * langhooks.c (lhd_type_dwarf_attribute): New function.
3455 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
3456 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
3457 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
3458 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
3459 (check_qualified_type, check_aligned_type): Call it.
3460 * dwarf2out.c (modified_type_die): Don't use type_main_variant
3461 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3462 check_base_type and check_lang_type.
3463 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
3464 return early. For pointer-to-data-member add DW_AT_use_location
3465 attribute.
3466 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
3467 if needed.
3468 (gen_type_die_with_usage): Don't use type_main_variant
3469 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3470 check_base_type and check_lang_type. Formatting fixes. Call
3471 get_debug_type langhook.
3472
3473 2016-11-03 Jason Merrill <jason@redhat.com>
3474
3475 * tree.c (check_lang_type): New.
3476 (check_qualified_type): Use it.
3477 (check_aligned_type): Use it.
3478 * tree.h: Declare it.
3479
3480 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
3481
3482 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
3483 (arm*-freebsd*): Likewise.
3484 (arm*-*-netbsdelf*): Likewise.
3485 (arm*-*-linux*): Likewise.
3486 (arm*-*-uclinux*eabi*): Likewise.
3487 (arm*-*-phoenix*): Likewise.
3488 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
3489 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
3490 specified. Default to arm6 if target_cpu_cname is not set.
3491 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
3492 default cpu has been correctly configured.
3493 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
3494 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
3495 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
3496 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
3497 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3498 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
3499 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3500
3501 2016-11-03 Jiong Wang <jiong.wang@arm.com>
3502
3503 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
3504 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
3505 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
3506 (output_cfa_loc): Support DW_CFA_val_expression.
3507 (output_cfa_loc_raw): Likewise.
3508 (output_cfi): Likewise.
3509 (output_cfi_directive): Likewise.
3510 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
3511 (dw_cfi_oprnd2_desc): Likewise.
3512 (mem_loc_descriptor): Recognize new pattern generated for value
3513 expression.
3514
3515 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
3516
3517 PR rtl-optimization/78186
3518 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
3519 well, when converting to IOR.
3520
3521 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
3522
3523 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
3524 (vec_interleave_highv8qi): Likewise.
3525
3526 2016-11-03 Martin Liska <mliska@suse.cz>
3527
3528 * profile.c (instrument_values): Fix coding style.
3529 (branch_prob): Use renamed function.
3530 * tree-profile.c (init_ic_make_global_vars): Likewise.
3531 (gimple_init_edge_profiler): Rename to
3532 gimple_init_gcov_profiler.
3533 tree_time_profiler_counter variable declaration.
3534 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
3535 emission.
3536 * value-prof.h: Remove an argument.
3537
3538 2016-11-03 Richard Biener <rguenther@suse.de>
3539
3540 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
3541 symtab_node::get_create.
3542
3543 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3544
3545 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
3546 Move comments into more natural position.
3547
3548 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
3549
3550 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
3551 (PTRDIFF_TYPE): Define as int.
3552
3553 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3554
3555 * ccmp.c (expand_ccmp_expr_1): Adjust.
3556 (expand_ccmp_expr): Likewise.
3557 (expand_ccmp_next): Likewise.
3558 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
3559 (aarch64_gen_ccmp_first): Likewise.
3560 * doc/tm.texi: Regenerate.
3561 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
3562 (gen_ccmp_next): Likewise.
3563
3564 2016-11-03 Bin Cheng <bin.cheng@arm.com>
3565
3566 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
3567 (vect_is_simple_reduction): Swap cond_reduction by inversion.
3568
3569 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
3570
3571 * config/i386/i386.c (ix86_init_libfuncs): New. Call
3572 darwin_rename_builtins here.
3573 (ix86_expand_divmod_libfunc): New.
3574 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
3575 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
3576
3577 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3578 Nathan Sidwell <nathan@acm.org>
3579
3580 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
3581
3582 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
3583
3584 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
3585 New function.
3586 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
3587 to format MODE_INT and MODE_PARTIAL_INT literals.
3588
3589 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
3590
3591 PR target/78168
3592 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
3593 NULL if TARGET_SPE_ABI.
3594
3595 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3596
3597 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
3598 clear padding bits even when they're less than a byte.
3599
3600 2016-11-02 Richard Biener <rguenther@suse.de>
3601
3602 * gimple-ssa-store-merging.c: Include gimplify-me.h.
3603 (imm_store_chain_info::output_merged_stores): Force base_addr
3604 to be proper GIMPLE for a MEM_REF address.
3605 (pass_store_merging::execute): Restrict negative bitpos
3606 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
3607 check. Take into account non-NULL_TREE offset if the base
3608 is already addressable.
3609
3610 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3611
3612 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
3613 New pattern.
3614 (aarch64_be_crypto_sha1hv4si): New pattern.
3615
3616 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
3617
3618 * config/aarch64/aarch64.md (add<mode>3): Remove
3619 redundant code. Don't split frame based additions.
3620
3621 2016-11-02 Richard Biener <rguenther@suse.de>
3622
3623 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
3624 redundant val and dest members.
3625 (store_immediate_info::store_immediate_info): Adjust.
3626 (merged_store_group::merged_store_group): Adjust.
3627 (merged_store_group::apply_stores): Likewise.
3628 (struct imm_store_chain_info): Add base_addr field.
3629 (imm_store_chain_info::imm_store_chain_info): New constructor.
3630 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
3631 (imm_store_chain_info::output_merged_store): Likewise. Use
3632 addr_base which is already the address.
3633 (imm_store_chain_info::output_merged_stores): Likewise.
3634 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
3635 imm_store_chain_info instead of base. Fix alias check.
3636 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
3637 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
3638 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
3639 use the address of the base and adjust for other changes.
3640
3641 2016-11-02 Martin Liska <mliska@suse.cz>
3642
3643 * fold-const-call.c (host_size_t_cst_p): Test whether
3644 t is convertible to size_t.
3645
3646 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3647
3648 PR tree-optimization/78170
3649 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
3650 introduced by native_encode_expr on little-endian as well.
3651
3652 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3653
3654 PR tree-optimization/78162
3655 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
3656 as invalid.
3657
3658 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3659
3660 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
3661 function comment.
3662 (aarch64_next_callee_save): Likewise.
3663 (aarch64_pushwb_single_reg): Likewise.
3664 (aarch64_gen_storewb_pair): Likewise.
3665 (aarch64_push_regs): Likewise.
3666 (aarch64_gen_loadwb_pair): Likewise.
3667 (aarch64_pop_regs): Likewise.
3668 (aarch64_gen_store_pair): Likewise.
3669 (aarch64_gen_load_pair): Likewise.
3670 (aarch64_save_callee_saves): Likewise.
3671 (aarch64_restore_callee_saves): Likewise.
3672
3673 2016-11-02 Richard Biener <rguenther@suse.de>
3674
3675 PR tree-optimization/78035
3676 PR tree-optimization/77964
3677 * gimple-pretty-print.c (pp_points_to_solution): Print
3678 vars_contains_interposable.
3679 * tree-ssa-alias.c: Include varasm.h.
3680 (ptrs_compare_unequal): Check vars_contains_interposable and
3681 decl_binds_to_current_def_p.
3682 (dump_points_to_solution): Dump vars_contains_interposable.
3683 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3684 flag.
3685 * tree-ssa-structalias.c: Include varasm.h.
3686 (set_uids_in_ptset): Record whether vars contains a
3687 not decl_binds_to_current_def_p variable in vars_contains_interposable.
3688 (ipa_escaped_pt): Update initializer.
3689
3690 2016-11-02 Richard Biener <rguenther@suse.de>
3691
3692 PR tree-optimization/78047
3693 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3694 fake field at offset zero conservatively regarding to may_have_pointers.
3695
3696 2016-11-02 Richard Biener <rguenther@suse.de>
3697
3698 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3699 infer_value_range on stmt ops and update value-ranges.
3700 Dump visited stmts and blocks.
3701 (evrp_dom_walker::push_value_range): Dump changes.
3702 (evrp_dom_walker::pop_value_range): Likewise.
3703 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3704
3705 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3706
3707 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3708 rtx_insn *.
3709 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3710
3711 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3712
3713 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3714 and adjust for that.
3715 * cfgrtl.h (delete_insn_chain): Adjust prototype.
3716
3717 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3718
3719 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3720 to rtx_insn *.
3721 (transcode_memory_rtx): Likewise.
3722 (move_to_acc): Likewise.
3723 (move_from_acc): Likewise.
3724 (move_acc_to_reg): Likewise.
3725 (move_to_x): Likewise.
3726 (move_to_hl): Likewise.
3727 (move_to_de): Likewise.
3728 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3729 (rs6000_emit_savres_rtx): Likewise.
3730 (rs6000_emit_prologue): Likewise.
3731 * reorg.c (update_reg_unused_notes): Likewise.
3732 * rtl.h (remove_note): Adjust prototype.
3733 * rtlanal.c (remove_note): Make argument type rtx_insn *.
3734
3735 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3736
3737 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3738 variables so some can be rtx_insn *.
3739 (alpha_emit_xfloating_libcall): Likewise.
3740 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3741 (mips_legitimize_tls_address): Likewise.
3742 * optabs.c (expand_binop): Likewise.
3743 * reload1.c (gen_reload): Likewise.
3744
3745 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3746
3747 * reorg.c (relax_delay_slots): Split up the trial variable.
3748
3749 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3750
3751 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3752 of variables rtx_insn *.
3753 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3754 (legitimize_tls_address): Likewise.
3755 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3756 (bfin_gen_bundles): Likewise.
3757 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3758 (c6x_reorg): Likewise.
3759 * config/frv/frv.c (frv_reorder_packet): Likewise.
3760 * config/i386/i386.c (ix86_split_idivmod): Likewise.
3761 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3762 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3763 * config/mn10300/mn10300.c: Likewise.
3764 * config/rl78/rl78.c: Likewise.
3765 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3766 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3767 (sh_expand_cmpnstr): Likewise.
3768 (sh_expand_strlen): Likewise.
3769 (sh_expand_setmem): Likewise.
3770 * config/sh/sh.md: Likewise.
3771 * emit-rtl.c (emit_pattern_before): Likewise.
3772 * except.c: Likewise.
3773 * final.c: Likewise.
3774 * jump.c: Likewise.
3775
3776 2016-11-01 Jason Merrill <jason@redhat.com>
3777
3778 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3779 a COND_EXPR with constant condition.
3780
3781 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3782
3783 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3784 and its initialization.
3785
3786 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3787
3788 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3789 HAVE_AS_LEB128.
3790
3791 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3792
3793 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3794 argument, don't call add_linkage_name if it is true.
3795 (gen_variable_die): For C++ inline static data members, consider the
3796 initial call when old_die is NULL to be declaration and call
3797 add_name_and_src_coords_attributes in that case with true as
3798 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
3799 (gen_member_die): For C++ inline static data members, emit a
3800 definition DIE right away in DW_TAG_compile_unit context.
3801
3802 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3803
3804 PR target/78166
3805 * config/pa/pa.md: Add new shift/add patterns to handle
3806 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3807
3808 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
3809
3810 * config/xtensa/xtensa-protos.h
3811 (xtensa_use_return_instruction_p): New prototype.
3812 * config/xtensa/xtensa.c (xtensa_current_frame_size,
3813 xtensa_callee_save_size): Remove.
3814 (struct machine_function): Add new fields: current_frame_size,
3815 callee_save_size, frame_laid_out and epilogue_done.
3816 (compute_frame_size, xtensa_expand_prologue,
3817 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3818 cfun->machine->callee_save_size and xtensa_current_frame_size
3819 with cfun->machine->current_frame_size.
3820 (compute_frame_size): Update cfun->machine->frame_laid_out and
3821 don't update frame layout after reload completion.
3822 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3823 instead of zeroing xtensa_current_frame_size.
3824 (xtensa_use_return_instruction_p): New function.
3825 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3826 declaration.
3827 (INITIAL_ELIMINATION_OFFSET): Use return value of
3828 compute_frame_size instead of xtensa_current_frame_size value.
3829 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3830 function xtensa_use_return_instruction_p instead of inline code.
3831
3832 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3833
3834 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3835 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3836 * dwarf2out.c (rnglist_idx): New variable.
3837 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3838 (DEBUG_RNGLISTS_SECTION): Define.
3839 (ranges_base_label): New variable.
3840 (size_of_die) <case dw_val_class_range_list>: If using
3841 DW_FORM_rnglistx, count size of uleb128 of range list index.
3842 (value_format) <case dw_val_class_range_list>: For
3843 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3844 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3845 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3846 (add_ranges_num): Remove useless prototype. Don't multiply
3847 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
3848 for new fields added to dw_ranges struct.
3849 (add_ranges): Add maybe_new_sec argument and pass it
3850 through to add_ranges_num.
3851 (note_rnglist_head): New function.
3852 (add_ranges_by_labels): Pass true as maybe_new_sec to
3853 add_ranges_num, call note_rnglist_head on the head of the list.
3854 (output_ranges): Add function comment. Switch to
3855 .debug_ranges section here and emit .Ldebug_ranges0 label.
3856 (index_rnglists, output_rnglists): New functions.
3857 (gen_subprogram_die): Formatting fixes.
3858 (add_high_low_attributes): Don't divide offsets
3859 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
3860 first list element or when pointing into the middle of
3861 a list. Pass true as second argument to add_ranges on the
3862 first block fragment after cold/hot section switch.
3863 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3864 section instead of .debug_ranges. Initialize
3865 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3866 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3867 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
3868 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3869 Call output_rnglists for -gdwarf-5.
3870 (dwarf2out_c_finalize): Clear rnglist_idx.
3871
3872 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
3873
3874 * combine.c (simplify_compare_const): Add gcc_fallthrough.
3875
3876 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
3877 Tamar Christina <tamar.christina@arm.com>
3878
3879 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3880 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3881 (vmaxnmq_f32): Likewise.
3882 (vminnm_f32): Likewise.
3883 (vminnmq_f32): Likewise.
3884 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3885 (vminnm): Likewise.
3886 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3887 expander.
3888
3889 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3890
3891 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3892 binary floating point types supported by the hardware except for
3893 double.
3894 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3895 vector instruction for optimizing extracting a SImode from a
3896 V4SImode vector and converting it to floating point.
3897 (vsx_xvcvuxwdp_df): Likewise.
3898 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3899 registers to be any VSX register. Move stores to the end of the
3900 constraints.
3901 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3902 to optimize extracting a SImode from a V4SImode vector and
3903 converting it to a binary floating point type supported by the
3904 hardware. Use the vector converts instead of extracting the
3905 element, sign extending it, and then converting it to double.
3906 Other floating point types than double first convert to double,
3907 then the double is converted to that type.
3908 (vsx_extract_si_<uns>float_<mode>): Likewise.
3909
3910 2016-10-31 Andrew Pinski <apinski@cavium.com>
3911
3912 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3913 Rewrite handling of part num to handle the case where
3914 multiple implementers share the same part num.
3915
3916 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3917 Jakub Jelinek <jakub@redhat.com>
3918
3919 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3920 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3921
3922 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3923
3924 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3925 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3926 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3927 (is_cu_die, is_unit_die): Likewise.
3928 (should_move_die_to_comdat, break_out_comdat_types): Adjust
3929 comments for DWARF5 DW_UT_type units.
3930 (output_compilation_unit_header): Add UT argument, output
3931 start of DWARF5 .debug_info section header.
3932 (output_comp_unit): Add dwo_id argument. Adjust
3933 output_compilation_unit_header caller, for DW_UT_split_compile
3934 emit dwo_id field, otherwise padding1. Emit padding2 field.
3935 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3936 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3937 (output_skeleton_debug_sections): Add dwo_id argument, for
3938 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3939 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3940 DW_UT_type or DW_UT_split_type units rather than .debug_types.
3941 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3942 DW_TAG_compile_unit for skeleton unit die. Don't add
3943 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3944 address to output_comp_unit and output_skeleton_debug_sections.
3945
3946 * dwarf2out.c (debug_line_str_section): New variable.
3947 (debug_line_str_hash): Likewise.
3948 (DEBUG_LINE_STR_SECTION): Define.
3949 (set_indirect_string): Handle DW_FORM_line_strp like
3950 DW_FORM_strp.
3951 (find_string_form): Fix up formatting.
3952 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3953 Fix up indentation.
3954 (output_die): Handle DW_FORM_line_strp.
3955 (DWARF5_USE_DEBUG_LINE_STR): Define.
3956 (output_line_string): New function.
3957 (output_file_names): Add -gdwarf-5 support.
3958 (output_line_info): Likewise.
3959 (init_sections_and_labels): Initialize debug_line_str_section.
3960 (output_indirect_string): Change 2nd argument from void *
3961 to enum dwarf_form form, compare with form rather than
3962 DW_FORM_strp.
3963 (output_indirect_strings): Pass DW_FORM_strp to
3964 output_indirect_string traversion.
3965 (dwarf2out_finish): Output .debug_line_str strings.
3966 (dwarf2out_c_finalize): Clear debug_line_str_section and
3967 debug_line_str_hash.
3968
3969 2016-10-31 Tom Tromey <tom@tromey.com>
3970
3971 PR debug/77315
3972 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
3973 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
3974 DW_OP_GNU_push_tls_address case.
3975 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
3976
3977 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3978
3979 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
3980 for frame_offset_rel bit.
3981 (struct array_descr_info): Add rank field.
3982 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
3983 and placeholder_seen fields.
3984 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
3985 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
3986 DW_OP_pick 1 into DW_OP_over.
3987 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
3988 gen_variant_part): Clear placeholder_{arg,seen}.
3989 (loc_list_from_tree_1): Drop const from context argument.
3990 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
3991 (loc_list_for_address_of_addr_expr_of_indirect_ref,
3992 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
3993 context argument.
3994 (add_scalar_info): Drop const from context argument. Handle
3995 context->placeholder_arg.
3996 (add_bound_info): Drop const from context argument.
3997 (gen_descr_array_type_die): Drop const from ctx variable.
3998 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
3999 attribute and use a single DW_TAG_generic_subrange instead of
4000 7 DW_TAG_subrange_type for assumed rank arrays.
4001
4002 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
4003 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
4004 from bool to 1-bit uchar bitfield. Add num_assigned and
4005 offset_emitted bitfields.
4006 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
4007 for dw_val_class_lineptr and dw_val_class_macptr. Handle
4008 dw_val_class_loclistsptr.
4009 (new_addr_loc_descr): Fix up formatting.
4010 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
4011 (add_AT_low_high_pc): Fix up formatting.
4012 (add_AT_loclistsptr): New function.
4013 (AT_lbl): Allow dw_val_class_loclistsptr.
4014 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
4015 Handle dw_val_class_loclistsptr.
4016 (loc_list_idx): New variable.
4017 (output_loclists_offsets, assign_location_list_indexes): New
4018 functions.
4019 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
4020 add size_of_uleb128 of the index. Drop never used
4021 dwarf_split_debug_info AT_index handling. Handle
4022 dw_val_class_loclistsptr.
4023 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
4024 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
4025 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
4026 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
4027 DW_FORM_loclistx indexes.
4028 (output_attr_index_or_value): Fix up formatting. Don't handle
4029 dw_val_class_loc_list here.
4030 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
4031 For dw_val_class_loc_list call output_loc_list_offset rather than
4032 output_attr_index_or_value.
4033 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
4034 or .debug_loclists.dwo section name for debug_loc_section.
4035 (resolve_addr_in_expr): Formatting fix.
4036 (index_location_lists): Likewise.
4037 (dwarf2out_finish): If there are any location lists, for
4038 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
4039 index_location_lists only if have_location_lists. Call
4040 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
4041 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
4042 -gsplit-dwarf also emit offset table.
4043
4044 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
4045 (size_of_die, value_format, output_die): Use
4046 DW_FORM_data16 for 128-bit dw_val_class_const_double or
4047 dw_val_class_wide_int.
4048
4049 * dwarf2out.c (dwarf_op): Renamed to ...
4050 (dwarf_OP): ... this.
4051 (convert_descriptor_to_mode, scompare_loc_descriptor,
4052 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
4053 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
4054 callers.
4055 (dwarf_AT, dwarf_TAG): New functions.
4056 (check_die): Disallow DW_AT_call_all_calls next to
4057 DW_AT_GNU_all_call_sites.
4058 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
4059 and attributes instead of the corresponding GNU tag and attributes.
4060 (gen_subprogram_die): Likewise. Emit call site information even
4061 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
4062 DW_AT_defaulted in comment.
4063 (resolve_addr): Handle DW_AT_call_origin attribute on
4064 DW_TAG_call_site DIE like DW_AT_abstract_origin on
4065 DW_TAG_GNU_call_site DIE.
4066
4067 * dwarf2out.c (dwarf_op): New function.
4068 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
4069 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
4070 (output_loc_operands, output_loc_operands_raw): Likewise.
4071 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
4072 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
4073 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
4074 if dwarf_version < 5.
4075 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
4076 DW_OP_GNU_xxx.
4077 (scompare_loc_descriptor, ucompare_loc_descriptor,
4078 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
4079 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
4080 optimize_location_into_implicit_ptr): Likewise. Only punt for
4081 !dwarf_strict if dwarf_version < 5.
4082 (string_cst_pool_decl): Adjust comment.
4083 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
4084
4085 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
4086 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
4087 (struct dw_val_node): Add val_file_implicit field.
4088 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
4089 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
4090 output_die): Handle dw_val_class_const_implicit,
4091 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
4092 (abbrev_die_table): Change into va_gc vec.
4093 (abbrev_die_table_allocated, abbrev_die_table_in_use,
4094 ABBREV_DIE_TABLE_INCREMENT): Remove.
4095 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
4096 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
4097 variables.
4098 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
4099 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
4100 vectors.
4101 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
4102 functions.
4103 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
4104 the implicit value.
4105 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
4106 vec.
4107 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
4108 unit. Call optimize_abbrev_table.
4109 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
4110 abbrev_die_table being a va_gc vec.
4111
4112 PR tree-optimization/77860
4113 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
4114 also integral complex and vector constants.
4115
4116 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
4117 optimize_macinfo_range, save_macinfo_strings): Replace
4118 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
4119 (output_macinfo): Likewise. Emit .debug_macro* rather than
4120 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
4121 (init_sections_and_labels): Use .debug_macro* labels rather than
4122 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
4123 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
4124 or DW_AT_GNU_macros for -gdwarf-5.
4125
4126 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
4127
4128 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
4129
4130 2016-09-11 Le-Chun Wu <lcwu@google.com>
4131 Mark Wielaard <mjw@redhat.com>
4132
4133 * common.opt (Wshadow=global): New option. Default for -Wshadow.
4134 (Wshadow=local): New option.
4135 (Wshadow-local): Hidden alias for -Wshadow=local.
4136 (Wshadow=compatible-local): New option.
4137 (Wshadow-compatible-local): Hidden alias for
4138 -Wshadow=compatible-local.
4139 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
4140 Wshadow=compatible-local.
4141
4142 2016-10-31 Bin Cheng <bin.cheng@arm.com>
4143
4144 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
4145 Check slp defs for COND_EXPR by swapping/inverting operands if the
4146 new parameter SWAP indicates so.
4147 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
4148 is isomorphic to the first stmt via swapping/inverting. Store swap
4149 information in the new parameter SWAP.
4150 (vect_build_slp_tree): New local array SWAP and pass it to function
4151 vect_build_slp_tree_1. Cleanup result handling code for function
4152 call to vect_get_and_check_slp_defs. Skip operand swapping if the
4153 order of operands has been fixed as indicated by SWAP[i].
4154
4155 2016-10-31 Bin Cheng <bin.cheng@arm.com>
4156
4157 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
4158 unnecessary data dependence check after visited store stmt.
4159
4160 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4161
4162 PR tree-optimization/71915
4163 PR tree-optimization/71490
4164 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
4165 stride_type field.
4166 (find_basis_for_base_expr): Require stride types to match when
4167 seeking a basis.
4168 (alloc_cand_and_find_basis): Record the stride type.
4169 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
4170 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
4171 the expressions having those types.
4172 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
4173 (create_mul_ssa_cand): Likewise.
4174 (create_mul_imm_cand): Likewise.
4175 (create_add_ssa_cand): Likewise.
4176 (create_add_imm_cand): Likewise.
4177 (legal_cast_p_1): Change interface to accept types rather than the
4178 expressions having those types.
4179 (legal_cast_p): Pass types to legal_cast_p_1.
4180 (slsr_process_cast): Pass stride type to
4181 alloc_cand_and_find_basis.
4182 (slsr_process_copy): Likewise.
4183 (dump_candidate): Display stride type when a cast exists.
4184 (create_add_on_incoming_edge): Introduce a cast when necessary for
4185 the stride type.
4186 (analyze_increments): Change the code checking for invalid casts
4187 to rely on the stride type, and update the documentation and
4188 example. Change the code checking for pointer multiplies to rely
4189 on the stride type.
4190 (insert_initializers): Introduce a cast when necessary for the
4191 stride type. Use the stride type for the type of the initializer.
4192
4193 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4194
4195 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
4196
4197 2016-10-29 Jakub Jelinek <jakub@redhat.com>
4198
4199 PR rtl-optimization/77919
4200 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
4201 into memory if both modes are complex and their inner modes have the
4202 same precision. If the two modes are different complex modes, convert
4203 each part separately and generate a new CONCAT.
4204
4205 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
4206
4207 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
4208
4209 2016-10-29 Jakub Jelinek <jakub@redhat.com>
4210
4211 PR target/78148
4212 * gimple-ssa-store-merging.c
4213 (imm_store_chain_info::output_merged_store): Use build_aligned_type
4214 instead of SET_TYPE_ALIGN on shared integral type.
4215
4216 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
4217
4218 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
4219 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
4220 Adjust comment.
4221
4222 2016-10-28 Jeff Law <law@redhat.com>
4223
4224 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
4225 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
4226
4227 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4228
4229 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
4230
4231 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4232
4233 * target.def (min_arithmetic_precision): New hook.
4234 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
4235 * doc/tm.texi: Regenerate.
4236 * internal-fn.c (expand_arith_overflow): Adjust handling of target
4237 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
4238 * targhooks.c (default_min_arithmetic_precision): New function.
4239 * targhooks.h (default_min_arithmetic_precision): Declare.
4240 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
4241 (sparc_min_arithmetic_precision): New function.
4242
4243 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
4244
4245 PR target/71847
4246 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
4247 Swap commutative operands in new RTL if needed. Handle zero_ext
4248 in the set_dest.
4249 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
4250 PATTERN (insn).
4251
4252 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4253 Kugan Vivekanandarajah <kuganv@linaro.org>
4254 Jim Wilson <jim.wilson@linaro.org>
4255
4256 PR tree-optimization/43721
4257 * target.def: New hook expand_divmod_libfunc.
4258 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
4259 * doc/tm.texi: Regenerate.
4260 * internal-fn.def: Add new entry for DIVMOD ifn.
4261 * internal-fn.c (expand_DIVMOD): New.
4262 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
4263 targhooks.h.
4264 (widen_mul_stats): Add new field divmod_calls_inserted.
4265 (target_supports_divmod_p): New.
4266 (divmod_candidate_p): Likewise.
4267 (convert_to_divmod): Likewise.
4268 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
4269 renumber_gimple_stmt_uids at beginning of function. Call
4270 convert_to_divmod and record stats for divmod.
4271 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
4272 TARGET_EXPAND_DIVMOD_LIBFUNC.
4273 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
4274 divmod_simode.
4275
4276 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4277 Segher Boessenkool <segher@kernel.crashing.org>
4278
4279 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
4280 swapping the arms of the branch.
4281 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
4282 sequence for the generic signed-signed-signed case.
4283
4284 2016-10-28 Jeff Law <law@redhat.com>
4285
4286 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
4287 fallthru comment.
4288 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4289
4290 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
4291
4292 PR rtl-optimization/78029
4293 * function.c (prologue_contains, epilogue_contains): New functions.
4294 (record_prologue_seq, record_epilogue_seq): New functions.
4295 * function.h (prologue_contains, epilogue_contains,
4296 record_prologue_seq, record_epilogue_seq): New declarations.
4297 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
4298 mixing prologue and epilogue insns.
4299 (init_deps): Initialize the new fields in struct deps_desc.
4300 * sched-int.h (struct deps_desc): New fields last_prologue,
4301 last_epilogue, and last_logue_was_epilogue.
4302 * shrink-wrap.c (emit_common_heads_for_components): Record all
4303 emitted prologue and epilogue insns.
4304 (emit_common_tails_for_components): Ditto.
4305 (insert_prologue_epilogue_for_components): Ditto.
4306
4307 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4308
4309 PR middle-end/22141
4310 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
4311 * common.opt (fstore-merging): New Optimization option.
4312 * opts.c (default_options_table): Add entry for
4313 OPT_ftree_store_merging.
4314 * fold-const.h (can_native_encode_type_p): Declare prototype.
4315 * fold-const.c (can_native_encode_type_p): Define.
4316 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
4317 (PARAM_MAX_STORES_TO_MERGE): Likewise.
4318 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
4319 * passes.def: Insert pass_tree_store_merging.
4320 * tree-pass.h (make_pass_store_merging): Declare extern
4321 prototype.
4322 * gimple-ssa-store-merging.c: New file.
4323 * doc/invoke.texi (Optimization Options): Document
4324 -fstore-merging.
4325 (--param documentation): Document store-merging-allow-unaligned
4326 and max-stores-to-merge.
4327
4328 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
4329
4330 PR middle-end/72747
4331 * gimplify.c (gimplify_init_constructor): Move emit of constructor
4332 assignment to earlier in the if/else logic.
4333
4334 2016-10-28 Richard Biener <rguenther@suse.de>
4335
4336 PR middle-end/78128
4337 PR middle-end/71002
4338 * fold-const.c (make_bit_field_ref): Only adjust alias set
4339 when the original alias set was zero.
4340
4341 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4342
4343 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
4344 (s390_adjust_loops): New function.
4345 (s390_reorg): Invoke s390_adjust_loops.
4346 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
4347 ("osc_break"): New insn definition.
4348
4349 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4350
4351 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
4352 * config.gcc: Support alternate archXX cpu levels with
4353 --with-arch= and --with-tune=.
4354 * config/s390/linux.h: Translate new archXX cpu levels to the
4355 original names when calling GAS.
4356 * config/s390/tpf.h: Likewise.
4357 * doc/invoke.texi: Document the alternate cpu level names.
4358
4359 2016-10-28 Jakub Jelinek <jakub@redhat.com>
4360
4361 PR rtl-optimization/77919
4362 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
4363 MEM if mode1 is not a complex mode.
4364
4365 PR rtl-optimization/78132
4366 * ree.c (combine_reaching_defs): Give up if copy_needed and
4367 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
4368
4369 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
4370
4371 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
4372
4373 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4374
4375 * config/rs6000/constraints.md (wH constraint): Add new
4376 constraints for allowing 32-bit integers (and eventually 8/16-bit
4377 integers) into the vector registers.
4378 (wI constraint): Likewise.
4379 (wJ constraint): Likewise.
4380 (wK constraint): Likewise.
4381 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
4382 -mvsx-small-integer as a default option for ISA 2.07
4383 (i.e. power8).
4384 (POWERPC_MASKS): Likewise.
4385 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
4386 switch to turn off small integer support in vector registers.
4387 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
4388 test for -mupper-regs-di, since it is already done with the
4389 reg_add[mode].scalar_in_vsx_p. Add support for the switch
4390 -mvsx-small-integer.
4391 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
4392 constraints.
4393 (rs6000_setup_reg_addr_masks): Likewise.
4394 (rs6000_init_hard_regno_mode_ok): Likewise.
4395 (rs6000_option_override_internal): Add consistency checks for
4396 -mvsx-small-integer.
4397 (rs6000_secondary_reload_simple_move): SImode is a simple move if
4398 -mvsx-small-integer.
4399 (rs6000_secondary_reload): Use std::swap.
4400 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
4401 VSX_REGS for small integers in vector registers, since there is no
4402 D-FORM address mode for such types.
4403 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
4404 (rs6000_opt_masks): Add -mvsx-small-integer.
4405 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
4406 support.
4407 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
4408 extracts can be done on ISA 2.07.
4409 (vsx_extract_<mode>): Add support for small integers in vsx
4410 registers.
4411 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
4412 longer support V4SImode in this pattern.
4413 (vsx_extract_si): New insn to support extraction of SImode in ISA
4414 2.07 using either xxextractuw or vspltw.
4415 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
4416 longer support V4SImode in this pattern.
4417 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
4418 wJ, and wK constraints.
4419 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
4420 storing SDmode with VSX instructions.
4421 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
4422 GPR load and before the FPR and VSX loads. Remove ??, ! from the
4423 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
4424 small integers in vector registers.
4425 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
4426 load and before the FPR and VSX loads. Remove ??, ! from the
4427 constraints. Add VEXTSW2D support for small integers in vector
4428 registers.
4429 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
4430 integers in vector registers.
4431 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
4432 move instead of using an UNSPEC.
4433 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
4434 integers in vector registers.
4435 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
4436 move instead of using an UNSPEC.
4437 (movsi_internal1): Add support for -mvsx-small-integer. Align
4438 columns so that it is more readable.
4439 (SImode splitter for ISA 3.0 constants): Add splitter for
4440 -128..127 constants that can easily be constructed on ISA 3.0.
4441 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
4442 constraints.
4443
4444 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4445
4446 PR middle-end/78025
4447 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
4448 functions.
4449
4450 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4451
4452 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
4453 PIC_OFFSET_TABLE_REGNUM twice.
4454
4455 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4456
4457 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
4458 support for constant operand for OP.
4459
4460 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4461
4462 * dwarf2out.c (gen_member_die): Only reparent_child instead of
4463 splice_child_die if child doesn't have DW_AT_specification attribute.
4464
4465 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4466
4467 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
4468 (TARGET_HAVE_LDREXBH): Likewise.
4469 (TARGET_HAVE_LDACQ): Likewise.
4470
4471 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4472
4473 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
4474 logic to to decide whether to copy over old value to register for new
4475 value.
4476 * config/arm/sync.md: Add comments explaning why mode and code
4477 attribute are not defined in iterators.md
4478 (thumb1_atomic_op_str): New code attribute.
4479 (thumb1_atomic_newop_str): Likewise.
4480 (thumb1_atomic_fetch_op_str): Likewise.
4481 (thumb1_atomic_fetch_newop_str): Likewise.
4482 (thumb1_atomic_fetch_oldop_str): Likewise.
4483 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
4484 mirror the more restrictive constraints of the Thumb-1 insns after
4485 split compared to Thumb-2 counterpart insns.
4486 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
4487 in sync with non atomic version.
4488 (atomic_nand<mode>): Likewise.
4489 (atomic_fetch_<sync_optab><mode>): Likewise.
4490 (atomic_fetch_nand<mode>): Likewise.
4491 (atomic_<sync_optab>_fetch<mode>): Likewise.
4492 (atomic_nand_fetch<mode>): Likewise.
4493 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
4494 in sync with atomic version.
4495 (thumb1_subsi3_insn): Likewise.
4496 (thumb1_andsi3_insn): Likewise.
4497 (thumb1_iorsi3_insn): Likewise.
4498 (thumb1_xorsi3_insn): Likewise.
4499
4500 2016-10-27 Nick Clifton <nickc@redhat.com>
4501
4502 * plugin.c (register_plugin_info): Produce an error message if the
4503 plugin is not found in the hash table.
4504
4505 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4506
4507 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
4508 New pattern.
4509
4510 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
4511
4512 PR target/78056
4513 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
4514 define builtin functions from the bdesc_spe_predicates or
4515 bdesc_spe_evsel arrays if the builtin mask is not compatible with
4516 the current compiler configuration.
4517 (paired_init_builtins): Modify loop to not define define builtin
4518 functions from the bdesc_paried_preds array if the builtin mask is
4519 not compatible with the current compiler configuration.
4520 (altivec_init_builtins): Modify loops to not define the
4521 __builtin_altivec_stxvl function nor the builtin functions from
4522 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
4523 builtin mask is not compatible with the current compiler
4524 configuration.
4525
4526 2016-10-26 Jeff Law <law@redhat.com>
4527
4528 * config/sh/sh.c (output_branch): Add missing fallthru comments.
4529 (gen_shl_and): Likewise.
4530 * config/sh/sh.md (movsicc): Add missing fallthru comments.
4531
4532 * config/mips/mips.c (mips16_constant_cost): Add missing
4533 fallthru comments.
4534 (mips16_build_call_stub): Increase buffer size. Adjust
4535 fallthru comment.
4536
4537 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4538
4539 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
4540 INSN_UIDs for all insns in compact mode.
4541 (rtx_writer::print_rtx): Likewise.
4542 * print-rtl.h (rtx_writer::flag_compact): Update comment.
4543 * rtl-tests.c (selftest::test_dumping_insns): Update expected
4544 output to include INSN_UID.
4545 (selftest::test_uncond_jump): Likewise.
4546
4547 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
4548
4549 * haifa-sched.c (call_used_regs_num): Rename to...
4550 (call_saved_regs_num): ...this.
4551 (fixed_regs_num): New variable.
4552 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
4553 regs not call_used.
4554 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
4555
4556 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4557
4558 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
4559 class rtx_writer.
4560 * print-rtl.c (outfile): Delete global.
4561 (sawclose): Likewise.
4562 (indent): Likewise.
4563 (in_call_function_usage): Likewise.
4564 (flag_compact): Likewise.
4565 (flag_simple): Likewise.
4566 (rtx_writer::rtx_writer): New ctor.
4567 (print_rtx_operand_code_0): Convert to...
4568 (rtx_writer::print_rtx_operand_code_0): ...this.
4569 (print_rtx_operand_code_e): Convert to...
4570 (rtx_writer::print_rtx_operand_code_e): ...this.
4571 (print_rtx_operand_codes_E_and_V): Convert to...
4572 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
4573 (print_rtx_operand_code_i): Convert to...
4574 (rtx_writer::print_rtx_operand_code_i): ...this.
4575 (print_rtx_operand_code_r): Convert to...
4576 (rtx_writer::print_rtx_operand_code_r): ...this.
4577 (print_rtx_operand_code_u): Convert to...
4578 (rtx_writer::print_rtx_operand_code_u): ...this.
4579 (print_rtx_operand): Convert to...
4580 (rtx_writer::print_rtx_operand): ...this.
4581 (print_rtx): Convert to...
4582 (rtx_writer::print_rtx): ...this.
4583 (print_inline_rtx): Rewrite in terms of class rtx_writer.
4584 (debug_rtx): Likewise.
4585 (print_rtl): Convert to...
4586 (rtx_writer::print_rtl): ...this.
4587 (print_rtl): Reimplement in terms of class rtx_writer.
4588 (print_rtl_single): Rewrite in terms of class rtx_writer.
4589 (print_rtl_single_with_indent): Convert to..
4590 (rtx_writer::print_rtl_single_with_indent): ...this.
4591 (print_simple_rtl): Rewrite in terms of class rtx_writer.
4592 * print-rtl.h (flag_compact): Delete decl.
4593 (class rtx_writer): New class.
4594 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
4595 class rtx_writer.
4596
4597 2016-10-26 Jeff Law <law@redhat.com>
4598
4599 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
4600 fallthru.
4601
4602 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
4603 (check_if_valid_sleep_operand): Add missing fallthru comment.
4604 (arc_register_move_cost): Increase buffer size.
4605 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
4606 comment.
4607 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
4608
4609 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
4610 comment. Add gcc_unreachable for path that should never happen.
4611
4612 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
4613 fallthru comment.
4614
4615 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4616 Martin Liska <mliska@suse.cz>
4617
4618 PR fortran/77973
4619 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
4620 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
4621 on outer context if any.
4622
4623 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4624
4625 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
4626 by increment rather than double it.
4627 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
4628 emit a space before args[4].
4629 (END): Don't emit a space before with_arg.
4630
4631 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4632
4633 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
4634 Baseline only alternatives to (i) hold store atomic success value in a
4635 return register rather than a scratch register, (ii) use a low register
4636 for it and to (iii) ensure the cbranchsi insn generated by the split
4637 respect the constraints of Thumb-1 cbranchsi4_insn and
4638 cbranchsi4_scratch.
4639 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
4640 constraints must match those in atomic_compare_and_swap.
4641 (cbranchsi4_scratch): Likewise.
4642
4643 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4644
4645 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4646 variable. Add the new parameter to the insn generator. Set that
4647 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
4648 return value from the negation of that parameter for Thumb-1, keeping
4649 the logic unchanged otherwise except for using bdst as the destination
4650 register of the compare_and_swap insn.
4651 (arm_split_compare_and_swap): Add explanation about how is the value
4652 returned to the function comment. Rename scratch variable to
4653 neg_bval. Adapt initialization of variables holding operands to the
4654 new operand numbers. Use return register to hold result of store
4655 exclusive for Thumb-1, scratch register otherwise. Construct the
4656 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
4657 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
4658 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
4659 for strongly ordered compare_and_swap.
4660 * config/arm/predicates.md (cc_register_operand): New predicate.
4661 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
4662 match_operand with the new predicate to accept either the CC flag or a
4663 destination register for the boolean return value, restricting it to
4664 CC flag only via constraint. Adapt operand numbers accordingly.
4665
4666 2016-10-26 Jeff Law <law@redhat.com>
4667
4668 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4669
4670 * config/frv/frv.c (comparison_string): Do not fall through after
4671 an error.
4672
4673 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4674 comment.
4675 (expand_one_builtin): Add missing break.
4676
4677 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4678 (m32c_legitimate_address_p): Likewise.
4679
4680 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4681
4682 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4683
4684 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4685 fallthru comment.
4686
4687 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4688 fallthru comment.
4689
4690 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4691
4692 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4693 comment.
4694 (rl78_asm_ctor_dtor): Increase buffer size.
4695
4696 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4697 buffer size.
4698 (xstormy16_asm_output_constructor): Likewise.
4699
4700 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4701 size.
4702
4703 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4704 comment to silence warning.
4705
4706 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4707 (spu_legitimate_address_p): Fix logic error and add missing fallthru
4708 comment.
4709
4710 2016-10-26 Michael Matz <matz@suse.de>
4711
4712 PR tree-optimization/78060
4713 PR tree-optimization/78061
4714 PR tree-optimization/78088
4715 * tree-ssa-loop-split.c (easy_exit_values): New function.
4716 (tree_ssa_split_loops): Use it.
4717 (compute_new_first_bound): Change order of operations,
4718 fix invalid use of types.
4719
4720 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
4721
4722 gen-pass-instances.awk is sensitive to the order in which
4723 passes are added; passes that appear later have to be added first.
4724
4725 PR target/71676
4726 PR target/71678
4727 * config/avr/avr-passes.def: Swap order of directives for
4728 gen-pass-instances.awk.
4729
4730 2016-10-25 Jeff Law <law@redhat.com>
4731
4732 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4733 (vax_notice_update_cc): Likewise.
4734
4735 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4736
4737 * config.gcc (sparc*-*-solaris2*): Adjust.
4738 (sparc64-*-linux*): Likewise.
4739 * config/sparc/default-64.h: Rename to...
4740 * config/sparc/default64.h: ...this.
4741 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4742 with TARGET_ARCH64.
4743 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4744 * config/sparc/sparc.h: Minor tweaks.
4745 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4746 TARGET_ARCH32 throughout. Minor various tweaks throughout.
4747
4748 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4749
4750 * input.c (fcache::file_patch): Add comment about lifetime.
4751 (selftest::cpp_reader_ptr): New class.
4752 (selftest::lexer_test): Convert m_parser from cpp_reader *
4753 to a cpp_reader_ptr, and move m_tempfile to after it.
4754 (selftest::lexer_test::lexer_test): Update for above reordering.
4755 (lexer_test::~lexer_test): Move cleanup of m_parser to
4756 cpp_reader_ptr's dtor.
4757
4758 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4759
4760 * toplev.c (toplev::main): Remove call to
4761 location_adhoc_data_fini.
4762
4763 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4764
4765 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4766 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
4767
4768 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4769
4770 * ggc-tests.c (forcibly_ggc_collect): Rename to...
4771 (selftest::forcibly_ggc_collect): ...this, and remove "static".
4772 (test_basic_struct): Update for above renaming.
4773 (test_length): Likewise.
4774 (test_union): Likewise.
4775 (test_finalization): Likewise.
4776 (test_deletable_global): Likewise.
4777 (test_inheritance): Likewise.
4778 (test_chain_next): Likewise.
4779 (test_user_struct): Likewise.
4780 (test_tree_marking): Likewise.
4781 * selftest-run-tests.c (selftest::run_tests): Call
4782 selftest::forcibly_ggc_collect at the end of the selftests.
4783 * selftest.h (selftest::forcibly_ggc_collect): New decl.
4784
4785 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR target/78102
4788 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4789 * optabs.c (expand_vec_cond_expr): For comparison codes
4790 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4791 (expand_vec_cmp_expr): For comparison codes
4792 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4793 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4794 Add enum tree_code argument.
4795 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4796 inline functions.
4797 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
4798 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4799 fallback.
4800 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
4801 NE_EXPR, attempt to use vcondeq_optab as fallback.
4802 * tree-vect-generic.c (expand_vector_comparison,
4803 expand_vector_divmod, expand_vector_condition): Adjust
4804 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4805 * tree-vect-stmts.c (vectorizable_condition,
4806 vectorizable_comparison): Likewise.
4807 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4808 check_bool_pattern, search_type_for_mask_1): Likewise.
4809 * expr.c (do_store_flag): Likewise.
4810 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4811 @code{vcondeq@var{m}@var{n}}): Document.
4812 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4813 New expanders.
4814
4815 2016-10-25 Jeff Law <law@redhat.com>
4816
4817 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4818 comment.
4819 (v850_output_aligned_bss): Add missing break.
4820
4821 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4822
4823 2016-10-25 Martin Liska <mliska@suse.cz>
4824
4825 PR sanitizer/78106
4826 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4827 statements as they can also contain possibly a freeing call.
4828
4829 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
4830 Martin Liska <mliska@suse.cz>
4831
4832 PR ipa/78099
4833 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4834 * ipa-icf.c (sem_function::get_hash): Add target optimization
4835 node to hash.
4836
4837 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
4838
4839 PR target/78041
4840 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4841 Remove partial overlap check for shift by 1.
4842 (ashldi3_neon): Likewise.
4843
4844 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4845
4846 * config/arm/constraints.md (Q constraint): Document its use for
4847 Thumb-1.
4848 (Pf constraint): New constraint for relaxed, consume or relaxed memory
4849 models.
4850 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4851 alternatives to allow any register when memory model matches Pf and
4852 thus lda is used, but only low registers otherwise. Use unpredicated
4853 output template for Thumb-1 targets.
4854 (atomic_store<mode>): Likewise for stl.
4855 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4856 whose output template does not have predication.
4857 (arm_load_acquire_exclusive<mode>): Likewise.
4858 (arm_load_exclusivesi): Likewise.
4859 (arm_load_acquire_exclusivesi): Likewise.
4860 (arm_store_release_exclusive<mode>): Likewise.
4861 (arm_store_exclusive<mode>): Use unpredicated output template for
4862 Thumb-1 targets.
4863
4864 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4865
4866 * internal-fn.def (LAUNDER): New internal function.
4867 * internal-fn.c (expand_LAUNDER): New function.
4868
4869 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4870 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4871
4872 New avr target pass to work around performance loss by PR fix.
4873
4874 PR target/71676
4875 PR target/71678
4876 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4877 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4878 * config/avr/predicates.md (extend_operator): New.
4879 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4880 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4881 (make_avr_pass_casesi): New prototypes.
4882 * config/avr/avr.c (print-rtl.h): Include it.
4883 (pass_data avr_pass_data_casesi): Data for new pass.
4884 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4885 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4886 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4887 (avr_optimize_casesi): New functions.
4888
4889 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4890 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4891
4892 PR target/71676
4893 PR target/71678
4894 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4895
4896 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4897
4898 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4899 DW_AT_rvalue_reference attributes.
4900
4901 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
4902
4903 * doc/invoke.text (Wint-in-bool-context): Update documentation.
4904 * value-prof.c (stringop_block_profile): Fix a warning.
4905
4906 2016-10-24 Martin Sebor <msebor@redhat.com>
4907
4908 PR middle-end/77735
4909 * builtins.c (string_length): New function.
4910 (c_strlen): Use string_length. Correctly handle wide strings.
4911 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4912 functions.
4913 (target_int_max): Call target_max_value.
4914 (format_result::knownrange): New data member.
4915 (fmtresult::fmtresult): Define default constructor.
4916 (format_integer): Use it and set format_result::knownrange.
4917 Handle global constants.
4918 (format_floating_max): Add third argument.
4919 (format_floating): Recompute maximum value for %a for each argument.
4920 (get_string_length): Use fmtresult default ctor.
4921 (format_string): Set format_result::knownrange.
4922 (format_directive): Check format_result::knownrange.
4923 (add_bytes): Same. Correct caret placement in diagnostics.
4924 (pass_sprintf_length::compute_format_length): Set
4925 format_result::knownrange.
4926 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4927
4928 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4929
4930 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4931 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4932
4933 2016-10-24 Ximin Luo <infinity0@pwned.gg>
4934
4935 PR debug/77985
4936 * dwarf2out.c (file_table_relative_p): Remove.
4937 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4938 also for absolute paths.
4939 * doc/tm.texi: Update.
4940 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4941 * target.def (force_at_comp_dir): Remove hook.
4942 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4943
4944 2016-10-24 Richard Biener <rguenther@suse.de>
4945
4946 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4947 backedges when identifying the single predecessor to take
4948 conditional info from. Use SCEV to get at ranges for loop IVs.
4949 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4950 avoid false warning.
4951
4952 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
4953
4954 PR target/78093
4955 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4956 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4957 (avr_address_tiny_absdata_p): New static function.
4958 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4959 it to determine validity of constant addresses.
4960 (avr_attribute_table) [absdata]: New variable attribute...
4961 (avr_handle_absdata_attribute): ...and handler.
4962 (avr_decl_absdata_p): New static function.
4963 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4964 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4965 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4966
4967 2016-10-24 Richard Biener <rguenther@suse.de>
4968
4969 PR tree-optimization/78076
4970 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
4971 also on the loop tree root.
4972
4973 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4974
4975 * config/i386/i386.c (ix86_fold_builtin): Handle
4976 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
4977 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4978 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
4979 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4980
4981 2016-10-24 Martin Liska <mliska@suse.cz>
4982
4983 PR sanitizer/77966
4984 * opts.c (finish_options): Skip conditionally.
4985
4986 2016-10-23 Martin Sebor <msebor@redhat.com>
4987
4988 PR target/77837
4989 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
4990 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
4991
4992 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4993
4994 * config/sparc/sparc.md (cpu_feature): Minor tweak.
4995 (enabled): Likewise.
4996 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
4997 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
4998 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
4999 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
5000 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
5001 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
5002
5003 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
5004
5005 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
5006 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
5007
5008 2016-10-21 Andrew Pinski <apinski@cavium.com>
5009
5010 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
5011 integer constants.
5012 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
5013 implementer_id to unsigned char.
5014 Change part_no to unsigned int.
5015 (AARCH64_BIG_LITTLE): New define.
5016 (INVALID_IMP): New define.
5017 (INVALID_CORE): New define.
5018 (cpu_data): Change the last element's implementer_id and part_no to
5019 integers.
5020 (valid_bL_string_p): Rewrite to ..
5021 (valid_bL_core_p): this for integers instead of strings.
5022 (parse_field): New function.
5023 (contains_string_p): Rewrite to ...
5024 (contains_core_p): this for integers and only for the part_no.
5025 (host_detect_local_cpu): Rewrite handling of implementation and
5026 par num to be integers; simplifying the code.
5027
5028 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
5029
5030 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
5031 value range for pointers in more cases.
5032
5033 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
5034
5035 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
5036 Add extra argument to allow emitting the move immediate.
5037 Use add/sub with positive immediate.
5038 (aarch64_add_constant): Add inline function.
5039 (aarch64_add_sp): Likewise.
5040 (aarch64_sub_sp): Likewise.
5041 (aarch64_expand_prologue): Call aarch64_sub_sp.
5042 (aarch64_expand_epilogue): Call aarch64_add_sp.
5043 Decide when to leave out move.
5044 (aarch64_output_mi_thunk): Call aarch64_add_constant.
5045
5046 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
5047
5048 * config/aarch64/aarch64.c (aarch64_layout_frame):
5049 Align FP callee-saves.
5050
5051 2016-10-21 Jakub Jelinek <jakub@redhat.com>
5052
5053 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
5054 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
5055 Formatting fixes.
5056 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5057 _rdseed64_step): Likewise.
5058 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
5059
5060 PR target/78057
5061 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
5062 and tree-ssanames.h.
5063 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
5064 with INTEGER_CST argument.
5065 (ix86_gimple_fold_builtin): New function.
5066 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5067
5068 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
5069 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
5070 (ranges_table_allocated, ranges_table_in_use,
5071 ranges_by_label_allocated, ranges_by_label_in_use,
5072 RANGES_TABLE_INCREMENT): Removed.
5073 (add_ranges_num): Use vec_safe_push into ranges_table.
5074 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
5075 (output_ranges): Adjust for ranges_table and ranges_by_label
5076 conversion from arrays to vec.
5077 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
5078 conversion from arrays to vec.
5079 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
5080 ranges_table_in_use, ranges_by_label_allocated and
5081 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
5082
5083 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
5084 if needed. Re-add origin_die variable and its initialization.
5085
5086 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
5087 even for -fstack-reuse=none, or for volatile vars etc.
5088
5089 2016-10-21 David Malcolm <dmalcolm@redhat.com>
5090
5091 * print-rtl-function.c (flag_compact): Move extern decl to...
5092 * print-rtl.h (flag_compact): ...here.
5093 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
5094 (ASSERT_RTL_DUMP_EQ): New macro.
5095 (selftest::test_dumping_regs): New function.
5096 (selftest::test_dumping_insns): New function.
5097 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
5098 the insns.
5099 (selftest::rtl_tests_c_tests): Call the new test functions.
5100
5101 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5102
5103 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5104 (outgoing_edges_match): Likewise.
5105 (try_crossjump_to_edge): Likewise.
5106 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5107 (rtl_tidy_fallthru_edge): Likewise.
5108 * rtl.h (tablejump_p): Adjust prototype.
5109 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
5110
5111 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5112
5113 * rtl.h (label_ref_label): New function.
5114 (set_label_ref_label): New function.
5115 (LABEL_REF_LABEL): Delete.
5116 * alias.c (rtx_equal_for_memref_p): Adjust.
5117 * cfgbuild.c (make_edges): Likewise.
5118 (purge_dead_tablejump_edges): Likewise.
5119 * cfgexpand.c (convert_debug_memory_address): Likewise.
5120 * cfgrtl.c (patch_jump_insn): Likewise.
5121 * combine.c (distribute_notes): Likewise.
5122 * cse.c (hash_rtx_cb): Likewise.
5123 (exp_equiv_p): Likewise.
5124 (fold_rtx): Likewise.
5125 (check_for_label_ref): Likewise.
5126 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5127 (cselib_hash_rtx): Likewise.
5128 * emit-rtl.c (mark_label_nuses): Likewise.
5129 * explow.c (convert_memory_address_addr_space_1): Likewise.
5130 * final.c (output_asm_label): Likewise.
5131 (output_addr_const): Likewise.
5132 * gcse.c (add_label_notes): Likewise.
5133 * genconfig.c (walk_insn_part): Likewise.
5134 * genrecog.c (validate_pattern): Likewise.
5135 * ifcvt.c (cond_exec_get_condition): Likewise.
5136 (noce_emit_store_flag): Likewise.
5137 (noce_get_alt_condition): Likewise.
5138 (noce_get_condition): Likewise.
5139 * jump.c (maybe_propagate_label_ref): Likewise.
5140 (mark_jump_label_1): Likewise.
5141 (redirect_exp_1): Likewise.
5142 (rtx_renumbered_equal_p): Likewise.
5143 * lra-constraints.c (operands_match_p): Likewise.
5144 * print-rtl.c (print_value): Likewise.
5145 * reload.c (find_reloads): Likewise.
5146 * reload1.c (set_label_offsets): Likewise.
5147 * reorg.c (get_branch_condition): Likewise.
5148 * rtl-tests.c (test_uncond_jump): Likewise.
5149 * rtl.c (rtx_equal_p_cb): Likewise.
5150 (rtx_equal_p): Likewise.
5151 * rtlanal.c (reg_mentioned_p): Likewise.
5152 (rtx_referenced_p): Likewise.
5153 (get_condition): Likewise.
5154 * varasm.c (const_hash_1): Likewise.
5155 (compare_constant): Likewise.
5156 (const_rtx_hash_1): Likewise.
5157 (output_constant_pool_1): Likewise.
5158
5159 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5160
5161 PR target/71627
5162 * reload.c (find_valid_class_1): Allow regclass if atleast one
5163 regno in regclass is ok. Compute and use rclass size based on
5164 actually available regnos for mode in rclass.
5165
5166 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
5167
5168 * config/sparc/sparc-modes.def (CCV): New.
5169 (CCXV): Likewise.
5170 * config/sparc/predicates.md (v_comparison_operator): New.
5171 (icc_comparison_operator): Add support for CCV/CCXV.
5172 (xcc_comparison_operator): Likewise.
5173 * config/sparc/sparc.c (output_cbranch): Likewise.
5174 (sparc_print_operand): Likewise.
5175 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5176 (uaddvdi4): New expander.
5177 (addvdi4): Likewise.
5178 (uaddvdi4_sp32): New instruction.
5179 (addvdi4_sp32): Likewise.
5180 (uaddvsi4): New expander.
5181 (addvsi4): Likewise.
5182 (cmp_ccc_plus_sltu_set): New instruction.
5183 (cmp_ccv_plus): Likewise.
5184 (cmp_ccxv_plus): Likewise.
5185 (cmp_ccv_plus_set): Likewise.
5186 (cmp_ccxv_plus_set): Likewise.
5187 (cmp_ccv_plus_sltu_set): Likewise.
5188 (uaddvdi4): New expander.
5189 (subvdi4): Likewise.
5190 (usubdi4_sp32): New instruction.
5191 (subvdi4_sp32): Likewise.
5192 (usubvsi4): New expander.
5193 (subvsi4): Likewise.
5194 (cmpsi_minus_sltu_set): New instruction.
5195 (cmp_ccv_minus): Likewise.
5196 (cmp_ccxv_minus): Likewise.
5197 (cmp_ccv_minus_set): Likewise.
5198 (cmp_ccxv_minus_set): Likewise.
5199 (cmp_ccv_minus_sltu_set): Likewise.
5200 (unegvdi3): New expander.
5201 (negvdi3): Likewise.
5202 (unegdi3_sp32): New instruction.
5203 (negvdi3_sp32): Likewise.
5204 (unegvsi3): New expander.
5205 (negvsi3): Likewise.
5206 (cmp_ccc_neg_sltu_set): New instruction.
5207 (cmp_ccv_neg): Likewise.
5208 (cmp_ccxv_neg): Likewise.
5209 (cmp_ccv_neg_set): Likewise.
5210 (cmp_ccxv_neg_set): Likewise.
5211 (cmp_ccv_neg_sltu_set): Likewise.
5212
5213 * tree-ssa-loop-split.c: Remove trailing spaces.
5214 * match.pd: Likewise.
5215
5216 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5217
5218 PR rtl-optimization/78038
5219 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
5220 be deduced to set REG through the RTL structure.
5221 (make_defs_and_copies_lists): Return false on a failing get_defs call.
5222
5223 2016-10-21 Richard Biener <rguenther@suse.de>
5224
5225 PR tree-optimization/78051
5226 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
5227 and mark replaced if folding did something.
5228
5229 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
5230
5231 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
5232 and "protected" in visibility types.
5233 (rs6000_xcoff_declare_function_name): Fix formatting.
5234 (rs6000_xcoff_declare_object_name): Fix formatting.
5235
5236 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
5237
5238 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
5239 and IX86_BUILTIN_HUGE_VALQ here ...
5240 (ix86_expand_builtin): ... not here.
5241
5242 2016-10-20 Jakub Jelinek <jakub@redhat.com>
5243
5244 * doc/gty.texi (for_user): Use @item next to @findex.
5245
5246 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
5247
5248 PR target/78037
5249 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
5250 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
5251 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
5252 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
5253 __builtin_ia32_lzcnt_u16.
5254 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
5255 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
5256 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
5257 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
5258 (bmi_tzcnt_<mode>): New expander.
5259 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5260 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
5261 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
5262 (lzcnt_<mode>): New expander.
5263 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5264 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
5265 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
5266 (UINT64_FTYPE_UINT64): New.
5267 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
5268 (__builtin_ia32_lzcnt_u16): New description.
5269 (__builtin_ia32_lzcnt_u32): Ditto.
5270 (__builtin_ia32_lzcnt_u64): Ditto.
5271 (__builtin_ctzs): Remove description.
5272 (__builtin_ia32_tzcnt_u16): New description.
5273 (__builtin_ia32_tzcnt_u32): Ditto.
5274 (__builtin_ia32_tzcnt_u64): Ditto.
5275 * config/i386/i386.c (ix86_expand_args_builtin): Handle
5276 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
5277
5278 2016-10-20 Martin Liska <mliska@suse.cz>
5279
5280 PR lto/78049
5281 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
5282 comparison with STMT_UID_NOT_IN_RANGE.
5283 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
5284 LTRANS.
5285
5286 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
5287
5288 * compare-elim.c (conforming_compare): Accept UNSPECs.
5289 (find_comparison_dom_walker::before_dom_children): Deal with
5290 instructions both using and killing the flags register.
5291 (equivalent_reg_at_start): New function extracted from...
5292 (try_eliminate_compare): ...here. Use it and add support for
5293 registers and UNSPECs as second operand of the compare.
5294 * config/visium/visium-modes.def (CCV): New.
5295 * config/visium/predicates.md (visium_v_comparison_operator): New.
5296 (visium_branch_operator): Deal with CCV mode.
5297 * config/visium/visium.c (visium_select_cc_mode): Likewise.
5298 (output_cbranch): Likewise.
5299 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5300 (uaddv<mode>4): New expander.
5301 (addv<mode>4): Likewise.
5302 (add<mode>3_insn_set_carry): New instruction.
5303 (add<mode>3_insn_set_overflow): Likewise.
5304 (addsi3_insn_set_overflow): Likewise.
5305 (usubv<mode>4): New expander.
5306 (subv<mode>4): Likewise.
5307 (sub<mode>3_insn_set_carry): New instruction.
5308 (sub<mode>3_insn_set_overflow): Likewise.
5309 (subsi3_insn_set_overflow): Likewise.
5310 (unegv<mode>3): New expander.
5311 (negv<mode>3): Likewise.
5312 (neg<mode>2_insn_set_overflow): New instruction.
5313 (addv_tst<mode>): Likewise.
5314 (subv_tst<mode>): Likewise.
5315 (negv_tst<mode>): Likewise.
5316 (cbranch<mode>4_addv_insn): New splitter and instruction.
5317 (cbranch<mode>4_subv_insn): Likewise.
5318 (cbranch<mode>4_negv_insn): Likewise.
5319
5320 2016-10-20 Richard Biener <rguenther@suse.de>
5321
5322 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
5323 Handle decls possibly not bound.
5324 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
5325 nothing_id for decls that might not be bound if we are interested
5326 for the address.
5327 (get_constraint_for_component_ref): Deal with that.
5328
5329 2016-10-20 Michael Matz <matz@suse.de>
5330
5331 Loop splitting.
5332 * common.opt (-fsplit-loops): New flag.
5333 * passes.def (pass_loop_split): Add.
5334 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
5335 (enable_fdo_optimizations): Add loop splitting.
5336 * timevar.def (TV_LOOP_SPLIT): Add.
5337 * tree-pass.h (make_pass_loop_split): Declare.
5338 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
5339 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
5340 * tree-ssa-loop-split.c: New file.
5341 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
5342 * doc/invoke.texi (fsplit-loops): Document.
5343 * doc/passes.texi (Loop optimization): Add paragraph about loop
5344 splitting.
5345
5346 2016-10-20 Richard Biener <rguenther@suse.de>
5347
5348 * cgraphunit.c (analyze_functions): Set node->definition to
5349 false to signal symbol removal to debug_hooks->late_global_decl.
5350 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
5351 WPA signal symbol removal to the debuginfo machinery.
5352 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
5353 using early_finised to guard the we're called for symbol
5354 removal case look at the symtabs definition flag.
5355 (gen_variable_die): Remove redundant check.
5356
5357 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5358
5359 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
5360
5361 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5362
5363 PR tree-optimization/53979
5364 * match.pd ((a ^ b) | a -> a | b): New pattern.
5365
5366 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
5367
5368 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
5369 config/pa/pa64-hpux-lib.h.
5370 (PA_CRTBEGIN_HACK): Likewise.
5371 (DTOR_LIST_BEGIN): Likewise.
5372
5373 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5374
5375 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5376 register only if "in" and "out" are different registers.
5377
5378 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
5379
5380 * omp-low.c (pass_oacc_device_lower::gate): New method.
5381 (execute): Always call execute_oacc_device_lower.
5382
5383 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5384
5385 PR tree-optimization/77916
5386 PR tree-optimization/77937
5387 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
5388 stopgap fix.
5389 (insert_initializers): Requirement of initializer for -1 should be
5390 based on pointer-typedness of the candidate basis.
5391
5392 2016-10-19 Bin Cheng <bin.cheng@arm.com>
5393
5394 PR tree-optimization/78005
5395 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5396 upper (included) bound for niters of prolog loop.
5397 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
5398 Compute niters of scalar loop above which vectorized loop is
5399 preferred, as well as the upper (included) bound for the niters.
5400 (vect_do_peeling): Record niter bound for loops accordingly.
5401
5402 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5403
5404 PR lto/77458
5405 * tree-core.h (enum tree_index): Put the complex types after their
5406 component types.
5407 * tree-streamer.c (verify_common_node_recorded): New function.
5408 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
5409
5410 2016-10-19 Martin Liska <mliska@suse.cz>
5411
5412 * cgraph.h (cgraph_edge::binds_to_current_def_p):
5413 Replace NULL with false as a return value.
5414
5415 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5416
5417 PR tree-optimization/78024
5418 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5419 don't clear BB_VISITED after processing.
5420
5421 2016-10-19 Richard Biener <rguenther@suse.de>
5422
5423 * domwalk.c (dom_walker::walk): Use RPO order.
5424
5425 2016-10-19 Richard Biener <rguenther@suse.de>
5426
5427 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
5428 stmts_to_remove.
5429 (evrp_dom_walker::~evrp_dom_walker): Free it.
5430 (evrp_dom_walker::stmts_to_remove): Add.
5431 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
5432 whose output we fully propagate for removal. Propagate
5433 into BB destination PHI arguments.
5434 (execute_early_vrp): Remove queued stmts. Dump value ranges
5435 before stmt removal.
5436
5437 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
5438
5439 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
5440 * passes.def: Add two instances of pass_walloca.
5441 * tree-pass.h (make_pass_walloca): New.
5442 * gimple-ssa-warn-alloca.c: New file.
5443 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
5444 -Wvla-larger-than= options.
5445
5446 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
5447
5448 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
5449 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
5450
5451 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
5452
5453 * config/rs6000/altivec.h (vec_xl_len): New macro.
5454 (vec_xst_len): New macro.
5455 (vec_cmpnez): New macro.
5456 (vec_cntlz_lsbb): New macro.
5457 (vec_cnttz_lsbb): New macro.
5458 (vec_xlx): New macro.
5459 (vec_xrx): New macro.
5460 (vec_all_nez): New C++ predicate template.
5461 (vec_any_eqz): New C++ predicate template.
5462 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
5463 conditional compilation.
5464 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
5465 conditional compilation.
5466 (vec_all_nez): New macro.
5467 (vec_any_eqz): New macro.
5468 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
5469 compilation.
5470 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
5471 compilation.
5472 * config/rs6000/vector.md (VI): Moved this mode iterator
5473 definition from altivec.md to vector.md.
5474 (UNSPEC_NEZ_P): New value.
5475 (vector_ne_<mode>_p): New expansion for implementation of
5476 vec_all_ne and vec_any_eq built-in functions.
5477 (vector_nez_<mode>_p): New expansion for implementation of
5478 vec_all_nez and vec_any_eqz built-in functions.
5479 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
5480 and vec_any_eq built-in function.
5481 (cr6_test_for_zero): New commentary to explain this expansion.
5482 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
5483 (cr6_test_for_lt): New commentary to explain this expansion.
5484 (cr6_test_for_lt_reverse): New commentary to explain this
5485 expansion.
5486 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5487 overloaded function prototypes for vec_all_ne, vec_all_nez,
5488 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
5489 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
5490 built-in functions.
5491 (altivec_resolve_overloaded_builtin): Modify the handling of
5492 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
5493 the compiler is configured to support TARGET_P9_VECTOR.
5494 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
5495 to explain the special processing that is given to predicate
5496 built-ins introduced using this macro.
5497 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
5498 the special processing given to predicate built-ins introduced
5499 using this macro.
5500 (BU_VSX_P): Likewise.
5501 (BU_P8V_AV_P): Likewise.
5502 (BU_P9V_AV_P): Likewise.
5503 (BU_P9V_AV_X): New macro.
5504 (BU_P9V_64BIT_AV_X): New macro.
5505 (BU_P9V_VSX_3): New macro.
5506 (BU_P9V_OVERLOAD_P): New macro.
5507 (LXVL): New BU_P9V_64BIT_VSX_2.
5508 (VEXTUBLX): New BU_P9V_AV_2.
5509 (VEXTUBRX): Likewise.
5510 (VEXTUHLX): Likewise.
5511 (VEXTUHRX): Likewise.
5512 (VEXTUWLX): Likewise.
5513 (VEXTUWRX): Likewise.
5514 (STXVL): New BU_P9V_64BIT_AV_X.
5515 (VCLZLSBB): New BU_P9V_AV_1.
5516 (VCTZLSBB): Likewise.
5517 (CMPNEB): New BU_P9V_AV_2.
5518 (CMPNEH): Likewise.
5519 (CMPNEW): Likewise.
5520 (CMPNEF): Likewise.
5521 (CMPNED): Likewise.
5522 (VCMPNEB_P): New BU_P9V_AV_P.
5523 (VCMPNEH_P): Likewise.
5524 (VCMPNEW_P): Likewise.
5525 (VCMPNED_P): Likewise.
5526 (VCMPNEFP_P): Likewise.
5527 (VCMPNEDP_P): Likewise.
5528 (CMPNEZB): New BU_P9V_AV_2.
5529 (CMPNEZH): Likewise.
5530 (CMPNEZW): Likewise.
5531 (VCMPNEZB_P): New BU_P9V_AV_P.
5532 (VCMPNEZH_P): Likewise.
5533 (VCMPNEZW_P): Likewise.
5534 (LXVL): New BU_P9V_OVERLOAD_2.
5535 (STXVL): New BU_P9V_OVERLOAD_3.
5536 (VEXTULX): New BU_P9V_OVERLOAD_2.
5537 (VEXTURX): Likewise.
5538 (CMPNEZ): Likewise.
5539 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
5540 (VCMPNE_P): Likewise.
5541 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
5542 (VCTZLSBB): Likewise.
5543 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
5544 comment to explain mode used for scratch register.
5545 (altivec_expand_stxvl_builtin): New function.
5546 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
5547 (altivec_init_builtins): Add initialized variable
5548 void_ftype_v16qi_pvoid_long and use this type to define the
5549 built-in function __builtin_altivec_stxvl.
5550 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
5551 (UNSPEC_STXVL): New value.
5552 (UNSPEC_VCLZLSBB): New value.
5553 (UNSPEC_VCTZLSBB): New value.
5554 (UNSPEC_VEXTUBLX): New value.
5555 (UNSPEC_VEXTUHLX): New value.
5556 (UNSPEC_VEXTUWLX): New value.
5557 (UNSPEC_VEXTUBRX): New value.
5558 (UNSPEC_VEXTUHRX): New value.
5559 (UNSPEC_VEXTUWRX): New value.
5560 (UNSPEC_VCMPNEB): New value.
5561 (UNSPEC_VCMPNEZB): New value.
5562 (UNSPEC_VCMPNEH): New value.
5563 (UNSPEC_VCMPNEZH): New value.
5564 (UNSPEC_VCMPNEW): New value.
5565 (UNSPEC_VCMPNEZW): New value.
5566 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5567 vector of integer modes.
5568 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5569 vector of float or double modes.
5570 (*vector_nez_<mode>_p): New insn for vector test all not equal or
5571 zero.
5572 (lxvl): New expand for load VSX vector with length.
5573 (*lxvl): New insn for load VSX vector with length.
5574 (stxvl): New expand for store VSX vector with length.
5575 (*stxvl): New insn for store VSX vector with length.
5576 (vcmpneb): New insn for vector of byte compare not equal.
5577 (vcmpnezb): New insn for vector of byte compare not equal or zero.
5578 (vcmpneh): New insn for vector of half word compare not equal.
5579 (vcmpnezh): New insn for vector of half word compare not equal or
5580 zero.
5581 (vcmpnew): New insn for vector of word compare not equal.
5582 (vcmpne<VSs>): New insn for vector of float or double compare not
5583 equal.
5584 (vcmpnezw): New insn for vector of word compare not equal or zero.
5585 (vclzlsbb): New insn for vector count leading zero
5586 least-significant bits byte.
5587 (vctzlsbb): New insn for vector count trailing zero least
5588 signficant bits byte.
5589 (vextublx): New insn for vector extract unsigned byte left
5590 indexed.
5591 (vextubrx): New insn for vector extract unsigned byte right
5592 indexed.
5593 (vextuhlx): New insn for vector extract unsigned half word left
5594 indexed.
5595 (vextuhrx): New insn for vector extract unsigned half word right
5596 indexed.
5597 (vextuwlx): New insn for vector extract unsigned word left
5598 indexed.
5599 (vextuwrx): New insn for vector extract unsigned word right
5600 indexed.
5601 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
5602 clarify intent of this constant.
5603 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
5604 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
5605 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
5606 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
5607 and vec_xrx functions.
5608
5609 2016-10-18 Andrew Pinski <apinski@cavium.com>
5610
5611 PR tree-opt/65950
5612 * predict.c (is_exit_with_zero_arg): New function.
5613 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
5614 as nottaken.
5615
5616 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
5617
5618 PR target/77991
5619 * config/i386/i386.c (legitimize_tls_address)
5620 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
5621 convert dest to Pmode if different than Pmode.
5622
5623 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5624
5625 PR tree-optimization/77916
5626 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
5627 stopgap fix, as pointers with -1 increment are still broken.
5628
5629 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
5630
5631 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
5632 mapping class decoration from here...
5633 (rs6000_xcoff_encode_section): ...to here.
5634
5635 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
5636 if shrink-wrapping and optimizing for speed.
5637
5638 2016-10-18 Richard Biener <rguenther@suse.de>
5639
5640 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5641 not visited but non-executable predecessors. Return taken edge.
5642 Simplify conditions and refactor propagation vs. folding step.
5643
5644 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
5645
5646 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
5647 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
5648 (rs6000_get_separate_components): Assert we do not have those
5649 strategies selected.
5650
5651 2016-10-18 Richard Biener <rguenther@suse.de>
5652
5653 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
5654 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
5655 clearing.
5656 (substitute_and_fold_dom_walker): Adjust constructor.
5657 (substitute_and_fold_dom_walker::before_dom_children): Remove
5658 do_dce flag and handling (always true).
5659 (substitute_and_fold): Likewise.
5660 * tree-vrp.c (vrp_finalize): Adjust.
5661 (execute_early_vrp): Remove final BB_VISITED clearing.
5662 * tree-ssa-ccp.c (ccp_finalize): Adjust.
5663 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5664 * ira.c (ira): Call clear_bb_flags.
5665
5666 2016-10-18 Richard Biener <rguenther@suse.de>
5667
5668 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5669 get at the operand to look at with TREE_OPERAND for generic
5670 sub-nodes.
5671
5672 2016-10-18 David Malcolm <dmalcolm@redhat.com>
5673
5674 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5675 copy_md_ptr_loc.
5676 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5677 (write_test_expr): Use rtx_reader_ptr for calls to
5678 fprint_c_condition.
5679 (write_attr_value): Likewise.
5680 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5681 call to print_md_ptr_loc.
5682 (write_one_condition): Likewise for calls to print_c_condition.
5683 * genconstants.c: Include "statistics.h" and "vec.h".
5684 (main): Update for conversion to member functions.
5685 * genemit.c (emit_c_code): Use rtx_reader_ptr for
5686 call to print_md_ptr_loc.
5687 * genenums.c: Include "statistics.h" and "vec.h".
5688 (main): Update for conversion of traverse_enum_types to a method.
5689 * genmddeps.c: Include "statistics.h" and "vec.h".
5690 * genoutput.c (process_template): Use rtx_reader_ptr for call to
5691 print_md_ptr_loc.
5692 * genpreds.c (write_predicate_subfunction): Likewise.
5693 (write_predicate_expr): Likewise for calls to print_c_condition.
5694 * genrecog.c (print_test): Likewise.
5695 * gensupport.c (process_rtx): Likewise for calls to
5696 copy_md_ptr_loc and join_c_conditions.
5697 (alter_test_for_insn): Likewise for call to join_c_conditions.
5698 (process_substs_on_one_elem): Likewise.
5699 (gen_mnemonic_setattr): Update for move of string_obstack to a
5700 field of rtx_reader.
5701 (mnemonic_htab_callback): Likewise. Fix formatting.
5702 (gen_mnemonic_attr): Likewise.
5703 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5704 to print_c_condition.
5705 * read-md.c: Include "statistics.h" and "vec.h".
5706 (string_obstack): Convert this global to field "m_string_obstack"
5707 of class rtx_reader.
5708 (ptr_locs): Likewise, as "m_ptr_locs".
5709 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5710 (joined_conditions): Likewise, as "m_joined_conditions".
5711 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5712 (md_constants): Likewise, as "m_md_constants".
5713 (enum_types): Likewise, as "m_enum_types".
5714 (set_md_ptr_loc): Convert to...
5715 (rtx_reader::set_md_ptr_loc): ...member function.
5716 (get_md_ptr_loc): Convert to...
5717 (rtx_reader::get_md_ptr_loc): ...member function.
5718 (copy_md_ptr_loc): Convert to...
5719 (rtx_reader::copy_md_ptr_loc): ...member function.
5720 (fprint_md_ptr_loc): Convert to...
5721 (rtx_reader::fprint_md_ptr_loc): ...member function.
5722 (print_md_ptr_loc): Convert to...
5723 (rtx_reader::print_md_ptr_loc): ...member function.
5724 (join_c_conditions): Convert to...
5725 (rtx_reader::join_c_conditions): ...member function.
5726 (fprint_c_condition): Convert to...
5727 (rtx_reader::fprint_c_condition): ...member function.
5728 (print_c_condition): Convert to...
5729 (rtx_reader::print_c_condition): ...member function.
5730 (read_name): Convert to...
5731 (rtx_reader::read_name): ...member function.
5732 (read_escape): Convert to...
5733 (rtx_reader::read_escape): ...member function.
5734 (read_quoted_string): Convert to...
5735 (rtx_reader::read_quoted_string): ...member function.
5736 (read_braced_string): Convert to...
5737 (rtx_reader::read_braced_string): ...member function.
5738 (read_string): Convert to...
5739 (rtx_reader::read_string): ...member function.
5740 (read_skip_construct): Convert to...
5741 (rtx_reader::read_skip_construct): ...member function.
5742 (handle_constants): Convert to...
5743 (rtx_reader::handle_constants): ...member function.
5744 (traverse_md_constants): Convert to...
5745 (rtx_reader::traverse_md_constants): ...member function.
5746 (handle_enum): Convert to...
5747 (rtx_reader::handle_enum): ...member function.
5748 (lookup_enum_type): Convert to...
5749 (rtx_reader::lookup_enum_type): ...member function.
5750 (traverse_enum_types): Convert to...
5751 (rtx_reader::traverse_enum_types): ...member function.
5752 (rtx_reader::rtx_reader): Move initializations
5753 of various former global data from rtx_reader::read_md_files to
5754 here, as fields, along with the call to unlock_std_streams.
5755 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5756 the new fields.
5757 (rtx_reader::read_md_files): Move initializations of various
5758 global data from here to the ctor.
5759 * read-md.h (read_name): Convert to...
5760 (rtx_reader::read_name): ...member function.
5761 (rtx_reader::read_escape): New method decl.
5762 (read_quoted_string): Convert to...
5763 (rtx_reader::read_quoted_string): ...member function.
5764 (rtx_reader::read_braced_string): New method decl.
5765 (read_string): Convert to...
5766 (rtx_reader::read_string): ...member function.
5767 (rtx_reader::read_skip_construct): New method decl.
5768 (rtx_reader::set_md_ptr_loc): New method decl.
5769 (rtx_reader::get_md_ptr_loc): New method decl.
5770 (copy_md_ptr_loc): Convert to...
5771 (rtx_reader::copy_md_ptr_loc): ...member function.
5772 (fprint_md_ptr_loc): Convert to...
5773 (rtx_reader::fprint_md_ptr_loc): ...member function.
5774 (print_md_ptr_loc): Convert to...
5775 (rtx_reader::print_md_ptr_loc): ...member function.
5776 (rtx_reader::lookup_enum_type): New method decl.
5777 (rtx_reader::traverse_enum_types): New method decl.
5778 (rtx_reader::handle_constants): New method decl.
5779 (traverse_md_constants): Convert to...
5780 (rtx_reader::traverse_md_constants): ...member function.
5781 (rtx_reader::handle_enum): New method decl.
5782 (rtx_reader::join_c_conditions): New method decl.
5783 (fprint_c_condition): Convert to...
5784 (rtx_reader::fprint_c_condition): ...member function.
5785 (print_c_condition): Convert to...
5786 (rtx_reader::print_c_condition): ...member function.
5787 (rtx_reader::apply_iterator_to_string): New method decl.
5788 (rtx_reader::copy_rtx_for_iterators): New method decl.
5789 (rtx_reader::read_conditions): New method decl.
5790 (rtx_reader::record_potential_iterator_use): New method decl.
5791 (rtx_reader::read_mapping): New method decl.
5792 (rtx_reader::read_rtx): New method decl.
5793 (rtx_reader::read_rtx_code): New method decl.
5794 (rtx_reader::read_rtx_operand): New method decl.
5795 (rtx_reader::read_nested_rtx): New method decl.
5796 (rtx_reader::read_rtx_variadic): New method decl.
5797 (rtx_reader::get_string_obstack): New method.
5798 (rtx_reader::get_md_constants): New method.
5799 (string_obstack): Convert global variable decl to...
5800 (rtx_reader::m_string_obstack): ...this new field.
5801 (rtx_reader::m_ptr_locs): New field.
5802 (rtx_reader::m_ptr_loc_obstack): New field.
5803 (rtx_reader::m_joined_conditions): New field.
5804 (rtx_reader::m_joined_conditions_obstack): New field.
5805 (rtx_reader::m_md_constants): New field.
5806 (rtx_reader::m_enum_types): New field.
5807 * read-rtl.c (apply_iterator_to_string): Convert to...
5808 (rtx_reader::apply_iterator_to_string): ...member function.
5809 (copy_rtx_for_iterators): Convert to...
5810 (rtx_reader::copy_rtx_for_iterators): ...member function.
5811 (add_condition_to_string): Use rtx_reader_ptr for
5812 calls join_c_conditions.
5813 (apply_iterators): Use rtx_reader_ptr for calls to
5814 join_c_conditions and copy_rtx_for_iterators.
5815 (read_conditions): Convert to...
5816 (rtx_reader::read_conditions): ...member function.
5817 (record_potential_iterator_use): Convert to...
5818 (rtx_reader::record_potential_iterator_use): ...member function.
5819 (read_mapping): Convert to...
5820 (rtx_reader::read_mapping): ...member function.
5821 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5822 (read_rtx): Convert to...
5823 (rtx_reader::read_rtx): ...member function.
5824 (read_rtx_code): Convert to...
5825 (rtx_reader::read_rtx_code): ...member function.
5826 (read_rtx_operand): Convert to...
5827 (rtx_reader::read_rtx_operand): ...member function. Update for move
5828 of string_obstack to a field.
5829 (read_nested_rtx): Convert to..
5830 (rtx_reader::read_nested_rtx): ...member function.
5831 (read_rtx_variadic): Convert to..
5832 (rtx_reader::read_rtx_variadic): ...member function.
5833
5834 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5835
5836 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5837
5838 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5839
5840 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5841 for pointer type too.
5842 (ipcp_update_vr): set_ptr_nonnull for pointer.
5843
5844 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5845
5846 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5847 pt_solution_singleton_p.
5848 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5849 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5850 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5851 pointer nonnull computed by VRP.
5852 Also Conservatively set pt.null to 1.
5853 (pt_solution_reset): Conservatively set pt.null to 1.
5854 (pt_solution_singleton_or_null_p): Renamed from
5855 pt_solution_singleton_p.
5856 * tree-ssanames.h (set_ptr_nonnull): Declare.
5857 (get_ptr_nonnull): Likewise.
5858 * tree-ssanames.c (set_ptr_nonnull): New.
5859 (get_ptr_nonnull): Likewise.
5860 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5861 (evrp_dom_walker::before_dom_children): Likewise.
5862
5863 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5864
5865 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5866 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5867 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5868 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5869 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5870 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5871 (rs6000_option_override_internal): Clear it if ABI_AIX.
5872 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5873 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5874
5875 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5876
5877 * gimple-ssa-strength-reduction.c (record_increment): Remove
5878 garbage comment.
5879
5880 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5881
5882 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5883 that the result is non-zero if it is true.
5884 (maybe_expand_shift): New wrapper around expand_shift_1.
5885 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5886
5887 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5888
5889 PR tree-optimization/77916
5890 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5891 Don't allow a MINUS_EXPR for pointer arithmetic for either known
5892 or unknown strides.
5893 (record_increment): Increments of -1 for unknown strides just use
5894 a multiply initializer like other negative values.
5895 (analyze_increments): Remove stopgap solution for -1 increment
5896 applied to pointer arithmetic.
5897
5898 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5899
5900 * dominance.c (dom_info::dom_info): Add new constructor for region
5901 which is vector of basic blocks.
5902 (dom_init): New method to initialize members common for both
5903 constructors.
5904 (dom_info::dom_info): Invoke dom_init for partial initialization.
5905 (dom_info::get_idom): Add check to corner cases on basic blocks which
5906 are not in region.
5907 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5908 to detect unreachable bbs.
5909 (dom_info::calc_idoms): Likewise.
5910 (compute_dom_fast_query_in_region): New function.
5911 (calculate_dominance_info_for_region): Likewise.
5912 (free_dominance_info_for_region): Likewise.
5913 * dominance.h: Add prototypes for introduced region-based functions
5914 * tree-if-conv.c (build_region): New function.
5915 (if_convertible_loop_p_1): Invoke local version of post-dominators
5916 calculation before basic block predication with subsequent freeing
5917 post-dominator info.
5918 (tree_if_conversion): Remove free of post-dominator info
5919 (pass_if_conversion::execute): Delete detection of infinite loops
5920 and fake edges to exit block since post-dominator calculation is
5921 performed per if-converted loop only.
5922
5923 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5924
5925 PR target/77308
5926 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5927 register explicitly.
5928 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5929 optimizing for size.
5930
5931 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5932
5933 * config/aarch64/aarch64.c: Delete inclusion of
5934 cortex-a57-fma-steering.h.
5935 (aarch64_override_options): Delete call
5936 to aarch64_register_fma_steering.
5937 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5938 * config/aarch64/cortex-a57-fma-steering.h: Delete.
5939 * config/aarch64/aarch64-passes.def: New file.
5940 * config/aarch64/cortex-a57-fma-steering.c
5941 (aarch64_register_fma_steering): Delete definition.
5942 (make_pass_fma_steering): Remove static qualifier.
5943 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5944 (cortex-a57-fma-steering.o): Remove dependency on
5945 cortex-a57-fma-steering.h.
5946
5947 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5948
5949 * explow.c (validize_mem): Do not modify the argument in-place.
5950
5951 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
5952
5953 * tree-streamer.c (record_common_node): Explicitly list expected
5954 tree codes.
5955
5956 2016-10-17 Richard Biener <rguenther@suse.de>
5957
5958 PR tree-optimization/77988
5959 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5960
5961 2016-10-17 Marek Polacek <polacek@redhat.com>
5962
5963 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5964
5965 2016-10-17 Richard Biener <rguenther@suse.de>
5966
5967 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5968 before using it.
5969
5970 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5971
5972 PR tree-optimization/71636
5973 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
5974
5975 2016-10-17 Richard Biener <rguenther@suse.de>
5976
5977 * gimplify.c (gimplify_function_tree): Do not move the outer
5978 binds block.
5979
5980 2016-10-17 Jakub Jelinek <jakub@redhat.com>
5981
5982 * langhooks.h (struct lang_hooks_for_decls): Remove
5983 function_decl_explicit_p, function_decl_deleted_p and
5984 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
5985 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
5986 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5987 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
5988 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
5989 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
5990 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5991 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
5992 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
5993 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
5994 * langhooks.c (lhd_decl_dwarf_attribute): New function.
5995 * dwarf2out.c (gen_subprogram_die): Use
5996 lang_hooks.decls.decl_dwarf_attribute instead of
5997 lang_hooks.decls.function_decl_*.
5998
5999 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
6000
6001 PR ada/37139
6002 PR ada/67205
6003 * common.opt (-ftrampolines): New option.
6004 * doc/invoke.texi (Code Gen Options): Document it.
6005 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
6006 * doc/tm.texi: Regenerate.
6007 * builtins.def: Add init_descriptor and adjust_descriptor.
6008 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
6009 on platforms with descriptors.
6010 (expand_builtin_init_descriptor): New function.
6011 (expand_builtin_adjust_descriptor): Likewise.
6012 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
6013 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
6014 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
6015 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
6016 Set STATIC_CHAIN_REG_P on the static chain register, if any.
6017 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
6018 (expand_call): Likewise. Move around call to prepare_call_address
6019 and pass all flags to it.
6020 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
6021 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
6022 (gimple_call_set_by_descriptor): New setter.
6023 (gimple_call_by_descriptor_p): New getter.
6024 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
6025 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
6026 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
6027 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6028 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
6029 * rtl.h (STATIC_CHAIN_REG_P): New macro.
6030 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
6031 * target.def (custom_function_descriptors): New POD hook.
6032 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
6033 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
6034 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
6035 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
6036 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
6037 (build_common_builtin_nodes): Initialize init_descriptor and
6038 adjust_descriptor.
6039 * tree-nested.c: Include target.h.
6040 (struct nesting_info): Add 'any_descr_created' field.
6041 (get_descriptor_type): New function.
6042 (lookup_element_for_decl): New function extracted from...
6043 (create_field_for_decl): Likewise.
6044 (lookup_tramp_for_decl): ...here. Adjust.
6045 (lookup_descr_for_decl): New function.
6046 (convert_tramp_reference_op): Deal with descriptors.
6047 (build_init_call_stmt): New function extracted from...
6048 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
6049 * defaults.h (FUNCTION_ALIGNMENT): Define.
6050 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
6051 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6052 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
6053 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
6054 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
6055
6056 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
6057
6058 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
6059 constants in CONST_VECTORs.
6060
6061 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
6062
6063 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
6064 register as destination of bmask.
6065 (vector_init_bshuffle): Likewise.
6066 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
6067 (bmaskdi_vis): Enable only in 64-bit mode.
6068
6069 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6070
6071 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
6072 make LR a separately shrink-wrapped component unless savres_strategy
6073 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
6074 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
6075 wrapping when not both {SAVE,REST}_INLINE_GPRS.
6076
6077 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
6078
6079 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
6080 and keep looping on failure.
6081
6082 2016-10-14 David Malcolm <dmalcolm@redhat.com>
6083
6084 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
6085 set.
6086 (print_rtx_function): Update example in comment for...
6087 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
6088 non-virtual pseudos with a '%' sigil followed by the regno, offset
6089 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
6090 pseudo is dumped as "%0".
6091
6092 2016-10-14 Jakub Jelinek <jakub@redhat.com>
6093
6094 PR middle-end/77959
6095 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
6096 return a MEM.
6097
6098 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
6099
6100 * config/sparc/sparc-passes.def: New file.
6101 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
6102 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
6103 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
6104
6105 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
6106
6107 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
6108 loop peel to loops with exit test at the beginning.
6109
6110 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
6111
6112 PR rtl-optimization/68212
6113 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
6114 frequency when computing scale factor for peeled copies.
6115 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
6116 values for switch/peel blocks/edges.
6117
6118 2016-10-14 Pedro Alves <palves@redhat.com>
6119
6120 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
6121
6122 2016-10-14 Catherine Moore <clm@codesourcery.com>
6123
6124 * config/mips/mips.c (mips_prepare_pch_save): Initialize
6125 micromips_globals to zero.
6126
6127 2016-10-14 Richard Biener <rguenther@suse.de>
6128
6129 PR tree-optimization/77979
6130 * tree-vrp.c (compare_name_with_value): Handle released SSA names
6131 in the equivalency sets.
6132 (compare_names): Likewise.
6133
6134 2016-10-14 Martin Liska <mliska@suse.cz>
6135
6136 * builtins.h(target_char_cst_p): Declare the function.
6137 * builtins.c (fold_builtin_memchr): Remove.
6138 (target_char_cst_p): Move the function from gimple-fold.c.
6139 (fold_builtin_3): Do not call the function.
6140 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
6141 (gimple_fold_builtin): Call the function.
6142 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
6143
6144 2016-10-14 Martin Liska <mliska@suse.cz>
6145
6146 * builtins.c (fold_builtin_strcmp): Remove function.
6147 (fold_builtin_strncmp): Likewise.
6148 (fold_builtin_2): Remove call of the function.
6149 (fold_builtin_3): Likewise.
6150 * fold-const-call.c (fold_const_call): Add constant folding
6151 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
6152 * fold-const-call.h (build_cmp_result): Declare the function.
6153 * gimple-fold.c (gimple_load_first_char): New function.
6154 (gimple_fold_builtin_string_compare): Likewise.
6155 (gimple_fold_builtin): Call the function.
6156
6157 2016-10-14 Nathan Sidwell <nathan@acm.org>
6158
6159 * gcov-io.c (gcov_open): Deconstify 'mode'.
6160
6161 2016-10-14 Martin Liska <mliska@suse.cz>
6162
6163 * fold-const.c (c_getstr): Support of properly \0-terminated
6164 string constants. New argument is added.
6165 * fold-const.h: New argument is added.
6166
6167 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6168
6169 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
6170 New function.
6171 (aarch64_print_hint_for_core): Likewise.
6172 (aarch64_print_hint_for_arch): Likewise.
6173 (aarch64_validate_march): Use it. Fix indentation in type signature.
6174 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
6175 (aarch64_validate_mtune): Likewise.
6176 (aarch64_handle_attr_arch): Likewise.
6177 (aarch64_handle_attr_cpu): Likewise.
6178 (aarch64_handle_attr_tune): Likewise.
6179
6180 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6181
6182 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
6183 and udivmod_optab.
6184
6185 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
6186
6187 * config/m68k/m68k.c (m68k_option_override): Check
6188 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
6189 instead of stack_limit_rtx.
6190
6191 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6192
6193 * dwarf2out.c (gen_member_die): Handle inline static data member
6194 definitions.
6195
6196 2016-10-13 Nathan Sidwell <nathan@acm.org>
6197
6198 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
6199 gcov_var.mode. Remove unnecessary fstat.
6200
6201 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
6202
6203 PR bootstrap/77962
6204 * function.c (thread_prologue_and_epilogue_insns): Call all
6205 make_*logue_seq in the same order as traditional. Call them
6206 all a second time if shrink_wrapped_separate.
6207
6208 2016-10-13 Marek Polacek <polacek@redhat.com>
6209
6210 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
6211 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
6212 use -Wno-error.
6213
6214 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6215
6216 PR tree-optimization/77937
6217 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
6218 to infinite when we have a pointer with an increment of -1.
6219
6220 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6221
6222 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
6223 into ...
6224 * memmodel.h: This file.
6225 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
6226 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
6227 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
6228 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
6229 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
6230 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
6231 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
6232 compare-elim.c, config/aarch64/aarch64-builtins.c,
6233 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
6234 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
6235 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
6236 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
6237 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
6238 config/darwin.c, config/epiphany/epiphany.c,
6239 config/epiphany/mode-switch-use.c,
6240 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
6241 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6242 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
6243 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6244 config/m68k/m68k.c, config/mcore/mcore.c,
6245 config/microblaze/microblaze.c, config/mmix/mmix.c,
6246 config/mn10300/mn10300.c, config/moxie/moxie.c,
6247 config/msp430/msp430.c, config/nds32/nds32-cost.c,
6248 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
6249 config/nds32/nds32-memory-manipulation.c,
6250 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
6251 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
6252 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
6253 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
6254 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
6255 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
6256 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6257 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6258 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
6259 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
6260 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
6261 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
6262 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
6263 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
6264 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
6265 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
6266 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
6267 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
6268 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
6269 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6270 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
6271 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
6272 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
6273 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
6274 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
6275 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
6276 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
6277 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
6278 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
6279 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
6280 var-tracking.c, varasm.c: Include memmodel.h.
6281 * genattrtab.c (write_header): Include memmodel.h in generated file.
6282 * genautomata.c (main): Likewise.
6283 * gengtype.c (open_base_files): Likewise.
6284 * genopinit.c (main): Likewise.
6285 * genconditions.c (write_header): Include memmodel.h earlier in
6286 generated file.
6287 * genemit.c (main): Likewise.
6288 * genoutput.c (output_prologue): Likewise.
6289 * genpeep.c (main): Likewise.
6290 * genpreds.c (write_insn_preds_c): Likewise.
6291 * genrecog.c (write_header): Likewise.
6292 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
6293
6294 2016-10-13 David Malcolm <dmalcolm@redhat.com>
6295
6296 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
6297 for new "compact" param of print_rtx_function. Check for "cinsn"
6298 rather than "insn".
6299 * print-rtl-function.c (flag_compact): New decl.
6300 (print_rtx_function): Add param "compact" and use it to set
6301 flag_compact, adding a description of the effect to the leading
6302 comment, and updating the example output.
6303 * print-rtl.c (flag_compact): New variable.
6304 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
6305 mode.
6306 (print_rtx_operand_code_i): When printing source locations, wrap
6307 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
6308 (print_rtx_operand_code_r): Don't print regnos for hard regs and
6309 virtuals in compact mode.
6310 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
6311 apart from in LABEL_REFs.
6312 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
6313 Don't print basic block ids in compact mode.
6314 (print_rtx): In compact mode, prefix the code of insns with "c",
6315 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
6316 * print-rtl.h (print_rtx_function): Add "compact" param.
6317
6318 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6319
6320 * arm.h (TARGET_VFP): Delete.
6321 (TARGET_VFPD32): Remove references to TARGET_VFP.
6322 (TARGET_VFP3, TARGET_VFP5): Likewise.
6323 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
6324 (TARGET_NEON_FP16): Likewise.
6325 (TARGET_FMA): Likewise.
6326 (TARGET_CRYPTO): Likewise.
6327 (TARGET_NEON): Likewise.
6328 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6329 (FUNCTION_ARG_REGNO_P): Likewise.
6330 * arm.c (arm_option_check_internal): Likewise.
6331 (arm_option_override): Likewise.
6332 (use_return_insn): Likewise.
6333 (arm_function_value_regno_p): Likewise.
6334 (arm_apply_result_size): Likewise.
6335 (use_vfp_abi): Likewise.
6336 (arm_legitimate_address_outer_p): Likewise.
6337 (thumb2_legitimate_address_p): Likewise.
6338 (arm_legitimate_index_p): Likewise.
6339 (thumb2_legitimate_index_p): Likewise.
6340 (arm_legitimate_address): Likewise.
6341 (arm_get_vfp_saved_size): Likewise.
6342 (arm_emit_vfp_multi_reg_pop): Likewise.
6343 (arm_get_frame_offsets): Likewise.
6344 (arm_save_coproc_regs): Likewise.
6345 (arm_hard_regno_mode_ok): Likewise.
6346 (arm_expand_epilogue_apcs_frame): Likewise.
6347 (arm_expand_epilogue): Likewise.
6348 (arm_file_start): Likewise.
6349 (arm_conditional_register_usage): Likewise.
6350 (arm_validize_comparison): Use vfp_compare_operand directly.
6351 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
6352 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
6353 unsupported usage.
6354 (arm_atomic_assign_expand_fenv): Likewise.
6355 * arm.md (divsf3): Likewise.
6356 (arm_negsi2): Likewise.
6357 (absdf2): Likewise.
6358 (arm_movdi): Likewise.
6359 (arm_movt): Likewise.
6360 (cbranchsf4): Change predicate to vfp_compare_operand.
6361 (cbranchdf4): Change predicate to vfp_compare_operand.
6362 (cstorehf4): Change predicate to vfp_compare_operand.
6363 (cstoresf4): Change predicate to vfp_compare_operand.
6364 (cstoredf4): Change predicate to vfp_compare_operand.
6365 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
6366 (movhi_insn_arch4, movhi_bytes): Likewise.
6367 * constraints.md (Dt): Likewise.
6368 (Dp): Likewise.
6369 * iterators.md (SDF): Likewise.
6370 * predicates.md (arm_float_compare_operand): Delete.
6371 (const_double_vcvt_power_of_two_reciprocal): Remove references to
6372 TARGET_VFP.
6373 (const_double_vcvt_power_of_two): Likewise.
6374 * thumb2.md thumb2_movsi_insn): Likewise.
6375 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
6376 (movhf_vfp): Likewise.
6377 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
6378 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6379 (movsf_vfp, thumb2_movsf_vfp): Likewise.
6380 (movdf_vfp, thumb2_movdf_vfp): Likewise.
6381 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
6382 (subsf3_vfp, divsf3_vfp): Likewise.
6383 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
6384 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
6385 (mulsf3negsfsubsf_vfp): Likewise.
6386 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
6387 (floatunssisf2, sqrtsf2_vfp): Likewise.
6388 (movcc_vfp): Likewise.
6389 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
6390 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
6391 (push_multi_vfp): Likewise.
6392 (set_fpscr, get_fpscr): Likewise.
6393 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
6394
6395 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6396
6397 * arm.h (TARGET_VFP): Unconditionally define to 1.
6398 (arm_fpu_desc): Remove 'model' field.
6399 (TARGET_FPU_MODEL): Delete.
6400 * arm.c (all_fpus): Don't initialize the model field.
6401 (arm_can_inline_p): Don't check the FPU model.
6402 * arm-fpus.def: Remove redundant model field from all FPU
6403 descriptions.
6404
6405 2016-10-13 Richard Biener <rguenther@suse.de>
6406
6407 PR middle-end/77826
6408 * genmatch.c (struct capture): Add value_match member.
6409 (commutate): Preserve value_match.
6410 (lower_opt_convert): Likewise.
6411 (lower_cond): Likewise.
6412 (replace_id): Likewise.
6413 (struct dt_operand): Add value_match member.
6414 (decision_tree::cmp_node): Compare it.
6415 (decision_tree::insert_operand): Honor it when finding and
6416 when appending a DT_MATCH.
6417 (dt_operand::gen_match_op): Generate a type check after
6418 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
6419 (parser::get_internal_capture_id): New helper.
6420 (parser::finish_match_operand): New function lowering @@<id>.
6421 (parser::parse_capture): Parse @@<id> as value-match.
6422 (parser::parse_expr): Use get_internal_capture_id.
6423 (parser::parse_simplify): Call finish_match_operand.
6424 (walk_captures): New helper.
6425 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
6426 of operand_equal_p.
6427 ((X /[ex] A) * A -> X): Likewise.
6428 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
6429 convert[12] and value-matching.
6430 ((A | B) & (A | C) -> A | (B & C)): Likewise.
6431 ((X | Y) | Y -> X | Y): Likewise.
6432 ((X ^ Y) ^ Y -> X): Likewise.
6433 (A - (A & B) -> ~B & A): Likewise.
6434 ((T)(P + A) - (T)P -> (T) A): Likewise.
6435 ((T)P - (T)(P + A) -> -(T) A): Likewise.
6436 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
6437 * doc/match-and-simplify.texi: Amend capture section.
6438
6439 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6440
6441 * config/arc/arc.md (umul_600): Remove predicated variant.
6442 (umul64_600): Likewise.
6443
6444 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6445
6446 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
6447
6448 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6449
6450 * tree-vect-loop.c (loop_niters_no_overflow): New func.
6451 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
6452 no-overflow information to vect_do_peeling_for_loop_bound and
6453 vect_gen_vector_loop_niters.
6454
6455 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6456
6457 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
6458 iterates 1 time.
6459
6460 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6461
6462 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
6463 adjust_vec automatically.
6464 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
6465 param exit_bb to guard_to.
6466 (slpeel_checking_verify_cfg_after_peeling):
6467 (set_prologue_iterations):
6468 (create_lcssa_for_virtual_phi): New func which is factored out from
6469 slpeel_tree_peel_loop_to_edge.
6470 (slpeel_tree_peel_loop_to_edge):
6471 (iv_phi_p): New func.
6472 (vect_can_advance_ivs_p): Call iv_phi_p.
6473 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
6474 new gimple stmts in basic block.
6475 (vect_gen_niters_for_prolog_loop): Rename to...
6476 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
6477 adjust implementation.
6478 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
6479 sizetype if necessary.
6480 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
6481 it to external function.
6482 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
6483 (vect_gen_vector_loop_niters_mult_vf): New.
6484 (slpeel_update_phi_nodes_for_loops): New.
6485 (slpeel_update_phi_nodes_for_guard1): Reimplement.
6486 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
6487 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
6488 * tree-vect-loop.c (vect_build_loop_niters): Move to file
6489 tree-vect-loop-manip.c
6490 (vect_generate_tmps_on_preheader): Delete.
6491 (vect_transform_loop): Rename vectorization_factor to vf. Call
6492 vect_do_peeling instead of vect_do_peeling-* functions.
6493 * tree-vectorizer.h (vect_do_peeling): New decl.
6494 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
6495 (vect_do_peeling_for_loop_bound): Delete.
6496 (vect_do_peeling_for_alignment): Delete.
6497
6498 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6499
6500 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
6501 duplicated loop after its preheader and after the original loop.
6502
6503 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6504
6505 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
6506 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
6507
6508 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6509
6510 * tree-vect-loop.c (vectorizable_live_operation): Support handling
6511 for live variable outside loop but not in lcssa form.
6512
6513 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6514
6515 * cfg.c (reset_original_copy_tables): New func.
6516 * cfg.h (reset_original_copy_tables): New decl.
6517
6518 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6519
6520 PR c/77946
6521 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
6522 public_flag.
6523 * varasm.c (default_binds_local_p_3): Formatting fix.
6524
6525 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6526
6527 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
6528 style issue.
6529 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
6530 Remove useless code.
6531
6532 2016-10-13 Martin Liska <mliska@suse.cz>
6533
6534 PR tree-optimization/77943
6535 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
6536 a different EH landing pads.
6537
6538 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6539
6540 PR target/77957
6541 * hooks.h (hook_tree_void_null): Declare.
6542 * hooks.c (hook_tree_void_null): New function.
6543 * langhooks.c (lhd_return_null_tree_v): Remove.
6544 * langhooks-def.h (lhd_return_null_tree_v): Remove.
6545 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
6546 set y to const0_rtx.
6547 * function.c (stack_protect_epilogue): Likewise.
6548 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
6549 if TARGET_THREAD_SSP_OFFSET is defined.
6550 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6551 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6552 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6553 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6554 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6555 (ix86_stack_protect_guard): New function.
6556
6557 2016-10-13 Richard Biener <rguenther@suse.de>
6558
6559 * dwarf2out.c (tree_add_const_value_attribute): Do not try
6560 rtl_for_decl_init during early phase.
6561 (gen_variable_die): Do not create locations during early phase.
6562 (gen_label_die): Likewise.
6563 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
6564 twice.
6565
6566 2016-10-12 Richard Biener <rguenther@suse.de>
6567
6568 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
6569 try_add_new_range and made to eturn new range.
6570 (evrp_dom_walker::before_dom_children): Push op1 value range before
6571 pushing op0 value range.
6572
6573 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6574
6575 PR tree-optimization/77937
6576 * gimple-ssa-strength-reduction.c (analyze_increments): Use
6577 POINTER_TYPE_P on the candidate type to determine whether
6578 candidates in this chain require pointer arithmetic.
6579
6580 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
6581
6582 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
6583 correction if the type is smaller than a word.
6584 (visium_select_cc_mode): Add ... fall through ... comment.
6585
6586 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6587
6588 * config/rs6000/rs6000.c (machine_function): Add new fields
6589 gpr_is_wrapped_separately and lr_is_wrapped_separately.
6590 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
6591 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
6592 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
6593 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
6594 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
6595 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
6596 (rs6000_get_separate_components): New function.
6597 (rs6000_components_for_bb): New function.
6598 (rs6000_disqualify_components): New function.
6599 (rs6000_emit_prologue_components): New function.
6600 (rs6000_emit_epilogue_components): New function.
6601 (rs6000_set_handled_components): New function.
6602 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
6603 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
6604 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
6605 (rs6000_emit_epilogue): Don't emit GPR restores if
6606 gpr_is_wrapped_separately for that register. Don't make a
6607 REG_CFA_RESTORE note for registers we did not restore, either.
6608
6609 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6610
6611 * function.c (thread_prologue_and_epilogue_insns): Call
6612 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
6613 if it has possibly changed. Compute the split_prologue_seq and
6614 epilogue_seq later, too.
6615 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
6616 (dump_components): New function.
6617 (struct sw): New struct.
6618 (SW): New function.
6619 (init_separate_shrink_wrap): New function.
6620 (fini_separate_shrink_wrap): New function.
6621 (place_prologue_for_one_component): New function.
6622 (spread_components): New function.
6623 (disqualify_problematic_components): New function.
6624 (emit_common_heads_for_components): New function.
6625 (emit_common_tails_for_components): New function.
6626 (insert_prologue_epilogue_for_components): New function.
6627 (try_shrink_wrapping_separate): New function.
6628 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
6629
6630 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6631
6632 * regrename.c (build_def_use): Invalidate chains that have a
6633 REG_CFA_RESTORE on some instruction.
6634
6635 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6636
6637 * dce.c (delete_unmarked_insns): Don't delete instructions with
6638 a REG_CFA_RESTORE note.
6639
6640 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6641
6642 * common.opt (-fshrink-wrap-separate): New flag.
6643 * doc/invoke.texi: Document it.
6644 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
6645 * doc/tm.texi: Regenerate.
6646 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
6647 * target.def (shrink_wrap): New hook vector.
6648 (get_separate_components, components_for_bb, disqualify_components,
6649 emit_prologue_components, emit_epilogue_components,
6650 set_handled_components): New hooks.
6651
6652 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6653
6654 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
6655 vector return by reference only if -Wpsabi.
6656 (rs6000_pass_by_reference): Similarly, for argument passing.
6657
6658 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6659
6660 * function-tests.c: Include "print-rtl.h".
6661 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
6662 function, and verify what is dumped.
6663 * print-rtl-function.c (print_edge): New function.
6664 (begin_any_block): New function.
6665 (end_any_block): New function.
6666 (can_have_basic_block_p): New function.
6667 (print_rtx_function): Track the basic blocks of insns in the
6668 chain, wrapping those that are within blocks within "(block)"
6669 directives. Remove the "(cfg)" directive.
6670
6671 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6672
6673 * selftest.c (selftest::read_file): New function.
6674 (selftest::test_read_file): New function.
6675 (selftest::selftest_c_tests): Call test_read_file.
6676 * selftest.h (selftest::read_file): New decl.
6677
6678 2016-10-12 Richard Biener <rguenther@suse.de>
6679
6680 PR debug/77947
6681 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6682 function context.
6683
6684 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
6685
6686 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6687
6688 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6689 dwarf2out_assembly_start.
6690
6691 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6692
6693 * Makefile.in (SELFTEST_FLAGS): New variable.
6694 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6695
6696 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6697 early_finish hook.
6698
6699 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
6700
6701 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6702 dumped in RTL dumps.
6703
6704 2016-10-12 Martin Liska <mliska@suse.cz>
6705
6706 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6707 (gimple_fold_builtin_memory_op): Use the function.
6708 (gimple_fold_builtin_strchr): Likewise.
6709 (gimple_fold_builtin_strcat): Likewise.
6710 (gimple_build): Likewise.
6711
6712 2016-10-12 Nathan Sidwell <nathan@acm.org>
6713
6714 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6715
6716 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6717
6718 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6719 equivalent 32-bit constant (modulo 2**32) when that yields
6720 smaller instructions.
6721 (size_of_int_loc_descriptor): Update accordingly.
6722
6723 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6724
6725 * dwarf2out.c (dwarf2out_early_global_decl): For nested
6726 functions, call dwarf2out_decl on the parent function first.
6727
6728 2016-10-12 Richard Biener <rguenther@suse.de>
6729
6730 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6731 on the conversion.
6732
6733 2016-10-12 Richard Biener <rguenther@suse.de>
6734
6735 * tree-ssa-propagate.c
6736 (substitute_and_fold_dom_walker::before_dom_children): Do not
6737 ignore ASSERT_EXPRs but only preserve them.
6738 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6739 that have been propagated into.
6740 (vrp_finalize): Enable DCE for substitute_and_fold.
6741
6742 2016-10-12 Richard Biener <rguenther@suse.de>
6743
6744 PR tree-optimization/77920
6745 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6746 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6747 (simplify_abs_using_ranges): Likewise.
6748 (simplify_conversion_using_ranges): Likewise.
6749 (simplify_stmt_using_ranges): Adjust.
6750
6751 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6752
6753 PR tree-optimization/77929
6754 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6755 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6756
6757 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6758
6759 PR target/77934
6760 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6761 needs a base register for arg 1.
6762
6763 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6764
6765 * common.opt (Wimplicit-fallthrough) Turn into alias to
6766 -Wimplicit-fallthrough=3. Remove EnabledBy.
6767 (Wimplicit-fallthrough=): New option.
6768 * gimplify.c (warn_implicit_fallthrough_r): Use
6769 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6770 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6771 to -Wimplicit-fallthrough=3.
6772 (-Wimplicit-fallthrough=): Document.
6773
6774 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6775
6776 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6777 and GEU in DImode if TARGET_SUBXC.
6778 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6779 (seqdi<W:mode>_zero_subxc): Delete.
6780 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6781 (neg_seqdi<W:mode>_zero_vis3): Delete.
6782 (plus_seqdi<W:mode>_zero): Likewise.
6783 (minus_seqdi<W:mode>_zero): Likewise.
6784 (plus_plus_sltu<W:mode>): Accept only register.
6785 (addx<W:mode>): Likewise.
6786 (plus_sltu<W:mode>_vis3): Likewise.
6787 (plus_plus_sltu<W:mode>_vis3): Likewise.
6788 (neg_sgeu<W:mode>_vis3): Delete.
6789 (minus_sgeu<W:mode>_vis3): Likewise.
6790 (addxc<W:mode>): Accept only registers.
6791 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6792 (minus_neg_sltu<W:mode>_subxc): Accept only register.
6793 (neg_plus_sltu<W:mode>_subxc): Likewise.
6794 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6795 (minus_minus_sltu<W:mode>_subxc): Accept only register.
6796 (sgeu<W:mode>_insn_subxc): Delete.
6797 (plus_sgeu<W:mode>_subxc): Likewise.
6798 (subxc<W:mode>): Accept only register.
6799 (scc splitter): Split always GEU again.
6800
6801 2016-10-11 Jeff Law <law@redhat.com>
6802
6803 PR tree-optimization/77424
6804 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6805 dead conditionals. Assert that all e->aux fields are NULL.
6806
6807 2016-10-11 David Malcolm <dmalcolm@redhat.com>
6808
6809 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
6810 operand-printing "switch" statement into...
6811 (print_rtx_operand_code_0): ...this new function, ...
6812 (print_rtx_operand_code_e): ...this new function, ...
6813 (print_rtx_operand_codes_E_and_V): ...this new function, ...
6814 (print_rtx_operand_code_i): ...this new function, ...
6815 (print_rtx_operand_code_r): ...this new function, ...
6816 (print_rtx_operand_code_u): ...this new function, ...
6817 (print_rtx_operand): ...and this new function.
6818
6819 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
6820
6821 * config/alpha/alpha-passes.def: New file.
6822 * config/alpha/t-alpha: New file.
6823 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6824 (make_pass_handle_trap_shadows): New prototype.
6825 (make_pass_align_insns): Ditto.
6826 * config/alpha/alpha.c (alpha_option_override): Don't register
6827 passes here.
6828 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6829
6830 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6831
6832 PR target/77924
6833 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6834 distinct __ibm128 IBM extended double type if long doubles are
6835 128-bits and the default format for long double is IEEE 128-bit.
6836
6837 2016-10-11 Richard Biener <rguenther@suse.de>
6838
6839 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6840 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6841 (verify_die): New function.
6842 (dwarf2out_finish): Call it.
6843 (output_line_info): Handle case of -gsplit-dwarf without
6844 DWARF2_ASM_LINE_DEBUG_INFO.
6845
6846 2016-10-11 Richard Biener <rguenther@suse.de>
6847
6848 PR debug/77931
6849 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6850 sub-chains of BLOCK_VARS and gimple_bind_vars.
6851
6852 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6853
6854 * config/i386/znver1.md : Fix imov/imovx load type reservations.
6855
6856 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6857
6858 * config/sparc/sparc.opt (msubxc): New option.
6859 * doc/invoke.texi (SPARC options): Document it and tidy up.
6860 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6861 * doc/tm.texi: Regenerate.
6862 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6863 (CCNZ): ...this.
6864 (CCX_NOOV): Rename into...
6865 (CCXNZ): ...this.
6866 (CCC): New.
6867 (CCXC): Likewise.
6868 * config/sparc/predicates.m (fcc_register_operand): Simplify.
6869 (fcc0_register_operand): Likewise.
6870 (icc_register_operand): New.
6871 (icc_or_fcc_register_operand): Simplify.
6872 (nz_comparison_operator): New.
6873 (c_comparison_operator): Likewise.
6874 (noov_compare_operator): Rename into...
6875 (icc_comparison_operator): ...this. Use above predicates.
6876 (noov_compare64_operator): Rename into...
6877 (v9_comparison_operator): ...this and tidy up.
6878 (fcc_comparison_operator): New.
6879 (icc_or_fcc_comparison_operator): Likewise.
6880 (v9_register_compare_operator): Rename info...
6881 (v9_register_comparison_operator): ...this.
6882 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6883 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6884 for Niagara-7.
6885 (sparc_fixed_condition_code_regs): New function.
6886 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
6887 renaming and add support for CCC/CCXC.
6888 (output_cbranch): Likewise.
6889 (sparc_print_operand): Likewise.
6890 (gen_v9_scc): Remove obsolete assertion.
6891 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
6892 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
6893 (output_cbcond): Remove bogus handling of CC modes.
6894 (sparc_register_move_cost): Return 100 for NO_REGS.
6895 * config/sparc/sparc.md (W): New mode iterator.
6896 (length): Adjust for noov_compare64_operator renaming.
6897 (cmpsi_sne): New instruction.
6898 (cmpdi_sne): Likewise.
6899 (seqdi_special): Delete.
6900 (seqdi_special): Likewise.
6901 (snesi<P:mode>_special): Likewise.
6902 (snedi_special): Likewise.
6903 (snedi_special_vis3): Likewise.
6904 (snesi patterns): Use W iterator.
6905 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
6906 (sltu patterns): Likewise.
6907 (sgeu patterns): Likewise.
6908 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6909 (normal_branch): Use icc_comparison_operator predicate.
6910 (inverted_branch): Likewise.
6911 (cbcond_sp32): Use comparison_operator predicate.
6912 (cbcond_sp64): Likewise.
6913 (normal_int_branch_sp64): Adjust for renaming
6914 (inverted_int_branch_sp64): Likewise.
6915 (mov<I:mode>_cc_reg_sp64): Likewise.
6916 (movsf_cc_reg_sp6): Likewise.
6917 (movdf_cc_reg_sp64): Likewise.
6918 (movtf_cc_reg_hq_sp64): Likewise.
6919 (movtf_cc_reg_sp64): Likewise.
6920 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6921 (movsf_cc_v9): Likewise.
6922 (movdf_cc_v9): Likewise.
6923 (movtf_cc_hq_v9): Likewise.
6924 (movtf_cc_v9): Likewise.
6925 (adddi3): Call gen_adddi3_sp32.
6926 (adddi3_insn_sp32): Rename to...
6927 (adddi3_sp32): ...this. Accept only register_operand as operand #1
6928 and use CCCmode for the carry.
6929 (addx_extend_sp32): Use CCCmode for the carry.
6930 (addx_extend_sp64): Delete.
6931 (adddi3_extend_sp32): Use CCCmode for the carry.
6932 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6933 (subdi3): Call gen_subdi3_sp32.
6934 (subdi3_insn_sp32): Rename to...
6935 (subdi3_sp32): ...this and use CCmode for the carry.
6936 (subx_extend_sp32): Use CCCmode for the carry.
6937 (subx_extend_sp64): Delete.
6938 (subdi3_extend_sp32): Use CCmode for the carry.
6939 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6940 (negdi3): Call gen_negdi3_sp32.
6941 (negdi3_sp32): Use CCCmode for the carry.
6942 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6943 (cmp_nz_ashift_1): Use CCNZ mode.
6944 (cmp_nz_set_ashift_1): Likewise.
6945 (ctrapsi4): Use comparison_operator predicate.
6946 (ctrapdi4): Likewise.
6947 (trapsi_insn): Use icc_comparison_operator predicate.
6948 (trapdi_insn): Likewise.
6949 (edge8 patterns): Use CCNZmode.
6950 (edge16 patterns): Likewise.
6951 (edge32 patterns): Likewise.
6952
6953 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6954
6955 * config/visium/visium-modes.def (CC_NOOV): Rename into...
6956 (CCNZ): ...this.
6957 (CC_BTST): Rename into...
6958 (CCC): ...this.
6959 * config/visium/predicates.md (real_add_operand): New.
6960 (visium_btst_operator): Rename into...
6961 (visium_equality_comparison_operator): ...this.
6962 (visium_noov_operator): Rename into...
6963 (visium_nz_comparison_operator): ...this.
6964 (visium_c_comparison_operator): New.
6965 (visium_branch_operator): Adjust and deal with all CC modes.
6966 * config/visium/visium.c (visium_adjust_cost): Adjust.
6967 (visium_split_double_add): Use the *_set_carry patterns.
6968 (visium_select_cc_mode): Add support for CCC mode and adjust.
6969 (output_cbranch): Adjust and use the carry-based operators for
6970 floating-point comparisons.
6971 * config/visium/visium.md (flags_subst_arith): Adjust.
6972 (addsi3_insn_set_carry): New instruction.
6973 (subsi3_insn_set_carry): Likewise.
6974 (negsi2_insn_set_carry): Likewise.
6975 (btst): Adjust.
6976 (cmp<mode>_sne): Likewise.
6977 (cbranch<mode>4): Use ordered_comparison_operator.
6978 (cbranch<mode>4_insn): Likewise.
6979 (cbranchsi4_btst_insn): Adjust.
6980
6981 2016-10-11 Tom de Vries <tom@codesourcery.com>
6982
6983 PR middle-end/77558
6984 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
6985 special-casing.
6986
6987 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6988
6989 * tree.h (build_complex_type): Add second parameter with default.
6990 * tree.c (build_complex_type): Add NAMED second parameter and adjust
6991 recursive call. Create a TYPE_DECL only if NAMED is true.
6992 (build_common_tree_nodes): Pass true in calls to build_complex_type.
6993
6994 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
6995
6996 New avr-passes.def to register AVR specific passes.
6997
6998 * config/avr/avr-passes.def: New file.
6999 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
7000 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
7001 (make_avr_pass_recompute_note): New proto.
7002 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
7003 (avr_pass_recompute_notes): Use anonymous namespace.
7004 (avr_register_passes): Remove function...
7005 (avr_option_override): ...and its call.
7006
7007 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
7008
7009 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
7010 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
7011 PTF_AVOID_BRANCHLIKELY_SPEED for others.
7012 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
7013 flags.
7014 * config/mips/mips.c (mips_option_override): Enable the branch
7015 likely depending on the tune flags and optimization level.
7016 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
7017 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
7018 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
7019 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
7020
7021 2016-10-11 Richard Biener <rguenther@suse.de>
7022
7023 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
7024 (output_function): Properly stream the whole block tree.
7025 * lto-streamer-in.c (input_function): Likewise.
7026
7027 2016-10-11 Marek Polacek <polacek@redhat.com>
7028
7029 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
7030
7031 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
7032
7033 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
7034 (evrp_dom_walker::before_dom_children): Infer and push new value
7035 ranges for x in y < x.
7036
7037 2016-10-10 Joseph Myers <joseph@codesourcery.com>
7038
7039 PR target/77586
7040 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
7041 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7042 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
7043 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
7044 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
7045 (IA64_NO_LIBGCC_TFMODE): Likewise.
7046
7047 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
7048
7049 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
7050 copying.
7051
7052 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
7053
7054 * config.gcc: Add aarch64-*-freebsd* support.
7055 * config.host: Likewise.
7056 * config/aarch64/aarch64-freebsd.h: New file.
7057 * config/aarch64/t-aarch64-freebsd: Ditto.
7058
7059 2016-10-10 Jeff Law <law@redhat.com>
7060
7061 PR tree-optimization/71947
7062 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
7063 B with A within a single statement.
7064
7065 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7066
7067 PR tree-optimization/77824
7068 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
7069 zero cost for copies.
7070 (find_candidates_dom_walker::before_dom_children): Replace
7071 MODIFY_EXPR with SSA_NAME.
7072 (replace_mult_candidate): Likewise.
7073 (replace_profitable_candidates): Likewise.
7074
7075 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7076
7077 * config/s390/s390.h: Wrap more macros args in brackets and fix
7078
7079 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
7080
7081 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
7082
7083 2016-10-10 Andreas Schwab <schwab@suse.de>
7084
7085 PR target/77738
7086 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
7087 pseudo is not DImode.
7088
7089 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
7090
7091 * common/config/arc/arc-common.c (arc_option_optimization_table):
7092 Remove compact casesi option.
7093 * config/arc/arc.c (arc_override_options): Use compact casesi
7094 option only for pre-ARCv2 cores.
7095 * doc/invoke.texi (mcompact-casesi): Update text.
7096
7097 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7098
7099 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
7100 Add macro to say we can efficiently handle overlapping unaligned
7101 loads.
7102 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
7103 poor code for processors older than p8.
7104
7105 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
7106
7107 * gen-pass-instances.awk: Remove GNUism.
7108
7109 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7110
7111 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
7112 NULL of (*ipcp_transformations)][node->uid].
7113
7114 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
7115
7116 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7117 (MALLOC_ABI_ALIGNMENT): Define.
7118
7119 2016-10-09 Jakub Jelinek <jakub@redhat.com>
7120
7121 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
7122 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
7123 VAR_OR_FUNCTION_DECL_P macros.
7124 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
7125 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
7126 chkp_find_bounds_1): Likewise.
7127 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
7128 * hsa-gen.c (get_symbol_for_decl): Likewise.
7129 * cgraphunit.c (check_global_declaration, analyze_functions,
7130 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
7131 Likewise.
7132 * gimple-fold.c (can_refer_decl_in_current_unit_p,
7133 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
7134 Likewise.
7135 * tree.c (set_decl_section_name, copy_node_stat,
7136 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
7137 merge_dllimport_decl_attributes, handle_dll_attribute,
7138 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
7139 verify_type): Likewise.
7140 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
7141 find_explicit_erroneous_behavior): Likewise.
7142 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
7143 * ipa.c (process_references): Likewise.
7144 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
7145 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
7146 notice_global_symbol, assemble_variable, mark_decl_referenced,
7147 build_constant_desc, output_constant_def_contents, do_assemble_alias,
7148 make_decl_one_only, default_section_type_flags,
7149 categorize_decl_for_section, default_encode_section_info): Likewise.
7150 * trans-mem.c (requires_barrier): Likewise.
7151 * gimple-expr.c (mark_addressable): Likewise.
7152 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
7153 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
7154 expand_debug_expr): Likewise.
7155 * tree-dump.c (dequeue_and_dump): Likewise.
7156 * ubsan.c (instrument_bool_enum_load): Likewise.
7157 * tree-pretty-print.c (print_declaration): Likewise.
7158 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7159 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
7160 * asan.c (asan_protect_global, instrument_derefs): Likewise.
7161 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
7162 pass_build_ssa::execute): Likewise.
7163 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
7164 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
7165 Likewise.
7166 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
7167 Likewise.
7168 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
7169 can_be_nonlocal, remap_decls, copy_debug_stmt,
7170 initialize_inlined_parameters, add_local_variables,
7171 reset_debug_binding, replace_locals_op): Likewise.
7172 * dse.c (can_escape): Likewise.
7173 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
7174 Likewise.
7175 * tree-diagnostic.c (default_tree_printer): Likewise.
7176 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
7177 unpack_ts_decl_with_vis_value_fields,
7178 lto_input_ts_decl_common_tree_pointers): Likewise.
7179 * builtins.c (builtin_save_expr, fold_builtin_expect,
7180 readonly_data_expr): Likewise.
7181 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
7182 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
7183 Likewise.
7184 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
7185 * gimplify.c (force_constant_size, gimplify_bind_expr,
7186 gimplify_decl_expr, gimplify_var_or_parm_decl,
7187 gimplify_compound_lval, gimplify_init_constructor,
7188 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
7189 gimplify_type_sizes): Likewise.
7190 * cgraphbuild.c (record_reference, record_type_list, mark_address,
7191 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
7192 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
7193 remove_unused_locals): Likewise.
7194 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
7195 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
7196 * function.c (instantiate_expr, instantiate_decls_1,
7197 setjmp_vars_warning, add_local_decl): Likewise.
7198 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
7199 Likewise.
7200 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
7201 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
7202 optimize_va_list_gpr_fpr_size): Likewise.
7203 * tree-nrv.c (pass_nrv::execute): Likewise.
7204 * tsan.c (instrument_expr): Likewise.
7205 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
7206 * vtable-verify.c (verify_bb_vtables): Likewise.
7207 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
7208 get_ref_base_and_extent): Likewise.
7209 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
7210 Likewise.
7211 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
7212 analyze_all_variable_accesses): Likewise.
7213 * tree-nested.c (get_nonlocal_debug_decl,
7214 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
7215 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
7216 get_local_debug_decl, convert_local_omp_clauses,
7217 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
7218 Likewise.
7219 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
7220 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
7221 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
7222 dbxout_symbol, dbxout_common_check): Likewise.
7223 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
7224 string_constant): Likewise.
7225 * hsa.c (hsa_get_declaration_name): Likewise.
7226 * passes.c (rest_of_decl_compilation): Likewise.
7227 * tree-ssanames.c (make_ssa_name_fn): Likewise.
7228 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
7229 pack_ts_decl_with_vis_value_fields,
7230 write_ts_decl_common_tree_pointers): Likewise.
7231 * stor-layout.c (place_field): Likewise.
7232 * symtab.c (symtab_node::maybe_create_reference,
7233 symtab_node::verify_base, symtab_node::make_decl_local,
7234 symtab_node::copy_visibility_from,
7235 symtab_node::can_increase_alignment_p): Likewise.
7236 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
7237 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
7238 fortran_common, add_location_or_const_value_attribute,
7239 add_scalar_info, add_linkage_name, set_block_abstract_flags,
7240 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
7241 optimize_one_addr_into_implicit_ptr,
7242 optimize_location_into_implicit_ptr): Likewise.
7243 * gimple-low.c (record_vars_into): Likewise.
7244 * ipa-visibility.c (update_vtable_references): Likewise.
7245 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
7246 Likewise.
7247 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
7248 DFS::DFS_write_tree_body, write_symbol): Likewise.
7249 * langhooks.c (lhd_warn_unused_global_decl,
7250 lhd_set_decl_assembler_name): Likewise.
7251 * attribs.c (decl_attributes): Likewise.
7252 * except.c (output_ttype): Likewise.
7253 * varpool.c (varpool_node::get_create, ctor_for_folding,
7254 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
7255 * fold-const.c (fold_unary_loc): Likewise.
7256 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7257 ipa_find_agg_cst_from_init): Likewise.
7258 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
7259 expand_omp_target, lower_omp_regimplify_p,
7260 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
7261 find_link_var_op): Likewise.
7262 * tree-chrec.c (chrec_contains_symbols): Likewise.
7263 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
7264 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
7265 execute_fixup_cfg): Likewise.
7266
7267 PR tree-optimization/77901
7268 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
7269 if ranges[i].exp is SSA_NAME when looking for >= and only when
7270 ranges[i].exp is NULL or SSA_NAME when looking for the other
7271 comparison.
7272
7273 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7274
7275 * ipa-cp.c (ipcp_alignment_lattice): Remove.
7276 (ipcp_param_lattices): Remove field alignment.
7277 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
7278 (set_all_contains_variable): Remove call to
7279 ipcp_alignment_lattice::set_to_bottom.
7280 (initialize_node_lattices): Likewise.
7281 (propagate_alignment_accross_jump_function): Remove.
7282 (propagate_constants_accross_call): Remove call to
7283 propagate_alignment_accross_jump_function.
7284 (ipcp_store_alignment_results): Remove.
7285 (ipcp_driver): Remove call to ipcp_store_alignment_results.
7286 (propagate_bits_accross_jump_function): Handle ancestor jump function.
7287 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
7288 pretty-printing of alignment jump function.
7289 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
7290 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
7291 alignments and remove computing ipa_alignment jump function.
7292 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
7293 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
7294 (ipa_read_jump_function): Remove reading of ipa_alignment.
7295 (write_ipcp_transformation_info): Remove streaming for alignment
7296 propagation summary.
7297 (read_ipcp_transformation_info): Remove reading of alignment
7298 propagation summary.
7299 (ipcp_update_alignments): Remove.
7300 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
7301 type.
7302 (ipcp_transform_function): Remove call to ipcp_update_alignments()
7303 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
7304 * ipa-prop.h (ipa_alignment): Remove.
7305 (ipa_jump_func): Remove field alignment.
7306 (ipcp_transformation_summary): Remove field alignments.
7307 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
7308 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
7309 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
7310
7311 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
7312
7313 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
7314
7315 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
7316 change.
7317 (visium_expand_fp_cstore): Likewise.
7318
7319 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7320
7321 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
7322 * diagnostic.c (warning_at_rich_loc_n): New function.
7323 (diagnostic_n_impl_richloc): Likewise.
7324 (diagnostic_n_impl): Move most of the function to
7325 diagnostic_n_impl_richloc and call it.
7326
7327 2016-10-08 Jakub Jelinek <jakub@redhat.com>
7328
7329 * gen-pass-instances.awk: Rewritten.
7330 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
7331 $(PASSES_EXTRA) after passes.def to the script.
7332 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
7333 * config/i386/i386-passes.def: New file.
7334 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
7335 make_pass_stv): Declare.
7336 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
7337 false.
7338 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
7339 or !TARGET_64BIT.
7340 (pass_stv::clone, pass_stv::set_pass_param): New methods.
7341 (pass_stv::timode_p): New non-static data member.
7342 (ix86_option_override): Don't register passes here.
7343
7344 * doc/invoke.texi: Document accepting Else, fallthrough.
7345
7346 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
7347 style changes.
7348
7349 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
7350 FALLTHRU comment styles.
7351
7352 2016-10-07 Andrew Pinski <apinski@cavium.com>
7353
7354 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
7355 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
7356 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
7357 Likewise.
7358 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
7359 Likewise.
7360 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
7361 Likewise.
7362 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
7363 (AARCH64_ARCH): Likewise.
7364 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
7365 Likewise.
7366 (AARCH64_CORE): Likewise.
7367 (AARCH64_ARCH): Likewise.
7368 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
7369 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7370 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
7371 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7372 (AARCH64_ARCH): Likewise.
7373 (AARCH64_CORE): Likewise.
7374 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
7375 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
7376 (AARCH64_CORE): Likewise.
7377 (AARCH64_ARCH): Likewise.
7378
7379 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7380
7381 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
7382 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
7383 floating point type infrastructre, and -mfloat128 that enables the
7384 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
7385 if -mfloat128-type. Define __ibm128 to be long double by default.
7386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
7387 the IEEE 128-bit floating point type infrastructure should
7388 automatically be enabled.
7389 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
7390 instead of -mfloat128 to enable KFmode.
7391 (rs6000_option_override_internal): Split the option -mfloat128
7392 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
7393 systems, automatically set -mfloat128-type, but don't enable it on
7394 other operating systems. Move setting the long double size and
7395 IEEE quad support before the IEEE 128-bit floating point changes.
7396 (rs6000_init_builtins): Do not create a unique type for __ibm128
7397 if long double is IBM extended double, instead rely on __ibm128
7398 being defined as 'long double'. If -mfloat128-type and not
7399 -mfloat128, create the KFmode type with an undocumented __ieee128
7400 keyword.
7401 (rs6000_init_libfuncs): Use -mfloat128-type instead of
7402 -mfloat128 for tests about the types, but keep tests for
7403 -mfloat128 to enable the keyword support.
7404 (rs6000_complex_function_value): Likewise.
7405 (rs6000_scalar_mode_supported_p): Likewise.
7406 (rs6000_floatn_mode): Likewise.
7407 (rs6000_c_mode_for_suffix): Likewise.
7408 (rs6000_opt_masks): Add -mfloat128-type.
7409 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
7410 -mfloat128-type being split from -mfloat128. Add
7411 -mfloat128-hardware, which was missing.
7412 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
7413 -mfloat128 and -mfloat128-type:
7414 (-mfloat128-type): Likewise.
7415 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
7416 that 64-bit Linux systems with enable -mfloat128-type by default
7417 on VSX systems.
7418 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
7419 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
7420 -mfloat128-type instead of -mfloat128.
7421 (FLOAT128_2REG_P): Likewise.
7422 (MASK_FLOAT128_TYPE): Likewise.
7423 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7424 (RS6000_BTM_FLOAT128): Likewise.
7425 (TARGET_FLOAT128): Poison old identifiers.
7426 (OPTION_MASK_FLOAT128): Likewise.
7427 (MASK_FLOAT128): Likewise.
7428 * config/rs6000/rs6000.md (FP): Likewise.
7429 (FLOAT128): Likewise.
7430 (fix_trunc<mode>di2): Likewise.
7431 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7432 (floatdi<mode>2): Likewise.
7433 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
7434 (neg<mode>2, FLOAT128 iterator): Likewise.
7435 (abs<mode>2, FLOAT128 iterator): Likewise.
7436 (ieee_128bit_negative_zero): Likewise.
7437 (ieee_128bit_vsx_neg<mode>2): Likewise.
7438 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7439 (ieee_128bit_vsx_abs<mode>2): Likewise.
7440 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7441 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7442 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7443 (extendiftf2): Likewise.
7444 (extendifkf2): Likewise.
7445 (extendtfkf2): Likewise.
7446 (trunciftf2): Likewise.
7447 (truncifkf2): Likewise.
7448 (trunckftf2): Likewise.
7449 (trunctfif2): Likewise.
7450 (extendkftf2): Likewise.
7451 (trunctfkf2): Likewise.
7452
7453 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7454
7455 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
7456 before merging in bytes to pass down to real_from_target.
7457
7458 2016-10-07 Richard Biener <rguenther@suse.de>
7459
7460 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
7461 required hack.
7462 (substitute_and_fold_dom_walker::before_dom_children):
7463 Substitute and fold before pass specific folding to avoid
7464 feeding that with SSA names that will be later released.
7465 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
7466 introduced by folding and visited by evaluate_stmt called during
7467 ccp_fold_stmt.
7468 (likely_value): Likewise.
7469 (evaluate_stmt): Likewise.
7470 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
7471 (simplify_div_or_mod_using_ranges): Likewise.
7472 (simplify_min_or_max_using_ranges): Likewise.
7473 (simplify_abs_using_ranges): Likewise.
7474 (simplify_conversion_using_ranges): Likewise.
7475 (simplify_float_conversion_using_ranges): Likewise.
7476 (simplify_stmt_using_ranges): Likewise.
7477
7478 2016-10-07 Marek Polacek <polacek@redhat.com>
7479
7480 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
7481 FALLTHROUGH_LABEL_P here...
7482 (warn_implicit_fallthrough_r): ...not here.
7483
7484 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
7485
7486 PR tree-optimization/77880
7487 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
7488 necessary.
7489
7490 2016-10-07 Marek Polacek <polacek@redhat.com>
7491
7492 PR c++/77803
7493 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
7494
7495 2016-10-07 Richard Biener <rguenther@suse.de>
7496
7497 * bitmap.h: Document constraints on bitmap modification while
7498 iterating over it.
7499
7500 2016-10-07 Richard Biener <rguenther@suse.de>
7501
7502 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
7503 * bitmap.h (bmp_iter_set): When advancing to the next element
7504 check that we didn't remove the current one.
7505 (bmp_iter_and): Likewise.
7506 (bmp_iter_and_compl): Likewise.
7507 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
7508 we currently iterate on but keep a one-level queue.
7509 * sched-deps.c (remove_from_deps): Do not clear current bit
7510 but keep a one-level queue.
7511
7512 2016-10-07 Jakub Jelinek <jakub@redhat.com>
7513
7514 PR tree-optimization/77664
7515 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
7516 for the other ranges.
7517 (optimize_range_tests_diff): Fix up formatting.
7518 (optimize_range_tests_var_bound): New function.
7519 (optimize_range_tests): Use it.
7520
7521 2016-10-07 Martin Liska <mliska@suse.cz>
7522
7523 * coverage.c (build_gcov_exit_decl): Fix priority what
7524 should be really 99.
7525
7526 2016-10-07 Richard Biener <rguenther@suse.de>
7527
7528 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
7529 vars in gimple_bind_vars but not in BLOCK_VARS.
7530
7531 2016-10-07 Richard Biener <rguenther@suse.de>
7532
7533 PR tree-optimization/77879
7534 * tree-ssa-structalias.c (handle_const_call): Properly handle
7535 NRV return slots.
7536 (handle_pure_call): Likewise.
7537
7538 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7539
7540 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
7541 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
7542 possible overflow.
7543
7544 2016-10-06 Andrew Pinski <apinski@cavium.com>
7545
7546 * config/aarch64/aarch64-cores.def: Add a comment before each
7547 set of cores.
7548
7549 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7550
7551 PR tree-optimization/77862
7552 * tree-vrp.c (add_equivalence): Use get_value_range so that
7553 num_vr_values is checked before accessing vr_values.
7554
7555 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7556
7557 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7558 POINTER_TYPE_P.
7559
7560 2016-10-05 Jeff Law <law@redhat.com>
7561
7562 PR tree-optimization/71661
7563 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
7564 removal of a forwarder exposes a new natural loop.
7565
7566 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
7567
7568 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
7569 Introduce ssesuffix variable.
7570 (<mask_codefor><code><mode>3<mask_name>): Ditto.
7571 (*<code><mode>3): Ditto.
7572
7573 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
7574
7575 * postreload.c (reload_cse_simplify): Skip also USE when detecting
7576 noop move.
7577
7578 2016-10-06 Richard Biener <rguenther@suse.de>
7579
7580 PR tree-optimization/77855
7581 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
7582 instead of removing the current item while iterating over the set
7583 which is not safe.
7584
7585 2016-10-06 James Clarke <jrtc27@jrtc27.com>
7586 Eric Botcazou <ebotcazou@adacore.com>
7587
7588 PR target/77759
7589 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
7590 (classify_registers): Don't set it
7591 (function_arg_slotno): Don't initialize and test it. Tidy up.
7592
7593 2016-10-06 Richard Biener <rguenther@suse.de>
7594
7595 PR tree-optimization/77839
7596 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
7597 lattice transition.
7598
7599 2016-10-06 Martin Liska <mliska@suse.cz>
7600
7601 * gcc.c: Set -fprofile-update=atomic when profiling is
7602 enabled and -pthread is set. Warn when one combines
7603 -pthread and -fprofile-update=single for an app using
7604 profiling code.
7605
7606 2016-10-06 Martin Liska <mliska@suse.cz>
7607
7608 PR bootstrap/77788
7609 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
7610 * gimple-ssa-strength-reduction.c (slsr_process_cast):
7611 Initialize a pointer to NULL.
7612 (slsr_process_copy): Likewise.
7613 * input.c (location_get_source_line): Likewise.
7614 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7615
7616 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
7617
7618 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
7619 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
7620 (ix86_handle_option): Deleted handle of OPT_mpcommit.
7621 * config.gcc: Deleted pcommitintrin.h
7622 * config/i386/pcommitintrin.h: Deleted file.
7623 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
7624 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
7625 detection.
7626 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
7627 __PCOMMIT__.
7628 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
7629 (PTA_PCOMMIT): Deleted define.
7630 (ix86_option_override_internal): Deleted handle of option.
7631 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
7632 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
7633 __builtin_ia32_pcommit): Deleted.
7634 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
7635 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
7636 (pcommit): Deleted instruction.
7637 * config/i386/i386.opt: Mention -mpcommit deprecation.
7638 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
7639
7640 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
7641
7642 PR target/77874
7643 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
7644 Remove wrong assert.
7645 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
7646 Use <round_constraint> as operand 1 constraint.
7647
7648 2016-10-05 Jakub Jelinek <jakub@redhat.com>
7649
7650 PR sanitizer/66343
7651 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
7652 (ubsan_instrument_float_cast): And not here.
7653
7654 PR sanitizer/66343
7655 * ubsan.c (ubsan_ids): New GTY(()) array.
7656 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
7657 instead of static local counters.
7658
7659 2016-10-05 Martin Sebor <msebor@redhat.com>
7660
7661 PR bootstrap/77819
7662 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
7663 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
7664 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
7665 (default_printf_pointer_format): Define function.
7666 * targhooks.c (linux_printf_pointer_format): Define new function.
7667 * targhooks.h (linux_printf_pointer_format): Declare.
7668 (gnu_libc_printf_pointer_format): Remove declaration.
7669
7670 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7671
7672 * fold-const.c (native_encode_real): Fix logic for selecting offset
7673 to write to when BYTES_BIG_ENDIAN.
7674
7675 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
7676
7677 * builtins.c (fold_builtin_strchr): Remove function.
7678 (fold_builtin_strrchr): Likewise.
7679 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7680 * gimple-fold.c (target_char_cst_p): New function.
7681 (gimple_fold_builtin_strchr) Add more foldings.
7682 (gimple_fold_builtin): Add index, strrchr, rindex cases.
7683
7684 2016-10-05 Richard Biener <rguenther@suse.de>
7685
7686 PR middle-end/77863
7687 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7688 capture ids in c-exprs.
7689
7690 2016-10-05 Richard Biener <rguenther@suse.de>
7691
7692 PR middle-end/77826
7693 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7694 with types_match for GIMPLE code gen to handle type mismatched
7695 constants properly.
7696 (dt_operand::gen): Adjust.
7697 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7698 and constant A.
7699
7700 2016-10-05 Richard Biener <rguenther@suse.de>
7701
7702 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7703
7704 2016-10-05 Richard Biener <rguenther@suse.de>
7705
7706 PR middle-end/77842
7707 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7708
7709 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
7710
7711 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7712 version check to protect only DW_TAG_imported_module generation.
7713
7714 2016-10-05 Richard Biener <rguenther@suse.de>
7715
7716 PR middle-end/55152
7717 * match.pd (min(a,-a) -> -abs(a)): New pattern.
7718
7719 2016-10-04 Ian Lance Taylor <iant@golang.org>
7720
7721 * explow.c (allocate_dynamic_stack_space): Call
7722 do_pending_stack_adjust before handling flag_split_stack.
7723
7724 2016-10-04 David Malcolm <dmalcolm@redhat.com>
7725
7726 * genattrtab.c (make_internal_attr): Supply dummy column number to
7727 file_location ctor.
7728 (main): Likewise.
7729 * genoutput.c (init_insn_for_nothing): Likewise.
7730 * gensupport.c (add_define_attr): Likewise.
7731 * read-md.c (message_at_1): Print column number.
7732 (fatal_with_file_and_line): Likewise.
7733 (rtx_reader::read_char): Track column numbers.
7734 (rtx_reader::unread_char): Likewise.
7735 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7736 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7737 (rtx_reader::handle_file): Initialize m_read_md_colno.
7738 (rtx_reader::get_current_location): Supply column number to
7739 file_location ctor.
7740 * read-md.h (struct file_location): Add field "colno".
7741 (file_location::file_location): Likewise.
7742 (rtx_reader::get_colno): New accessor.
7743 (rtx_reader::m_read_md_colno): New field.
7744 (rtx_reader::m_last_line_colno): New field.
7745
7746 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7747
7748 * doc/extend.texi (Java Exceptions): Remove.
7749 (java_interface): Remove.
7750
7751 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
7752
7753 PR tree-optimization/77808
7754 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7755 and addr are different before copying points-to information.
7756
7757 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
7758
7759 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7760 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7761 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7762 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7763
7764 2016-10-04 Richard Biener <rguenther@suse.de>
7765
7766 PR tree-optimization/77399
7767 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7768 verify the target can convert.
7769
7770 2016-10-04 Richard Biener <rguenther@suse.de>
7771
7772 PR middle-end/77833
7773 * explow.c (plus_constant): Verify the mode of the constant
7774 pool offset before calling plus_constant.
7775
7776 2016-10-04 Richard Biener <rguenther@suse.de>
7777
7778 PR middle-end/77407
7779 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7780 type support, mark with :C.
7781 (X / -X -> -1): Mark with :C.
7782
7783 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7784
7785 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7786 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7787 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7788 * doc/tm.texi: Regenerated.
7789 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7790 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7791 * config/darwin.h (JCR_SECTION_NAME): Remove.
7792 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7793 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7794 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7795 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7796 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7797 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7798
7799 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7800
7801 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7802 between "because" and "param" in dump message in call to fprintf.
7803
7804 2016-10-03 Jeff Law <law@redhat.com>
7805
7806 PR tree-optimization/71550
7807 PR tree-optimization/71403
7808 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7809 (profitable_jump_thread_path): Also return boolean indicating if
7810 the realized path will create an irreducible loop.
7811 Remove loop depth tests from 71403.
7812 (fsm_find_control_statement_thread_paths): Remove loop depth tests
7813 from 71403. If threading will create an irreducible loop, then
7814 throw away loop iteration and related information.
7815
7816 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
7817
7818 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7819 -Woverloaded-virtual checks for warning options.
7820 * configure: Regenerate.
7821
7822 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7823
7824 PR preprocessor/77699
7825 * input.c (maybe_grow): Don't allocate one byte extra headroom.
7826 (get_next_line): Return false on error.
7827 (read_next_line): Removed, use get_next_line instead.
7828 (read_line_num): Don't copy the line.
7829 (location_get_source_line): Don't use static data.
7830 (selftest::test_reading_source_line): Add more test cases.
7831
7832 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7833
7834 Revert
7835 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7836
7837 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7838 (noce_process_if_block): Use it.
7839
7840 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7841
7842 * doc/invoke.texi: Update -Wint-in-bool-context.
7843
7844 2016-10-02 Jakub Jelinek <jakub@redhat.com>
7845
7846 * dwarf2out.c (output_fde, output_call_frame_info,
7847 dwarf2out_do_cfi_startproc, set_indirect_string,
7848 gen_internal_sym, output_die, output_line_info): Use
7849 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7850 ASM_GENERATE_INTERNAL_LABEL output.
7851
7852 2016-10-01 Richard Biener <rguenther@suse.de>
7853
7854 PR middle-end/77798
7855 * genmatch.c (get_operand_type): Add operand position arg
7856 and handle COND_EXPR comparison operand with fixed boolean_type_node.
7857 (expr::gen_transform): Adjust.
7858 (dt_simplify::gen_1): Likewise.
7859
7860 2016-10-01 Jakub Jelinek <jakub@redhat.com>
7861
7862 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7863 comments. Simplify asserts, remove unnecessary conditions.
7864 Formatting fixes.
7865 (*<code><mode>3): Likewise.
7866
7867 2016-09-30 Jakub Jelinek <jakub@redhat.com>
7868
7869 * doc/invoke.texi (-Wregister): Document.
7870
7871 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7872
7873 * configure.ac: Split CHECKING_P into CHECKING_P and
7874 ENABLE_EXTRA_CHECKING.
7875 * configure: Regenerated.
7876 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7877 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7878
7879 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
7880
7881 PR other/31566
7882 * gcc.c (process_command): For @filename handling, output
7883 the correct name if the file does not exist.
7884
7885 2016-09-30 Marek Polacek <polacek@redhat.com>
7886
7887 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7888 * config/alpha/predicates.md: Likewise.
7889
7890 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7891
7892 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7893 (noce_process_if_block): Use it.
7894
7895 2016-09-30 Martin Liska <mliska@suse.cz>
7896
7897 * doc/invoke.texi: Document asan-use-after-return that
7898 it's disabled by default in runtime.
7899
7900 2016-09-30 Richard Biener <rguenther@suse.de>
7901
7902 * tree-vrp.c (intersect_ranges): If we failed to handle
7903 the intersection choose a constant singleton range if available.
7904
7905 2016-09-30 Richard Biener <rguenther@suse.de>
7906
7907 PR tree-optimization/77399
7908 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7909 float <-> int conversions.
7910
7911 2016-09-30 Alan Modra <amodra@gmail.com>
7912
7913 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7914
7915 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7916
7917 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7918 ext_level before calling CPUID with 0x80000008.
7919 Simplify xgetbv checks.
7920
7921 2016-09-29 David Malcolm <dmalcolm@redhat.com>
7922
7923 * Makefile.in (OBJS): Add print-rtl-function.o.
7924 * print-rtl-function.c: New file.
7925 * print-rtl.h (print_rtx_function): New decl.
7926
7927 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7928
7929 PR target/77756
7930 * config/i386/cpuid.h (__get_cpuid_count): New.
7931 (__get_cpuid): Rename __level to __leaf.
7932
7933 2016-09-29 Marek Polacek <polacek@redhat.com>
7934
7935 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7936
7937 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
7938
7939 PR target/77718
7940 * builtins.c (expand_builtin_memcmp): Don't swap args unless
7941 result is only being compared with zero.
7942
7943 2016-09-29 Marek Polacek <polacek@redhat.com>
7944
7945 * dwarf2out.c (loc_descriptor): Add fall through comment.
7946 (add_const_value_attribute): Likewise.
7947
7948 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
7949
7950 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7951 with "v6t2". Move "arch" attribute above "pool_range".
7952 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7953 with "v6t2".
7954 (*thumb2_movhi_vfp): Likewise.
7955 (*arm_movhi_fp16): Likewise.
7956 (*thumb2_movhi_fp16): Likewise.
7957 (*arm_movsi_vfp): Remove "arch" attribute.
7958 (*thumb2_movsi_vfp): Likewise.
7959
7960 2016-09-29 Martin Liska <mliska@suse.cz>
7961
7962 * doc/extend.texi: Remove limitation of Objective C for
7963 __attribute__((constructor)) and __attribute__((destructor)).
7964
7965 2016-09-29 Richard Biener <rguenther@suse.de>
7966
7967 PR tree-optimization/77768
7968 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7969 Handle stores to readonly memory when removing redundant stores.
7970
7971 2016-09-29 Richard Biener <rguenther@suse.de>
7972
7973 PR middle-end/77407
7974 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
7975 X / -X -> -1 simplifications.
7976
7977 2016-09-29 Richard Biener <rguenther@suse.de>
7978
7979 PR middle-end/55152
7980 * match.pd: Add max(a,-a) -> abs(a) pattern.
7981 * tree-ssa-phiopt.c (minmax_replacement): Disable for
7982 HONOR_SIGNED_ZEROS types.
7983
7984 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
7985
7986 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
7987 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
7988
7989 2016-09-29 Richard Biener <rguenther@suse.de>
7990
7991 * tree-vrp.c (set_defs_to_varying): New helper avoiding
7992 writing to vr_const_varying.
7993 (vrp_initialize): Call it.
7994 (vrp_visit_stmt): Likewise.
7995 (evrp_dom_walker::before_dom_children): Likewise.
7996
7997 2016-09-29 Richard Biener <rguenther@suse.de>
7998
7999 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
8000 constructors with vector elements.
8001
8002 2016-09-29 Richard Biener <rguenther@suse.de>
8003
8004 PR tree-optimization/77768
8005 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
8006 with stores to a place we know has a constant value.
8007
8008 2016-09-29 Alan Modra <amodra@gmail.com>
8009
8010 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
8011 * doc/invoke.texi: Document it.
8012 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
8013 (rs6000_passes_float): Comment.
8014 (rs6000_passes_long_double): New static var.
8015 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
8016 (init_cumulative_args): Set up to emit fp .gnu_attribute for
8017 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
8018 to include fp values returned in vectors.
8019 Set rs6000_passes_long_double.
8020 (rs6000_function_arg_advance_1): Likewise for function args.
8021 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
8022 and SPE. Emit long double tag value too.
8023 (rs6000_opt_vars): Add gnu-attr.
8024 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
8025 * configure: Regenerate.
8026 * config.in: Regenerate.
8027
8028 2016-09-28 Jakub Jelinek <jakub@redhat.com>
8029
8030 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
8031 of 0 < x.
8032 (format_floating, format_string, format_directive,
8033 get_destination_size, pass_sprintf_length::handle_gimple_call):
8034 Likewise.
8035
8036 2016-09-28 Jakub Jelinek <jakub@redhat.com>
8037
8038 * gimple-ssa-sprintf.c: Fix comment formatting.
8039 (format_integer): Use is_gimple_assign.
8040 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
8041 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
8042 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
8043 (pass_sprintf_length::execute): Use is_gimple_call.
8044
8045 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
8046
8047 * gimple-fold.c (gimple_fold_builtin): After failing to fold
8048 strchr, also try the generic folding.
8049
8050 2016-09-28 Martin Sebor <msebor@redhat.com>
8051
8052 PR c/77762
8053 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
8054 Fix typos.
8055
8056 2016-09-28 Martin Sebor <msebor@redhat.com>
8057
8058 PR middle-end/77683
8059 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
8060 length modifier is not expected.
8061 (format_floating): Ignore l length modifier and fail gracefuly
8062 when it isn't one of the other expected ones.
8063
8064 2016-09-28 Martin Sebor <msebor@redhat.com>
8065
8066 PR bootstrap/77753
8067 * varasm.c (assemble_addr_to_section): Increase local buffer size.
8068
8069 2016-09-27 Richard Biener <rguenther@suse.de>
8070
8071 * dwarf2out.c (cu_die_list): New global.
8072 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
8073 main_comp_unit_die to cu_die_list if we created it.
8074 Move break_out_includes ...
8075 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
8076 the cu_die_list.
8077
8078 2016-09-28 Richard Biener <rguenther@suse.de>
8079
8080 * dwarf2out.c (struct die_struct): Add removed flag.
8081 (lookup_type_die): If the DIE is marked as removed, clear
8082 TYPE_SYMTAB_DIE and return NULL.
8083 (lookup_decl_die): If the DIE is marked as removed, remove it
8084 from the hash and return NULL.
8085 (mark_removed): New helper.
8086 (prune_unused_types_prune): Call it for removed DIEs.
8087 (gen_subprogram_die): Move the premark_used_types call to after
8088 DIEs for the functions scopes are generated.
8089 (process_scope_var): Do not re-create pruned types or type decls.
8090 Make sure to also re-parent type decls.
8091 (dwarf2out_finish): Move unused type pruning and debug_types
8092 handling ...
8093 (dwarf2out_early_finish): ... here.
8094
8095 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
8096
8097 * config/arc/arc-c.c: New file.
8098 * config/arc/arc-c.def: Likewise.
8099 * config/arc/t-arc: Likewise.
8100 * config.gcc: Include arc-c.o as c and cpp object.
8101 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
8102 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
8103 arc_cpu_cpp_builtins.
8104
8105 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
8106
8107 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
8108 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
8109
8110 2016-09-28 Nathan Sidwell <nathan@acm.org>
8111
8112 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
8113 printing.
8114
8115 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
8116
8117 PR tree-optimization/61056
8118 * gimple-fold.c (gimple_fold_builtin_strchr):
8119 New function to optimize strchr (s, 0) to strlen.
8120 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
8121
8122 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
8123
8124 PR tree-optimization/77724
8125 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
8126 Add tree_fits_shwi_p check.
8127
8128 2016-09-27 Jakub Jelinek <jakub@redhat.com>
8129
8130 * auto-inc-dec.c (try_merge): Remove break after return.
8131 * cselib.c (autoinc_split): Likewise.
8132 * explow.c (promote_mode): Likewise.
8133 * fixed-value.c (fixed_arithmetic): Likewise.
8134 * hsa.c (hsa_internal_fn::get_arity): Likewise.
8135 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
8136 * trans-mem.c (get_attrs_for): Likewise.
8137 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
8138 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
8139 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
8140 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
8141 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
8142 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
8143 * config/cris/cris.c (cris_op_str): Likewise.
8144 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
8145 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
8146
8147 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
8148
8149 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
8150 IFN_GOACC_REDUCTION_CODES): New.
8151 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
8152 ifn_goacc_reduction_kind): Use them.
8153 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
8154 of internal functions, when applicable.
8155
8156 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
8157
8158 * config/mips/constraints.md (d): Fix documentation.
8159 * doc/md.texi (Machine Constraints): Update accordingly.
8160
8161 2016-09-27 Richard Biener <rguenther@suse.de>
8162
8163 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
8164 cur_line_info_table initialization ...
8165 (dwarf2out_assembly_start): ... here.
8166
8167 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
8168
8169 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
8170 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
8171 (*thumb2_movhi_vfp): Likewise.
8172 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
8173 template. Expand predicable attribute to mark VMOV.F16 as not
8174 predicable. Add "arch" attribute.
8175 (*thumb2_movhi_fp16): Likewise.
8176 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
8177 (*thumb2_movsi_vfp): Add "arch" attribute.
8178
8179 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
8180
8181 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
8182 VAR_DECL string.
8183
8184 2016-09-27 Marek Polacek <polacek@redhat.com>
8185
8186 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
8187 comment.
8188
8189 * config/c6x/c6x.h: Adjust fall through comment.
8190 * config/sh/sh.c (final_prescan_insn): Likewise.
8191 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
8192 (visium_expand_fp_cstore): Likewise.
8193
8194 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8195
8196 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
8197 expected by -Wimplicit-fallthrough.
8198 (thumb1_size_rtx_costs): Likewise.
8199 (thumb2_reorg): Likewise.
8200 (tls_mentioned_p): Add "Fall through" comment.
8201 (thumb2_reorg): Likewise.
8202 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
8203 comment form expected by -Wimplicit-fallthrough.
8204
8205 2016-09-27 Martin Liska <mliska@suse.cz>
8206
8207 PR gcov-profile/46266
8208 * input.h (RESERVED_LOCATION_P): New macro.
8209 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
8210 instread of comparison with UNKNOWN_LOCATION.
8211
8212 2016-09-27 Richard Biener <rguenther@suse.de>
8213
8214 PR tree-optimization/77745
8215 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8216 When removing redundant stores make sure to check compatibility
8217 of the TBAA state for downstream accesses.
8218 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
8219 value-numbering virtual operands for store matches.
8220
8221 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8222
8223 PR target/51244
8224 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
8225 movrt patterns. Match them before anything else in the SET case.
8226
8227 2016-09-27 Martin Liska <mliska@suse.cz>
8228
8229 PR gcov-profile/7970
8230 PR gcov-profile/16855
8231 PR gcov-profile/44779
8232 * coverage.c (build_gcov_exit_decl): New function.
8233 (coverage_obj_init): Call the function and generate __gcov_exit
8234 destructor.
8235 * doc/gcov.texi: Document when __gcov_exit function is called.
8236
8237 2016-09-27 Marek Polacek <polacek@redhat.com>
8238
8239 PR bootstrap/77751
8240 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8241 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
8242 -Wno-error instead of -Wno-implicit-fallthrough.
8243
8244 2016-09-27 Martin Liska <mliska@suse.cz>
8245
8246 PR bootstrap/77749
8247 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
8248
8249 2016-09-27 Jakub Jelinek <jakub@redhat.com>
8250
8251 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
8252 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
8253 comments. Remove break after return.
8254 (ix86_fp_compare_code_to_integer, has_dispatch,
8255 ix86_simd_clone_usable): Remove break after return.
8256
8257 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8258
8259 PR rlt-optimization/77714
8260 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
8261 REG_EQUAL note.
8262
8263 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
8264
8265 PR ipa/77677
8266 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
8267 extract_range_from_unary_expr to convert value_range.
8268 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
8269 (extract_range_from_unary_expr): This.
8270 * tree-vrp.h (extract_range_from_unary_expr): Declare.
8271
8272 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
8273
8274 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
8275
8276 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8277
8278 * config/i386/i386.c (ix86_print_operand)
8279 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
8280 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
8281 (epilogue_renumber): Likewise.
8282
8283 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
8284
8285 PR middle-end/77719
8286 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
8287 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
8288
8289 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
8290
8291 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
8292 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
8293 is_mm_seq_cst, is_mm_sync): Move to ...
8294 * memmodel.h: This. New file.
8295 * builtins.c: Include memmodel.h.
8296 * optabs.c: Likewise.
8297 * tsan.c: Likewise.
8298 * config/aarch64/aarch64.c: Likewise.
8299 * config/alpha/alpha.c: Likewise.
8300 * config/arm/arm.c: Likewise.
8301 * config/i386/i386.c: Likewise.
8302 * config/ia64/ia64.c: Likewise.
8303 * config/mips/mips.c: Likewise.
8304 * config/rs6000/rs6000.c: Likewise.
8305 * config/sparc/sparc.c: Likewise.
8306 * genconditions.c: Include memmodel.h in generated file.
8307 * genemit.c: Likewise.
8308 * genoutput.c: Likewise.
8309 * genpeep.c: Likewise.
8310 * genpreds.c: Likewise.
8311 * genrecog.c: Likewise.
8312
8313 2016-09-26 David Malcolm <dmalcolm@redhat.com>
8314
8315 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
8316 "c" instead when parsing characters. Move operand parsing into...
8317 (read_rtx_operand): ...this new function, renaming "i" to "idx",
8318 and tightening the scope of various locals.
8319
8320 2016-09-26 Liu Hao <lh_mouse@126.com>
8321
8322 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
8323
8324 2016-09-26 Marek Polacek <polacek@redhat.com>
8325
8326 * system.h: Use __has_attribute to check whether the fallthrough
8327 attribute is supported.
8328
8329 2016-09-26 Marek Polacek <polacek@redhat.com>
8330
8331 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
8332 gimple_call_internal_p.
8333 * ipa-split.c (find_return_bb): Likewise.
8334 (execute_split_functions): Likewise.
8335 * omp-low.c (dump_oacc_loop_part): Likewise.
8336 (oacc_loop_xform_head_tail): Likewise.
8337 * predict.c (predict_loops): Likewise.
8338 * sanopt.c (pass_sanopt::execute): Likewise.
8339 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
8340 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
8341 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
8342 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
8343 (expand_ifn_va_arg): Likewise.
8344 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8345 (optimize_mask_stores): Likewise.
8346 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
8347 (vect_transform_stmt): Likewise.
8348 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
8349 * tsan.c (instrument_memory_accesses): Likewise.
8350
8351 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8352 Alexander Monakov <amonakov@ispras.ru>
8353
8354 * regrename.c (rename_chains): Check
8355 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
8356 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
8357 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8358
8359 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8360
8361 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
8362 (s390_sched_score): Likewise.
8363
8364 2016-09-26 Martin Liska <mliska@suse.cz>
8365
8366 * doc/gcov.texi: Update program output of gcov tool.
8367
8368 2016-09-26 Martin Liska <mliska@suse.cz>
8369
8370 PR gcov-profile/23332
8371 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
8372 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
8373 * value-prof.c (dump_histogram_value): Do not handle
8374 HIST_TYPE_CONST_DELTA.
8375 (stream_in_histogram_value): Likewise.
8376 (gimple_find_values_to_profile): Likewise.
8377 * value-prof.h (enum hist_type): Likewise.
8378
8379 2016-09-26 Martin Liska <mliska@suse.cz>
8380
8381 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
8382 from default sanitize recover values.
8383 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
8384 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
8385 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
8386 consistent.
8387 * opts.c (finish_options): Do a generic loop over options
8388 that can be recovered.
8389 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
8390 SANITIZE_RETURN.
8391 (common_handle_option): Likewise.
8392 * opts.h: Declare can_recover to sanitizer_opts_s.
8393
8394 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
8395
8396 * target.def(elf_flags_numeric): Change documentation to present tense.
8397 * doc/tm.texi: Regenerate.
8398
8399 2016-09-26 Marek Polacek <polacek@redhat.com>
8400
8401 PR c/7652
8402 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8403 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
8404 -Wno-switch-fallthrough.
8405 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
8406 (expand_builtin): Likewise.
8407 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
8408 * convert.c (convert_to_real_1): Likewise.
8409 (convert_to_integer_1): Likewise.
8410 * final.c (output_alternate_entry_point): Likewise.
8411 * genattrtab.c (make_canonical): Likewise.
8412 (write_test_expr): Likewise.
8413 * genpreds.c (validate_exp): Likewise.
8414 * gimple-ssa-strength-reduction.c
8415 (find_candidates_dom_walker::before_dom_children): Likewise.
8416 * godump.c (go_format_type): Likewise.
8417 * reload1.c (elimination_effects): Likewise.
8418 * resource.c (mark_referenced_resources): Likewise.
8419 (mark_set_resources): Likewise.
8420 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
8421 * varasm.c (output_addressed_constants): Likewise.
8422
8423 2016-09-26 Marek Polacek <polacek@redhat.com>
8424
8425 PR c/7652
8426 * common.opt (Wimplicit-fallthrough): New option.
8427 * doc/extend.texi: Document statement attributes and the fallthrough
8428 attribute.
8429 * doc/invoke.texi: Document -Wimplicit-fallthrough.
8430 * gimple.h (gimple_call_internal_p): New function.
8431 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
8432 (struct label_entry): New struct.
8433 (find_label_entry): New function.
8434 (case_label_p): New function.
8435 (collect_fallthrough_labels): New function.
8436 (last_stmt_in_scope): New function.
8437 (should_warn_for_implicit_fallthrough): New function.
8438 (warn_implicit_fallthrough_r): New function.
8439 (maybe_warn_implicit_fallthrough): New function.
8440 (expand_FALLTHROUGH_r): New function.
8441 (expand_FALLTHROUGH): New function.
8442 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
8443 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
8444 (gimplify_label_expr): New function.
8445 (gimplify_case_label_expr): Set location.
8446 (gimplify_expr): Call gimplify_label_expr.
8447 * internal-fn.c (expand_FALLTHROUGH): New function.
8448 * internal-fn.def (FALLTHROUGH): New internal function.
8449 * langhooks.c (lang_GNU_OBJC): New function.
8450 * langhooks.h (lang_GNU_OBJC): Declare.
8451 * system.h (gcc_fallthrough): Define.
8452 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
8453 * tree.h (FALLTHROUGH_LABEL_P): Define.
8454
8455 2016-09-26 Richard Biener <rguenther@suse.de>
8456
8457 * dwarf2out.c (stripattributes): Remove unused function.
8458 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
8459 Push dwarf_split_debug_info handling into init_sections_and_labels.
8460 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
8461 (DEBUG_MACRO_SECTION_FLAGS): Remove.
8462 (debug_macinfo_section_name): New global.
8463 (output_macinfo): Use debug_macinfo_section_name.
8464 (init_sections_and_labels): Split out section and label generation
8465 from dwarf2out_init. Set debug_macinfo_section_name.
8466 (dwarf2out_init): Move text section label generation and emission
8467 to ...
8468 (dwarf2out_assembly_start): ... here.
8469 (dwarf2out_finish): Call init_sections_and_labels before DWARF
8470 output starts.
8471
8472 2016-09-26 Richard Biener <rguenther@suse.de>
8473
8474 PR debug/77692
8475 * cgraphunit.c (analyze_functions): Before early removing
8476 global vars calls the late_global_decl debug handler mark
8477 the variable as readonly.
8478
8479 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8480
8481 PR target/51244
8482 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
8483 (sh_rtx_costs): Handle SET of movt and movrt patterns.
8484 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
8485 declare new overloads.
8486 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
8487 operand.
8488
8489 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8490
8491 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
8492 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
8493
8494 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
8495
8496 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
8497 * configure: Regenerate.
8498
8499 2016-09-24 Marek Polacek <polacek@redhat.com>
8500
8501 PR c/77490
8502 * doc/invoke.texi: Document -Wbool-operation.
8503
8504 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8505
8506 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
8507 * config/rs6000/rs6000.c (expand_block_compare): New function used by
8508 cmpmemsi pattern to do builtin expansion of memcmp ().
8509 (compute_current_alignment): Add helper function for
8510 expand_block_compare used to compute alignment as the compare proceeds.
8511 (select_block_compare_mode): Used by expand_block_compare to select
8512 the mode used for reading the next chunk of bytes in the compare.
8513 (do_load_for_compare): Used by expand_block_compare to emit the load
8514 insns for the compare.
8515 (rs6000_emit_dot_insn): Moved this function to avoid a forward
8516 reference from expand_block_compare ().
8517 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
8518 prototype for this function.
8519 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
8520 target option for controlling how much code inline expansion of
8521 memcmp() will be allowed to generate.
8522
8523 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8524
8525 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
8526 hook_bool_mode_false, hook_bool_mode_true,
8527 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8528 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8529 hook_bool_const_rtx_insn_const_rtx_insn_true,
8530 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
8531 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
8532 hook_bool_const_tree_hwi_hwi_const_tree_false,
8533 hook_bool_const_tree_hwi_hwi_const_tree_true,
8534 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
8535 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8536 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
8537 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
8538 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
8539 hook_bool_const_tree_true, hook_bool_tree_tree_false,
8540 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
8541 hook_bool_rtx_insn_true, hook_bool_rtx_false,
8542 hook_bool_uintp_uintp_false,
8543 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
8544 hook_rtx_tree_int_null, hook_uint_mode_0,
8545 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
8546 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
8547 hook_constcharptr_const_rtx_insn_null,
8548 hook_constcharptr_const_tree_const_tree_null,
8549 hook_constcharptr_int_const_tree_null,
8550 hook_constcharptr_int_const_tree_const_tree_null,
8551 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
8552 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
8553 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
8554
8555 * vec.h (vNULL): Extend comment to say = vNULL initialization
8556 isn't needed for static vars.
8557
8558 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
8559 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
8560 = vNULL initialization of file scope vec.
8561 * passes.c (pass_tab, enabled_pass_uid_range_tab,
8562 disabled_pass_uid_range_tab): Likewise.
8563 * haifa-sched.c (sched_luids, h_i_d): Likewise.
8564 * tree-chkp-opt.c (check_infos): Likewise.
8565 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
8566
8567 * vec.h (vnull::operator vec): Add constexpr keyword for
8568 C++11 and later.
8569
8570 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
8571
8572 PR tree-optimization/77654
8573 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
8574 to duplicate_ssa_name_ptr_info.
8575
8576 2016-09-23 David Malcolm <dmalcolm@redhat.com>
8577
8578 PR preprocessor/77672
8579 * input.c (selftest::test_lexer_string_locations_simple): Update
8580 test to expect location information of the terminator character
8581 at the location of the final closing quote.
8582 (selftest::test_lexer_string_locations_hex): Likewise.
8583 (selftest::test_lexer_string_locations_oct): Likewise.
8584 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
8585 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
8586 (selftest::test_lexer_string_locations_ucn4): Likewise.
8587 (selftest::test_lexer_string_locations_ucn8): Likewise.
8588 (selftest::test_lexer_string_locations_u8): Likewise.
8589 (selftest::test_lexer_string_locations_utf8_source): Likewise.
8590 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
8591 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
8592 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
8593 (selftest::test_lexer_string_locations_macro): Likewise.
8594 (selftest::test_lexer_string_locations_long_line): Likewise.
8595
8596 2016-09-23 Richard Biener <rguenther@suse.de>
8597
8598 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
8599 virtual definition to virtual use if the call devirtualizes
8600 to a const or pure function.
8601 (visit_use): Also visit calls we can devirtualize to a
8602 const or pure function.
8603
8604 2016-09-23 Richard Biener <rguenther@suse.de>
8605
8606 PR tree-optimization/77697
8607 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
8608 signal error if we have sth ternary or unhandled.
8609
8610 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8611
8612 * config/arm/arm_neon.h (vabd_f16): New.
8613 (vabdq_f16): New.
8614 (vabs_f16): New.
8615 (vabsq_f16): New.
8616 (vadd_f16): New.
8617 (vaddq_f16): New.
8618 (vcage_f16): New.
8619 (vcageq_f16): New.
8620 (vcagt_f16): New.
8621 (vcagtq_f16): New.
8622 (vcale_f16): New.
8623 (vcaleq_f16): New.
8624 (vcalt_f16): New.
8625 (vcaltq_f16): New.
8626 (vceq_f16): New.
8627 (vceqq_f16): New.
8628 (vceqz_f16): New.
8629 (vceqzq_f16): New.
8630 (vcge_f16): New.
8631 (vcgeq_f16): New.
8632 (vcgez_f16): New.
8633 (vcgezq_f16): New.
8634 (vcgt_f16): New.
8635 (vcgtq_f16): New.
8636 (vcgtz_f16): New.
8637 (vcgtzq_f16): New.
8638 (vcle_f16): New.
8639 (vcleq_f16): New.
8640 (vclez_f16): New.
8641 (vclezq_f16): New.
8642 (vclt_f16): New.
8643 (vcltq_f16): New.
8644 (vcltz_f16): New.
8645 (vcltzq_f16): New.
8646 (vcvt_f16_s16): New.
8647 (vcvt_f16_u16): New.
8648 (vcvt_s16_f16): New.
8649 (vcvt_u16_f16): New.
8650 (vcvtq_f16_s16): New.
8651 (vcvtq_f16_u16): New.
8652 (vcvtq_s16_f16): New.
8653 (vcvtq_u16_f16): New.
8654 (vcvta_s16_f16): New.
8655 (vcvta_u16_f16): New.
8656 (vcvtaq_s16_f16): New.
8657 (vcvtaq_u16_f16): New.
8658 (vcvtm_s16_f16): New.
8659 (vcvtm_u16_f16): New.
8660 (vcvtmq_s16_f16): New.
8661 (vcvtmq_u16_f16): New.
8662 (vcvtn_s16_f16): New.
8663 (vcvtn_u16_f16): New.
8664 (vcvtnq_s16_f16): New.
8665 (vcvtnq_u16_f16): New.
8666 (vcvtp_s16_f16): New.
8667 (vcvtp_u16_f16): New.
8668 (vcvtpq_s16_f16): New.
8669 (vcvtpq_u16_f16): New.
8670 (vcvt_n_f16_s16): New.
8671 (vcvt_n_f16_u16): New.
8672 (vcvtq_n_f16_s16): New.
8673 (vcvtq_n_f16_u16): New.
8674 (vcvt_n_s16_f16): New.
8675 (vcvt_n_u16_f16): New.
8676 (vcvtq_n_s16_f16): New.
8677 (vcvtq_n_u16_f16): New.
8678 (vfma_f16): New.
8679 (vfmaq_f16): New.
8680 (vfms_f16): New.
8681 (vfmsq_f16): New.
8682 (vmax_f16): New.
8683 (vmaxq_f16): New.
8684 (vmaxnm_f16): New.
8685 (vmaxnmq_f16): New.
8686 (vmin_f16): New.
8687 (vminq_f16): New.
8688 (vminnm_f16): New.
8689 (vminnmq_f16): New.
8690 (vmul_f16): New.
8691 (vmul_lane_f16): New.
8692 (vmul_n_f16): New.
8693 (vmulq_f16): New.
8694 (vmulq_lane_f16): New.
8695 (vmulq_n_f16): New.
8696 (vneg_f16): New.
8697 (vnegq_f16): New.
8698 (vpadd_f16): New.
8699 (vpmax_f16): New.
8700 (vpmin_f16): New.
8701 (vrecpe_f16): New.
8702 (vrecpeq_f16): New.
8703 (vrnd_f16): New.
8704 (vrndq_f16): New.
8705 (vrnda_f16): New.
8706 (vrndaq_f16): New.
8707 (vrndm_f16): New.
8708 (vrndmq_f16): New.
8709 (vrndn_f16): New.
8710 (vrndnq_f16): New.
8711 (vrndp_f16): New.
8712 (vrndpq_f16): New.
8713 (vrndx_f16): New.
8714 (vrndxq_f16): New.
8715 (vrsqrte_f16): New.
8716 (vrsqrteq_f16): New.
8717 (vrecps_f16): New.
8718 (vrecpsq_f16): New.
8719 (vrsqrts_f16): New.
8720 (vrsqrtsq_f16): New.
8721 (vsub_f16): New.
8722 (vsubq_f16): New.
8723
8724 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8725
8726 * config.gcc (extra_headers): Add arm_fp16.h
8727 * config/arm/arm_fp16.h: New.
8728 * config/arm/arm_neon.h: Include "arm_fp16.h".
8729
8730 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8731
8732 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8733 variants).
8734 (vmulf): New (v8hf, v4hf variants).
8735 (vfma): New (v8hf, v4hf variants).
8736 (vfms): New (v8hf, v4hf variants).
8737 (vsub): New (v8hf, v4hf variants).
8738 (vcage): New (v8hf, v4hf variants).
8739 (vcagt): New (v8hf, v4hf variants).
8740 (vcale): New (v8hf, v4hf variants).
8741 (vcalt): New (v8hf, v4hf variants).
8742 (vceq): New (v8hf, v4hf variants).
8743 (vcgt): New (v8hf, v4hf variants).
8744 (vcge): New (v8hf, v4hf variants).
8745 (vcle): New (v8hf, v4hf variants).
8746 (vclt): New (v8hf, v4hf variants).
8747 (vceqz): New (v8hf, v4hf variants).
8748 (vcgez): New (v8hf, v4hf variants).
8749 (vcgtz): New (v8hf, v4hf variants).
8750 (vcltz): New (v8hf, v4hf variants).
8751 (vclez): New (v8hf, v4hf variants).
8752 (vabd): New (v8hf, v4hf variants).
8753 (vmaxf): New (v8hf, v4hf variants).
8754 (vmaxnm): New (v8hf, v4hf variants).
8755 (vminf): New (v8hf, v4hf variants).
8756 (vminnm): New (v8hf, v4hf variants).
8757 (vpmaxf): New (v4hf variant).
8758 (vpminf): New (v4hf variant).
8759 (vpadd): New (v4hf variant).
8760 (vrecps): New (v8hf, v4hf variants).
8761 (vrsqrts): New (v8hf, v4hf variants).
8762 (vabs): New (v8hf, v4hf variants).
8763 (vneg): New (v8hf, v4hf variants).
8764 (vrecpe): New (v8hf, v4hf variants).
8765 (vrnd): New (v8hf, v4hf variants).
8766 (vrnda): New (v8hf, v4hf variants).
8767 (vrndm): New (v8hf, v4hf variants).
8768 (vrndn): New (v8hf, v4hf variants).
8769 (vrndp): New (v8hf, v4hf variants).
8770 (vrndx): New (v8hf, v4hf variants).
8771 (vrsqrte): New (v8hf, v4hf variants).
8772 (vmul_lane): Add v4hf and v8hf variants.
8773 (vmul_n): Add v4hf and v8hf variants.
8774 (vext): New (v8hf, v4hf variants).
8775 (vcvts): New (v8hi, v4hi variants).
8776 (vcvts): New (v8hf, v4hf variants).
8777 (vcvtu): New (v8hi, v4hi variants).
8778 (vcvtu): New (v8hf, v4hf variants).
8779 (vcvts_n): New (v8hf, v4hf variants).
8780 (vcvtu_n): New (v8hi, v4hi variants).
8781 (vcvts_n): New (v8hi, v4hi variants).
8782 (vcvtu_n): New (v8hf, v4hf variants).
8783 (vbsl): New (v8hf, v4hf variants).
8784 (vcvtas): New (v8hf, v4hf variants).
8785 (vcvtau): New (v8hf, v4hf variants).
8786 (vcvtms): New (v8hf, v4hf variants).
8787 (vcvtmu): New (v8hf, v4hf variants).
8788 (vcvtns): New (v8hf, v4hf variants).
8789 (vcvtnu): New (v8hf, v4hf variants).
8790 (vcvtps): New (v8hf, v4hf variants).
8791 (vcvtpu): New (v8hf, v4hf variants).
8792
8793 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8794
8795 * config/arm/arm-builtins.c (hf_UP): New.
8796 (si_UP): New.
8797 (vfp_builtin_data): New. Update comment.
8798 (enum arm_builtins): Include "arm_vfp_builtins.def".
8799 (ARM_BUILTIN_VFP_PATTERN_START): New.
8800 (arm_init_vfp_builtins): New.
8801 (arm_init_builtins): Add arm_init_vfp_builtins.
8802 (arm_expand_vfp_builtin): New.
8803 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
8804 long line.
8805 * config/arm/arm_vfp_builtins.def: New file.
8806 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8807 (arm-builtins.o): Likewise.
8808
8809 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8810
8811 PR ipa/77677
8812 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8813 from constant while creating value range.
8814
8815 2016-09-23 Renlin Li <renlin.li@arm.com>
8816
8817 * ira.c (ira): Move ira_use_lra_p initialization code to ...
8818 (ira_init_once): Here.
8819
8820 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
8821 Jakub Jelinek <jakub@redhat.com>
8822
8823 * hooks.h (hook_uint_uintp_false): Rename to...
8824 (hook_bool_uint_uintp_false): ... this.
8825 * hooks.c (hook_uint_uintp_false): Rename to...
8826 (hook_bool_uint_uintp_false): ... this.
8827 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8828 instead of hook_uint_uintp_false.
8829
8830 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8831
8832 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8833 (arm_init_builtins): Move body of a loop to the standalone
8834 function arm_init_neon_builtin.
8835 (arm_expand_neon_builtin_1): New. Update comment. Function body
8836 moved from arm_neon_builtin with some white-space fixes.
8837 (arm_expand_neon_builtin): Move code into the standalone function
8838 arm_expand_neon_builtin_1.
8839
8840 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8841
8842 * config/arm/iterators.md (VCVTHI): New.
8843 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
8844 (NEON_VAGLTE): New.
8845 (VFM_LANE_AS): New.
8846 (VH_CVTTO): New.
8847 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
8848 (V_HALF): Add V4HF. Fix white-space.
8849 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
8850 (V_s_elem): Likewise.
8851 (V_sz_elem): Fix white-space.
8852 (V_elem_ch): Likewise.
8853 (VH_elem_ch): New.
8854 (scalar_mul_constraint): Add V8HF and V4HF.
8855 (Is_float_mode): Fix white-space.
8856 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
8857 (q): Add HF. Fix white-space.
8858 (float_sup): New.
8859 (float_SUP): New.
8860 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8861 (neon_vfm_lane_as): New.
8862 * config/arm/neon.md (add<mode>3_fp16): New.
8863 (sub<mode>3_fp16): New.
8864 (mul<mode>3add<mode>_neon): New.
8865 (fma<VH:mode>4_intrinsic): New.
8866 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8867 (fmsub<VH:mode>4_intrinsic): New.
8868 (<absneg_str><mode>2): New.
8869 (neon_v<absneg_str><mode>): New.
8870 (neon_v<fp16_rnd_str><mode>): New.
8871 (neon_vrsqrte<mode>): New.
8872 (neon_vpaddv4hf): New.
8873 (neon_vadd<mode>): New.
8874 (neon_vsub<mode>): New.
8875 (neon_vmulf<mode>): New.
8876 (neon_vfma<VH:mode>): New.
8877 (neon_vfms<VH:mode>): New.
8878 (neon_vc<cmp_op><mode>): New.
8879 (neon_vc<cmp_op><mode>_fp16insn): New
8880 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8881 (neon_vca<cmp_op><mode>): New.
8882 (neon_vca<cmp_op><mode>_fp16insn): New.
8883 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8884 (neon_vc<cmp_op>z<mode>): New.
8885 (neon_vabd<mode>): New.
8886 (neon_v<maxmin>f<mode>): New.
8887 (neon_vp<maxmin>fv4hf: New.
8888 (neon_<fmaxmin_op><mode>): New.
8889 (neon_vrecps<mode>): New.
8890 (neon_vrsqrts<mode>): New.
8891 (neon_vrecpe<mode>): New (VH variant).
8892 (neon_vdup_lane<mode>_internal): New.
8893 (neon_vdup_lane<mode>): New.
8894 (neon_vcvt<sup><mode>): New (VCVTHI variant).
8895 (neon_vcvt<sup><mode>): New (VH variant).
8896 (neon_vcvt<sup>_n<mode>): New (VH variant).
8897 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8898 (neon_vcvt<vcvth_op><sup><mode>): New.
8899 (neon_vmul_lane<mode>): New.
8900 (neon_vmul_n<mode>): New.
8901 * config/arm/unspecs.md (UNSPEC_VCALE): New
8902 (UNSPEC_VCALT): New.
8903 (UNSPEC_VFMA_LANE): New.
8904 (UNSPECS_VFMS_LANE): New.
8905
8906 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8907
8908 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8909 ("*extzv<mode><clobbercc_or_nocc>"):
8910 Correct a typo in a comment.
8911 Merged patterns.
8912 ("*insv<mode>_zEC12", "*insv<mode>_z10")
8913 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8914 ("*insv<mode>_zEC12_appendbitsleft")
8915 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8916 ("*insv<mode>_z10_appendbitsleft"): Ditto.
8917 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8918 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8919 Provide pattern with operands switched.
8920 ("*pre_z10_extv<mode>"):
8921 Use new subst patterns.
8922 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8923 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8924 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8925 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8926 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8927 ("*<risbg_n>_sidi_ior_and_lshiftrt")
8928 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8929 New patterns.
8930 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8931 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8932 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8933 on zEC12.
8934 ("SINT"): New mode_iterator with SI, HI, QI.
8935 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8936 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8937 duplication.
8938
8939 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8940
8941 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8942 new interface of s390_contiguous_bitmask_p.
8943 ("contiguous_bitmask_nowrap_operand"): New predicate.
8944 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8945 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8946 of s390_contiguous_bitmask_p.
8947 ("NxxDw"): Rename NxxDq constraint to NxxDw.
8948 ("NxxSw"): New constraint.
8949 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8950 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8951 interface.
8952 (s390_contiguous_bitmask_nowrap_p): Export.
8953 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8954 former s390_contiguous_bitmask_p.
8955 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8956 detect contiguous bit ranges with wraparound. Change signature to
8957 return START and END position instead of POS and LENGTH.
8958 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8959 ranges with wraparound.
8960 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8961 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8962 Adapt to new signature of s390_contiguous_bitmask_p.
8963
8964 2016-09-23 Bin Cheng <bin.cheng@arm.com>
8965
8966 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8967 (create_intersect_range_checks): New.
8968 (vect_create_cond_for_alias_checks): Call above function.
8969
8970 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8971
8972 * config/arm/iterators.md (Code iterators): Fix some white-space
8973 in the comments.
8974 (GLTE): New.
8975 (ABSNEG): New
8976 (FCVT): Moved from vfp.md.
8977 (VCVT_HF_US_N): New.
8978 (VCVT_SI_US_N): New.
8979 (VCVT_HF_US): New.
8980 (VCVTH_US): New.
8981 (FP16_RND): New.
8982 (absneg_str): New.
8983 (FCVTI32typename): Moved from vfp.md.
8984 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
8985 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
8986 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
8987 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
8988 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
8989 (vcvth_op): New.
8990 (fp16_rnd_str): New.
8991 (fp16_rnd_insn): New.
8992 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
8993 (UNSPEC_VCVT_HF_U_N): New.
8994 (UNSPEC_VCVT_SI_S_N): New.
8995 (UNSPEC_VCVT_SI_U_N): New.
8996 (UNSPEC_VCVTH_S): New.
8997 (UNSPEC_VCVTH_U): New.
8998 (UNSPEC_VCVTA_S): New.
8999 (UNSPEC_VCVTA_U): New.
9000 (UNSPEC_VCVTM_S): New.
9001 (UNSPEC_VCVTM_U): New.
9002 (UNSPEC_VCVTN_S): New.
9003 (UNSPEC_VCVTN_U): New.
9004 (UNSPEC_VCVTP_S): New.
9005 (UNSPEC_VCVTP_U): New.
9006 (UNSPEC_VCVTP_S): New.
9007 (UNSPEC_VCVTP_U): New.
9008 (UNSPEC_VRND): New.
9009 (UNSPEC_VRNDA): New.
9010 (UNSPEC_VRNDI): New.
9011 (UNSPEC_VRNDM): New.
9012 (UNSPEC_VRNDN): New.
9013 (UNSPEC_VRNDP): New.
9014 (UNSPEC_VRNDX): New.
9015 * config/arm/vfp.md (<absneg_str>hf2): New.
9016 (neon_vabshf): New.
9017 (neon_v<fp16_rnd_str>hf): New.
9018 (neon_vrndihf): New.
9019 (addhf3): New.
9020 (subhf3): New.
9021 (divhf3): New.
9022 (mulhf3): New.
9023 (*mulsf3neghf_vfp): New.
9024 (*negmulhf3_vfp): New.
9025 (*mulsf3addhf_vfp): New.
9026 (*mulhf3subhf_vfp): New.
9027 (*mulhf3neghfaddhf_vfp): New.
9028 (*mulhf3neghfsubhf_vfp): New.
9029 (fmahf4): New.
9030 (neon_vfmahf): New.
9031 (fmsubhf4_fp16): New.
9032 (neon_vfmshf): New.
9033 (*fnmsubhf4): New.
9034 (*fnmaddhf4): New.
9035 (neon_vsqrthf): New.
9036 (neon_vrsqrtshf): New.
9037 (FCVT): Move to iterators.md.
9038 (FCVTI32typename): Likewise.
9039 (neon_vcvth<sup>hf): New.
9040 (neon_vcvth<sup>si): New.
9041 (neon_vcvth<sup>_nhf_unspec): New.
9042 (neon_vcvth<sup>_nhf): New.
9043 (neon_vcvth<sup>_nsi_unspec): New.
9044 (neon_vcvth<sup>_nsi): New.
9045 (neon_vcvt<vcvth_op>h<sup>si): New.
9046 (neon_<fmaxmin_op>hf): New.
9047
9048 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9049
9050 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
9051 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
9052 ("*insv<mode>_zEC12_appendbitsleft")
9053 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
9054 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
9055
9056 2016-09-23 Jakub Jelinek <jakub@redhat.com>
9057
9058 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
9059 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
9060 construct values without normalization.
9061 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
9062 static local lhs_ops to vNULL.
9063
9064 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9065 Jiong Wang <jiong.wang@arm.com>
9066
9067 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
9068 available when FP16 instructions are available.
9069 (output_move_vfp): Add support for 16-bit data moves.
9070 (arm_validize_comparison): Fix some white-space. Support HFmode
9071 by conversion to SFmode.
9072 * config/arm/arm.md (truncdfhf2): Fix a comment.
9073 (extendhfdf2): Likewise.
9074 (cstorehf4): New.
9075 (movsicc): Fix some white-space.
9076 (movhfcc): New.
9077 (movsfcc): Fix some white-space.
9078 (*cmovhf): New.
9079 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
9080 instructions are available.
9081 (*thumb2_movhi_vfp): Likewise.
9082 (*arm_movhi_fp16): New.
9083 (*thumb2_movhi_fp16): New.
9084 (*movhf_vfp_fp16): New.
9085 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
9086 (*movhf_vfp): Likewise.
9087 (extendhfsf2): Enable when VFP FP16 instructions are available.
9088 (truncsfhf2): Enable when VFP FP16 instructions are available.
9089
9090 2016-09-23 Martin Liska <mliska@suse.cz>
9091
9092 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
9093
9094 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9095
9096 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
9097 V4HF modes.
9098 (arm_evpc_neon_vtrn): Likewise.
9099 (arm_evpc_neon_vrev): Likewise.
9100 (arm_evpc_neon_vext): Likewise.
9101 * config/arm/arm_neon.h (vbsl_f16): New.
9102 (vbslq_f16): New.
9103 (vdup_n_f16): New.
9104 (vdupq_n_f16): New.
9105 (vdup_lane_f16): New.
9106 (vdupq_lane_f16): New.
9107 (vext_f16): New.
9108 (vextq_f16): New.
9109 (vmov_n_f16): New.
9110 (vmovq_n_f16): New.
9111 (vrev64_f16): New.
9112 (vrev64q_f16): New.
9113 (vtrn_f16): New.
9114 (vtrnq_f16): New.
9115 (vuzp_f16): New.
9116 (vuzpq_f16): New.
9117 (vzip_f16): New.
9118 (vzipq_f16): New.
9119 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
9120 (vdup_lane): New (v8hf, v4hf variants).
9121 (vext): New (v8hf, v4hf variants).
9122 (vbsl): New (v8hf, v4hf variants).
9123 * config/arm/iterators.md (VDQWH): New.
9124 (VH): New.
9125 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
9126 (Scalar_mul_8_16): Fix white-space.
9127 (Is_d_reg): Add V4HF and V8HF.
9128 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
9129 (neon_vdup_lane<mode>): New.
9130 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
9131 (*neon_vtrn<mode>_insn): Likewise.
9132 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
9133 (*neon_vzip<mode>_insn): Likewise
9134 (neon_vuzp<mode>_internal): Likewise.
9135 (*neon_vuzp<mode>_insn): Likewise
9136 * config/arm/vec-common.md (vec_perm_const<mode>): New.
9137
9138 2016-09-23 Jiong Wang <jiong.wang@arm.com>
9139 Matthew Wahab <matthew.wahab@arm.com>
9140
9141 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
9142 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
9143 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
9144 available. Also fix some white-space.
9145 * config/arm/vfp.md (*arm_movhi_vfp): New.
9146 (*thumb2_movhi_vfp): New.
9147
9148 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9149
9150 * config/arm/arm-c.c (arm_cpu_builtins): Define
9151 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
9152 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
9153
9154 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9155
9156 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
9157 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
9158 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
9159 arm_v8_2a_fp16_neon_hw.
9160 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
9161 arm_v8_2a_neon.
9162
9163 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9164
9165 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
9166 arm_fp16_alternative_ok and arm_fp16_none_ok.
9167
9168 2016-09-23 Martin Liska <mliska@suse.cz>
9169
9170 * ipa-icf.c (sem_variable::merge): Replace adress with address.
9171
9172 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
9173
9174 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
9175 ("armv8.2-a"): New.
9176 ("armv8.2-a+fp16"): New.
9177 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
9178 (FL2_FP16INST): New.
9179 (FL2_FOR_ARCH8_2A): New.
9180 * config/arm/arm-tables.opt: Regenerate.
9181 * config/arm/arm.c (arm_arch8_2): New.
9182 (arm_fp16_inst): New.
9183 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
9184 for incompatible fp16-format settings.
9185 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
9186 (TARGET_NEON_FP16INST): New.
9187 (arm_arch8_2): Declare.
9188 (arm_fp16_inst): Declare.
9189 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
9190 march=armv8.2-a and march=armv8.2-a+fp16.
9191 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
9192 and armv8.2-a+fp16.
9193 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
9194 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
9195
9196 2016-09-23 Martin Liska <mliska@suse.cz>
9197
9198 * doc/extend.texi: Remove fused-madd from i386 target options.
9199
9200 2016-09-23 Martin Liska <mliska@suse.cz>
9201
9202 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9203 Handle movbe.
9204
9205 2016-09-23 Martin Liska <mliska@suse.cz>
9206
9207 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9208 Handle crc32.
9209
9210 2016-09-23 Martin Liska <mliska@suse.cz>
9211
9212 PR target/71652
9213 * config/i386/i386.c (ix86_option_override_internal): Change
9214 signature and return false when there's an error related to
9215 arch string.
9216 (release_options_strings): New function.
9217 (ix86_valid_target_attribute_tree): Call the function.
9218
9219 2016-09-23 Jakub Jelinek <jakub@redhat.com>
9220
9221 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
9222 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
9223 (gen_hsa_ctor_assignment): Likewise.
9224 * print-tree.c (print_node): Likewise.
9225 * tree-dump.c (dequeue_and_dump): Likewise.
9226 * tree-sra.c (sra_modify_constructor_assign): Likewise.
9227 * expr.c (store_constructor): Likewise.
9228 * fold-const.c (operand_equal_p): Likewise.
9229 * tree-pretty-print.c (dump_generic_node): Likewise.
9230 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
9231 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
9232
9233 2016-09-23 Richard Biener <rguenther@suse.de>
9234
9235 * hooks.h (hook_uint_uintp_false): Declare.
9236
9237 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9238
9239 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
9240 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
9241
9242 2016-09-22 Martin Sebor <msebor@redhat.com>
9243
9244 PR target/77676
9245 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
9246 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
9247 (target_int_min): Correct computation.
9248 (format_integer): Use long long as the argument for the ll length
9249 modifier.
9250 (format_floating): Use target_int_max().
9251 (get_string_length): Same.
9252 (format_string): Avoid setting the bounded flag for strings
9253 of unknown length.
9254 (try_substitute_return_value): Avoid setting range info when
9255 the result isn't bounded.
9256 * varasm.c (assemble_name): Increase buffer size.
9257
9258 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
9259 Terry Guo <terry.guo@arm.com>
9260
9261 * target.def (elf_flags_numeric): New target hook.
9262 * targhooks.h (default_asm_elf_flags_numeric): New.
9263 * varasm.c (default_asm_elf_flags_numeric): New.
9264 (default_elf_asm_named_section): Use new target hook.
9265 * config/arm/arm.opt (mpure-code): New.
9266 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
9267 * config/arm/arm.c (arm_asm_init_sections): Add section
9268 attribute to default text section if -mpure-code.
9269 (arm_option_check_internal): Diagnose use of option with
9270 non supported targets and/or options.
9271 (arm_asm_elf_flags_numeric): New.
9272 (arm_function_section): New.
9273 (arm_elf_section_type_flags): New.
9274 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
9275 for -mpure-code.
9276 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
9277 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
9278
9279 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
9280
9281 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
9282
9283 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9284
9285 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
9286 * rtl.h: Adjust prototype.
9287
9288 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9289
9290 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
9291 (prev_active_insn): Likewise.
9292 (active_insn_p): Likewise.
9293 * rtl.h: Adjust prototypes.
9294 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
9295 * config/arc/arc.md: Likewise.
9296 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
9297 (branch_needs_nop_p): Likewise.
9298 (use_skip_p): Likewise.
9299 * config/sh/sh.c (gen_block_redirect): Likewise.
9300 (split_branches): Likewise.
9301 * reorg.c (optimize_skip): Likewise.
9302 (fill_simple_delay_slots): Likewise.
9303 (fill_slots_from_thread): Likewise.
9304 (relax_delay_slots): Likewise.
9305 * resource.c (mark_target_live_regs): Likewise.
9306
9307 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9308
9309 * config/cris/cris.c (cris_asm_output_case_end): Change argument
9310 type to rtx_insn *.
9311 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
9312 (prev_nonnote_nondebug_insn): Likewise.
9313 * config/cris/cris-protos.h: Adjust prototype.
9314 * rtl.h: Likewise.
9315 * jump.c (rtx_renumbered_equal_p): Adjust.
9316
9317 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9318
9319 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
9320 * rtl.h: Adjust prototype.
9321 * config/sh/sh.md: Adjust.
9322 * dwarf2out.c (add_var_loc_to_decl): Likewise.
9323
9324 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9325
9326 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
9327 (prev_nondebug_insn): Likewise.
9328 * loop-doloop.c (doloop_condition_get): Likewise.
9329 * rtl.h: Adjust prototype.
9330 * cfgloop.h: Likewise.
9331
9332 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9333
9334 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
9335 (prev_nonnote_insn): Likewise.
9336 * jump.c (reversed_comparison_code_parts): Likewise.
9337 (reversed_comparison): Likewise.
9338 * rtl.h: Adjust prototypes.
9339 * config/arc/arc.md: Adjust.
9340 * cse.c (find_comparison_args): Likewise.
9341 * reorg.c (redundant_insn): Change return type to rtx_insn *.
9342 (fix_reg_dead_note): Change argument type to rtx_insn *.
9343 (delete_prior_computation): Likewise.
9344 (delete_computation): Likewise.
9345 (fill_slots_from_thread): Adjust.
9346 (relax_delay_slots): Likewise.
9347 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9348 (simplify_relational_operation_1): Likewise.
9349 (simplify_ternary_operation): Likewise.
9350
9351 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9352
9353 * config/arc/arc-protos.h (arc_label_align): Change type of
9354 variables from rtx to rtx_insn *.
9355 * config/arc/arc.c (arc_label_align): Likewise.
9356 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
9357 * config/bfin/bfin.c (workaround_speculation): Likewise.
9358 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
9359 (find_last_same_clock): Likewise.
9360 (reorg_split_calls): Likewise.
9361 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
9362 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
9363 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
9364 (same_cmp_following_p): Likewise.
9365 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
9366 (same_cmp_following_p): Likwise.
9367 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
9368 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
9369 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
9370 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
9371 (rl78_alloc_physical_registers_cmp): Likewise.
9372 (rl78_alloc_physical_registers_umul): Likewise.
9373 (rl78_calculate_death_notes): Likewise.
9374 * config/s390/s390-protos.h (s390_label_align): Likewise.
9375 * config/s390/s390.c (s390_label_align): Likewise.
9376 * config/sh/sh.c (barrier_align): Likewise.
9377 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
9378 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
9379 (emit_cbcond_nop): Likewise.
9380
9381 2016-09-22 Martin Liska <mliska@suse.cz>
9382
9383 PR ipa/77653
9384 * ipa-icf.c (sem_variable::merge): Yield merge operation if
9385 alias address matters, not necessarily address of original.
9386
9387 2016-09-22 Richard Biener <rguenther@suse.de>
9388
9389 PR middle-end/77697
9390 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
9391 fold fails.
9392
9393 2016-09-22 Richard Biener <rguenther@suse.de>
9394
9395 PR middle-end/77677
9396 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
9397 from constant folding results.
9398 (gimple_resimplify2): Likewise.
9399 (gimple_resimplify3): Likewise.
9400
9401 2016-09-22 Richard Biener <rguenther@suse.de>
9402
9403 PR middle-end/77678
9404 * expr.c (expand_expr_real_1): Guard array access against negative
9405 offset.
9406
9407 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9408
9409 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
9410 of MPFR_RNDN.
9411 (format_floating): Likewise.
9412
9413 2016-09-22 Jakub Jelinek <jakub@redhat.com>
9414
9415 PR fortran/77665
9416 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
9417 for all IFN_GOMP_SIMD_* internal fns, not just for
9418 IFN_GOMP_SIMD_ORDERED_*.
9419
9420 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9421
9422 PR target/77670
9423 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
9424 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
9425 instructions when you want to invert the test.
9426 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
9427 correct order for XXSEL.
9428 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
9429 for using XSCMP{EQ,GT,GE}DP.
9430
9431 2016-09-21 David Malcolm <dmalcolm@redhat.com>
9432
9433 * genconstants.c (main): Introduce noop_reader and convert call
9434 to read_md_files to a method call.
9435 * genenums.c (main): Likewise.
9436 * genmddeps.c (main): Likewise.
9437 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
9438 rtx_reader_ptr->get_top_level_filename ().
9439 (write_tm_preds_h): Likewise.
9440 (write_insn_preds_c): Likewise.
9441 * gensupport.c (class gen_reader): New subclass of rtx_reader.
9442 (rtx_handle_directive): Convert to...
9443 (gen_reader::handle_unknown_directive): ...this.
9444 (init_rtx_reader_args_cb): Convert return type from bool to
9445 rtx_reader *. Create a gen_reader instance, using it for the
9446 call to read_md_files. Return it if no errors occur.
9447 (init_rtx_reader_args): Convert return type from bool to
9448 rtx_reader *.
9449 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9450 (init_rtx_reader_args_cb): Likewise.
9451 * read-md.c (struct file_name_list): Move to class rtx_reader.
9452 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
9453 (read_md_filename): Delete in favor of
9454 rtx_reader::m_read_md_filename.
9455 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
9456 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
9457 (base_dir): Delete in favor of rtx_reader::m_base_dir.
9458 (first_dir_md_include): Delete in favor of
9459 rtx_reader::m_first_dir_md_include.
9460 (last_dir_md_include_ptr): Delete in favor of
9461 rtx_reader::m_last_dir_md_include_ptr.
9462 (max_include_len): Delete.
9463 (rtx_reader_ptr): New.
9464 (fatal_with_file_and_line): Use get_filename and get_lineno
9465 accessors of rtx_reader_ptr.
9466 (require_char_ws): Likewise.
9467 (rtx_reader::read_char): New method, based on ::read_char.
9468 (rtx_reader::unread_char): New method, based on ::unread_char.
9469 (read_escape): Use get_filename and get_lineno accessors of
9470 rtx_reader_ptr.
9471 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
9472 (read_string): Use get_filename and get_lineno accessors of
9473 rtx_reader_ptr.
9474 (rtx_reader::rtx_reader): New ctor.
9475 (rtx_reader::~rtx_reader): New dtor.
9476 (handle_include): Convert from a function to...
9477 (rtx_reader::handle_include): ...this method, converting
9478 handle_directive from a callback to a virtual function.
9479 (handle_file): Likewise, converting to...
9480 (rtx_reader::handle_file): ...this method.
9481 (handle_toplevel_file): Likewise, converting to...
9482 (rtx_reader::handle_toplevel_file): ...this method.
9483 (rtx_reader::get_current_location): New method.
9484 (parse_include): Convert from a function to...
9485 (rtx_reader::add_include_path): ...this method, dropping redundant
9486 update to unused max_include_len.
9487 (read_md_files): Convert from a function to...
9488 (rtx_reader::read_md_files): ...this method, converting
9489 handle_directive from a callback to a virtual function.
9490 (noop_reader::handle_unknown_directive): New method.
9491 * read-md.h (directive_handler_t): Delete this typedef.
9492 (in_fname): Delete.
9493 (read_md_file): Delete.
9494 (read_md_lineno): Delete.
9495 (read_md_filename): Delete.
9496 (class rtx_reader): New class.
9497 (rtx_reader_ptr): New decl.
9498 (class noop_reader): New subclass of rtx_reader.
9499 (read_char): Reimplement in terms of rtx_reader::read_char.
9500 (unread_char): Reimplement in terms of rtx_reader::unread_char.
9501 (read_md_files): Delete.
9502 * read-rtl.c (read_rtx_code): Update for deletion of globals
9503 read_md_filename and read_md_lineno.
9504
9505 2016-09-21 Jason Merrill <jason@redhat.com>
9506
9507 * input.h (from_macro_definition_at): New.
9508
9509 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9510
9511 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
9512
9513 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9514
9515 PR tree-optimization/77550
9516 * tree-vect-stmts.c (create_array_ref): Change parameters.
9517 (get_group_alias_ptr_type): New function.
9518 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
9519
9520 2016-09-21 Marek Polacek <polacek@redhat.com>
9521
9522 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
9523 Add falls through comment.
9524
9525 2016-09-21 Richard Biener <rguenther@suse.de>
9526
9527 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
9528 (replace_child): Likewise.
9529 (remove_child_TAG): Adjust.
9530 (move_marked_base_types): Likewise.
9531 (prune_unused_types_prune): Clear die_sib of removed children.
9532
9533 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
9534
9535 PR target/77326
9536 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
9537 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
9538
9539 2016-09-21 Richard Biener <rguenther@suse.de>
9540
9541 PR tree-optimization/77648
9542 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
9543 with complex RHS.
9544 (make_transitive_closure_constraints): Adjust comment.
9545 (make_any_offset_constraints): New function.
9546 (handle_rhs_call): Make sure to first expand a pointer to all
9547 subfields before transitively closing it.
9548 (handle_const_call): Likewise. Properly expand returned
9549 pointers as well.
9550 (handle_pure_call): Likewise.
9551
9552 2016-09-21 Richard Biener <rguenther@suse.de>
9553 Jakub Jelinek <jakub@redhat.com>
9554
9555 PR tree-optimization/77621
9556 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
9557 group at non-vectorizable stmts.
9558
9559 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9560
9561 PR tree-optimization/72835
9562 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
9563 (make_new_ssa_for_all_defs): Likewise.
9564 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
9565
9566 2016-09-20 Martin Sebor <msebor@redhat.com>
9567
9568 PR middle-end/49905
9569 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
9570 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
9571 * config/linux.c (gnu_libc_printf_pointer_format): New function.
9572 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
9573 * config/sol2.c (solaris_printf_pointer_format): New function.
9574 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
9575 options.
9576 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
9577 * doc/tm.texi: Regenerate.
9578 * gimple-fold.h (get_range_strlen): New function.
9579 (get_maxval_strlen): Declare existing function.
9580 * gimple-fold.c (get_range_strlen): Add arguments and compute both
9581 maximum and minimum.
9582 (get_range_strlen): Define overload.
9583 (get_maxval_strlen): Adjust.
9584 * gimple-ssa-sprintf.c: New file and pass.
9585 * passes.def (pass_sprintf_length): Add new pass.
9586 * targhooks.h (default_printf_pointer_format): Declare new function.
9587 (gnu_libc_printf_pointer_format): Same.
9588 (solaris_libc_printf_pointer_format): Same.
9589 * targhooks.c (default_printf_pointer_format): Define new function.
9590 * tree-pass.h (make_pass_sprintf_length): Declare new function.
9591 * print-tree.c: Increase buffer size.
9592
9593 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9594
9595 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
9596
9597 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9598
9599 * common.opt: New option -fipa-vrp.
9600 * ipa-cp.c (ipa_get_vr_lat): New.
9601 (ipcp_vr_lattice::print): Likewise.
9602 (print_all_lattices): Call ipcp_vr_lattice::print.
9603 (ipcp_vr_lattice::meet_with): New.
9604 (ipcp_vr_lattice::meet_with_1): Likewise.
9605 (ipcp_vr_lattice::top_p): Likewise.
9606 (ipcp_vr_lattice::bottom_p): Likewsie.
9607 (ipcp_vr_lattice::set_to_bottom): Likewise.
9608 (set_all_contains_variable): Call VR set_to_bottom.
9609 (initialize_node_lattices): Init VR lattices.
9610 (propagate_vr_accross_jump_function): New.
9611 (propagate_constants_accross_call): Call
9612 propagate_vr_accross_jump_function.
9613 (ipcp_store_vr_results): New.
9614 (ipcp_driver): Handle VR.
9615 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
9616 (ipa_set_jf_unknown): Likewise.
9617 (ipa_compute_jump_functions_for_edge): Likewise.
9618 (ipa_node_params_t::duplicate): Likewise.
9619 (ipa_write_jump_function): Likewise.
9620 (ipa_read_jump_function): Likewise.
9621 (write_ipcp_transformation_info): Likewise.
9622 (read_ipcp_transformation_info): Likewise.
9623 (ipcp_update_vr): New.
9624 (ipcp_transform_function): Handle VR.
9625 * ipa-prop.h (struct ipa_vr): New.
9626 * cgraph.c: Include tree-vrp.h.
9627 * cgraphunit.c: Likewise.
9628 * ipa-utils.c: Likewise.
9629 * ipa.c: Likewise.
9630 * opts.c: Likewise.
9631 * toplev.c: Likewise.
9632 * ipa-devirt.c: Likewise.
9633 * ipa-inline-transform.c: Likewise.
9634 * ipa-inline.c: Likewise.
9635 * ipa-profile.c: Likewise.
9636
9637 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9638
9639 * doc/invoke.texi: Document -fdump-tree-evrp.
9640 * passes.def: Define new pass_early_vrp.
9641 * timevar.def: Define new TV_TREE_EARLY_VRP.
9642 * tree-pass.h (make_pass_early_vrp): New.
9643 * tree-ssa-propagate.c: Make replace_uses_in non static.
9644 * tree-ssa-propagate.h: Export replace_uses_in.
9645 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
9646 (extract_range_from_assert): Factor out
9647 extract_range_for_var_from_comparison_expr.
9648 (vrp_initialize_lattice): New.
9649 (vrp_initialize): Factor out vrp_initialize_lattice.
9650 (vrp_valueize): Fix it to reject complex value ranges.
9651 (vrp_free_lattice): New.
9652 (evrp_dom_walker::before_dom_children): Likewise.
9653 (evrp_dom_walker::after_dom_children): Likewise.
9654 (evrp_dom_walker::push_value_range): Likewise.
9655 (evrp_dom_walker::pop_value_range): Likewise.
9656 (execute_early_vrp): Likewise.
9657 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
9658 (make_pass_early_vrp): New.
9659
9660 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9661
9662 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
9663 instead of exact_log2.
9664
9665 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9666
9667 PR target/77621
9668 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9669 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9670 (ix86_add_stmt_cost): Penalize DFmode vector operations
9671 for !TARGET_VECTORIZE_DOUBLE.
9672
9673 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
9674
9675 * doc/invoke.texi (Warning Options): Simplify language.
9676 (Optimize Options): Complete sentence.
9677
9678 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
9679
9680 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
9681 early_finish hook.
9682
9683 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9684
9685 PR target/71395
9686 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9687 inits on power8 and above, use the VMRGEW instruction instead of a
9688 permute.
9689
9690 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9691 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9692 initialization.
9693
9694 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9695
9696 * config/aarch64/arm_neon.h
9697 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9698 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9699 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9700
9701 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9702
9703 * config/var/vax.h (ELIMINABLE_REGS): Define.
9704 (INITIAL_ELIMINATION_OFFSET): Define.
9705
9706 2016-09-20 Jakub Jelinek <jakub@redhat.com>
9707
9708 PR middle-end/77624
9709 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9710 cast to void * if the cast is from some other pointer type.
9711
9712 2016-09-20 Richard Biener <rguenther@suse.de>
9713
9714 PR tree-optimization/77646
9715 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9716 a VDEF.
9717
9718 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9719
9720 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9721 attributes to all inlined functions and make them extern.
9722
9723 2016-09-20 Richard Biener <rguenther@suse.de>
9724
9725 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9726 hook.
9727 * debug.c (do_nothing_debug_hooks): Adjust.
9728 * dbxout.c (dbx_debug_hooks): Likewise.
9729 * sdbout.c (sdb_debug_hooks): Likewise.
9730 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9731 (dwarf2out_finish): Move producer, filename and
9732 path annotation ...
9733 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
9734 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9735
9736 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9737
9738 PR c++/77434
9739 * doc/invoke.texi: Document -Wint-in-bool-context.
9740
9741 PR middle-end/77421
9742 * dwarf2out.c (output_loc_operands): Fix an assertion.
9743
9744 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9745
9746 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9747 (CR_DECIMAL_DIG): New macro.
9748
9749 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9750
9751 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9752 element.
9753
9754 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
9755
9756 PR rtl-optimization/77416
9757 * lra-remat.c (operand_to_remat): Process hard coded insn
9758 registers.
9759
9760 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9761
9762 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9763 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9764
9765 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9766
9767 * target.def (lra_p): Wordsmithing.
9768 * doc/tm.texi: Regenerate.
9769
9770 2016-09-19 Jakub Jelinek <jakub@redhat.com>
9771 Jan Hubicka <jh@suse.cz>
9772
9773 PR target/77587
9774 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9775 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9776 Call ultimate_alias_target just once, not up to 4 times.
9777
9778 2016-09-19 Richard Biener <rguenther@suse.de>
9779
9780 * dwarf2out.c (early_dwarf_finished): New global.
9781 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9782 is false.
9783 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9784 if called from LTO exit early.
9785 (dwarf2out_late_global_decl): When being during the early
9786 debug phase do not add locations but only const value attributes.
9787 Adjust the way we generate early DIEs for LTO.
9788
9789 2016-09-19 Richard Biener <rguenther@suse.de>
9790
9791 PR middle-end/77605
9792 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9793 proper niter to bound the loops.
9794
9795 2016-09-19 Richard Biener <rguenther@suse.de>
9796
9797 PR tree-optimization/77514
9798 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9799 search for folded stmt.
9800
9801 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
9802
9803 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9804 * tree-pass.h (make_pass_early_thread_jumps): Declare.
9805 * tree-ssa-threadbackward.c (fsm_find_thread_path,
9806 fsm_find_thread_path, profitable_jump_thread_path,
9807 fsm_find_control_statement_thread_paths,
9808 find_jump_threads_backwards): Add speed_p parameter.
9809 (pass_data_early_thread_jumps): New pass.
9810 (make_pass_early_thread_jumps): New function.
9811
9812 2016-09-17 Andreas Schwab <schwab@suse.de>
9813
9814 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9815 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9816
9817 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
9818
9819 * recog.c (rest_of_handle_split_after_reload): Delete.
9820 (pass_split_after_reload::gate): New method.
9821 (pass_split_after_reload::execute): Call split_all_insns directly.
9822
9823 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
9824
9825 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9826 parameters for functions taking long long arguments.
9827
9828 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9829
9830 PR target/77613
9831 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9832 splat with truncate.
9833
9834 2016-09-16 Jason Merrill <jason@redhat.com>
9835
9836 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9837 New.
9838 * hwint.c (exact_log2): Use pow2p_hwi.
9839 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9840 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9841 * builtins.c (get_object_alignment_2, get_object_alignment)
9842 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9843 least_bit_hwi.
9844 * calls.c (compute_argument_addresses, store_one_arg): Use
9845 least_bit_hwi.
9846 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9847 * combine.c (force_to_mode): Use least_bit_hwi.
9848 (contains_muldiv, find_split_point, combine_simplify_rtx)
9849 (simplify_if_then_else, simplify_set, force_to_mode)
9850 (if_then_else_cond, simplify_and_const_int_1)
9851 (simplify_compare_const): Use pow2p_hwi.
9852 * cse.c (fold_rtx): Use pow2p_hwi.
9853 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9854 Use least_bit_hwi.
9855 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9856 (init_expmed_one_conv): Use pow2p_hwi.
9857 * expr.c (is_aligning_offset): Use pow2p_hwi.
9858 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9859 (fold_binary_loc): Use pow2p_hwi.
9860 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9861 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9862 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9863 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9864 Use least_bit_hwi.
9865 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9866 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9867 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9868 * omp-low.c (oacc_loop_fixed_partitions)
9869 (oacc_loop_auto_partitions): Use least_bit_hwi.
9870 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9871 * stor-layout.c (place_field): Use least_bit_hwi.
9872 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9873 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9874 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9875 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9876 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9877 * tree-vect-data-refs.c (vect_analyze_group_access_1)
9878 (vect_grouped_store_supported, vect_grouped_load_supported)
9879 (vect_permute_load_chain, vect_shift_permute_load_chain)
9880 (vect_transform_grouped_load): Use pow2p_hwi.
9881 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9882 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9883 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9884 least_bit_hwi.
9885 * tsan.c (instrument_expr): Use least_bit_hwi.
9886 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9887
9888 2016-09-16 Andreas Schwab <schwab@suse.de>
9889
9890 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9891 OFFSET, not offset.
9892 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9893
9894 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9895
9896 PR target/77526
9897 * combine.c (rest_of_handle_combine): If any edges have been purged,
9898 free dominators if available.
9899
9900 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9901 Eric Botcazou <ebotcazou@adacore.com>
9902
9903 PR middle-end/77594
9904 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9905 through into expand_addsub_overflow after expand_neg_overflow.
9906
9907 2016-09-15 David Malcolm <dmalcolm@redhat.com>
9908
9909 * diagnostic-show-locus.c
9910 (selftest::test_fixit_insert_containing_newline): New function.
9911 (selftest::test_fixit_replace_containing_newline): New function.
9912 (selftest::diagnostic_show_locus_c_tests): Call the above.
9913
9914 2016-09-15 Bin Cheng <bin.cheng@arm.com>
9915
9916 PR tree-optimization/77503
9917 * tree-vect-loop.c (vectorizable_reduction): Record reduction
9918 code for CONST_COND_REDUCTION at analysis stage and use it at
9919 transform stage.
9920 * tree-vectorizer.h (struct _stmt_vec_info): New field.
9921 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9922 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9923 field.
9924
9925 2016-09-15 Richard Biener <rguenther@suse.de>
9926
9927 PR middle-end/77544
9928 * fold-const.c (split_tree): Do not split constant ~X.
9929
9930 2016-09-15 Jakub Jelinek <jakub@redhat.com>
9931
9932 PR rtl-optimization/77425
9933 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9934 is NULL.
9935
9936 PR middle-end/77475
9937 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9938 use %qs instead of %s where desirable, use argument instead of arg in
9939 the diagnostic wording, add list of supported strategies and
9940 spellcheck hint.
9941 (ix86_option_override_internal): Emit target("m...") instead of
9942 option("m...") in the diagnostic. Use %qs instead of %s in invalid
9943 -march/-mtune option diagnostic. Add list of supported arches/tunings
9944 and spellcheck hint. Remove prefix, suffix and sw variables, use
9945 main_args_p ? "..." : "..." in diagnostics to make translation
9946 possible.
9947
9948 2016-09-15 Richard Biener <rguenther@suse.de>
9949
9950 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9951 extra offset argument.
9952 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9953 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9954 to reflect new offset parameter.
9955 * doc/tm.texi: Regenerate.
9956 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9957 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9958 offset argument.
9959 (darwin_asm_output_dwarf_offset): Likewise.
9960 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9961 argument.
9962 (darwin_asm_output_dwarf_offset): Pass offset argument through.
9963 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9964 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9965
9966 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
9967
9968 PR fortran/72743
9969 * ipa-icf.c (set_alias_uids): New function.
9970 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
9971 all the merged variable's referring aliases.
9972
9973 2016-09-15 Richard Biener <rguenther@suse.de>
9974
9975 PR tree-optimization/77514
9976 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
9977 only forced_stmts sequence.
9978
9979 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
9980
9981 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
9982 * cfgexpand.c (update_alias_info_with_stack_vars): Use
9983 FOR_EACH_SSA_NAME to iterate over SSA variables.
9984 (pass_expand::execute): Likewise.
9985 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
9986 * tree-cfg.c (dump_function_to_file): Likewise.
9987 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
9988 (update_ssa): Likewise.
9989 * tree-ssa-alias.c (dump_alias_info): Likewise.
9990 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9991 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
9992 (create_outofssa_var_map): Likewise.
9993 (coalesce_ssa_name): Likewise.
9994 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
9995 * tree-ssa-pre.c (compute_avail): Likewise.
9996 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
9997 (scc_vn_restore_ssa_info): Likewise.
9998 (free_scc_vn): Likwise.
9999 (run_scc_vn): Likewise.
10000 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
10001 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
10002 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10003 * tree-ssa.c (verify_ssa): Likewise.
10004
10005 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
10006
10007 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
10008 and mips64r2 as default 32-bit and 64-bit architectures.
10009 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
10010 as default 32-bit and 64-bit architectures.
10011
10012 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
10013
10014 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
10015 of succ edge.
10016
10017 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10018
10019 * target.def (lra_p): Change commentary (for the manual) for the
10020 new default.
10021 * doc/tm.texi: Regenerate.
10022
10023 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10024
10025 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
10026 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
10027 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
10028 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
10029
10030 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10031
10032 * targhooks.c (default_lra_p): Return true instead of false.
10033
10034 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10035
10036 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
10037 hook_bool_void_false.
10038 * config/avr/avr.c: Ditto.
10039 * config/bfin/bfin.c: Ditto.
10040 * config/c6x/c6x.c: Ditto.
10041 * config/cr16/cr16.c: Ditto.
10042 * config/cris/cris.c: Ditto.
10043 * config/epiphany/epiphany.c: Ditto.
10044 * config/fr30/fr30.c: Ditto.
10045 * config/frv/frv.c: Ditto.
10046 * config/h8300/h8300.c: Ditto.
10047 * config/ia64/ia64.c: Ditto.
10048 * config/iq2000/iq2000.c: Ditto.
10049 * config/lm32/lm32.c: Ditto.
10050 * config/m32c/m32c.c: Ditto.
10051 * config/m32r/m32r.c: Ditto.
10052 * config/m68k/m68k.c: Ditto.
10053 * config/mcore/mcore.c: Ditto.
10054 * config/microblaze/microblaze.c: Ditto.
10055 * config/mmix/mmix.c: Ditto.
10056 * config/mn10300/mn10300.c: Ditto.
10057 * config/moxie/moxie.c: Ditto.
10058 * config/msp430/msp430.c: Ditto.
10059 * config/nios2/nios2.c: Ditto.
10060 * config/nvptx/nvptx.c: Ditto.
10061 * config/pa/pa.c: Ditto.
10062 * config/pdp11/pdp11.c: Ditto.
10063 * config/rl78/rl78.c: Ditto.
10064 * config/sparc/sparc.c: Ditto.
10065 * config/spu/spu.c: Ditto.
10066 * config/stormy16/stormy16.c: Ditto.
10067 * config/tilegx/tilegx.c: Ditto.
10068 * config/tilepro/tilepro.c: Ditto.
10069 * config/v850/v850.c: Ditto.
10070 * config/vax/vax.c: Ditto.
10071 * config/visium/visium.c: Ditto.
10072 * config/xtensa/xtensa.c: Ditto.
10073
10074 2016-09-14 Jakub Jelinek <jakub@redhat.com>
10075
10076 PR sanitizer/68260
10077 * tsan.c: Include target.h.
10078 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
10079 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
10080 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
10081 BUILT_IN_ATOMIC_TEST_AND_SET entries.
10082 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
10083
10084 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10085 Martin Liska <mliska@suse.cz>
10086
10087 PR middle-end/77574
10088 * predict.c (force_edge_cold): Add braces to a condition.
10089
10090 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10091
10092 PR rtl-optimization/77289
10093 * lra-constraints.c (get_final_hard_regno): Removed.
10094 (get_hard_regno): Add new parameter final_p.
10095 (get_reg_class): Directly call lra_get_elimination_hard_regno.
10096 (operands_match_p): Adjust call to get_hard_regno.
10097 (uses_hard_regs_p): Likewise.
10098 (process_alt_operands): Likewise.
10099
10100 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
10101
10102 PR target/70713
10103 * config/msp430/msp430.c (msp430_start_function): Emit an error
10104 if a function is both weak and specifies an interrupt number.
10105
10106 2016-09-13 Jakub Jelinek <jakub@redhat.com>
10107
10108 PR tree-optimization/77454
10109 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
10110 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
10111 Formatting fix.
10112
10113 2016-09-13 Tamar Christina <tamar.christina@arm.com>
10114
10115 * config/aarch64/aarch64-builtins.c
10116 (aarch64_init_simd_builtins): Fix builtin type signature printing.
10117
10118 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
10119
10120 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
10121 SFmode and SCmode arguments by reference.
10122
10123 2016-09-13 David Malcolm <dmalcolm@redhat.com>
10124
10125 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
10126 Rename to...
10127 (selftest::test_one_liner_fixit_insert_before): ...this, and update
10128 for renaming of add_fixit_insert to add_fixit_insert_before.
10129 (selftest::test_one_liner_fixit_insert_after): New function.
10130 (selftest::test_one_liner_fixit_validation_adhoc_locations):
10131 Update for renaming of add_fixit_insert to add_fixit_insert_before.
10132 (selftest::test_one_liner_many_fixits): Likewise.
10133 (selftest::test_diagnostic_show_locus_one_liner): Update for
10134 renaming, call new test function.
10135 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
10136 renaming of add_fixit_insert to add_fixit_insert_before.
10137 (selftest::test_fixit_consolidation): Likewise.
10138 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
10139 Likewise.
10140 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
10141 (selftest::test_applying_fixits_insert_before): ...this.
10142 (selftest::test_applying_fixits_insert): Update for renaming of
10143 add_fixit_insert to add_fixit_insert_before.
10144 (selftest::test_applying_fixits_insert_after): New function.
10145 (selftest::test_applying_fixits_insert_after_at_line_end): New
10146 function.
10147 (selftest::test_applying_fixits_insert_after_failure): New function.
10148 (selftest::test_applying_fixits_multiple): Update for renaming of
10149 add_fixit_insert to add_fixit_insert_before.
10150 (selftest::change_line): Likewise.
10151 (selftest::test_applying_fixits_unreadable_file): Likewise.
10152 (selftest::test_applying_fixits_line_out_of_range): Likewise.
10153 (selftest::test_applying_fixits_column_validation): Likewise.
10154 (selftest::test_applying_fixits_column_validation): Likewise.
10155 (selftest::edit_context_c_tests): Update for renamed test function;
10156 call new test functions.
10157
10158 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
10159
10160 PR tree-optimization/77536
10161 PR rtl-optimization/68212
10162 * config/rs6000/rs6000.md (div->recip splitter): Remove
10163 optimize_insn_for_speed_p condition.
10164
10165 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
10166
10167 * optabs.c (prepare_cmp_insn): Update documentation comment.
10168
10169 2016-09-13 Jakub Jelinek <jakub@redhat.com>
10170 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10171
10172 PR middle-end/77475
10173 * opts.h (candidates_list_and_hint): Declare.
10174 * opts-common.c (candidates_list_and_hint): New function.
10175 (cmdline_handle_error): Use it.
10176
10177 2016-09-12 David Malcolm <dmalcolm@redhat.com>
10178
10179 * edit-context.c (edited_line::get_len): New accessor.
10180 (edited_file::print_diff): Split out hunk-printing into...
10181 (edited_file::print_diff_hunk): New method.
10182 (edited_file::print_diff_line): New method.
10183
10184 2016-09-12 Andrew Pinski <apinski@cavium.com>
10185
10186 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
10187 New tuning option.
10188 * config/aarch64/aarch64.c (thunderx_tunings): Enable
10189 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
10190 (aarch64_operands_ok_for_ldpstp): Return false if
10191 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
10192 was SImode and the alignment is less than 8 byte.
10193 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
10194
10195 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
10196
10197 PR target/77570
10198 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
10199
10200 2016-09-12 Marek Polacek <polacek@redhat.com>
10201
10202 * doc/extend.texi: Use lowercase "boolean".
10203 * doc/invoke.texi: Likewise.
10204 * doc/md.texi: Likewise.
10205 * target.def: Likewise.
10206 * doc/tm.texi: Regenerated.
10207
10208 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10209
10210 PR middle-end/77426
10211 * expmed.c (synth_mult): Delete duplicate mode check.
10212
10213 2016-09-10 Tom de Vries <tom@codesourcery.com>
10214
10215 PR C/71602
10216 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
10217 va_list type only.
10218 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
10219 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
10220
10221 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
10222
10223 PR rtl-optimization/77289
10224 * lra-constraints.c (get_final_hard_regno): Add support for non hard
10225 register numbers. Remove support for subregs.
10226 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
10227 (get_reg_class): Delete removed get_final_hard_regno() argument.
10228 (uses_hard_regs_p): Call get_final_hard_regno().
10229
10230 2016-09-09 Martin Sebor <msebor@redhat.com>
10231
10232 PR c/77520
10233 PR c/77521
10234 * pretty-print.c (pp_quoted_string): New function.
10235 (pp_format): Call it for %c and %s directives.
10236
10237 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10238
10239 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
10240 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
10241 INITIAL_ELIMINATION_OFFSET) : Update documentation.
10242 * target.def (frame_pointer_required, can_eliminate): Likewise.
10243 * doc/tm.texi: Regenerated.
10244 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
10245 ELIMINABLE_REGS.
10246 * df-scan.c (df_hard_reg_init): Likewise.
10247 * ira.c (ira_setup_eliminable_regset): Likewise.
10248 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
10249 init_elim_table): Likewise.
10250 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
10251 set_initial_elim_offsets, update_eliminables,
10252 init_elim_table): Likewise.
10253 * rtlanal.c (get_initial_register_offset): Likewise.
10254 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10255 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10256 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10257 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10258 * config/fr30/fr30.h: Fix comment.
10259 * config/frv/frv.c: Likewise.
10260 * config/frv/frv.h: Likewise.
10261 * config/ft32/ft32.h: Likewise.
10262 * config/visium/visium.h: Likewise.
10263 * config/pa/pa64-linux.h: Likewise.
10264 * config/v850/v850.h: Likewise.
10265 * config/cris/cris.c: Likewise.
10266 * config/ia64/ia64.h: Likewise.
10267 * config/moxie/moxie.h: Likewise.
10268 * config/m32r/m32r.h: Likewise.
10269
10270 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
10271
10272 PR target/77267
10273 * config.in: Regenerate.
10274 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
10275 New macro.
10276 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
10277 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
10278 static-libmpxwrappers case.
10279 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
10280 MPX_LD_AS_NEEDED_GUARD_POP.
10281 * configure: Regenerate.
10282 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
10283 defined if linker support "--push-state"/"--pop-state".
10284
10285 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10286
10287 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
10288
10289 2016-09-09 Joseph Myers <joseph@codesourcery.com>
10290
10291 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
10292 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
10293 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
10294 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
10295 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
10296 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
10297 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
10298 Document.
10299 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
10300 width macros from TS 18661-1.
10301 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
10302
10303 2016-09-08 Jakub Jelinek <jakub@redhat.com>
10304
10305 PR fortran/77516
10306 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
10307 OMP_CLAUSE_SAFELEN_EXPR.
10308
10309 2016-09-07 David Malcolm <dmalcolm@redhat.com>
10310
10311 * Makefile.in (OBJS): Add substring-locations.o.
10312 * langhooks-def.h (class substring_loc): New forward decl.
10313 (lhd_get_substring_location): New decl.
10314 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
10315 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
10316 * langhooks.c (lhd_get_substring_location): New function.
10317 * langhooks.h (class substring_loc): New forward decl.
10318 (struct lang_hooks): Add field get_substring_location.
10319 * substring-locations.c: New file, taking definition of
10320 format_warning_va and format_warning_at_substring from
10321 c-family/c-format.c, making them non-static.
10322 * substring-locations.h (class substring_loc): Move class here
10323 from c-family/c-common.h. Add and rewrite comments.
10324 (format_warning_va): New decl.
10325 (format_warning_at_substring): New decl.
10326 (get_source_location_for_substring): Add comment.
10327
10328 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
10329
10330 * config/i386/i386.c: Add 'U' suffix to processor feature bits
10331 to avoid -Wnarrowing warning.
10332 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
10333 * opts.c: Likewise for SANITIZER_OPT bitmasks.
10334
10335 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
10336
10337 * config/aarch64/aarch64.c (aarch64_legitimize_address):
10338 Avoid use of base_offset if offset already in range.
10339
10340 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
10341
10342 * config/sh/sh-protos.h (struct sh_atomic_model,
10343 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10344 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10345 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
10346 * config/sh/sh.h (struct sh_atomic_model,
10347 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10348 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10349 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
10350 Guard with __cplusplus.
10351
10352 2016-09-06 Jakub Jelinek <jakub@redhat.com>
10353
10354 PR target/69255
10355 * config/i386/i386.c (ix86_expand_builtin): For builtin with
10356 unsupported or unknown ISA, use expand_call.
10357
10358 2016-09-06 Martin Liska <mliska@suse.cz>
10359
10360 PR gcov-profile/77378
10361 PR gcov-profile/77466
10362 * tree-profile.c (tree_profiling): Detect whether target can use
10363 -fprofile-update=atomic.
10364
10365 2016-09-06 Richard Biener <rguenther@suse.de>
10366
10367 PR tree-optimization/77479
10368 * tree-vrp.c (update_value_range): Extend overflow handling to
10369 VARYING.
10370
10371 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10372
10373 PR target/77476
10374 * config/i386/i386.md (isa): Add x64_avx512bw.
10375 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
10376 (kmov_isa): New mode attr.
10377 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
10378 (*zero_extend<mode>si2): Likewise.
10379 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
10380
10381 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
10382
10383 * doc/invoke.texi (SPU Options): nops -> NOPs.
10384 (x86 Options): Ditto.
10385
10386 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10387
10388 PR middle-end/77475
10389 * toplev.c (process_options): Temporarily set input_location
10390 to UNKNOWN_LOCATION around targetm.target_option.override () call.
10391
10392 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
10393
10394 PR rtl-optimization/77452
10395 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
10396 inner-mode reference to a CONST_VECTOR constant in the constant pool.
10397
10398 2016-09-05 Marek Polacek <polacek@redhat.com>
10399
10400 PR c/77423
10401 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
10402
10403 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10404
10405 PR other/77421
10406 * gensupport.c (alter_output_for_subst_insn): Remove redundant
10407 *insn_out == '*' test. Don't copy unnecessary to yet another
10408 memory buffer, and don't leak it.
10409
10410 PR rtl-optimization/77425
10411 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
10412
10413 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
10414
10415 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
10416
10417 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10418
10419 * common.opt (fdiagnostics-generate-patch): New option.
10420 * diagnostic.c: Include "edit-context.h".
10421 (diagnostic_initialize): Initialize context->edit_context_ptr.
10422 (diagnostic_finish): Delete context->edit_context_ptr.
10423 (diagnostic_report_diagnostic): Add fix-it hints from the
10424 diagnostic to context->edit_context_ptr, if any.
10425 * diagnostic.h (class edit_context): Add forward decl.
10426 (struct diagnostic_context): Add field "edit_context_ptr".
10427 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10428 -fdiagnostics-generate-patch.
10429 (-fdiagnostics-generate-patch): New item.
10430 * toplev.c: Include "edit-context.h".
10431 (process_options): Set global_dc->edit_context_ptr to a new
10432 edit_context if the options need one.
10433 (toplev::main): Handle -fdiagnostics-generate-patch by using
10434 global_dc->edit_context_ptr.
10435
10436 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10437
10438 PR c/65467
10439 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
10440 map and firstprivate clauses on target construct for _Atomic
10441 qualified decls.
10442 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
10443 on target construct for _Atomic qualified decls.
10444 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
10445 decls.
10446 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
10447 _Atomic qualified arguments not mentioned in uniform clause.
10448
10449 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10450
10451 * Makefile.in (OBJS-libcommon): Add edit-context.o.
10452 * diagnostic-color.c (color_dict): Add "diff-filename",
10453 "diff-hunk", "diff-delete", and "diff-insert".
10454 (parse_gcc_colors): Update default value of GCC_COLORS in comment
10455 to reflect above changes.
10456 * doc/invoke.texi (-fdiagnostics-color): Update description of
10457 default GCC_COLORS, and of the supported capabilities.
10458 * edit-context.c: New file.
10459 * edit-context.h: New file.
10460 * input.c (struct fcache): Add field "missing_trailing_newline".
10461 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
10462 true.
10463 (add_file_to_cache_tab): Likewise.
10464 (fcache::fcache): Likewise.
10465 (get_next_line): Update c->missing_trailing_newline.
10466 (location_missing_trailing_newline): New function.
10467 * input.h (location_missing_trailing_newline): New decl.
10468 * selftest-run-tests.c (selftest::run_tests): Call
10469 edit_context_c_tests.
10470 * selftest.h (edit_context_c_tests): New decl.
10471
10472 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10473 Richard Biener <rguenth@suse.de>
10474
10475 PR tree-optimization/77444
10476 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
10477 as steptype, remove redundant initialization.
10478
10479 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10480
10481 PR sanitizer/77396
10482 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
10483 (sanopt_optimize_walker): Optimize away
10484 __asan_before_dynamic_init (...) followed by
10485 __asan_after_dynamic_init () without intervening memory loads/stores.
10486 * ipa-pure-const.c (special_builtin_state): Handle
10487 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
10488 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
10489
10490 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10491
10492 * cfg.c (free_original_copy_tables): Replace second assignment of
10493 bb_copy = NULL by bb_original = NULL.
10494
10495 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10496
10497 PR other/77421
10498 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
10499 assignment added in r216794.
10500
10501 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10502
10503 * Makefile.in (OBJS): Add typed-splay-tree.o.
10504 * selftest-run-tests.c (selftest::run_tests): Call
10505 typed_splay_tree_c_tests.
10506 * selftest.h (typed_splay_tree_c_tests): New decl.
10507 * typed-splay-tree.c: New file.
10508 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
10509 (typed_splay_tree::max): New method.
10510 (typed_splay_tree::min): New method.
10511 (typed_splay_tree::foreach): New method.
10512 (typed_splay_tree::closure): New struct.
10513 (typed_splay_tree::inner_foreach_fn): New function.
10514
10515 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10516
10517 * ipa-cp.c (ipcp_store_bits_results): Change option name from
10518 -fipa-cp-bit to -fipa-bit-cp.
10519
10520 2016-09-01 Martin Sebor <msebor@redhat.com>
10521
10522 PR tree-optimization/71831
10523 * tree-object-size.h: Return bool instead of the size and add
10524 argument for the size.
10525 * tree-object-size.c (compute_object_offset): Update signature.
10526 (addr_object_size): Same.
10527 (compute_builtin_object_size): Return bool instead of the size
10528 and add argument for the size. Handle POINTER_PLUS_EXPR when
10529 optimization is disabled.
10530 (expr_object_size): Adjust.
10531 (plus_stmt_object_size): Adjust.
10532 (pass_object_sizes::execute): Adjust.
10533 * builtins.c (fold_builtin_object_size): Adjust.
10534 * doc/extend.texi (Object Size Checking): Update.
10535 * ubsan.c (instrument_object_size): Adjust.
10536
10537 2016-09-01 Martin Sebor <msebor@redhat.com>
10538
10539 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
10540 it fits the output of the formatted function regardless of its
10541 arguments.
10542 * genmodes.c (parser::parse_expr): Same.
10543 * gimplify.c (gimplify_asm_expr): Same.
10544 * passes.c (pass_manager::register_one_dump_file): Same.
10545 * print-tree.c (print_node): Same.
10546
10547 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10548
10549 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
10550
10551 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10552
10553 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
10554
10555 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10556
10557 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
10558 * config/rs6000/vector.md: Ditto.
10559 * config/rs6000/vsx.md: Ditto.
10560
10561 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10562
10563 * ipa-inline-analysis.c (param_change_prob): Get to the base object
10564 first in all cases.
10565
10566 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10567
10568 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
10569 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
10570 *return_and_restore_gpregs_<mode>_r11,
10571 *return_and_restore_gpregs_<mode>_r12,
10572 *return_and_restore_gpregs_<mode>_r1,
10573 *return_and_restore_fpregs_<mode>_r11,
10574 *return_and_restore_fpregs_<mode>_r12,
10575 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
10576 directly instead of via the "l" constraint. Renumber operands.
10577 Fix whitespace.
10578
10579 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10580
10581 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
10582 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
10583 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
10584 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
10585 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
10586 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
10587 *call_value_nonlocal_darwin64, reload_macho_picbase,
10588 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
10589 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
10590 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
10591 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
10592 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
10593 *save_fpregs_<mode>_r1): Ditto.
10594 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
10595 *return_and_restore_gpregs_spe): Ditto.
10596
10597 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10598
10599 * config/rs6000/rs6000.md
10600 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
10601 the use of the link register.
10602 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
10603
10604 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10605 Michael Meissner <meissner@linux.vnet.ibm.com>
10606
10607 PR target/72827
10608 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
10609 reg+reg addressing for TImode.
10610 (rs6000_legitimate_address_p): Only allow register indirect
10611 addressing for TImode, even without TARGET_QUAD_MEMORY.
10612
10613 2016-09-01 Richard Biener <rguenther@suse.de>
10614
10615 PR middle-end/77436
10616 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
10617 check whether the result fits the desired result type.
10618
10619 2016-09-01 Nathan Sidwell <nathan@acm.org>
10620
10621 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
10622
10623 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
10624
10625 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
10626 New function.
10627 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
10628
10629 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10630
10631 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
10632 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
10633 for comparisons of integer ZERO_EXTEND against zero.
10634
10635 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10636
10637 * config/i386/i386.c (ix86_option_override_internal): Also disable the
10638 STV pass if -mstackrealign is enabled.
10639
10640 2016-08-31 Ilya Verbin <iverbin@gmail.com>
10641
10642 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
10643 AVX512IFMA.
10644
10645 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10646
10647 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
10648 (layout_range::intersects_line_p): New method.
10649 (test_range_contains_point_for_single_point): Rename to...
10650 (test_layout_range_for_single_point): ...this, and add testing
10651 for layout_range::intersects_line_p.
10652 (test_range_contains_point_for_single_line): Rename to...
10653 (test_layout_range_for_single_line): ...this, and add testing
10654 for layout_range::intersects_line_p.
10655 (test_range_contains_point_for_multiple_lines): Rename to...
10656 (test_layout_range_for_multiple_lines): ...this, and add testing
10657 for layout_range::intersects_line_p.
10658 (layout::layout): Populate m_fixit_hints.
10659 (layout::get_expanded_location): Handle the case of a line-span
10660 for a fix-it hint.
10661 (layout::validate_fixit_hint_p): New method.
10662 (get_line_span_for_fixit_hint): New function.
10663 (layout::calculate_line_spans): Add spans for fixit-hints.
10664 (layout::should_print_annotation_line_p): New method.
10665 (layout::print_any_fixits): Drop param "richloc", instead using
10666 validated fixits in m_fixit_hints. Add "const" to hint pointers.
10667 (diagnostic_show_locus): Avoid printing blank annotation lines.
10668 (selftest::test_diagnostic_context::test_diagnostic_context):
10669 Initialize show_column and start_span.
10670 (selftest::test_diagnostic_context::start_span_cb): New static
10671 function.
10672 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10673 (selftest::diagnostic_show_locus_c_tests): Update for function
10674 renamings. Call test_diagnostic_show_locus_fixit_lines.
10675
10676 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10677
10678 PR tree-optimization/73714
10679 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10680
10681 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10682
10683 * selftest.c: Move "namespace selftest {" to top of file,
10684 removing explicit "selftest::" qualifiers throughout.
10685
10686 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10687
10688 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10689 New types.
10690 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10691 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10692 Replace builtin with vector extension.
10693 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10694 New types.
10695 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10696 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10697 Replace builtin with vector extension.
10698 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10699 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10700 Replace builtin with vector extension.
10701 * config/i386/xmmintrin.h (__m128_u): New type.
10702 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10703 (_mm_load_ps, _mm_store_ps): Simplify.
10704
10705 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
10706
10707 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10708
10709 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10710
10711 * diagnostic-show-locus.c (colorizer::begin_state): Support more
10712 than 3 ranges per diagnostic by alternating between color 1 and
10713 color 2.
10714 (layout::layout): Replace use of rich_location::MAX_RANGES
10715 with richloc->get_num_locations ().
10716 (layout::calculate_line_spans): Replace use of
10717 rich_location::MAX_RANGES with m_layout_ranges.length ().
10718 (layout::print_annotation_line): Handle arbitrary numbers of
10719 ranges in caret-printing by defaulting to '^'.
10720 (selftest::test_one_liner_many_fixits): New function.
10721 (test_diagnostic_show_locus_one_liner): Call it.
10722 * diagnostic.c (diagnostic_initialize): Update for renaming
10723 of rich_location::MAX_RANGES to
10724 rich_location::STATICALLY_ALLOCATED_RANGES.
10725 * diagnostic.h (struct diagnostic_context): Likewise.
10726
10727 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10728
10729 * selftest.c (selftest::named_temp_file::named_temp_file): New
10730 ctor.
10731 (selftest::temp_source_file::~temp_source_file): Move to...
10732 (selftest::named_temp_file::~named_temp_file): ...here.
10733 (selftest::test_named_temp_file): New function.
10734 (selftest::selftest_c_tests): Call test_named_temp_file.
10735 * selftest.h (class named_temp_file): New class.
10736 (class temp_source_file): Convert to a subclass of named_temp_file.
10737
10738 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
10739
10740 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10741 USEs of LR_REGNO in returns and sibcalls.
10742 (rs6000_output_mi_thunk): Similar.
10743 (rs6000_sibcall_aix): Similar.
10744 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10745 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10746 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10747 Remove the USE of LR_REGNO from the patterns as well. Delete an
10748 obsolete comment.
10749 (return_internal_<mode>): Delete.
10750
10751 2016-08-30 Tamar Christina <tamar.christina@arm.com>
10752
10753 * config/aarch64/aarch64-simd.md
10754 (aarch64_ld2<mode>_dreg_le): New.
10755 (aarch64_ld2<mode>_dreg_be): New.
10756 (aarch64_ld2<mode>_dreg): Removed.
10757 (aarch64_ld3<mode>_dreg_le): New.
10758 (aarch64_ld3<mode>_dreg_be): New.
10759 (aarch64_ld3<mode>_dreg): Removed.
10760 (aarch64_ld4<mode>_dreg_le): New.
10761 (aarch64_ld4<mode>_dreg_be): New.
10762 (aarch64_ld4<mode>_dreg): Removed.
10763 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10764
10765 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10766
10767 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10768 redundant location param.
10769 (test_one_liner_fixit_remove): Likewise.
10770 (test_one_liner_fixit_replace): Likewise.
10771 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10772 * gcc-rich-location.c
10773 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10774 get_range_from_loc. Drop overload taking a const char *.
10775 * gcc-rich-location.h
10776 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10777 a const char *.
10778
10779 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10780
10781 * config/linux.c (linux_libc_has_function): Return true on musl.
10782
10783 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10784
10785 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10786
10787 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
10788
10789 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10790 used for abnormal egdes.
10791
10792 2016-08-30 Jakub Jelinek <jakub@redhat.com>
10793
10794 PR tree-optimization/72866
10795 * tree-vect-patterns.c (search_type_for_mask): Turn into
10796 a small wrapper, move all code to ...
10797 (search_type_for_mask_1): ... this new function. Add caching
10798 and adjust recursive calls.
10799
10800 PR debug/77363
10801 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10802 instead of lookup_type_die (type_main_variant (type)) even for array
10803 types.
10804
10805 PR middle-end/77377
10806 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10807 constant pool reference return x instead of c.
10808
10809 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
10810
10811 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10812 include MQ.
10813
10814 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10815
10816 * input.c
10817 (selftest::test_make_location_nonpure_range_endpoints): Fix
10818 header comment.
10819
10820 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10821
10822 * diagnostic-show-locus.c
10823 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10824 function.
10825 (selftest::test_diagnostic_show_locus_one_liner): Call it.
10826 * input.c (get_pure_location): Move to libcpp/line-map.c.
10827 * input.h (get_pure_location): Convert decl to an inline function
10828 calling implementation in libcpp.
10829
10830 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
10831
10832 PR target/77403
10833 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10834 template for intel asm dialect.
10835 (vec_set_hi_<mode><mask_name>): Ditto.
10836
10837 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10838
10839 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10840 (selftest::fail_formatted): Likewise.
10841
10842 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10843
10844 * input.c (make_location): Call get_start and get_finish
10845 on the endpoints to avoid storing packed ranges or ad-hoc
10846 ranges in them.
10847 (selftest::test_make_location_nonpure_range_endpoints): New function.
10848 (selftest::input_c_tests): Call it.
10849 * input.h (get_start): New inline function.
10850
10851 2016-08-29 Tom de Vries <tom@codesourcery.com>
10852
10853 PR c/77398
10854 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10855 with assert.
10856
10857 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
10858
10859 * Makefile.in (gcov-iov.h): Add dummy recipe.
10860
10861 2016-08-29 Nathan Sidwell <nathan@acm.org>
10862
10863 * config/nvptx/nvptx.c: #include tree-vrp.h.
10864
10865 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
10866
10867 PR target/77324
10868 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10869 HIGH+LO construct during reload.
10870
10871 2016-08-28 Tom de Vries <tom@codesourcery.com>
10872
10873 PR lto/70955
10874 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10875 'sysv_abi va_list' attribute.
10876 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10877 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10878 attributes.
10879
10880 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10881
10882 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10883 * emit-rtl.c (unshare_all_rtl_1): Adjust.
10884 (unshare_all_rtl_again): Likewise.
10885 * function.c (assign_stack_local_1): Likewise.
10886 (assign_stack_temp_for_type): Likewise.
10887
10888 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10889
10890 * cfgbuild.c (make_edges): Adjust.
10891 * cfgrtl.c (can_delete_label_p): Likewise.
10892 * dwarf2cfi.c (create_trace_edges): Likewise.
10893 * except.c (sjlj_emit_dispatch_table): Likewise.
10894 * function.h (struct expr_status): make x_forced_labels a vector.
10895 * jump.c (rebuild_jump_labels_1): Adjust.
10896 * reload1.c (set_initial_label_offsets): Likewise.
10897 * stmt.c (force_label_rtx): Likewise.
10898 (expand_label): Likewise.
10899
10900 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10901
10902 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10903
10904 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
10905
10906 PR tree-optimization/71077
10907 PR tree-optimization/68542
10908 * fold-const.c (fold_relational_const): Fix folding of
10909 VECTOR_CST comparisons that have a scalar boolean result type.
10910 (selftest::test_vector_folding): New static function.
10911 (selftest::fold_const_c_tests): Call it.
10912
10913 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
10914
10915 * doc/extend.texi (SPU Built-in Functions): Remove stale
10916 references to material formerly at IBM and Sony.
10917
10918 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
10919
10920 PR target/77349
10921 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10922
10923 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10924
10925 * diagnostic-show-locus.c
10926 (selftest::test_fixit_consolidation): New function.
10927 (selftest::diagnostic_show_locus_c_tests): Call it.
10928 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10929 constructor based on source_range.
10930
10931 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10932
10933 * diagnostic-color.c (color_dict): Add "fixit-insert" and
10934 "fixit-delete".
10935 (parse_gcc_colors): Update description of default GCC_COLORS.
10936 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10937 (colorizer::set_fixit_insert): New method.
10938 (colorizer::set_fixit_delete): New method.
10939 (colorizer::get_color_by_name): New method.
10940 (colorizer::STATE_FIXIT_INSERT): New constant.
10941 (colorizer::STATE_FIXIT_DELETE): New constant.
10942 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
10943 fields in favor of new field "m_stop_color". Add fields
10944 "m_fixit_insert" and "m_fixit_delete".
10945 (colorizer::colorizer): Update for above changes. Replace
10946 colorize_start calls with calls to get_color_by_name.
10947 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10948 STATE_FIXIT_DELETE. Update for field renamings.
10949 (colorizer::finish_state): Simplify by using m_stop_color,
10950 rather than multiple identical "*_ce" fields.
10951 (colorizer::get_color_by_name): New method.
10952 (layout::print_any_fixits): Print insertions and replacements
10953 using the "fixit-insert" color, and deletions using the
10954 "fixit-delete" color.
10955 * doc/invoke.texi (-fdiagnostics-color): Update description of
10956 default GCC_COLORS, and of the supported capabilities.
10957
10958 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
10959
10960 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10961 current_function_static_stack_size variable with the static
10962 stack frame size of the current function when
10963 flag_stack_usage_info is enabled.
10964
10965 2016-08-26 Nathan Sidwell <nathan@acm.org>
10966
10967 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10968 assignment inside if condition.
10969
10970 2016-08-26 Richard Biener <rguenther@suse.de>
10971
10972 PR tree-optimization/69047
10973 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
10974 extracts similar to what FRE does.
10975 (non_rewritable_mem_ref_base): Likewise.
10976
10977 2016-08-26 Joseph Myers <joseph@codesourcery.com>
10978
10979 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
10980 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10981 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10982 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10983 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
10984 Likewise.
10985 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10986 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10987 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10988 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
10989 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10990
10991 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10992
10993 PR target/70473
10994 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
10995 reservation duration to 15 cycles.
10996 (cortex_a8_vfp_macs): Likewise.
10997 (cortex_a8_vfp_macd): Likewise.
10998 (cortex_a8_vfp_divs): Likewise.
10999 (cortex_a8_vfp_divd): Likewise.
11000
11001 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11002
11003 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
11004 (aarch_macro_fusion_pair_p): Use above to avoid early return.
11005
11006 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11007 Martin Jambhor <mjambor@suse.cz>
11008
11009 * common.opt: New option -fipa-bit-cp.
11010 * doc/invoke.texi: Document -fipa-bit-cp.
11011 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
11012 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
11013 * tree-ssa-ccp.h: New header file.
11014 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
11015 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
11016 Replace all occurences of tree parameter by two new params: signop, int.
11017 (bit_value_unop_1): Change to bit_value_unop and export it.
11018 Replace all occurences of tree parameter by two new params: signop,
11019 int.
11020 (bit_value_binop): Change call from bit_value_binop_1 to
11021 bit_value_binop.
11022 (bit_value_assume_aligned): Likewise.
11023 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
11024 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
11025 to ccp_finalize.
11026 (ccp_finalize): Skip processing if val->mask == 0.
11027 * ipa-cp.c: Include tree-ssa-ccp.h
11028 (ipcp_bits_lattice): New class.
11029 (ipcp_param_lattice (bits_lattice): New member.
11030 (print_all_lattices): Call ipcp_bits_lattice::print.
11031 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
11032 (initialize_node_lattices): Likewise.
11033 (propagate_bits_accross_jump_function): New function.
11034 (propagate_constants_accross_call): Call
11035 propagate_bits_accross_jump_function.
11036 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
11037 (ipcp_store_bits_results): New function.
11038 (ipcp_driver): Call ipcp_store_bits_results.
11039 * ipa-prop.h (ipa_bits): New struct.
11040 (ipa_jump_func): Add new member bits of type ipa_bits.
11041 (ipa_param_descriptor): Change decl to decl_or_type.
11042 (ipa_get_param): Change decl to decl_or_type and assert on
11043 PARM_DECL.
11044 (ipa_get_type): New function.
11045 (ipcp_transformation_summary): New member bits.
11046 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
11047 (ipa_populate_param_decls): Likewise.
11048 (ipa_dump_param): Likewise.
11049 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
11050 function.
11051 (ipa_set_jf_unknown): Set ipa_bits::known to false.
11052 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
11053 propagation.
11054 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
11055 (ipa_write_jump_function): Add streaming for ipa_bits.
11056 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
11057 (write_ipcp_transformation_info): Add streaming for ipa_bits
11058 summary for ltrans.
11059 (read_ipcp_transfomration_info): Add support for reading streamed
11060 ipa_bits.
11061 (ipcp_update_bits): New function.
11062 (ipcp_transform_function): Call ipcp_update_bits.
11063
11064 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
11065
11066 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
11067 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
11068
11069 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
11070
11071 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
11072
11073 2016-08-25 Richard Biener <rguenther@suse.de>
11074
11075 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
11076 Only add locations in late dwarf.
11077 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
11078 (dwarf2out_early_finish): But do it here.
11079
11080 2016-08-24 Michael Collison <michael.collison@linaro.org>
11081 Michael Collison <michael.collison@arm.com>
11082
11083 * config/arm/arm-modes.def: Add new condition code mode CC_V
11084 to represent the overflow bit.
11085 * config/arm/arm.c (maybe_get_arm_condition_code):
11086 Add support for CC_Vmode.
11087 (arm_gen_unlikely_cbranch): New function to generate common
11088 rtl conditional branches for overflow patterns.
11089 * config/arm/arm-protos.h: Add prototype for
11090 arm_gen_unlikely_cbranch.
11091 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
11092 addsi3_compareV_upper): New patterns to support signed
11093 builtin overflow add operations.
11094 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
11095 New patterns to support unsigned builtin add overflow operations.
11096 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
11097 builtin overflow subtract operations,
11098 (usubv<mode>4): New patterns to support unsigned builtin subtract
11099 overflow operations.
11100 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
11101 to support builtin overflow negate operations.
11102
11103 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11104
11105 Revert
11106 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11107
11108 * explow.c (get_dynamic_stack_size): Take known alignment of stack
11109 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11110 needed.
11111
11112 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11113
11114 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
11115 MULTILIB_OPTIONS should be used. Small wording fixes.
11116 * genmultilib: Memorize set of all option combinations in
11117 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
11118 found in MULTILIB_OPTIONS by checking if option set is listed in
11119 combination_space. Output new and existing error message to stderr.
11120
11121 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11122
11123 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
11124 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
11125 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
11126 (MULTILIB_REUSE): Remove reuse rules for option set including
11127 -mfpu=fp-armv8 and -mfpu=vfpv4
11128
11129 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
11130
11131 * config/arm/t-rtems: Add vfp multilib.
11132
11133 2016-08-23 Ian Lance Taylor <iant@golang.org>
11134
11135 * config/s390/s390.c (s390_asm_file_start): Call
11136 default_file_start.
11137
11138 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11139
11140 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
11141 initialization of all 0's to the 0 constant, instead of directly
11142 generating XOR. Add support for V4SImode vector initialization on
11143 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
11144 initialization. Change variables used in V4SFmode vector
11145 intialization. For V4SFmode vector splat on ISA 3.0, make sure
11146 any memory addresses are in index form. Add support for using
11147 VSPLTH/VSPLTB to initialize vector short and vector char vectors
11148 with all of the same element.
11149 (regno_or_subregno): New helper function to return a register
11150 number for either REG or SUBREG.
11151 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
11152 Use regno_or_subregno where possible.
11153 (rs6000_split_v4si_init_di_reg): New helper function to build up a
11154 DImode value from two SImode values in order to generate V4SImode
11155 vector initialization on 64-bit systems with direct move.
11156 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
11157 initialization.
11158 (rtx_is_swappable_p): V4SImode vector initialization insn is not
11159 swappable.
11160 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
11161 declaration.
11162 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
11163 attributes to initialize V8HImode and V16QImode vectors with the
11164 same element.
11165 (VSX_SPLAT_COUNT): Likewise.
11166 (VSX_SPLAT_SUFFIX): Likewise.
11167 (UNSPEC_VSX_VEC_INIT): New unspec.
11168 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
11169 Allow SFmode values to come from Altivec registers.
11170 (vsx_init_v4si): New insn/split for V4SImode vector initialization
11171 on 64-bit systems with direct move.
11172 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
11173 vector initializations, to allow V4SImode vector initializations
11174 on 64-bit systems with direct move.
11175 (vsx_splat_v4si): Likewise.
11176 (vsx_splat_v4si_di): Likewise.
11177 (vsx_splat_v4sf): Likewise.
11178 (vsx_splat_v4sf_internal): Likewise.
11179 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
11180 register classes.
11181 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
11182 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
11183 initializing V8HImode and V16QImode vectors with the same
11184 element.
11185 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
11186 optimization if -maltivec=be.
11187
11188 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
11189
11190 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
11191 attribute for alternatives 3 and 4.
11192
11193 2016-08-23 David Malcolm <dmalcolm@redhat.com>
11194
11195 * selftest.c (selftest::assert_str_contains): New function.
11196 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
11197 * selftest.h (selftest::assert_str_contains): New decl.
11198 (ASSERT_STR_CONTAINS): New macro.
11199
11200 2016-08-23 Richard Biener <rguenther@suse.de>
11201
11202 PR tree-optimization/77286
11203 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
11204 the CFG here.
11205 (vect_transform_loop): Split exit edges of loop and scalar
11206 loop if required and at the appropriate time.
11207
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 Correct a typo in a comment.
11214
11215 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11216
11217 * config/s390/s390.md ("*andc_split"): New splitter for and with
11218 complement.
11219
11220 2016-08-23 Richard Biener <rguenther@suse.de>
11221
11222 PR tree-optimization/27336
11223 * tree-vrp.c (infer_value_range): Handle stmts that can throw
11224 by looking for a non-EH edge.
11225 (process_assert_insertions_for): Likewise.
11226
11227 2016-08-23 Richard Biener <rguenther@suse.de>
11228
11229 PR middle-end/77305
11230 * statistics.c (statistics_counter_event): Robustify against
11231 NULL current_pass.
11232
11233 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11234
11235 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
11236 for targets amdfam10 and barcelona.
11237
11238 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
11239
11240 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
11241 (zero_extend<mode>di2): Ditto.
11242 (*zero_extend<mode>si2): Ditto.
11243 (*zero_extendqihi2): Ditto.
11244
11245 2016-08-22 Joseph Myers <joseph@codesourcery.com>
11246
11247 PR middle-end/77269
11248 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
11249 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
11250
11251 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
11252
11253 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
11254 identical consecutive elements.
11255 [SSA_NAME]: Print the name's def stmt on its own line. When printing
11256 the node's def stmt, avoid printing an unwanted trailing newline by
11257 replacing the call to print_gimple_stmt() with its inlined body and
11258 adjusting it to not set pp_needs_newline and to call pp_flush()
11259 instead of pp_newline_and_flush().
11260
11261 2016-08-22 Joseph Myers <joseph@codesourcery.com>
11262
11263 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
11264 (float32_type_node, float64_type_node, float32x_type_node)
11265 (float128x_type_node): New macros.
11266 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
11267 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
11268 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
11269 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
11270 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
11271 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
11272 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
11273 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
11274 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
11275 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
11276 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
11277 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
11278 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
11279 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
11280 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
11281 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
11282 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
11283 (copysign, fabs, huge_val, inf, nan, nans): Use it.
11284 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
11285 and copysign.
11286 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
11287 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
11288 * doc/extend.texi (Other Builtins): Document these built-in
11289 functions.
11290 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
11291 for nan and nans.
11292
11293 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
11294
11295 * doc/install.texi (Binaries): www.opencsw.org now uses https.
11296
11297 2016-08-22 Richard Biener <rguenther@suse.de>
11298
11299 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
11300
11301 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
11302
11303 PR target/77270
11304 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
11305 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
11306 non-SSE2 athlons only, otherwise prefer SSE prefetches.
11307
11308 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11309
11310 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
11311 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
11312 (vrp_visit_switch_stmt): Likewise.
11313 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
11314 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
11315 (vrp_visit_stmt): Use extract_range_from_stmt.
11316 (vrp_visit_phi_node): Use extract_range_from_phi_node.
11317
11318 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11319
11320 * Makefile.in: Add tree-vrp.h to GTFILES.
11321 * gengtype.c (open_base_files): Add tree-vrp.h.
11322 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
11323 * builtins.c: Likewise.
11324 * fold-const.c: Likewise.
11325 * gimple-builder.c: Likewise.
11326 * gimple-laddress.c: Likewise.
11327 * hsa-gen.c: Likewise.
11328 * internal-fn.c: Likewise.
11329 * ssa.h: Likewise.
11330 * targhooks.c: Liewise,
11331 * tree-ssa-address.c: Likewise.
11332 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
11333 * tree-vrp.c (struct value_range): Move to tree-vrp.h
11334 * tree-vrp.h: New file.
11335
11336 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11337
11338 PR tree-optimization/61839
11339 * tree-vrp.c (two_valued_val_range_p): New.
11340 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
11341 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
11342 Also Convert VAR BINOP CST where VAR is two-valued to
11343 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
11344
11345 2016-08-19 David Malcolm <dmalcolm@redhat.com>
11346
11347 * diagnostic-show-locus.c
11348 (layout::annotation_line_showed_range_p): New method.
11349 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
11350 Reimplement case fixit_hint::REPLACE to cover removals, and
11351 replacements where the range of the replacement isn't one
11352 of the ranges in the rich_location.
11353 (test_one_liner_fixit_replace): Likewise.
11354 (selftest::test_one_liner_fixit_replace_non_equal_range): New
11355 function.
11356 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
11357 New function.
11358 (selftest::test_diagnostic_show_locus_one_liner): Call the new
11359 functions.
11360 * diagnostic.c (print_parseable_fixits): Remove case
11361 fixit_hint::REMOVE.
11362
11363 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
11364
11365 PR target/77270
11366 * config/i386/i386.c (ix86_option_override_internal): Remove
11367 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
11368 Enable SSE prefetch also for TARGET_PREFETCHWT1.
11369 Do not try to enable TARGET_PRFCHW ISA flag here.
11370 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
11371 Rewrite expander function body.
11372 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
11373
11374 2016-08-19 Joseph Myers <joseph@codesourcery.com>
11375
11376 PR c/32187
11377 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
11378 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
11379 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
11380 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
11381 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
11382 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
11383 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
11384 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
11385 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
11386 tree_index values.
11387 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
11388 macros.
11389 (struct floatn_type_info): New structure type.
11390 (floatn_nx_types): New variable declaration.
11391 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
11392 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
11393 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
11394 * tree.c (floatn_nx_types): New variable.
11395 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
11396 corresponding complex types.
11397 * target.def (floatn_mode): New hook.
11398 * targhooks.c: Include "real.h".
11399 (default_floatn_mode): New function.
11400 * targhooks.h (default_floatn_mode): New prototype.
11401 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
11402 types.
11403 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
11404 effective-target and dg-add-options keywords.
11405 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
11406 Document new effective-target keywords.
11407 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
11408 * doc/tm.texi: Regenerate.
11409 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
11410 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
11411 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
11412 18661-3.
11413 * real.h (struct real_format): Add field ieee_bits.
11414 * real.c (ieee_single_format, mips_single_format)
11415 (motorola_single_format, spu_single_format, ieee_double_format)
11416 (mips_double_format, motorola_double_format)
11417 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
11418 (ieee_extended_intel_128_format)
11419 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
11420 (mips_extended_format, ieee_quad_format, mips_quad_format)
11421 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
11422 (decimal_double_format, decimal_quad_format, ieee_half_format)
11423 (arm_half_format, real_internal_format: Initialize ieee_bits
11424 field.
11425 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
11426 float128_type_node. Set float80_type_node to float64x_type_node
11427 if appropriate and long_double_type_node not appropriate.
11428 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
11429 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
11430 Initialize ieee_bits field.
11431 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
11432 (rs6000_init_builtins): Set ieee128_float_type_node to
11433 float128_type_node.
11434 (rs6000_floatn_mode): New function.
11435
11436 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11437
11438 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
11439 _rdseed64_step): Uglify argument names and/or local variable names
11440 in inline functions.
11441 * config/i386/rtmintrin.h (_xabort): Likewise.
11442 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
11443 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
11444 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
11445 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
11446 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
11447 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
11448 _mm_maskz_ternarylogic_epi32): Likewise.
11449 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
11450 __lwpins32, __lwpins64): Likewise.
11451 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
11452 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
11453 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
11454 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
11455 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
11456 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
11457 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
11458 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
11459 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
11460 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
11461 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
11462 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
11463 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
11464 _mm256_mask_i64gather_epi32): Likewise.
11465 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11466 * config/i386/ia32intrin.h (__writeeflags): Likewise.
11467 * config/i386/pkuintrin.h (_wrpkru): Likewise.
11468 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
11469 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
11470 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
11471 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
11472 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
11473 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
11474 _mm512_mask_prefetch_i64scatter_ps): Likewise.
11475 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11476 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
11477 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
11478 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
11479 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
11480 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
11481 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
11482 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
11483
11484 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
11485 returning void.
11486 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
11487 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
11488 Likewise.
11489 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
11490 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
11491 function name.
11492 (_rdpkru_u32): Add space after function name.
11493
11494 * config/i386/t-i386 (i386-c.o): Don't depend on
11495 i386-builtin-types.inc.
11496 (i386.o): Depend on i386-builtin-types.inc.
11497
11498 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
11499
11500 PR target/77281
11501 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
11502 Use const_vec_duplicate to check for duplicated elements.
11503
11504 2016-08-19 Richard Biener <rguenther@suse.de>
11505
11506 PR tree-optimization/77290
11507 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11508 Fix flag_tree_parallelize_loops check.
11509
11510 2016-08-19 Richard Biener <rguenther@suse.de>
11511
11512 * match.pd (x | 0 -> x): Add.
11513
11514 2016-08-19 Richard Biener <rguenther@suse.de>
11515
11516 PR tree-optimization/77286
11517 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11518 Deal with virtual PHIs being out-of-order.
11519
11520 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11521
11522 * doc/invoke.texi (fverbose-asm): Note that source code lines
11523 are emitted, and provide an example.
11524 * final.c (asm_show_source): New function.
11525 (final_scan_insn): Call asm_show_source.
11526
11527 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11528
11529 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
11530 param with diagnostic_kind.
11531 (class colorizer): Similarly replace field m_diagnostic with
11532 m_diagnostic_kind.
11533 (colorizer::colorizer): Replace diagnostic
11534 param with diagnostic_kind.
11535 (colorizer::begin_state): Update for above field change.
11536 (layout::layout): Replace diagnostic param with rich_location *
11537 and diagnostic_kind.
11538 (diagnostic_show_locus): Replace diagnostic param with richloc
11539 and diagnostic_kind.
11540 (class selftest::test_diagnostic_context): New class.
11541 (selftest::test_diagnostic_show_locus_unknown_location): New
11542 function.
11543 (selftest::test_one_liner_simple_caret): New function.
11544 (selftest::test_one_liner_caret_and_range): New function.
11545 (selftest::test_one_liner_multiple_carets_and_ranges): New
11546 function.
11547 (selftest::test_one_liner_fixit_remove): New function.
11548 (selftest::test_one_liner_fixit_replace): New function.
11549 (selftest::test_diagnostic_show_locus_one_liner): New function.
11550 (selftest::diagnostic_show_locus_c_tests): Call the new test
11551 functions.
11552 * diagnostic.c (diagnostic_initialize): Initialize
11553 colorize_source_p, show_ruler_p and parseable_fixits_p.
11554 (default_diagnostic_finalizer): Update for change to
11555 diagnostic_show_locus.
11556 (diagnostic_append_note): Likewise.
11557 * diagnostic.h (diagnostic_show_locus): Replace
11558 const diagnostic_info * param with location * and diagnostic_t.
11559
11560 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11561
11562 * input.c (saved_line_table): New global.
11563 (class selftest::temp_line_table): Rename to line_table_test and
11564 move declaration to selftest.h, and drop field m_old_line_table.
11565 (selftest::temp_line_table::temp_line_table): Rename ctor to...
11566 (selftest::line_table_test::line_table_test): ...this. Add a
11567 default ctor. Store current value of line_table within
11568 saved_line_table.
11569 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
11570 (selftest::line_table_test::~line_table_test): ...this, and
11571 restore line_table from the saved_line_table, rather than
11572 m_old_line_table.
11573 (selftest::test_accessing_ordinary_linemaps): Update for above
11574 renaming.
11575 (selftest::test_lexer): Likewise.
11576 (struct selftest::lexer_test): Likewise.
11577 (selftest::lexer_test::lexer_test): Likewise.
11578 (selftest::input_c_tests): Move the looping over test cases from
11579 here into...
11580 (selftest::for_each_line_table_case): New function.
11581 * input.h (saved_line_table): New decl.
11582 * selftest.h (struct selftest::line_table_case): New forward decl.
11583 (class selftest::line_table_test): New class, moved here from
11584 selftest::temp_line_table in input.c, and renamed.
11585 (selftest::for_each_line_table_case): New decl.
11586
11587 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
11588
11589 PR target/72839
11590 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
11591
11592 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11593
11594 PR middle-end/70895
11595 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
11596 enclosing parallel construct for reduction variables on OpenACC loop
11597 directives.
11598
11599 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
11600
11601 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
11602 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
11603 -gdwarf-3.
11604 (function_to_dwarf_procedure): Update comment.
11605
11606 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11607
11608 * input.c (diagnostics_file_cache_forcibly_evict_file): New
11609 function.
11610 * input.h (diagnostics_file_cache_forcibly_evict_file): New
11611 declaration.
11612 * selftest.c (selftest::temp_source_file::~temp_source_file):
11613 Evict m_filename from the diagnostic file cache.
11614
11615 2016-08-18 Richard Biener <rguenther@suse.de>
11616
11617 * tree-pass.h (make_pass_materialize_all_clones): Declare.
11618 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
11619 make_pass_materialize_all_clones): New simple IPA pass encapsulating
11620 clone materialization.
11621 * passes.def (all_late_ipa_passes): Start with
11622 pass_materialize_all_clones.
11623 * cgraphunit.c (symbol_table::compile): Remove call to
11624 materialize_all_clones.
11625 * tree-into-ssa.c: Include statistics.h.
11626 (update_ssa): Count number of times we do incremental/rewrite
11627 SSA update.
11628
11629 2016-08-18 Richard Biener <rguenther@suse.de>
11630
11631 PR tree-optimization/77282
11632 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11633 When doing auto-parallelizing also prevent use of PHIs that
11634 carry dependences across loop backedges.
11635
11636 2016-08-18 Tamar Christina <tamar.christina@arm.com>
11637 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11638
11639 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
11640
11641 2016-08-18 Richard Biener <rguenther@suse.de>
11642
11643 * ssa-iterators.h (ssa_vuse_operand): New inline.
11644 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
11645 (predicate_all_scalar_phis): Use remove_phi_node to remove
11646 phi nodes predicated. Delay removing virtual PHIs.
11647 (predicate_mem_writes): Update virtual operands.
11648 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
11649 (tree_if_conversion): Do not rewrite virtual SSA form.
11650 * tree-phinodes.c (release_phi_node): Make static.
11651 * tree-phinodes.h (release_phi_node): Remove.
11652
11653 2016-08-18 Jakub Jelinek <jakub@redhat.com>
11654
11655 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
11656 codes that appear in bdesc_* arrays, instead include i386-builtin.def
11657 twice to define those.
11658 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
11659 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
11660 bdesc_multi_arg): Define by including i386-builtin.def the third time.
11661 * config/i386/i386-builtin.def: New file.
11662
11663 2016-08-17 David Malcolm <dmalcolm@redhat.com>
11664
11665 * input.c (get_source_range_for_char): Rename to...
11666 (selftest::get_source_range_for_char): ...this, and move within
11667 the #if CHECKING_P guard.
11668 (get_num_source_ranges_for_substring): Rename to...
11669 (selftest::get_num_source_ranges_for_substring): ...this, move
11670 within the #if CHECKING_P guard, and make static.
11671 (selftest::assert_num_substring_ranges): Initialize
11672 actual_num_ranges.
11673
11674 2016-08-18 Alan Modra <amodra@gmail.com>
11675
11676 PR rtl-optimization/72771
11677 * reload.c (find_reloads): Don't assume that a subreg mem is OK
11678 when find_reloads_toplev returns address_reloaded==-1.
11679 (alternative_allows_const_pool_ref): Update comment.
11680
11681 2015-08-17 Alan Hayward <alan.hayward@arm.com>
11682
11683 PR tree-optimization/71752
11684 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11685 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11686
11687 2016-08-17 Jakub Jelinek <jakub@redhat.com>
11688
11689 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11690 instead of testing ECF_NORETURN bit in gimple_call_flags.
11691 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11692 * predict.c (tree_bb_level_predictions): Likewise.
11693 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11694
11695 PR middle-end/77259
11696 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11697 turning a call into __builtin_unreachable-like noreturn call, adjust
11698 gimple_call_set_fntype.
11699 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11700 gimple_call_fntype has void return type.
11701
11702 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
11703
11704 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11705 maybe_lookup_decl, to handle nested acc loop directives.
11706
11707 2016-08-17 Richard Biener <rguenther@suse.de>
11708
11709 PR tree-optimization/76490
11710 * tree-vrp.c (update_value_range): Preserve overflow infinities
11711 when intersecting with ranges from get_range_info.
11712 (operand_less_p): Handle overflow infinities correctly.
11713 (value_range_constant_singleton): Use vrp_operand_equal_p
11714 to handle overflow max/min correctly.
11715 (vrp_valueize): Likewise.
11716 (union_ranges): Likewise.
11717 (intersect_ranges): Likewise.
11718 (vrp_visit_phi_node): Improve iteration limitation to only
11719 apply when we'll possibly re-visit the PHI via a changed argument
11720 on the backedge.
11721
11722 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
11723
11724 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11725 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11726 rather than those that should not be built.
11727
11728 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
11729
11730 PR target/66488
11731 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11732
11733 2016-08-17 Richard Biener <rguenther@suse.de>
11734
11735 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11736 (verify_vssa): New function verifying virtual SSA form.
11737 (verify_ssa): Call it.
11738 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11739 Do not apply loop-closed SSA handling to virtuals.
11740 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11741 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11742 when rewriting their symbol.
11743 (prepare_def_site_for): Likewise.
11744 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11745 operands of moved stmts.
11746
11747 2016-08-17 Richard Biener <rguenther@suse.de>
11748
11749 PR tree-optimization/23855
11750 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11751 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11752 find guards to hoist. Do not update SSA form but rewrite virtuals
11753 into loop closed SSA.
11754 (find_loop_guard): Adjust to skip already hoisted guards. Do
11755 not mark virtuals for renaming or update SSA form.
11756
11757 2016-08-17 Martin Liska <mliska@suse.cz>
11758
11759 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11760 a LONG_LONG_TYPE_SIZE comparison.
11761 * gcov-io.h: Remove macro definitions.
11762 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11763 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11764 comparison.
11765
11766 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11767
11768 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11769 that builtins not mentioned in bdesc_* arrays come first, then
11770 the ones mentioned in bdesc_* arrays in the order they appear in
11771 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11772 IX86_BUILTIN__BDESC_*_LAST enumerator.
11773 (bdesc_mpx): Fix up a comment typo.
11774 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11775 __builtin_ia32_vpcomneu[bwdq] builtins.
11776 (BDESC_VERIFY, BDESC_VERIFYS): Define.
11777 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11778 enum ix86_builtins ordering.
11779 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11780 for direct bdesc_* array member access instead of searching all the
11781 arrays until an fcode match is found.
11782
11783 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
11784
11785 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11786 pattern as define_insn_and_split. Split insn before reload to
11787 ashl<mode>3_1.
11788 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
11789 <shift_insn><mode>3_1.
11790 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
11791 <rotate_insn><mode>3_1.
11792
11793 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11794
11795 PR c/72857
11796 * input.c (get_source_range_for_substring): Rename to...
11797 (get_source_location_for_substring): ...this, adding param
11798 "caret_idx", and converting output param from source_range * to
11799 location_t *.
11800 (get_source_range_for_char): New function.
11801 (get_num_source_ranges_for_substring): Update comment to reflect
11802 above renaming.
11803 (assert_char_at_range): Update to use get_source_range_for_char
11804 rather than get_source_range_for_substring.
11805 (test_lexer_string_locations_concatenation_2): Likewise.
11806 * substring-locations.h (get_source_range_for_substring): Rename
11807 to...
11808 (get_source_location_for_substring): ...this, and adding param
11809 "caret_idx", and converting output param from source_range * to
11810 location_t *.
11811
11812 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11813
11814 * input.c (class selftest::temp_source_file): Move to
11815 selftest.h.
11816 (selftest::temp_source_file::temp_source_file): Move to
11817 selftest.c.
11818 (selftest::temp_source_file::~temp_source_file): Likewise.
11819 * selftest.c (selftest::temp_source_file::temp_source_file): Move
11820 here from input.c.
11821 (selftest::temp_source_file::~temp_source_file): Likewise.
11822 * selftest.h (class selftest::temp_source_file): Move here from
11823 input.c
11824
11825 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11826
11827 PR target/71910
11828 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
11829 inlining, add cgraph edge for the added __builtin_unreachable call.
11830
11831 PR middle-end/67485
11832 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11833 only cast it to SHWI for the final comparison.
11834
11835 2016-08-16 Martin Liska <mliska@suse.cz>
11836
11837 PR gcov-profile/36412
11838 * doc/gcov.texi: Document --hash-filenames(-x).
11839 * gcov.c (print_usage): Add the option.
11840 (process_args): Process the option, sort options alphabetically.
11841 (md5sum_to_hex): New function.
11842 (make_gcov_file_name): Do the md5sum and append it to a
11843 filename.
11844
11845 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11846
11847 PR tree-optimization/69848
11848 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11849 and swtich operands to avoid additional NOT instruction.
11850 (vcond<v_cmp_mixed><mode>): Ditto.
11851 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11852
11853 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
11854
11855 * doc/install.texi (*-*-solaris2*): Adjust latest change.
11856
11857 2016-08-16 Richard Biener <rguenther@suse.de>
11858
11859 PR tree-optimization/76783
11860 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
11861 BB visited flags at start.
11862
11863 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11864
11865 PR tree-optimization/72817
11866 PR tree-optimization/73450
11867 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11868 multiple_of_p for adjusted IV.base.
11869
11870 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
11871
11872 PR target/72867
11873 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11874 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11875 for !flag_finite_math_only or flag_signed_zeros.
11876 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11877 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
11878 depend on flag_finite_math_only.
11879 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11880 New insn pattern.
11881 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11882 (*ieee_smin<mode>3): Ditto.
11883 (*ieee_smax<mode>3): Ditto.
11884 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11885 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11886 flag_signed_zeros.
11887 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
11888 depend on flag_finite_math_only.
11889 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11890 (*mmx_<code>v2sf3): Remove.
11891 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11892 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11893 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11894
11895 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11896
11897 PR rtl-optimization/73650
11898 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11899 it is not a simple move.
11900
11901 2016-08-15 Martin Liska <mliska@suse.cz>
11902
11903 PR driver/72765
11904 * gcc.c (do_spec_1): Call save_string with the right size.
11905 (save_string): Do an assert about string we copy.
11906
11907 2016-08-15 Richard Biener <rguenther@suse.de>
11908
11909 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11910 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11911 TV_MACH_DEP.
11912 (pass_data_stv): Likewise.
11913
11914 2016-08-15 Richard Biener <rguenther@suse.de>
11915
11916 PR tree-optimization/73434
11917 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11918 TBAA info on the base when forwarding a non-invariant address.
11919
11920 2016-08-15 Jakub Jelinek <jakub@redhat.com>
11921
11922 * dwarf2out.c (struct checksum_attributes): Add
11923 at_string_length_bit_size and at_string_length_byte_size fields.
11924 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11925 and DW_AT_string_length_byte_size.
11926 (die_checksum_ordered): Handle at_string_length_bit_size and
11927 at_string_length_byte_size.
11928 (gen_array_type_die): For dwarf_version >= 5 emit
11929 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11930 (adjust_string_types): For dwarf_version >= 5 remove
11931 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11932 (resolve_addr): Likewise.
11933
11934 PR debug/71906
11935 * dwarf2out.c (string_types): New variable.
11936 (gen_array_type_die): Change early_dwarf handling of
11937 DW_AT_string_length, create DW_OP_call4 referencing the
11938 length var temporarily. Handle parameters that are pointers
11939 to string length.
11940 (adjust_string_types): New function.
11941 (gen_subprogram_die): Temporarily set string_types to local var,
11942 call adjust_string_types if needed.
11943 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11944 New functions.
11945 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11946
11947 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
11948
11949 * doc/install.texi (*-*-solaris2*): Fix version number and document
11950 requirement on GNU make for building libjava with the Solaris linker.
11951
11952 2016-08-15 Martin Liska <mliska@suse.cz>
11953 Jakub Jelinek <jakub@redhat.com>
11954
11955 PR tree-optimization/72824
11956 * tree-loop-distribution.c (const_with_all_bytes_same)
11957 <case VECTOR_CST>: Fix a typo.
11958
11959 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
11960
11961 PR target/76342
11962 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11963 Renamed from _mm512_undefined_si512.
11964 (_mm_undefined_si512): New definition.
11965
11966 2016-08-13 Richard Biener <rguenther@suse.de>
11967
11968 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11969 into PHIs and update the lattice for its def.
11970
11971 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11972
11973 PR c/71512
11974 * ubsan.c (instrument_si_overflow): Pass true instead of false
11975 to gsi_replace.
11976 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
11977 of bbs. Return TODO_cleanup_cfg if any returned true.
11978
11979 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11980
11981 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
11982 ISA 3.0 MTVSRDD instruction.
11983 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
11984 vecperm.
11985
11986 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11987
11988 PR tree-optimization/71083
11989 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
11990 bitfield access when possible.
11991
11992 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
11993
11994 PR middle-end/71654
11995 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
11996 sign-changing cast from a shorter unsigned type to a wider
11997 signed type.
11998
11999 2016-08-12 Jakub Jelinek <jakub@redhat.com>
12000
12001 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
12002 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
12003 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
12004
12005 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12006
12007 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
12008 Correct costs for vec_construct.
12009
12010 2016-08-12 Bin Cheng <bin.cheng@arm.com>
12011
12012 PR tree-optimization/69848
12013 * tree-vectorizer.h (enum vect_def_type): New condition reduction
12014 type CONST_COND_REDUCTION.
12015 * tree-vect-loop.c (vectorizable_reduction): Support new condition
12016 reudction type CONST_COND_REDUCTION.
12017
12018 2016-08-12 Richard Biener <rguenther@suse.de>
12019
12020 PR tree-optimization/57326
12021 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
12022 returning an SSA name.
12023 (phi_translate_1): When fully_constant_expression returns a NAME
12024 make sure we have a leader for it.
12025
12026 2016-08-12 Martin Liska <mliska@suse.cz>
12027 Adam Fineman <afineman@afineman.com>
12028
12029 * gcov.c (process_file): Create .gcov file when .gcda
12030 file is missing.
12031
12032 2016-08-12 Marek Polacek <polacek@redhat.com>
12033
12034 PR c/7652
12035 * alias.c (find_base_value): Adjust fall through comment.
12036 * cfgexpand.c (expand_debug_expr): Likewise.
12037 * combine.c (find_split_point): Likewise.
12038 (expand_compound_operation): Likewise. Add FALLTHRU.
12039 (make_compound_operation): Adjust fall through comment.
12040 (canon_reg_for_combine): Add FALLTHRU.
12041 (force_to_mode): Adjust fall through comment.
12042 (simplify_shift_const_1): Likewise.
12043 (simplify_comparison): Likewise.
12044 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
12045 FALLTHRU.
12046 * config/aarch64/predicates.md: Likewise.
12047 * config/i386/i386.c (function_arg_advance_32): Likewise.
12048 (ix86_gimplify_va_arg): Likewise.
12049 (print_reg): Likewise.
12050 (ix86_print_operand): Likewise.
12051 (ix86_build_const_vector): Likewise.
12052 (ix86_expand_branch): Likewise.
12053 (ix86_sched_init_global): Adjust fall through comment.
12054 (ix86_expand_args_builtin): Add FALLTHRU.
12055 (ix86_expand_builtin): Likewise.
12056 (ix86_expand_vector_init_one_var): Likewise.
12057 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
12058 (rs6000_adjust_cost): Likewise.
12059 (insn_must_be_first_in_group): Likewise.
12060 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
12061 * dbxout.c (dbxout_symbol): Adjust fall through comment.
12062 * df-scan.c (df_uses_record): Likewise.
12063 * dojump.c (do_jump): Add FALLTHRU.
12064 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
12065 comment.
12066 (resolve_args_picking_1): Adjust fall through comment.
12067 (loc_list_from_tree_1): Likewise.
12068 * expmed.c (make_tree): Likewise.
12069 * expr.c (expand_expr_real_2): Add FALLTHRU.
12070 (expand_expr_real_1): Likewise. Adjust fall through comment.
12071 * fold-const.c (const_binop): Adjust fall through comment.
12072 (fold_truth_not_expr): Likewise.
12073 (fold_cond_expr_with_comparison): Add FALLTHRU.
12074 (fold_binary_loc): Likewise.
12075 (contains_label_1): Adjust fall through comment.
12076 (multiple_of_p): Likewise.
12077 * gcov-tool.c (process_args): Add FALLTHRU.
12078 * genattrtab.c (check_attr_test): Likewise.
12079 (write_test_expr): Likewise.
12080 * genconfig.c (walk_insn_part): Likewise.
12081 * genpreds.c (validate_exp): Adjust fall through comment.
12082 (needs_variable): Likewise.
12083 * gensupport.c (get_alternatives_number): Add FALLTHRU.
12084 (subst_dup): Likewise.
12085 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
12086 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
12087 (gimplify_scan_omp_clauses): Add FALLTHRU.
12088 (goa_stabilize_expr): Likewise.
12089 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
12090 through comment.
12091 * hsa-gen.c (get_address_from_value): Likewise.
12092 * ipa-icf.c (sem_function::hash_stmt): Likewise.
12093 * ira.c (ira_setup_alts): Add FALLTHRU.
12094 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
12095 comment.
12096 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
12097 * opts.c (common_handle_option): Likewise.
12098 * read-rtl.c (read_rtx_code): Likewise.
12099 * real.c (round_for_format): Likewise.
12100 * recog.c (asm_operand_ok): Likewise.
12101 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
12102 * reload1.c (set_label_offsets): Likewise.
12103 (eliminate_regs_1): Likewise.
12104 (reload_reg_reaches_end_p): Likewise.
12105 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
12106 (rtx_cost): Likewise.
12107 * sched-rgn.c (is_exception_free): Likewise.
12108 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
12109 * stor-layout.c (int_mode_for_mode): Likewise.
12110 * toplev.c (print_to_asm_out_file): Likewise.
12111 (print_to_stderr): Likewise.
12112 * tree-cfg.c (gimple_verify_flow_info): Likewise.
12113 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
12114 (chrec_fold_multiply): Likewise.
12115 (evolution_function_is_invariant_rec_p): Likewise.
12116 (for_each_scev_op): Likewise.
12117 * tree-data-ref.c (siv_subscript_p): Likewise.
12118 (get_references_in_stmt): Likewise.
12119 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
12120 (substitute_in_expr): Likewise.
12121 (type_cache_hasher::equal): Likewise.
12122 (walk_type_fields): Likewise.
12123 * var-tracking.c (adjust_mems): Add FALLTHRU.
12124 (set_dv_changed): Adjust fall through comment.
12125 * varasm.c (default_function_section): Add FALLTHRU.
12126
12127 2016-08-12 Marek Polacek <polacek@redhat.com>
12128
12129 PR c/7652
12130 * tree-complex.c (expand_complex_division): Add missing break.
12131
12132 2016-08-12 Richard Biener <rguenther@suse.de>
12133
12134 * passes.c (execute_todo): Do not push/pop TV_TODO.
12135 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
12136 (execute_one_pass): Likewise.
12137 * common.opt (ftime-report-details): New switch.
12138 * doc/invoke.texi (ftime-report-details): Document.
12139 * timevar.h (timer::print_row): Adjust signature.
12140 (timer::all_zero): New static helper.
12141 (timer::child_map_t): New typedef.
12142 (timer::time_var_def): Add children field.
12143 * timevar.c (timer::named_items::print): Adjust.
12144 (timer::~timer): Free timevar recorded children.
12145 (timer::pop_internal): When -ftime-report-details record
12146 time spent in sub-timevars.
12147 (timer::print_row): Adjust.
12148 (timer::print): Print sub-timevar stats, use all_zero.
12149 * timevar.def (TV_TODO): Remove.
12150
12151 2016-08-12 Richard Biener <rguenther@suse.de>
12152
12153 PR tree-optimization/72851
12154 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
12155 worklists to use bitmaps indexed in execution order.
12156 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
12157 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
12158 (cfg_blocks): Make a bitmap.
12159 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
12160 New globals.
12161 (cfg_blocks_empty_p): Adjust.
12162 (cfg_blocks_add): Likewise.
12163 (cfg_blocks_get): Likewise.
12164 (add_ssa_edge): Likewise.
12165 (add_control_edge): Likewise.
12166 (simulate_stmt): Likewise.
12167 (process_ssa_edge_worklist): Likewise.
12168 (simulate_block): Likewise.
12169 (ssa_prop_init): Compute PRE order and stmt UIDs.
12170 (ssa_prop_fini): Adjust.
12171 (ssa_propagate): Adjust.
12172
12173 2016-08-12 Richard Biener <rguenther@suse.de>
12174
12175 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
12176 the currently executable edges have fixed ranges. Always
12177 go through update_value_range.
12178
12179 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
12180
12181 PR debug/63240
12182 * langhooks-def.h
12183 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
12184 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
12185 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
12186 (LANG_HOOKS_DECLS): Add it.
12187 * langhooks.h (struct lang_hooks_for_decls): Add
12188 function_decl_defaulted. Const_tree-ify
12189 function_decl_explicit_p and function_decl_deleted_p.
12190 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
12191 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
12192 also at strict DWARF v5.
12193
12194 PR debug/55641
12195 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
12196 TYPE_QUAL_CONST in reference-typed decls.
12197
12198 PR debug/49366
12199 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
12200 in DW_OP_pieces, just enough to handle pointers to member
12201 functions.
12202 (gen_remaining_tmpl_value_param_die_attribute): Use a location
12203 expression on DWARFv5 if a constant value doesn't work.
12204
12205 2016-08-11 David Malcolm <dmalcolm@redhat.com>
12206
12207 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
12208 * selftest.c (selftest::test_assertions): New function.
12209 (selftest::selftest_c_tests): New function.
12210 * selftest.h (selftest::selftest_c_tests): New declaration.
12211
12212 2016-08-11 Richard Biener <rguenther@suse.de>
12213 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12214
12215 PR rtl-optimization/72855
12216 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
12217
12218 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12219
12220 PR target/72863
12221 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
12222 (vsx_store_<mode>): Likewise.
12223
12224 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
12225
12226 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
12227 TImode CONST_WIDE_INT store.
12228 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
12229
12230 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
12231
12232 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
12233 mode if unaligned SSE load and store are optimal.
12234
12235 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
12236
12237 PR tree-optimization/71083
12238 * tree-predcom.c (ref_at_iteration): Correctly align the
12239 reference type.
12240
12241 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12242
12243 * config/s390/s390-builtin-types.def: Add INT128 types.
12244 * config/s390/s390-builtins.def: Add INT128 variants for the add
12245 sub low-level builtins dealing with TImode.
12246 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
12247 via subreg when expanding a builtin.
12248 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
12249 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
12250 Fix comment.
12251 * config/s390/vecintrin.h: Adjust builtin names accordingly.
12252 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
12253 ("vec_addc<mode>", "vec_addc_u128"): Merge to
12254 "vacc<bhfgq>_<mode>".
12255 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
12256 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
12257 ("vec_subc<mode>", "vec_subc_u128"): Merge to
12258 "vscbi<bhfgq>_<mode>".
12259 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
12260 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
12261
12262 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12263
12264 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
12265
12266 2016-08-11 Bin Cheng <bin.cheng@arm.com>
12267
12268 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
12269 unused declaration.
12270 (vcond<v_cmp_mixed><mode>): Ditto.
12271 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
12272
12273 2016-08-11 Bin Cheng <bin.cheng@arm.com>
12274
12275 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
12276 variable explicitly, also assert on it before use.
12277
12278 2016-08-11 Richard Biener <rguenther@suse.de>
12279
12280 PR tree-optimization/72772
12281 * cfgloopmanip.c (create_preheader): Use split_edge if there
12282 is a single loop entry, avoiding degenerate PHIs.
12283
12284 2016-08-11 Richard Biener <rguenther@suse.de>
12285
12286 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
12287 unconditional TODO_cleanup_cfg.
12288 (pass_thread_jumps::execute): Initialize loops, perform a CFG
12289 cleanup only if we threaded a jump.
12290
12291 2016-08-11 Alan Modra <amodra@gmail.com>
12292
12293 PR target/71680
12294 * lra-constraints.c (simplify_operand_subreg): Allow subreg
12295 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
12296 slow. Emit two reloads for slow mem case, first loading in
12297 fast innermode, then converting to required mode.
12298
12299 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
12300
12301 * config/rs6000/altivec.h (vec_extract_exp): New macro.
12302 (vec_extract_sig): New macro.
12303 (vec_insert_exp): New macro.
12304 (vec_test_data_class): New macro.
12305 (scalar_extract_exp): New macro.
12306 (scalar_extract_sig): New macro.
12307 (scalar_insert_exp): New macro.
12308 (scalar_test_data_class): New macro.
12309 (scalar_test_neg): New macro.
12310 (scalar_cmp_exp_gt): New macro.
12311 (scalar_cmp_exp_lt): New macro.
12312 (scalar_cmp_exp_eq): New macro.
12313 (scalar_cmp_exp_unordered): New macro.
12314 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
12315 to enforce constraint that operand is a 7-bit unsigned literal.
12316 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
12317 for power9 built-ins.
12318 (BU_P9V_VSX_2): Likewise.
12319 (BU_P9V_64BIT_VSX_2): Likewise.
12320 (VSEEDP): Add scalar extract exponent support.
12321 (VSEESP): Add scalar extract signature support.
12322 (VSTDCNDP): Add scalar test negative support.
12323 (VSTDCNSP): Likewise.
12324 (VSIEDP): Add scalar insert exponent support.
12325 (VSCEDPGT): Add scalar compare exponent greater than support.
12326 (VSCEDPLT): Add scalar compare exponent less than support.
12327 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
12328 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
12329 (VSTDCDP): Add scalar test data class support.
12330 (VSTDCSP): Likewise.
12331 (VSEEDP): Add overload support for scalar extract exponent
12332 operation.
12333 (VSESDP): Add overload support for scalar extract signature
12334 operation.
12335 (VSTDCN): Add overload support for scalar test negative
12336 operation.
12337 (VSTDCNDP): Add overload support for scalar test negative
12338 operation.
12339 (VSTDCNSP): Add overload support for scalar test negative
12340 operation.
12341 (VSIEDP): Add overload support for scalar insert exponent
12342 operation.
12343 (VSTDC): Add overload support for scalar test data class
12344 operation.
12345 (VSTDCDP): Add overload support for scalar test data class
12346 operation.
12347 (VSTDCSP): Add overload support for scalar test data class
12348 opreation.
12349 (VSCEDPGT): Add overload support for scalar compare exponent
12350 greater than operation.
12351 (VSCEDPLT): Add overload support for scalar compare exponent
12352 less than operation.
12353 (VSCEDPEQ): Add overload support for scalar compare exponent
12354 test-for-equality operation.
12355 (VSCEDPUO): Add overload support for scalar compare exponent
12356 test-for-unordered operation.
12357 (VEEDP): Add vector extract exponent support.
12358 (VEESP): Likewise.
12359 (VESDP): Add vector extract significand support.
12360 (VESSP): Likewise.
12361 (VIEDP): Add vector insert exponent support.
12362 (VIESP): Likewise.
12363 (VTDCDP): Add vector test data class support.
12364 (VTDCSP): Likewise.
12365 (VES): Add overload support for vector extract significand operation.
12366 (VESDP): Likewise.
12367 (VESSP): Likewise
12368 (VEE): Add overload support for vector extract exponent operation.
12369 (VEEDP): Likewise.
12370 (VEESP): Likewise.
12371 (VTDC): Add overload support for vector test data class operation.
12372 (VTDCDP): Likewise.
12373 (VTDCSP): Likewise.
12374 (VIE): Add overload support for vector insert exponent operation.
12375 (VIEDP): Likewise.
12376 (VIESP): Likewise.
12377 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12378 overloaded binary floating point functions.
12379 (altivec_resolve_overloaded_builtin): Improve error messages to
12380 distinguish between functions not supported in the current
12381 compiler configuration and functions that were invoked with an
12382 invalid parameter combination, and include the built-in function
12383 name in both error messages.
12384 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
12385 New prototype.
12386 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
12387 function.
12388 (rs6000_expand_binop_builtin): Add check to enforce that argument
12389 2 of the test data class operations is a 7-bit unsigned literal.
12390 (rs6000_invalid_builtin): Add code to issue an error message if a
12391 built-in function that requires the power9_vector and -m32
12392 command-line options is compiled without these options.
12393 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
12394 (UNSPEC_VSX_SXSIGDP): New value.
12395 (UNSPEC_VSX_SXSIGPDP): New value.
12396 (UNSPEC_VSX_SIEXPDP): New value.
12397 (UNSPEC_VSX_SCMPEXPDP): New value.
12398 (UNSPEC_VSX_STSTDC): New value.
12399 (UNSPEC_VSX_VXEXP): New value.
12400 (UNSPEC_VSX_VXSIG): New value.
12401 (UNSPEC_VSX_VIEXP): New value.
12402 (UNSPEC_VSX_VTSTDC): New value.
12403 (xsxexpdp): New insn for scalar extract exponent.
12404 (xsxsigdp): New insn for scalar extract significand.
12405 (xsiexpdp): New insn for scalar insert exponent.
12406 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
12407 (*xscmpexpdp): New insn for scalar compare exponents.
12408 (xststdc<Fvsx): New expansion for both single- and
12409 double-precision scalar test data class operations.
12410 (xststdcneg<Fvsx>): New expansion for both single- and
12411 double-precision scalar test for negative value operations.
12412 (*xststdc<Fvsx>): New insn for scalar test data class
12413 operation.
12414 (xvxexp<VSs>): New insn for single- and double-precision
12415 vector extract exponent operation.
12416 (xvxsig<VSs>): New insn for single- and double-precision
12417 vector extract significand operation.
12418 (xviexp<VSs>): New insn for single- and double-precision
12419 vector insert exponent operation.
12420 (xvtstdc<VSs>): New insn for single- and double-precision
12421 vector test data class operation.
12422 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12423 built-in functions to represent the Power9 binary floating-point
12424 support instructions.
12425
12426 2016-08-10 bin cheng <bin.cheng@arm.com>
12427
12428 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
12429
12430 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12431 Renlin Li <renlin.li@arm.com>
12432 Bin Cheng <bin.cheng@arm.com>
12433
12434 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
12435 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
12436 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
12437 (aarch64_vcond_internal<mode><mode>): Delete pattern.
12438 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
12439 (vcond<v_cmp_result><mode>): Ditto.
12440 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
12441 (vcondu<mode><mode>): Ditto.
12442 (vcond<v_cmp_mixed><mode>): New pattern.
12443 (vcondu<mode><v_cmp_mixed>): New pattern.
12444 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
12445 of aarch64_vcond_internal.
12446
12447 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12448 Renlin Li <renlin.li@arm.com>
12449 Bin Cheng <bin.cheng@arm.com>
12450
12451 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
12452 (vec_cmp<mode><v_cmp_result>): New pattern.
12453 (vec_cmpu<mode><mode>): New pattern.
12454 (vcond_mask_<mode><v_cmp_result>): New pattern.
12455
12456 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12457
12458 PR tree-optimization/71734
12459 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
12460 REF_LOOP, invoke ref_indep_loop_p_1.
12461 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
12462 to ref_indep_loop_p.
12463 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
12464 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
12465 is inside LOOP, do not cache dpendence value for loops with
12466 non-zero SAFELEN.
12467 (ref_indep_loop_p_2): Delete function.
12468 (can_sm_ref_p): Pass LOOP as additional argument to
12469 ref_indep_loop_p.
12470
12471 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12472
12473 PR target/72853
12474 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
12475 being an offsettable address.
12476
12477 2016-08-10 Martin Liska <mliska@suse.cz>
12478
12479 PR gcov-profile/58306
12480 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
12481 atomic variants of profile update functions.
12482
12483 2016-08-10 Martin Liska <mliska@suse.cz>
12484
12485 Cherry picked (and modified) from google-4_7 branch
12486 2012-12-26 Rong Xu <xur@google.com>
12487 * common.opt (fprofile-update): Add new flag.
12488 * coretypes.h: Define enum profile_update.
12489 * doc/invoke.texi: Document -fprofile-update.
12490 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
12491 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
12492 * tree-profile.c (gimple_init_edge_profiler): Generate
12493 also atomic profiler update.
12494 (gimple_gen_edge_profiler): Likewise.
12495
12496 2016-08-10 David Malcolm <dmalcolm@redhat.com>
12497
12498 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
12499 stack_usage_file to NULL after fclose calls.
12500
12501 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12502
12503 PR target/71873
12504 * reload.c (push_reload): Compute subreg_in_class for
12505 subregs of constants and plus expressions. Remove special
12506 handling of SYMBOL_REFs.
12507
12508 2016-08-10 Alan Modra <amodra@gmail.com>
12509
12510 PR target/71680
12511 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
12512 SImode for TARGET_E500_DOUBLE when given SImode.
12513
12514 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
12515
12516 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
12517 unused variable __O.
12518
12519 2016-08-09 Martin Liska <mliska@suse.cz>
12520
12521 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
12522 _gcov_reset to __gcov_reset.
12523 * doc/gcov-tool.texi: Fix typo.
12524
12525 2016-08-09 Martin Liska <mliska@suse.cz>
12526
12527 * value-prof.c (gimple_divmod_values_to_profile): Do not
12528 instrument MOD histogram if a value is not a SSA name.
12529
12530 2016-08-09 Martin Liska <mliska@suse.cz>
12531
12532 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
12533 values.
12534
12535 2016-08-09 Renlin Li <renlin.li@arm.com>
12536
12537 PR middle-end/64971
12538 * calls.c (prepare_call_address): Convert funexp to Pmode when
12539 necessary.
12540 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
12541 (sibcall_value): Likewise.
12542
12543 2016-08-09 Marek Polacek <polacek@redhat.com>
12544
12545 PR c/7652
12546 * cselib.c (cselib_expand_value_rtx_1): Add return.
12547 * gengtype.c (dbgprint_count_type_at): Likewise.
12548 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
12549 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
12550
12551 2016-08-09 Martin Jambor <mjambor@suse.cz>
12552
12553 PR ipa/71981
12554 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
12555 if instance is a MEM_REF.
12556
12557 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
12558
12559 PR target/72843
12560 * config/i386/i386.md (*movtf_internal): Use
12561 lra_in_progress || reload_completed instead of !can_create_pseudo_p
12562 in the insn constraint.
12563 (*movxf_internal): Ditto.
12564 (*movdf_internal): Ditto.
12565 (*movsf_internal): Ditto.
12566
12567 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12568
12569 PR tree-optimization/72772
12570 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12571 for expanded base.
12572
12573 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12574
12575 PR tree-optimization/72772
12576 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
12577 parameter STOP.
12578 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
12579 parameter STOP and update calls. Move expand_simple_operations
12580 function call from here...
12581 (simplify_using_initial_conditions): ...to here. Delete parameter
12582 STOP.
12583 (tree_simplify_using_condition): Delete parameter STOP.
12584 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
12585 simplify_using_initial_conditions.
12586
12587 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
12588
12589 PR c/65345
12590 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
12591 Use create_tmp_var_raw instead of create_tmp_var.
12592
12593 2016-08-09 Richard Biener <rguenther@suse.de>
12594
12595 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
12596 Treat same SSA names related.
12597
12598 2016-08-09 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR tree-optimization/72824
12601 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
12602 real_zerop is not negative.
12603
12604 2016-08-09 Richard Biener <rguenther@suse.de>
12605
12606 PR tree-optimization/71802
12607 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
12608 all merge opportunities with the predecessor.
12609
12610 2016-08-09 Richard Biener <rguenther@suse.de>
12611
12612 PR ipa/68273
12613 * ipa-prop.c (ipa_modify_formal_parameters): Build
12614 parameter types with natural alignment also for the
12615 over-aligned case.
12616
12617 2016-08-08 Andi Kleen <ak@linux.intel.com>
12618
12619 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
12620
12621 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12622
12623 PR c/64955
12624 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
12625 do-nothing langhook.
12626 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
12627 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
12628 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
12629 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
12630
12631 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12632
12633 PR bootstrap/72844
12634 * input.c: Ensure that HAVE_ICONV is defined.
12635
12636 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12637
12638 PR middle-end/72781
12639 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
12640 private vars for lastprivate and for linear iterator.
12641
12642 PR middle-end/68762
12643 * omp-simd-clone.c: Include varasm.h.
12644 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
12645 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
12646 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
12647 update function name.
12648
12649 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12650
12651 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
12652 (avr_diagnose_devicespecs_error): Remove.
12653 (avr_devicespecs_file): Remove composing absolute path for specfile
12654 and its verbose info. Remove conditions to check specs-file,
12655
12656 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12657
12658 PR rtl-optimization/72821
12659 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
12660 just return false for them.
12661
12662 2016-08-08 Alan Modra <amodra@gmail.com>
12663
12664 PR target/72771
12665 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12666 toc refs created during reload. Update function comment.
12667
12668 2016-08-08 Alan Modra <amodra@gmail.com>
12669
12670 PR target/72802
12671 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12672 alternatives. Put loads first, then stores, and reg/reg moves
12673 within same class later. Delete attr length.
12674
12675 2016-08-08 Alan Modra <amodra@gmail.com>
12676
12677 PR target/72802
12678 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12679 (mem_operand_ds_form): New predicate.
12680 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12681 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12682 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12683 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12684 (extendsfdf2_fpr): Replace o constraint with wY.
12685
12686 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
12687
12688 * tree-ssa-threadbackward.c: Include tree-inline.h
12689 (profitable_jump_thread_path): Use estimate_num_insns to estimate
12690 size of copied block; for cold paths reduce duplication.
12691 (find_jump_threads_backwards): Remove redundant tests.
12692 (pass_thread_jumps::gate): Enable for -Os.
12693
12694 2016-08-07 Jakub Jelinek <jakub@redhat.com>
12695
12696 PR c/72816
12697 * stor-layout.c (layout_decl): Fix up formatting.
12698 (relayout_decl): Allow DECL to be FIELD_DECL.
12699
12700 2016-08-07 Alan Modra <amodra@gmail.com>
12701
12702 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12703
12704 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12705
12706 * data-streamer-in.c (streamer_read_wide_int): New.
12707 (streamer_read_widest_int): Renamed function.
12708 * data-streamer-out.c (streamer_write_wide_int): New
12709 (streamer_write_widest_int): Renamed function.
12710 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12711 data-stream-in.c.
12712 (input_cfg): Call renamed function.
12713 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12714 data-stream-out.c.
12715 (output_cfg): Call renamed function.
12716 * data-streamer.h: Add declarations.
12717
12718 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12719
12720 * tree-ssa-ccp.c (extend_mask): New param sgn.
12721 Remove ORing with wi::mask.
12722 (get_default_value): Adjust call to extend_mask to pass sign.
12723 (evaluate_stmt): Likewise.
12724
12725 2016-08-06 Jakub Jelinek <jakub@redhat.com>
12726
12727 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12728 INT64_MAX.
12729
12730 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12731
12732 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12733 transform if operand's type is pointer to function or method.
12734
12735 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12736
12737 PR tree-optimization/18046
12738 * tree-ssa-threadedge.c: Include cfganal.h.
12739 (simplify_control_statement_condition): If simplifying a
12740 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12741 with the dominating ASSERT_EXPR before handing it off to VRP.
12742 Mention that a CASE_LABEL_EXPR may be returned.
12743 (thread_around_empty_blocks): Adjust to handle
12744 simplify_control_statement_condition() returning a
12745 CASE_LABEL_EXPR.
12746 (thread_through_normal_block): Likewise.
12747 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12748 a switch statement by trying to determine which case label
12749 will be taken.
12750
12751 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
12752
12753 PR rtl-optimization/69847
12754 * lra-constraints.c (process_invariant_for_inheritance): Save
12755 pattern instead of src.
12756 (remove_inheritance_pseudos): Use the pattern. Add assert.
12757
12758 2016-08-05 David Malcolm <dmalcolm@redhat.com>
12759
12760 * input.c (string_concat::string_concat): New constructor.
12761 (string_concat_db::string_concat_db): New constructor.
12762 (string_concat_db::record_string_concatenation): New method.
12763 (string_concat_db::get_string_concatenation): New method.
12764 (string_concat_db::get_key_loc): New method.
12765 (class auto_cpp_string_vec): New class.
12766 (get_substring_ranges_for_loc): New function.
12767 (get_source_range_for_substring): New function.
12768 (get_num_source_ranges_for_substring): New function.
12769 (class selftest::lexer_test_options): New class.
12770 (struct selftest::lexer_test): New struct.
12771 (class selftest::ebcdic_execution_charset): New class.
12772 (selftest::ebcdic_execution_charset::s_singleton): New variable.
12773 (selftest::lexer_test::lexer_test): New constructor.
12774 (selftest::lexer_test::~lexer_test): New destructor.
12775 (selftest::lexer_test::get_token): New method.
12776 (selftest::assert_char_at_range): New function.
12777 (ASSERT_CHAR_AT_RANGE): New macro.
12778 (selftest::assert_num_substring_ranges): New function.
12779 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12780 (selftest::assert_has_no_substring_ranges): New function.
12781 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12782 (selftest::test_lexer_string_locations_simple): New function.
12783 (selftest::test_lexer_string_locations_ebcdic): New function.
12784 (selftest::test_lexer_string_locations_hex): New function.
12785 (selftest::test_lexer_string_locations_oct): New function.
12786 (selftest::test_lexer_string_locations_letter_escape_1): New function.
12787 (selftest::test_lexer_string_locations_letter_escape_2): New function.
12788 (selftest::test_lexer_string_locations_ucn4): New function.
12789 (selftest::test_lexer_string_locations_ucn8): New function.
12790 (selftest::uint32_from_big_endian): New function.
12791 (selftest::test_lexer_string_locations_wide_string): New function.
12792 (selftest::uint16_from_big_endian): New function.
12793 (selftest::test_lexer_string_locations_string16): New function.
12794 (selftest::test_lexer_string_locations_string32): New function.
12795 (selftest::test_lexer_string_locations_u8): New function.
12796 (selftest::test_lexer_string_locations_utf8_source): New function.
12797 (selftest::test_lexer_string_locations_concatenation_1): New
12798 function.
12799 (selftest::test_lexer_string_locations_concatenation_2): New
12800 function.
12801 (selftest::test_lexer_string_locations_concatenation_3): New
12802 function.
12803 (selftest::test_lexer_string_locations_macro): New function.
12804 (selftest::test_lexer_string_locations_stringified_macro_argument):
12805 New function.
12806 (selftest::test_lexer_string_locations_non_string): New function.
12807 (selftest::test_lexer_string_locations_long_line): New function.
12808 (selftest::test_lexer_char_constants): New function.
12809 (selftest::input_c_tests): Call the new test functions once per
12810 case within the line_table test matrix.
12811 * input.h (struct string_concat): New struct.
12812 (struct location_hash): New struct.
12813 (class string_concat_db): New class.
12814 * substring-locations.h: New header.
12815
12816 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12817
12818 PR tree-optimization/72810
12819 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12820 the type of the case labels when truncating.
12821
12822 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12823
12824 PR Target/72819
12825 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12826 (aarch64_fp16_ptr_type_node): Likewise.
12827 * config/aarch64/aarch64-simd-builtins.c
12828 (aarch64_fp16_ptr_type_node): Define.
12829 (aarch64_init_fp16_types): New, refactored out of...
12830 (aarch64_init_builtins): ...here, update to call
12831 aarch64_init_fp16_types.
12832 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12833 HFmode.
12834 (aapcs_vfp_sub_candidate): Likewise.
12835
12836 2016-08-05 Martin Liska <mliska@suse.cz>
12837 Joshua Cranmer <Pidgeot18@gmail.com>
12838
12839 * gcov.c (line_t::has_block): New function.
12840 (enum loop_type): New enum.
12841 (handle_cycle): New function.
12842 (unblock): Likewise.
12843 (circuit): Likewise.
12844 (get_cycles_count): Likewise.
12845 (accumulate_line_counts): Use new loop detection algorithm.
12846
12847 2016-08-05 Martin Liska <mliska@suse.cz>
12848
12849 * gcov.c (output_intermediate_file): Rename
12850 function_info::line_next to next_file_fn.
12851 (process_file): Likewise.
12852 (read_graph_file): Likewise.
12853 (accumulate_line_counts): Likewise.
12854 (output_lines): Likewise.
12855
12856 2016-08-05 Richard Biener <rguenther@suse.de>
12857
12858 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12859 restriction on threading to a loop header.
12860
12861 2016-08-05 Richard Biener <rguenther@suse.de>
12862
12863 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12864 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12865 adjust loop info accordingly.
12866
12867 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12868
12869 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12870 before folding call to __builtin_constant_p with parameters to false.
12871
12872 2016-08-05 Alan Modra <amodra@gmail.com>
12873
12874 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12875 code accidentally committed 2016-05-02 providing class when given
12876 NO_REGS.
12877
12878 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12879
12880 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12881 the case label ranges that partially overlap with OP's value
12882 range.
12883
12884 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
12885
12886 PR target/72805
12887 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12888 Cast builtin function result to __mmask16 instead of __mmask8.
12889 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12890 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12891 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12892
12893 2016-08-04 David Malcolm <dmalcolm@redhat.com>
12894
12895 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12896 (ASSERT_TRUE_AT): New macro.
12897 (ASSERT_FALSE): Reimplement in terms of...
12898 (ASSERT_FALSE_AT): New macro.
12899 (ASSERT_STREQ_AT): Fix typo in comment.
12900
12901 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12902
12903 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12904 labels are exhaustive, designate the label with the widest
12905 range to be the default label.
12906
12907 2016-08-04 Andrew Pinski <apinski@cavium.com>
12908
12909 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12910 (thunderx_tunings): Use thunderx_vector_cost instead of
12911 generic_vector_cost.
12912
12913 2016-08-04 Martin Liska <mliska@suse.cz>
12914
12915 * gcov.c (main): Fix GNU coding style.
12916 (output_intermediate_file): Likewise.
12917 (process_file): Likewise.
12918 (generate_results): Likewise.
12919 (release_structures): Likewise.
12920 (create_file_names): Likewise.
12921 (find_source): Likewise.
12922 (read_graph_file): Likewise.
12923 (find_exception_blocks): Likewise.
12924 (canonicalize_name): Likewise.
12925 (make_gcov_file_name): Likewise.
12926 (mangle_name): Likewise.
12927 (accumulate_line_counts): Likewise.
12928 (output_branch_count): Likewise.
12929 (read_line): Likewise.
12930
12931 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12932
12933 PR rtl-optimization/71779
12934 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12935 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12936 or if it was truncated.
12937
12938 PR rtl-optimization/70903
12939 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12940
12941 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12942
12943 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12944 accessing SSA_NAME_PTR_INFO.
12945
12946 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12947
12948 PR 70677
12949 * common/config/avr/avr-common.c (avr_option_optimization_table)
12950 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12951
12952 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12953
12954 PR 55181
12955 * config/avr/avr.md: New pattern to work around do_store_flag
12956 generating shift instructions for bit extractions.
12957
12958 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12959
12960 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12961 BITMAP_ALLOC.
12962 (add_equivalence): Likewise.
12963 (get_value_range): Allocate value range with vrp_value_range_pool.
12964 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12965 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12966
12967 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
12968
12969 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12970 the default for the rs6000 port.
12971
12972 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12973
12974 PR middle-end/71876
12975 * calls.c (special_function_p): Remove special handling of
12976 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
12977 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
12978 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
12979
12980 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
12981
12982 PR middle-end/72778
12983 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
12984 Don't stop on regular insns.
12985
12986 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12987
12988 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
12989 size to DImode boundary.
12990 (nvptx_propagate): Likewise.
12991
12992 2016-08-03 Alan Modra <amodra@gmail.com>
12993
12994 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
12995 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
12996 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12997 from -mefficient-unaligned-vector. Note that this affects fp too.
12998
12999 2016-08-03 Alan Modra <amodra@gmail.com>
13000
13001 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
13002 cost more.
13003
13004 2016-08-03 Alan Modra <amodra@gmail.com>
13005
13006 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
13007 to a reg. Localize vars.
13008
13009 2016-08-03 Alan Modra <amodra@gmail.com>
13010
13011 * config/rs6000/rs6000.opt: Remove negatives from help strings
13012 and comments.
13013
13014 2016-08-03 Alan Modra <amodra@gmail.com>
13015
13016 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
13017 Delete duplicated code.
13018
13019 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
13020
13021 PR middle-end/72778
13022 * lra-spills.c (regno_in_use_p): New.
13023 (lra_final_code_change): Use it.
13024
13025 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
13026
13027 PR rtl-optimization/69847
13028 * lra-int.h (struct lra-reg): Use restore_rtx instead of
13029 restore_regno.
13030 (lra_rtx_hash): New.
13031 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
13032 of restore_regno.
13033 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
13034 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
13035 * lra-spills.c (lra_final_code_change): Don't delete insn when the
13036 next insn is USE with the same reg as the current insn source.
13037 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
13038 of restore_regno.
13039 (lra_constraints_init): Call initiate_invariants.
13040 (lra_constraints_finish): Call finish_invariants.
13041 (struct invariant, invariant_t, invariant_ptr_t): New.
13042 (const_invariant_ptr_t, invariants, invariants_pool): New.
13043 (invariant_table, invariant_hash, invariant_eq_p): New.
13044 (insert_invariant, initiate_invariants, finish_invariants): New.
13045 (clear_invariants, invalid_invariant_regs): New.
13046 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
13047 instead of restore_regno.
13048 (invariant_p, process_invariant_for_inheritance): New.
13049 (inherit_in_ebb): Implement invariant inheritance.
13050 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
13051 (remove_inheritance_pseudos): Implement undoing invariant
13052 inheritance.
13053 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
13054 instead of restore_regno.
13055 * lra-assigns.c (regno_live_length): New.
13056 (reload_pseudo_compare_func): Use regno_live_length.
13057 (assign_by_spills): Use restore_rtx instead of restore_regno.
13058 (lra_assign): Ditto. Initiate regno_live_length.
13059
13060 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
13061
13062 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
13063 __builtin_aarch64_fmindf.
13064
13065 2016-08-02 Bin Cheng <bin.cheng@arm.com>
13066
13067 PR tree-optimization/34114
13068 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
13069 information for more control IVs.
13070
13071 2016-08-02 Bin Cheng <bin.cheng@arm.com>
13072
13073 PR tree-optimization/34114
13074 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
13075 PLUS_EXPR case. Handle SSA_NAME case.
13076
13077 2016-08-02 Tamar Christina <tamar.christina@arm.com>
13078
13079 * config/aarch64/aarch64-simd-builtins.def
13080 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
13081 (__builtin_aarch64_fmaxdf): Likewise.
13082 (__builtin_aarch64_smin_nandf): Likewise.
13083 (__builtin_aarch64_smax_nandf): Likewise.
13084 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
13085 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
13086 (<fmaxmin><mode>3): ...this.
13087 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
13088 (vminnm_f64): Likewise.
13089 (vmin_f64): Likewise.
13090 (vmax_f64): Likewise.
13091 * config/aarch64/iterators.md (FMAXMIN): Merge with...
13092 (FMAXMIN_UNS): ...this.
13093 (fmaxmin): Merged with
13094 (fmaxmin_op): ...this...
13095 (maxmin_uns_op): ...in to this.
13096
13097 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13098
13099 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13100 Add support for vec_extract on vector float, vector int, vector
13101 short, and vector char vector types.
13102 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13103 vector float, vector int, vector short, and vector char
13104 optimizations on 64-bit ISA 2.07 systems for both constant and
13105 variable element numbers.
13106 (rs6000_split_vec_extract_var): Likewise.
13107 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
13108 Altivec registers on ISA 2.07 and above.
13109 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
13110 which never was matched due to the split occuring before register
13111 allocation (and the code would not have worked on little endian
13112 systems if it did match). Allow extracts to go to the Altivec
13113 registers if ISA 2.07 (power8). Change from using "" around the
13114 C++ code to using {}'s.
13115 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
13116 vec_extracts when the vector is in memory.
13117 (vsx_extract_v4sf_var): New insn to optimize vector float
13118 vec_extracts when the element number is variable on 64-bit ISA
13119 2.07 systems.
13120 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
13121 for 64-bit ISA 2.07 as well as ISA 3.0.
13122 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
13123 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
13124 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
13125 optimize vector int, vector short, and vector char vec_extracts
13126 when the vector is in memory.
13127 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
13128 optimize vector int, vector short, and vector char vec_extracts
13129 when the element number is variable.
13130
13131 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
13132
13133 PR target/71948
13134 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
13135 does not overlap with other symbol flags.
13136
13137 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
13138
13139 * config/aarch64/aarch64.h (aarch64_frame):
13140 Remove padding0 and hardfp_offset. Add locals_offset,
13141 initial_adjust, callee_adjust, callee_offset and final_adjust.
13142 * config/aarch64/aarch64.c (aarch64_layout_frame):
13143 Remove unused padding0 and hardfp_offset initializations.
13144 Choose frame layout and set frame variables accordingly.
13145 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
13146 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
13147 (aarch64_pop_regs): Likewise.
13148 (aarch64_expand_prologue): Remove all decision code, just emit
13149 prolog according to frame variables.
13150 (aarch64_expand_epilogue): Remove all decision code, just emit
13151 epilog according to frame variables.
13152 (aarch64_initial_elimination_offset): Use offset to local/arg area.
13153
13154 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
13155
13156 PR target/72748
13157 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
13158 fix_debug_reg_uses after changing source register mode to
13159 V1TImode if source register is undefined.
13160
13161 2015-08-01 Alan Hayward <alan.hayward@arm.com>
13162
13163 PR tree-optimization/71818
13164 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
13165 with non invariant evolutions
13166
13167 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
13168
13169 PR target/72767
13170 * config/avr/avr.md (length) [branch]: Correct insn length
13171 attribute for forward branches.
13172
13173 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
13174
13175 * doc/extend.texi (AVR Built-in Functions): Document
13176 __builtin_avr_nops.
13177 * config/avr/builtins.def (NOPS): New.
13178 * config/avr/avr.c (avr_expand_nops): New static function.
13179 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
13180
13181 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13182
13183 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
13184 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
13185 addresses.
13186
13187 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
13188
13189 * config/aarch64/aarch64.c (vulcan_tunings): Update
13190 vulcan L1 cache_line_size.
13191
13192 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
13193
13194 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
13195 function that takes a vector memory address, a hard register, an
13196 element number and a temporary base register, and recreates an
13197 address that points to the appropriate element within the vector.
13198 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
13199 (rs6000_split_vec_extract_var): Add support for the target of a
13200 vec_extract with variable element number being a scalar memory
13201 location.
13202 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
13203 swappable.
13204 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
13205 vsx_extract_<mode>_load insn with a new insn that optimizes
13206 storing either element to a memory location, using scratch
13207 registers to pick apart the vector and reconstruct the address.
13208 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
13209 (vsx_extract_<mode>_store): Rework alternatives to more correctly
13210 support Altivec registers. Add support for ISA 3.0 Altivec d-form
13211 store instruction.
13212 (vsx_extract_<mode>_var): Add support for extracting a variable
13213 element number from memory.
13214
13215 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
13216
13217 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
13218 when testing for compares against constants of the form 0xabab.
13219
13220 2016-07-29 Bin Cheng <bin.cheng@arm.com>
13221
13222 PR tree-optimization/57558
13223 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
13224 function.
13225 (vect_loop_versioning): Support versioning with niter assumptions.
13226 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
13227 (vect_get_loop_niters): New parameter. Reimplement to support
13228 assumptions in loop niter info.
13229 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
13230 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
13231 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
13232 Support loop versioning for niters.
13233 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
13234 (vect_free_loop_info_assumptions): New function.
13235 (vectorize_loops): Free loop niter info for loops with flag
13236 LOOP_F_ASSUMPTIONS set if vectorization failed.
13237 * tree-vectorizer.h (struct _loop_vec_info): New field
13238 num_iters_assumptions.
13239 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
13240 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
13241 (LOOP_REQUIRES_VERSIONING): New macro.
13242 (vect_free_loop_info_assumptions): New decl.
13243
13244 2016-07-29 Bin Cheng <bin.cheng@arm.com>
13245
13246 * cfgloop.h (struct loop): New field constraints.
13247 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
13248 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
13249 functions.
13250 * cfgloop.c (alloc_loop): Initialize new field.
13251 * cfgloopmanip.c (copy_loop_info): Copy constraints.
13252 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
13253 Adjust niter analysis wrto loop constraints.
13254 * doc/loop.texi (@node Number of iterations): Add description for loop
13255 constraints.
13256
13257 2016-07-29 Marek Polacek <polacek@redhat.com>
13258
13259 PR c/7652
13260 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
13261 (ix86_expand_round_builtin): Likewise.
13262
13263 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
13264 Georg-Johann Lay <avr@gjlay.de>
13265
13266 PR rtl-optimization/71976
13267 * combine.c (get_last_value): Return 0 if the argument for which
13268 the function is called has a wider mode than the recorded value.
13269
13270 2016-07-29 Marek Polacek <polacek@redhat.com>
13271
13272 PR c/7652
13273 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
13274 (altivec_expand_st_builtin): Likewise.
13275
13276 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
13277
13278 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
13279 introduced in r238381.
13280
13281 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13282
13283 PR middle-end/68217
13284 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
13285 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
13286
13287 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
13288
13289 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
13290 New declaration.
13291 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13292 Add support for vec_extract of vector double or vector long having
13293 a variable element number on 64-bit ISA 2.07 systems or newer.
13294 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
13295 Likewise.
13296 (rs6000_split_vec_extract_var): New function to split a
13297 vec_extract built-in function with variable element number.
13298 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
13299 swappable.
13300 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
13301 (UNSPEC_VSX_EXTRACT): Likewise.
13302 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
13303 direct move instructions to be generated on 64-bit ISA 2.07
13304 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
13305 instruction.
13306 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
13307 arguments for vec_extract variable element.
13308 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
13309 vec_extract with variable element on V2DFmode and V2DImode
13310 vectors.
13311 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
13312 -mupper-regs-df requirement, since it isn't needed.
13313 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
13314 do direct moves on 64-bit systems, which allows optimization of
13315 vec_extract on 64-bit ISA 2.07 systems and newer.
13316
13317 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13318 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13319
13320 * config/aarch64/aarch64.md
13321 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
13322 statement and type.
13323 (<optab>qihi2_aarch64): Likewise, and split into two.
13324 (extendqihi2_aarch64): New.
13325 (zero_extendqihi2_aarch64): New.
13326 * config/aarch64/iterators.md (ldrxt): Remove.
13327 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
13328 uxtb/uxth.
13329
13330 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13331
13332 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
13333
13334 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13335
13336 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
13337 (aarch64_push_reg): New function to push 1 or 2 registers.
13338 (aarch64_pop_reg): New function to pop 1 or 2 registers.
13339 (aarch64_expand_prologue): Use aarch64_push_regs.
13340 (aarch64_expand_epilogue): Use aarch64_pop_regs.
13341
13342 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
13343
13344 PR tree-optimization/71734
13345 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
13346 attribute instead of REF_LOOP and use it.
13347 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
13348 set it for Loops having non-zero safelen attribute.
13349 (ref_indep_loop_p): Pass zero as initial value for safelen.
13350
13351 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
13352
13353 PR middle-end/72657
13354 PR target/72683
13355 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
13356 call using chkp_gimple_call_builtin_p.
13357 (chkp_copy_bounds_for_assign): Likewise.
13358
13359 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13360
13361 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
13362 * config/arm/arm-protos.h (struct tune_params): Likewise.
13363 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13364 (cortex_a9_sched_adjust_cost): Likewise.
13365 (fa726te_sched_adjust_cost): Likewise.
13366 (arm_adjust_cost): Likewise.
13367 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
13368 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
13369 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
13370 * config/i386/i386.c (ix86_adjust_cost): Likewise.
13371 * config/ia64/ia64.c: Likewise.
13372 * config/m68k/m68k.c: Likewise.
13373 * config/mep/mep.c (mep_adjust_cost): Likewise.
13374 * config/microblaze/microblaze.c (microblaze_adjust_cost):
13375 * Likewise.
13376 * config/mips/mips.c (mips_adjust_cost): Likewise.
13377 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
13378 * Likewise.
13379 * config/pa/pa.c (pa_adjust_cost): Likewise.
13380 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
13381 (rs6000_debug_adjust_cost): Likewise.
13382 * config/sh/sh.c (sh_adjust_cost): Likewise.
13383 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
13384 (hypersparc_adjust_cost): Likewise.
13385 (sparc_adjust_cost): Likewise.
13386 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
13387 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
13388 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
13389 * Likewise.
13390 * config/visium/visium.c (visium_adjust_cost): Likewise.
13391 * doc/tm.texi: Regenerate.
13392 * haifa-sched.c (dep_cost_1): Adjust.
13393 * target.def: Merge adjust_cost and adjust_cost_2.
13394
13395 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13396
13397 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
13398
13399 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13400
13401 * store-motion.c (struct st_expr): Make pattern_regs a vector.
13402 (extract_mentioned_regs): Append to a vector instead of
13403 returning a rtx_expr_list.
13404 (st_expr_entry): Adjust.
13405 (free_st_expr_entry): Likewise.
13406 (store_ops_ok): Likewise.
13407 (store_killed_in_insn): Likewise.
13408 (find_moveable_store): Likewise.
13409
13410 2016-07-28 Martin Liska <mliska@suse.cz>
13411
13412 PR gcov-profile/68025
13413 * tree-profile.c (tree_profiling): Respect
13414 no_profile_instrument_function attribute.
13415 * doc/extend.texi: Document no_profile_instrument_function
13416 attribute.
13417
13418 2016-07-28 Martin Liska <mliska@suse.cz>
13419
13420 PR rtl-optimization/70944
13421 * combine.c (make_compound_operation):
13422 Do not allow make_compound_operation for vector mode
13423
13424 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
13425
13426 PR middle-end/71994
13427 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
13428 before calling get_ops.
13429
13430 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13431
13432 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
13433 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
13434 (BITS_PER_UNIT_LOG): Remove.
13435 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
13436 * expr.c (expand_assignment): Likewise.
13437 * stor-layout.c (initialize_sizetypes): Likewise.
13438
13439 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13440
13441 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
13442 signature of rs6000_expand_vector_extract so that the element
13443 number is a RTX instead of a constant integer.
13444 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
13445 Likewise.
13446 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
13447 (altivec_expand_vec_ext_builtin): Likewise.
13448 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
13449 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
13450 MFVSRLD instruction.
13451
13452 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13453
13454 * input.c (get_pure_location): Move here from tree.c.
13455 (make_location): Likewise. Add header comment.
13456 (selftest::test_accessing_ordinary_linemaps): Verify
13457 pure_location_p, make_location, get_location_from_adhoc_loc and
13458 get_range_from_loc.
13459 * input.h (get_pure_location): Move declaration here from tree.h.
13460 (get_finish): Likewise for inline function.
13461 (make_location): Likewise for declaration.
13462 * tree.c (get_pure_location): Move to input.c.
13463 (make_location): Likewise.
13464 * tree.h (get_pure_location): Move declaration to tree.h.
13465 (get_finish): Likewise for inline function.
13466 (make_location): Likewise for declaration.
13467
13468 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13469
13470 PR middle-end/71078
13471 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
13472
13473 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13474
13475 * system.h (STATIC_ASSERT): Use static_assert if building
13476 with C++11 onwards.
13477
13478 2016-07-27 Richard Biener <rguenther@suse.de>
13479
13480 PR tree-optimization/72517
13481 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
13482 Revert change to not compute read-read dependences.
13483
13484 2016-07-27 Richard Biener <rguenther@suse.de>
13485
13486 * predict.c (set_even_probabilities): Make nedges unsigned.
13487
13488 2016-07-27 Martin Liska <mliska@suse.cz>
13489
13490 * predict.c (set_even_probabilities): Handle unlikely edges.
13491 (combine_predictions_for_bb): Likewise.
13492
13493 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13494
13495 PR target/71869
13496 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
13497 __float128 support when we don't have hardware support, so that
13498 the IEEE built-in functions like isgreater, first call __unordkf3
13499 to make sure neither operand is a NaN, and if both operands are
13500 ordered, do the normal comparison.
13501
13502 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13503
13504 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
13505 name.
13506 (extract_code_and_val_from_cond_with_ops): Verify that name is
13507 either cond_op0 or cond_op1.
13508
13509 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13510
13511 PR tree-optimization/18046
13512 * genmodes.c (emit_mode_size_inline): Emit an assert that
13513 verifies that mode is a valid array index.
13514 (emit_mode_nuinits_inline): Likewise.
13515 (emit_mode_inner_inline): Likewise.
13516 (emit_mode_unit_size_inline): Likewise.
13517 (emit_mode_unit_precision_inline): Likewise.
13518 * tree-vrp.c: Include params.h.
13519 (find_switch_asserts): Register edge assertions for the default
13520 label which correspond to the anti-ranges of each case label.
13521 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
13522 * doc/invoke.texi: Document it.
13523
13524 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13525
13526 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
13527 and unnecessary call to gimple_bb.
13528
13529 2016-07-26 Richard Biener <rguenther@suse.de>
13530
13531 PR rtl-optimization/71984
13532 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
13533 for VOIDmode.
13534
13535 2016-07-26 Richard Biener <rguenther@suse.de>
13536
13537 PR middle-end/72517
13538 * expmed.c (extract_bit_field_1): Constrain the vector mode
13539 with element size matching the extraction mode size when
13540 choosing a better vector mode to do the extraction from.
13541
13542 2016-07-26 Richard Biener <rguenther@suse.de>
13543 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13544
13545 PR middle-end/70920
13546 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
13547 pattern.
13548
13549 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13550
13551 * tree-ssa-structalias.c (struct scc_info): Change types of
13552 members to auto_sbitmap and auto_vec.
13553 (scc_info::scc_info): New constructor.
13554 (scc_info::~scc_info): New destructor.
13555 (init_scc_info): Remove.
13556 (free_scc_info): Remove.
13557 (find_indirect_cycles): Adjust.
13558 (perform_var_substitution): Likewise.
13559 (free_var_substitution_info): Likewise.
13560
13561 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13562
13563 * tree-outof-ssa.c (struct elim_graph): Change type of members
13564 to auto_vec and auto_sbitmap.
13565 (elim_graph::elim_graph): New constructor.
13566 (delete_elim_graph): Remove.
13567 (expand_phi_nodes): Adjust.
13568
13569 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13570
13571 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
13572 (new_elim_graph): Adjust.
13573 (clear_elim_graph): Likewise.
13574 (delete_elim_graph): Likewise.
13575 (elim_graph_size): Likewise.
13576 (elim_graph_add_node): Likewise.
13577 (elim_graph_add_edge): Likewise.
13578 (elim_graph_remove_succ_edge): Likewise.
13579 (eliminate_name): Likewise.
13580 (eliminate_build): Likewise.
13581 (elim_forward): Likewise.
13582 (elim_unvisited_predecessor): Likewise.
13583 (elim_backward): Likewise.
13584 (elim_create): Likewise.
13585 (eliminate_phi): Likewise.
13586 (expand_phi_nodes): Likewise.
13587
13588 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13589
13590 * bt-load.c (compute_out): Use auto_sbitmap class.
13591 (link_btr_uses): Likewise.
13592 * cfganal.c (mark_dfs_back_edges): Likewise.
13593 (post_order_compute): Likewise.
13594 (inverted_post_order_compute): Likewise.
13595 (pre_and_rev_post_order_compute_fn): Likewise.
13596 (single_pred_before_succ_order): Likewise.
13597 * cfgexpand.c (pass_expand::execute): Likewise.
13598 * cfgloop.c (verify_loop_structure): Likewise.
13599 * cfgloopmanip.c (fix_bb_placements): Likewise.
13600 (remove_path): Likewise.
13601 (update_dominators_in_loop): Likewise.
13602 * cfgrtl.c (break_superblocks): Likewise.
13603 * ddg.c (check_sccs): Likewise.
13604 (create_ddg_all_sccs): Likewise.
13605 * df-core.c (df_worklist_dataflow): Likewise.
13606 * dse.c (dse_step3): Likewise.
13607 * except.c (eh_region_outermost): Likewise.
13608 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13609 * gcse.c (prune_expressions): Likewise.
13610 (prune_insertions_deletions): Likewise.
13611 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
13612 * graph.c (draw_cfg_nodes_no_loops): Likewise.
13613 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
13614 * lcm.c (compute_earliest): Likewise.
13615 (compute_farthest): Likewise.
13616 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
13617 (unroll_loop_runtime_iterations): Likewise.
13618 (unroll_loop_stupid): Likewise.
13619 * lower-subreg.c (decompose_multiword_subregs): Likewise.
13620 * lra-lives.c: Likewise.
13621 * lra.c (lra): Likewise.
13622 * modulo-sched.c (schedule_reg_moves): Likewise.
13623 (optimize_sc): Likewise.
13624 (get_sched_window): Likewise.
13625 (sms_schedule_by_order): Likewise.
13626 (check_nodes_order): Likewise.
13627 (order_nodes_of_sccs): Likewise.
13628 (order_nodes_in_scc): Likewise.
13629 * recog.c (split_all_insns): Likewise.
13630 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13631 * reload1.c (reload): Likewise.
13632 * sched-rgn.c (haifa_find_rgns): Likewise.
13633 (split_edges): Likewise.
13634 (compute_trg_info): Likewise.
13635 * sel-sched.c (init_seqno): Likewise.
13636 * store-motion.c (remove_reachable_equiv_notes): Likewise.
13637 * tree-into-ssa.c (update_ssa): Likewise.
13638 * tree-ssa-live.c (live_worklist): Likewise.
13639 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
13640 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13641 * Likewise.
13642 (try_peel_loop): Likewise.
13643 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
13644 * Likewise.
13645 * tree-ssa-pre.c (compute_antic): Likewise.
13646 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13647 * tree-stdarg.c (reachable_at_most_once): Likewise.
13648 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13649 * var-tracking.c (vt_find_locations): Likewise.
13650
13651 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13652
13653 * sbitmap.h (auto_sbitmap): New class.
13654
13655 2016-07-26 Alan Modra <amodra@gmail.com>
13656
13657 PR target/72103
13658 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
13659 sri->t_icode.
13660
13661 2016-07-25 David Malcolm <dmalcolm@redhat.com>
13662
13663 * input.c (selftest::temp_source_file::temp_source_file): Fix
13664 missing "%s" in fprintf.
13665
13666 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
13667
13668 PR middle-end/71732
13669 * cselib.c (cselib_process_insn): Invalidate argument slots for
13670 const/pure calls.
13671
13672 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13673
13674 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13675 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13676 vmulxh_lane_f16, vmulxh_laneq_f16): New.
13677
13678 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13679
13680 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13681 * config/aarch64/aarch64.md (fma, fnma): Support HF.
13682 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13683
13684 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13685
13686 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13687 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13688 New.
13689 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13690 (add<mode>3): Likewise.
13691 (sub<mode>3): Likewise.
13692 (mul<mode>3): Likewise.
13693 (div<mode>3): Likewise.
13694 (*div<mode>3): Likewise.
13695 (<fmaxmin><mode>3): Extend to HF.
13696 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13697 (fabd<mode>3): Likewise.
13698 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13699 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13700 (aarch64_fmulx<mode>): Likewise.
13701 (aarch64_fac<optab><mode>): Likewise.
13702 (aarch64_frecps<mode>): Likewise.
13703 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13704 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13705 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13706 (VSDQ_HSDI): Support HI.
13707 (fcvt_target, FCVT_TARGET): Likewise.
13708 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13709 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13710 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13711 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13712 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13713 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13714 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13715 vrsqrtsh_f16): New.
13716
13717 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13718
13719 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13720 * config/aarch64/aarch64-builtins.c (hi_UP): New.
13721 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13722 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13723 mode.
13724 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13725 (aarch64_cm<optab><mode>): Likewise.
13726 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13727 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13728 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13729 (sqrt<mode>2): Likewise.
13730 (*sqrt<mode>2): Likewise.
13731 (abs<mode>2): Likewise.
13732 (<optab><mode>hf2): New pattern for HF mode.
13733 (<optab>hihf2): Likewise.
13734 * config/aarch64/arm_neon.h: Include arm_fp16.h.
13735 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13736 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13737 Support HF mode.
13738 * config/aarch64/arm_fp16.h: New file.
13739 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13740 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13741 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13742 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13743 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13744 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13745 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13746 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13747 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13748 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13749 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13750 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13751 vsqrth_f16): New.
13752
13753 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13754
13755 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13756 reduc_smin_scal_): Use VDQIF_F16.
13757 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13758 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13759 Use VHSDF.
13760 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13761 * config/aarch64/iterators.md (VDQIF_F16): New.
13762 (vp): Support HF modes.
13763 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13764 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13765
13766 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13767
13768 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13769 "*aarch64_mulx_elt_from_dup<mode>".
13770 (*aarch64_mul3_elt<mode>): Update schedule type.
13771 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13772 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13773 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13774 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13775 (f, fp): Support HF modes.
13776 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13777 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13778 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13779 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13780 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13781 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13782
13783 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13784
13785 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13786 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13787 modes.
13788 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13789 vfmsq_f16): New.
13790
13791 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13792
13793 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13794 * config/aarch64/aarch64-simd.md
13795 (aarch64_rsqrts<mode>): Extend to HF modes.
13796 (fabd<mode>3): Likewise.
13797 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13798 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13799 (aarch64_<maxmin_uns>p<mode>): Likewise.
13800 (<su><maxmin><mode>3): Likewise.
13801 (<maxmin_uns><mode>3): Likewise.
13802 (<fmaxmin><mode>3): Likewise.
13803 (aarch64_faddp<mode>): Likewise.
13804 (aarch64_fmulx<mode>): Likewise.
13805 (aarch64_frecps<mode>): Likewise.
13806 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13807 (add<mode>3): Extend to HF modes.
13808 (sub<mode>3): Likewise.
13809 (mul<mode>3): Likewise.
13810 (div<mode>3): Likewise.
13811 (*div<mode>3): Likewise.
13812 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13813 HF, V4HF and V8HF.
13814 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13815 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13816 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13817 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13818 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13819 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13820 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13821 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13822 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13823 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13824 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13825 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13826 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13827 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13828
13829 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13830
13831 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13832 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13833 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13834 (neg<mode>2): Likewise.
13835 (abs<mode>2): Likewise.
13836 (<frint_pattern><mode>2): Likewise.
13837 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13838 (<optab><VDQF:mode><fcvt_target>2): Likewise.
13839 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13840 (ftrunc<VDQF:mode>2): Likewise.
13841 (<optab><fcvt_target><VDQF:mode>2): Likewise.
13842 (sqrt<mode>2): Likewise.
13843 (*sqrt<mode>2): Likewise.
13844 (aarch64_frecpe<mode>): Likewise.
13845 (aarch64_cm<optab><mode>): Likewise.
13846 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13847 HF, V4HF and V8HF.
13848 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13849 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13850 (stype): New.
13851 * config/aarch64/arm_neon.h (vdup_n_f16): New.
13852 (vdupq_n_f16): Likewise.
13853 (vld1_dup_f16): Use vdup_n_f16.
13854 (vld1q_dup_f16): Use vdupq_n_f16.
13855 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13856 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13857 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13858 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13859 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13860 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13861 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13862 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13863 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13864 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13865 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13866 vsqrt_f16, vsqrtq_f16): New.
13867
13868 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13869
13870 * config/aarch64/aarch64-simd.md
13871 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13872 (aarch64_ext<mode>): Likewise.
13873 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13874 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13875 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13876 and V8HFmode.
13877 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13878 float16x8_t.
13879 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13880 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13881 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13882 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13883 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13884 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13885 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13886 New.
13887 (vmov_n_f16): Reimplement using vdup_n_f16.
13888 (vmovq_n_f16): Reimplement using vdupq_n_f16..
13889
13890 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13891
13892 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13893 "frame_related_p". Generate CFA annotation when it's necessary.
13894 (aarch64_expand_prologue): Use aarch64_add_constant.
13895 (aarch64_expand_epilogue): Likewise.
13896 (aarch64_output_mi_thunk): Pass "false" when calling
13897 aarch64_add_constant.
13898
13899 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13900
13901 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13902 sequences.
13903
13904 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13905
13906 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13907 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13908 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13909 (aarch64_build_constant): Delete.
13910
13911 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
13912
13913 Revert
13914 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13915
13916 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13917 flag_toplevel_reorder.
13918
13919 2016-07-25 Richard Biener <rguenther@suse.de>
13920
13921 * cgraph.c (cgraph_node::verify_node): Compare against builtin
13922 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13923 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13924 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13925 (streamer_get_builtin_tree): Likewise.
13926 (streamer_write_builtin): Likewise.
13927 * lto-streamer.h (LTO_builtin_decl): Remove.
13928 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13929 (lto_input_scc): Remove LTO_builtin_decl handling.
13930 (lto_input_tree_1): Liekwise.
13931 * lto-streamer-out.c (lto_output_tree_1): Remove special
13932 handling of builtins.
13933 (DFS::DFS): Likewise.
13934 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13935 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13936 assert.
13937 (streamer_write_builtin): Remove.
13938
13939 2016-07-25 Martin Liska <mliska@suse.cz>
13940
13941 * lto-cgraph.c (input_symtab): Don't call get_working_sets
13942 if flag_auto_profile is set to true.
13943
13944 2016-07-25 Martin Liska <mliska@suse.cz>
13945
13946 PR gcov-profile/71868
13947 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13948 have a function with multiple latches, count them all.
13949
13950 2016-07-25 Martin Liska <mliska@suse.cz>
13951
13952 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13953
13954 2016-07-25 Martin Liska <mliska@suse.cz>
13955
13956 PR tree-optimization/71987
13957 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13958 just for SSA_NAMEs. Fix GNU coding style.
13959
13960 2016-07-25 Martin Liska <mliska@suse.cz>
13961
13962 PR gcov-profile/64874
13963 * gcov-io.h: Update command about file format.
13964 * gcov-iov.c (main): Adapt the numbering scheme.
13965
13966 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13967
13968 PR middle-end/66726
13969 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13970 whose result is used in PHI.
13971 (final_range_test_p): Likewise.
13972 (maybe_optimize_range_tests): Likewise.
13973
13974 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13975
13976 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13977 Reformat two multi-line strings.
13978
13979 2016-07-22 Martin Sebor <msebor@redhat.com>
13980
13981 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
13982
13983 2016-07-22 Martin Sebor <msebor@redhat.com>
13984
13985 PR c/71560
13986 * doc/extend.texi (Compound Literals): Correct and clarify.
13987 (Cast to Union): Same.
13988
13989 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
13990
13991 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13992 comments to explain why certain error messages make mention of
13993 undocumented options.
13994 (rs6000_invalid_builtin): Change error messages to replace mention
13995 of undocumented options with mention of the -mcpu=power9 option
13996 that enables those undocumented options.
13997 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
13998 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
13999 definition of this macro to correct an existing error.
14000 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
14001 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
14002 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
14003 descriptions of built-in functions so that they depend on
14004 -mcpu=power9 instead of on the corresponding undocumented flags.
14005 * doc/invoke.texi (Option Summary): Remove all mention of newly
14006 undocumented flags.
14007 (IBM RS/6000 and PowerPC Options): Likewise.
14008 * doc/md.texi (Constraints for Particuliar Machines): Remove all
14009 mention of newly undocumented flags.
14010
14011 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
14012
14013 * ipa-cp.c (determine_versionability): Do not create constprop clones,
14014 when target_clones attribute is set.
14015
14016 2016-07-22 Bin Cheng <bin.cheng@arm.com>
14017
14018 * common.opt (funsafe-loop-optimizations): Mark ignore.
14019 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
14020 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
14021 related code.
14022 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
14023 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
14024
14025 2016-07-22 Bin Cheng <bin.cheng@arm.com>
14026
14027 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14028 Parameter.
14029 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14030 Parameter.
14031 (number_of_iterations_exit): Warn missed loop optimization for
14032 possible infinite loops.
14033
14034 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
14035
14036 PR target/71216
14037 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
14038 when to emit a ".machine" pseudo-op.
14039
14040 2016-07-22 Martin Liska <mliska@suse.cz>
14041
14042 PR gcov-profile/69028
14043 PR gcov-profile/62047
14044 * coverage.c (coverage_compute_lineno_checksum): Do not
14045 calculate checksum for fns w/o xloc.file.
14046 (coverage_compute_profile_id): Likewise.
14047
14048 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
14049
14050 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
14051 (avr_secondary_reload): ...and implementation.
14052 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
14053 * config/avr/avr.md (reload_in<mode>): Remove insns.
14054 (adjust_len) [lpm]: Remove insn attribute value.
14055 * config/avr/predicates.md (flash_operand): Remove insn predicate.
14056
14057 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14058
14059 PR middle-end/71876
14060 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
14061 attribute.
14062 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
14063 * calls.c (special_function_p): Remove the special handling of the
14064 "__builtin_" prefix.
14065
14066 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14067
14068 PR middle-end/71876
14069 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
14070 if STMT may be an alloca call.
14071 (gimple_alloca_call_p, alloca_call_p): Return only true for the
14072 builtin alloca call.
14073 * calls.h (gimple_maybe_alloca_call_p): New function.
14074 * tree-inline.c (inline_forbidden_p_stmt): Use
14075 gimple_maybe_alloca_call_p here.
14076
14077 2016-07-21 David Malcolm <dmalcolm@redhat.com>
14078
14079 * spellcheck-tree.c (best_macro_match::best_macro_match):
14080 Explictly specify the template arguments when invoking the base
14081 class constructor, to help older C++ compilers.
14082
14083 2016-07-21 Jakub Jelinek <jakub@redhat.com>
14084
14085 PR sanitizer/71953
14086 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
14087 before builtin_decl_implicit.
14088
14089 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
14090
14091 * optabs.c (emit_condiitonal_move): Short circuit for identical
14092 sources.
14093
14094 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
14095
14096 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
14097 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
14098 (noce_conversion_profitable_p): New.
14099 (noce_try_store_flag_constants): Use it.
14100 (noce_try_addcc): Likewise.
14101 (noce_try_store_flag_mask): Likewise.
14102 (noce_try_cmove): Likewise.
14103 (noce_try_cmove_arith): Likewise.
14104 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
14105 overwriting it.
14106 (noce_convert_multiple_sets): Move cost model to here, from...
14107 (bb_ok_for_noce_convert_multiple_sets) ...here.
14108 (noce_process_if_block): Update calls for above changes.
14109 (noce_find_if_block): Record new noce_if_info parameters.
14110
14111 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
14112
14113 * target.def (max_noce_ifcvt_seq_cost): New.
14114 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
14115 * doc/tm.texi: Regenerate.
14116 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
14117 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
14118 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
14119 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
14120 * doc/invoke.texi: Document new params.
14121
14122 2016-07-21 Richard Biener <rguenther@suse.de>
14123
14124 PR tree-optimization/71947
14125 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
14126 ranges have useful limit_vr information.
14127
14128 2016-07-21 Richard Biener <rguenther@suse.de>
14129
14130 * function-tests.c (build_trivial_generic_function): Set
14131 BLOCK_SUPERCONTEXT of DECL_INITIAL.
14132 * omp-low.c (create_omp_child_function): Likewise.
14133 (grid_expand_target_grid_body): Likewise.
14134 * cgraphunit.c (init_lowered_empty_function): Likewise.
14135 (cgraph_node::expand_thunk): Likewise.
14136 * tree-parloops.c (create_loop_fn): Likewise.
14137 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
14138
14139 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14140
14141 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
14142 in comment.
14143
14144 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
14145
14146 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
14147 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
14148 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
14149 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
14150 values for insn attribute.
14151 * config/avr/avr.c (avr_out_insert_notbit): New function.
14152 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
14153 ADJUST_LEN_INSV_NOTBIT_0/_7.
14154 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
14155
14156 2016-07-21 Bin Cheng <bin.cheng@arm.com>
14157
14158 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
14159 (chrec_convert_1, chrec_convert): Ditto.
14160 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
14161 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
14162 * tree-vrp.c (adjust_range_with_scev): Ditto.
14163 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
14164 (scev_var_range_cant_overflow): New function.
14165 (scev_probably_wraps_p): New parameter. Call above function.
14166 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
14167
14168 2016-07-21 Bin Cheng <bin.cheng@arm.com>
14169
14170 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
14171 by removing computation of may_be_zero.
14172
14173 2016-07-21 Jakub Jelinek <jakub@redhat.com>
14174
14175 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
14176
14177 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
14178
14179 Improving concepts performance and diagnostics.
14180 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
14181 for constraint satisfaction and subsumption.
14182 * timevar.h (auto_timevar): New constructor that matches the push/pop
14183 pattern of usage in pt.c.
14184
14185 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
14186
14187 * hwint.h (HOST_WIDE_INT_0): New define.
14188 (HOST_WIDE_INT_0U): Ditto.
14189 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
14190 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
14191 * simplify-rtx.c: Ditto.
14192 * tree-object-size.c: Ditto.
14193
14194 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14195
14196 * config/s390/s390.c (s390_encode_section_info): Remove mode size
14197 check.
14198
14199 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
14200
14201 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
14202 * combine.c: Use HOST_WIDE_INT_M1U instead of
14203 ~(unsigned HOST_WIDE_INT) 0.
14204 * double-int.h: Ditto.
14205 * dse.c: Ditto.
14206 * dwarf2asm.c:Ditto.
14207 * expmed.c: Ditto.
14208 * genmodes.c: Ditto.
14209 * match.pd: Ditto.
14210 * read-rtl.c: Ditto.
14211 * tree-ssa-loop-ivopts.c: Ditto.
14212 * tree-ssa-loop-prefetch.c: Ditto.
14213 * tree-vect-generic.c: Ditto.
14214 * tree-vect-patterns.c: Ditto.
14215 * tree.c: Ditto.
14216
14217 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14218
14219 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
14220 constant addresses outside [0,0xc0] into a register.
14221 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
14222 cases where the base address register is unused after.
14223 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
14224 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
14225 (avr_out_store_psi_reg_disp_tiny): Same.
14226
14227 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14228
14229 Implement attribute progmem on reduced Tiny cores by adding
14230 flash offset 0x4000 to respective symbols.
14231
14232 PR target/71948
14233 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
14234 documentation how it works on reduced Tiny cores.
14235 (AVR Named Address Spaces): No support for reduced Tiny.
14236 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
14237 (avr_address_tiny_pm_p): New static function.
14238 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
14239 if the address is in progmem.
14240 (avr_assemble_integer): Same.
14241 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
14242 for symbol_ref in progmem.
14243 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
14244 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
14245 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
14246
14247 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
14248
14249 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
14250 * configure: Regenerate.
14251 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
14252 (USE_THIN_ARCHIVES): New variable.
14253 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
14254 this archive as a thin archive.
14255
14256 2016-07-20 David Malcolm <dmalcolm@redhat.com>
14257
14258 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
14259 same location as last time, don't skip if we have fix-it hints.
14260 Clarify the skipping logic by converting it from one "if" clause
14261 to repeated "if" clauses.
14262 * spellcheck-tree.c: Include "cpplib.h".
14263 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
14264 (best_macro_match::best_macro_match): New constructor.
14265 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
14266 Move here from c/c-decl.c.
14267 (class best_macro_match): Move here from c/c-decl.c, converting
14268 from a typedef to a subclass, gaining a ctor.
14269
14270 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14271
14272 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
14273 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
14274 define...
14275 (avr_addr_space_diagnose_usage): ...and implementation.
14276 (avr_addr_space_supported_p): New function.
14277 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
14278 report bad address space usage if that space is supported.
14279 (avr_insert_attributes): Same. No more complain about unsupported
14280 address spaces.
14281 * config/avr/avr-c.c (tm_p.h): Include it.
14282 (avr_cpu_cpp_builtins): Only define addr-space related built-in
14283 macro if avr_addr_space_supported_p.
14284
14285 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
14286
14287 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
14288 flag_toplevel_reorder.
14289
14290 2016-07-20 David Malcolm <dmalcolm@redhat.com>
14291
14292 * gcc-rich-location.c
14293 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
14294 a const char *.
14295 * gcc-rich-location.h
14296 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
14297
14298 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14299
14300 * target.def (addr_space): Add new diagnose_usage to hook vector.
14301 * targhooks.c (default_addr_space_diagnose_usage): Add default
14302 implementation and...
14303 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
14304 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
14305 is some address space, call targetm.addr_space.diagnose_usage.
14306 * doc/tm.texi.in (Named Address Spaces): Add anchor for
14307 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
14308 * doc/tm.texi: Regenerate.
14309
14310 2016-07-20 Martin Liska <mliska@suse.cz>
14311
14312 PR middle-end/71898
14313 * graphite-isl-ast-to-gimple.c (later_of_the_two):
14314 Properly handly PHI stmts.
14315
14316 2016-07-20 Bin Cheng <bin.cheng@arm.com>
14317
14318 PR tree-optimization/71503
14319 PR tree-optimization/71683
14320 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
14321 and break.
14322
14323 2016-07-20 Martin Liska <mliska@suse.cz>
14324
14325 * doc/invoke.texi (-fipa-ra): Document when the option is
14326 disabled. Fix a typo.
14327
14328 2016-07-20 Martin Liska <mliska@suse.cz>
14329
14330 * Makefile.in: Include fibonacci_heap.c
14331 * fibonacci_heap.c: New file.
14332 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
14333 (fibonacci_heap::union_with): Fix deletion of the second heap.
14334 * selftest-run-tests.c (selftest::run_tests): Incorporate
14335 fibonacci heap tests.
14336 * selftest.h: Declare fibonacci_heap_c_tests.
14337
14338 2016-07-20 Martin Liska <mliska@suse.cz>
14339
14340 * selftest-run-tests.c (selftest::run_tests): New function.
14341 * selftest.h (sreal_c_tests): Declare.
14342 * sreal.c (sreal_verify_basics): New function.
14343 (verify_aritmetics): Likewise.
14344 (sreal_verify_arithmetics): Likewise.
14345 (verify_shifting): Likewise.
14346 (sreal_verify_shifting): Likewise.
14347 (void sreal_c_tests): Likewise.
14348
14349 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14350
14351 PR rtl-optimization/71916
14352 * cfgrtl.c (contains_no_active_insn_p): Return false also for
14353 bb which have a single succ fake edge.
14354
14355 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
14356
14357 PR debug/71855
14358 * dwarf2out.c (gen_subprogram_die): Only call
14359 gen_unspecified_parameters_die while dumping early dwarf.
14360
14361 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14362
14363 PR middle-end/71874
14364 * gimple-fold.c (fold_builtin_memory_op): Use
14365 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
14366
14367 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
14368
14369 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
14370 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
14371 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
14372 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
14373 * combine.c: Ditto.
14374 * cse.c: Ditto.
14375 * dojump.c: Ditto.
14376 * double-int.c: Ditto.
14377 * dse.c: Ditto.
14378 * dwarf2out.c: Ditto.
14379 * expmed.c: Ditto.
14380 * expr.c: Ditto.
14381 * fold-const.c: Ditto.
14382 * function.c: Ditto.
14383 * fwprop.c: Ditto.
14384 * genmodes.c: Ditto.
14385 * hwint.c: Ditto.
14386 * hwint.h: Ditto.
14387 * ifcvt.c: Ditto.
14388 * loop-doloop.c: Ditto.
14389 * loop-invariant.c: Ditto.
14390 * loop-iv.c: Ditto.
14391 * match.pd: Ditto.
14392 * optabs.c: Ditto.
14393 * real.c: Ditto.
14394 * reload.c: Ditto.
14395 * rtlanal.c: Ditto.
14396 * simplify-rtx.c: Ditto.
14397 * stor-layout.c: Ditto.
14398 * toplev.c: Ditto.
14399 * tree-ssa-loop-ivopts.c: Ditto.
14400 * tree-vect-generic.c: Ditto.
14401 * tree-vect-patterns.c: Ditto.
14402 * tree.c: Ditto.
14403 * tree.h: Ditto.
14404 * ubsan.c: Ditto.
14405 * varasm.c: Ditto.
14406 * wide-int-print.cc: Ditto.
14407 * wide-int.cc: Ditto.
14408 * wide-int.h: Ditto.
14409
14410 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14411
14412 * selftest.c (selftest::assert_streq): Handle NULL values of
14413 val_actual and val_expected.
14414
14415 2016-07-19 Martin Jambor <mjambor@suse.cz>
14416
14417 PR fortran/71688
14418 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
14419 rather than cgraph_create_node to get a call graph node.
14420
14421 2016-07-19 Richard Biener <rguenther@suse.de>
14422
14423 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
14424 handle all tcc_constant bases and valueize SSA names.
14425 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
14426 tcc_constant bases.
14427
14428 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14429
14430 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
14431 the flags of the exit block and bb2, not just the entry block.
14432
14433 2016-07-19 Richard Biener <rguenther@suse.de>
14434
14435 PR tree-optimization/71901
14436 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14437 align member, group stuff with the bitfield.
14438 (vn_ref_op_align_unit): New inline.
14439 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
14440 record element alignment and operand 3 unchanged.
14441 (ao_ref_init_from_vn_reference): Adjust.
14442 (valueize_refs_1): Likewise.
14443 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14444
14445 2016-07-19 Richard Biener <rguenther@suse.de>
14446
14447 PR tree-optimization/71908
14448 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
14449 symbolic constants in a more reliable way.
14450
14451 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
14452
14453 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
14454 comment.
14455 (vect_update_inits_of_drs): Likewise.
14456 (vect_create_cond_for_alias_checks): Likewise.
14457 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
14458
14459 2016-07-19 Richard Biener <rguenther@suse.de>
14460
14461 PR lto/71907
14462 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
14463 with an abstract origin that is not an inlined function outer
14464 scope add a self-reference as abstract origin.
14465 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
14466
14467 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14468
14469 PR target/71493
14470 * config/rs6000/rs6000.c (rs6000_function_value): Fix
14471 unintentional System V.4 structure return breakage for structures
14472 with a single floating point element.
14473
14474 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14475
14476 PR tree-optimization/71734
14477 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
14478 contains REF, use it to check safelen, assume that safelen value
14479 must be greater 1, fix style.
14480 (ref_indep_loop_p_2): Add REF_LOOP argument.
14481 (ref_indep_loop_p): Pass LOOP as additional argument to
14482 ref_indep_loop_p_2.
14483
14484 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
14485
14486 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
14487 allocation in the prologue.
14488 * explow.c (get_dynamic_stack_base): New function to return an address
14489 expression for the dynamic stack base.
14490 (get_dynamic_stack_size): New function to do the required dynamic stack
14491 space size calculations.
14492 (allocate_dynamic_stack_space): Use new functions.
14493 (align_dynamic_address): Move some code from
14494 allocate_dynamic_stack_space to new function.
14495 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
14496
14497 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14498
14499 * config/s390/s390.c (s390_encode_section_info): Always set
14500 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
14501 found.
14502
14503 2016-07-18 Richard Biener <rguenther@suse.de>
14504
14505 PR tree-optimization/71893
14506 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
14507 for sizetype cast added by array_ref_element_size.
14508 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14509
14510 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
14511
14512 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
14513 register parameters. Remove code to initialize argument pointer
14514 on TARGET_64BIT. Optimize call to _mcount when it can be reached
14515 using a pc-relative branch. Cleanup conditional code.
14516 * config/pa/pa.md (call_mcount): New expander.
14517 (call_mcount_nonpic): New insn.
14518 (call_mcount_pic): New insn and split.
14519 (call_mcount_pic_post_reload): New insn.
14520 (call_mcount_64bit): New insn and split.
14521 (call_mcount_64bit_post_reload): New insn.
14522
14523 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
14524
14525 * config/avr/predicates.md (const_m255_to_m1_operand): New.
14526 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
14527 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
14528 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
14529 (*usum_widenqihi3, *udiff_widenqihi3)
14530 (*addhi3_zero_extend.const): New combiner insns.
14531 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
14532 just 1 bit is affected.
14533 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
14534 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
14535
14536 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
14537
14538 * omp-low.c (lower_omp_target): Mark data clauses with
14539 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
14540 zero-length subarrays.
14541
14542 2016-07-15 Richard Biener <rguenther@suse.de>
14543
14544 PR tree-optimization/71881
14545 * tree-loop-distribution.c (destroy_loop): Remove blocks in
14546 reverse DOM order to make debug temp generation happy.
14547
14548 2016-07-15 Richard Biener <rguenther@suse.de>
14549
14550 PR tree-optimization/71887
14551 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
14552 verify it is not zero for division / modulo handling.
14553 (value_replacement): Adjust.
14554
14555 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
14556 Julian Brown <julian@codesourcery.com>
14557
14558 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
14559 * config/aarch64/aarch64-cost-tables.h
14560 (vulcan_extra_costs): New variable.
14561 * config/aarch64/aarch64.c
14562 (vulcan_addrcost_table): Likewise.
14563 (vulcan_regmove_cost): Likewise.
14564 (vulcan_vector_cost): Likewise.
14565 (vulcan_branch_cost): Likewise.
14566 (vulcan_tunings): Likewise.
14567
14568 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
14569
14570 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
14571 (output_in_order): Loop over undefined variables too. Output them
14572 via assemble_undefined_decl. Skip variables that correspond to hard
14573 registers or have value-exprs.
14574 * varpool.c (symbol_table::output_variables): Handle undefined
14575 variables together with defined ones.
14576
14577 2016-07-15 Richard Biener <rguenther@suse.de>
14578
14579 * tree-ssa-pre.c (get_representative_for): Make sure to return
14580 the value number of SSA names.
14581 (phi_translate_1): get_representative_for cannot return NULL.
14582 (do_pre_regular_insertion): Remove redundant call to
14583 fully_constant_expression.
14584 (do_pre_partial_partial_insertion): Likewise.
14585
14586 2016-07-15 Bin Cheng <bin.cheng@arm.com>
14587
14588 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
14589 (derive_simple_iv_with_niters): New function.
14590 (simple_iv): Rewrite using simple_iv_with_niters.
14591 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
14592 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14593 function.
14594 (number_of_iterations_exit): Rewrite using above function.
14595 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14596 Decl.
14597
14598 2016-07-15 Richard Biener <rguenther@suse.de>
14599
14600 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
14601 vec_construct cost.
14602
14603 2016-07-14 Jakub Jelinek <jakub@redhat.com>
14604
14605 PR tree-optimization/71872
14606 * tree-data-ref.c (get_references_in_stmt): Ignore references
14607 with is_gimple_constant get_base_address.
14608
14609 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14610
14611 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
14612 (TARGET_HAVE_LDACQD): New macro.
14613 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
14614 than TARGET_HAVE_LDACQ.
14615 (arm_load_acquire_exclusivedi): Likewise.
14616 (arm_store_release_exclusivedi): Likewise.
14617
14618 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14619
14620 PR rtl-optimization/71878
14621 * lra-constraints.c (match_reload): Pass information about other
14622 output operands. Create new unique register value if matching input
14623 operand shares same register value as output operand being considered.
14624 (curr_insn_transform): Record output operands already processed.
14625
14626 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14627
14628 PR target/65951
14629 PR tree-optimization/70923
14630 * tree-vect-patterns.c: Include mult-synthesis.h.
14631 (target_supports_mult_synth_alg): New function.
14632 (synth_lshift_by_additions): Likewise.
14633 (apply_binop_and_append_stmt): Likewise.
14634 (vect_synth_mult_by_constant): Likewise.
14635 (target_has_vecop_for_code): Likewise.
14636 (vect_recog_mult_pattern): Use above functions to synthesize vector
14637 multiplication by integer constants.
14638
14639 2016-07-14 Alan Modra <amodra@gmail.com>
14640
14641 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
14642 gpr alternatives. Correct '*' placement on Y,r alternative.
14643 Add '*' on operand 1 of r,r alternative.
14644
14645 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14646
14647 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
14648 * expmed.h: ... Here.
14649
14650 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
14651
14652 * gimple.h (stmt_can_terminate_bb_p): New function.
14653 * tree-cfg.c (need_fake_edge_p): Rename to ...
14654 (stmt_can_terminate_bb_p): ... this; return true if stmt can
14655 throw external; handle const and pure calls.
14656 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
14657
14658 2016-07-14 Richard Biener <rguenther@suse.de>
14659
14660 PR tree-optimization/71866
14661 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
14662 (do_hoist_insertion): Avoid endless recursion when we
14663 didn't insert anything because we managed to simplify
14664 things down to a constant or SSA name.
14665 (fully_constant_expression): Re-write in terms of ...
14666 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
14667 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14668 vn_nary_build_or_lookup_1.
14669 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14670 (vn_nary_build_or_lookup): ... this which now wraps it.
14671
14672 2016-07-14 Alan Modra <amodra@gmail.com>
14673
14674 PR target/71733
14675 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14676 with p9_vector override before power9-dform override.
14677
14678 2016-07-13 Andi Kleen <ak@linux.intel.com>
14679
14680 * value-prof.c (gimple_value_profile_transformations): Don't run
14681 when auto_profile is on.
14682
14683 2016-07-13 Andi Kleen <ak@linux.intel.com>
14684
14685 * auto-profile.c (update_inlined_ind_target,
14686 afdo_indirect_call): Print information to dump file.
14687
14688 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
14689
14690 * genrecog.c (special_predicate_operand_p): New function.
14691 (predicate_name): Move function.
14692 (validate_pattern): Don't warn about missing mode for all
14693 define_special_predicate predicates.
14694
14695 2016-07-13 Bin Cheng <bin.cheng@arm.com>
14696
14697 * tree-vect-data-refs.c (vect_no_alias_p): New function.
14698 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14699 resolve alias checks which are known at compilation time.
14700 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14701 alias checks are resolved. Move dump info for too many runtime
14702 alias checks to here...
14703 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14704
14705 2016-07-13 Richard Biener <rguenther@suse.de>
14706
14707 PR tree-optimization/24574
14708 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14709 position and add shift, rotate, divison and modulo support
14710 for left zero.
14711 (value_replacement): Pass in argument position to absorbing_element_p.
14712
14713 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
14714
14715 PR ipa/71633
14716 * ipa-inline-transform.c (inline_call): Support
14717 instrumented thunks.
14718
14719 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14720
14721 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14722 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14723 divide feature.
14724 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14725 Baseline. Make initial alternative TARGET_32BIT only.
14726 (udivsi3): Likewise.
14727 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14728 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14729 target.
14730
14731 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14732
14733 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14734 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14735 availability with TARGET_HAVE_MOVT.
14736 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14737 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14738 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14739 UINTVAL.
14740 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14741 extra instruction if MOVW is available. Use a cost variable
14742 incremented by COSTS_N_INSNS (1) when the condition match rather than
14743 returning an arithmetic expression based on COSTS_N_INSNS. Make
14744 constant with bottom half word zero cost 2 instruction if MOVW is
14745 available.
14746 * config/arm/arm.md (define_attr "arch"): Add v8mb.
14747 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14748 target is ARMv8-M Baseline.
14749 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14750 (arm_movtas_ze): Likewise.
14751 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14752 alternative for constants satisfying j constraint.
14753 (thumb1_movsi_insn): Likewise.
14754 (movsi splitter for K alternative): Tighten condition to not trigger
14755 if movt is available and j constraint is satisfied.
14756 (Pe immediate splitter): Likewise.
14757 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14758 constant fitting in an halfword to use MOVW.
14759 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14760 effective target.
14761
14762 2016-07-13 Richard Biener <rguenther@suse.de>
14763
14764 PR middle-end/71104
14765 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14766 gimplifying the LHS. Make sure to gimplify a returning twice
14767 call LHS without using SSA names.
14768
14769 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14770
14771 * tree-data-ref.c (find_data_references_in_stmt): Remove
14772 unnecessary call to vec::release.
14773 (graphite_find_data_references_in_stmt): Likewise.
14774 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14775 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14776
14777 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14778
14779 * cfgexpand.c (expand_used_vars): Make the type of a local
14780 variable auto_vec.
14781 * genmatch.c (lower_for): Likewise.
14782 * haifa-sched.c (haifa_sched_init): Likewise.
14783 (add_to_speculative_block): Likewise.
14784 (create_check_block_twin): Likewise.
14785 * predict.c (handle_missing_profiles): Likewise.
14786 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14787 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14788 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14789 Likewise.
14790 (maybe_lower_iteration_bound): Likewise.
14791 * tree-ssa-sccvn.c (DFS): Likewise.
14792 * tree-stdarg.c (reachable_at_most_once): Likewise.
14793 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14794 (vectorizable_store): Likewise.
14795
14796 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14797
14798 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14799 (sccvn_dom_walker): make cond_stack an auto_vec.
14800
14801 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14802
14803 * ree.c (struct ext_state): Make type of members auto_vec.
14804 (find_and_remove_re): Adjust.
14805
14806 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14807
14808 * cfgexpand.c (struct stack_vars_data): Make type of fields
14809 auto_vec.
14810 (expand_used_vars): Adjust.
14811
14812 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14813
14814 * ipa.c (record_cdtor_fn): Adjust.
14815 (build_cdtor_fns): Likewise.
14816 (ipa_cdtor_merge): Make static_ctors and static_dtors local
14817 variables.
14818
14819 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14820
14821 * genextract.c (struct accum_extract): Add constructor and make
14822 members auto_vec.
14823 (gen_insn): Adjust.
14824
14825 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14826
14827 * tree.c (struct free_lang_data_d): Add constructor and change
14828 types of members to ones that automatically manage resources.
14829 (fld_worklist_push): Adjust.
14830 (find_decls_types): Likewise.
14831 (find_decls_types_in_eh_region): Likewise.
14832 (free_lang_data_in_cgraph): Stop manually creating and
14833 destroying members of free_lang_data_d.
14834
14835 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
14836
14837 PR rtl-optimization/68961
14838 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14839 peephole variant. Use sse_reg_operand predicates.
14840
14841 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
14842
14843 * config/i386/predicates.md (x86_64_immediate_operand)
14844 <case CONST_INT>: Remove unneeded truncation to DImode.
14845 <case CONST>: Ditto.
14846 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14847
14848 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14849
14850 PR target/71805
14851 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14852 The xxperm and xxpermr instructions require that the 2nd input
14853 operand overlap with the output operand, and not the 1st.
14854 (altivec_vperm_v8hiv16qi): Likewise.
14855 (altivec_vperm_<mode>_uns_internal): Likewise.
14856 (altivec_vpermr_<mode>_internal): Likewise.
14857 (vperm_v8hiv4si): Likewise.
14858 (vperm_v16qiv8hi): Likewise.
14859
14860 2016-07-12 Nathan Sidwell <nathan@acm.org>
14861
14862 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14863 when -mno-pic-data-is-text-relative is in effect, by default.
14864 * doc/invoke.texi (mpic-data-is-text-relative): Document new
14865 behavior and clarify.
14866
14867 2016-07-12 Martin Liska <mliska@suse.cz>
14868
14869 * params.def: Add avg-loop niter.
14870 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14871 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14872 * doc/invoke.texi: Document the new parameter.
14873
14874 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14875
14876 PR middle-end/71700
14877 * expr.c (store_constructor): Mask sign-extended bits when widening
14878 sub-word constructor element at the start of a word.
14879
14880 2016-07-12 Martin Liska <mliska@suse.cz>
14881
14882 * Makefile.in: Append rule for params-options.h.
14883 * params-options.h: New file.
14884
14885 2016-07-12 Martin Liska <mliska@suse.cz>
14886
14887 * ira-build.c (mark_loops_for_removal): Properly iterate
14888 loops.
14889
14890 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
14891 Richard Biener <rguenther@suse.de>
14892
14893 PR tree-optimization/23286
14894 PR tree-optimization/70159
14895 * doc/invoke.texi: Document -fcode-hoisting.
14896 * common.opt (fcode-hoisting): New flag.
14897 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14898 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14899 (do_regular_insertion): Rename to ...
14900 (do_pre_regular_insertion): ... this and amend general comments
14901 on insertion strathegy.
14902 (do_partial_partial_insertion): Rename to ...
14903 (do_pre_partial_partial_insertion): ... this.
14904 (do_hoist_insertion): New function.
14905 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14906 and call do_hoist_insertion properly.
14907 (insert): Adjust.
14908 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14909 (pass_pre::execute): Register hoist_insert stats.
14910
14911 2016-07-12 Jakub Jelinek <jakub@redhat.com>
14912
14913 PR middle-end/71716
14914 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14915 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14916 is different from mode's bitsize. Small cleanup.
14917
14918 2016-07-12 Richard Biener <rguenther@suse.de>
14919
14920 PR rtl-optimization/68961
14921 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14922 to simplify to a non-constant.
14923
14924 2016-07-11 Jakub Jelinek <jakub@redhat.com>
14925
14926 PR middle-end/71758
14927 * omp-low.c (expand_omp_target): Gimplify device.
14928
14929 PR tree-optimization/71823
14930 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14931 to get vec_oprnds2 from op2.
14932
14933 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
14934
14935 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14936 Hoist common subexpressions.
14937 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14938
14939 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
14940
14941 PR target/71800
14942 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14943 prevent generation of 'stxsiwx' on pre Power8 hardware.
14944
14945 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14946
14947 * input.c: Include cpplib.h.
14948 (selftest::temp_source_file): New class.
14949 (selftest::temp_source_file::temp_source_file): New ctor.
14950 (selftest::temp_source_file::~temp_source_file): New dtor.
14951 (selftest::should_have_column_data_p): New function.
14952 (selftest::test_should_have_column_data_p): New function.
14953 (selftest::temp_line_table): New class.
14954 (selftest::temp_line_table::temp_line_table): New ctor.
14955 (selftest::temp_line_table::~temp_line_table): New dtor.
14956 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14957 it to create a temp_line_table.
14958 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14959 locations that are known to have column data.
14960 (selftest::line_table_case): New struct.
14961 (selftest::test_reading_source_line): Move tempfile handling
14962 to class temp_source_file.
14963 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14964 (selftest::assert_token_loc_eq): New function.
14965 (ASSERT_TOKEN_LOC_EQ): New macro.
14966 (selftest::test_lexer): New function.
14967 (selftest::boundary_locations): New array.
14968 (selftest::input_c_tests): Call test_should_have_column_data_p.
14969 Loop over a test matrix of interesting values of location and
14970 default_range_bits, calling test_lexer on each case in the matrix.
14971 Move call to test_accessing_ordinary_linemaps into the matrix.
14972 * selftest.h (ASSERT_EQ): Reimplement in terms of...
14973 (ASSERT_EQ_AT): New macro.
14974
14975 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
14976
14977 PR target/71801
14978 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14979 Don't convert TImode in debug insn.
14980
14981 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14982
14983 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
14984 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
14985 (tree_type_common::lang_flag_7): New.
14986 (tree_type_common::spare): Reduce size.
14987 * tree.h (TYPE_ALIGN_OK): Remove.
14988 (TYPE_LANG_FLAG_7): New.
14989 (get_inner_reference): Adjust header.
14990 * print-tree.c (print_node): Adjust.
14991 * expr.c (get_inner_reference): Remove parameter keep_aligning.
14992 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
14993 calls to get_inner_reference.
14994 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
14995 handling of TYPE_ALIGN_OK.
14996 * builtins.c (get_object_alignment_2): Adjust call to
14997 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
14998 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
14999 TYPE_ALIGN_OK.
15000 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
15001 * cfgexpand.c (expand_debug_expr): Likewise.
15002 * dbxout.c (dbxout_expand_expr): Likewise.
15003 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
15004 loc_list_from_tree, fortran_common): Likewise.
15005 * fold-const.c (optimize_bit_field_compare,
15006 decode_field_reference, fold_unary_loc, fold_comparison,
15007 split_address_to_core_and_offset): Likewise.
15008 * gimple-laddress.c (execute): Likewise.
15009 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
15010 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
15011 * hsa-gen.c (gen_hsa_addr): Likewise.
15012 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
15013 * tsan.c (instrument_expr): Likewise.
15014 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
15015 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
15016 * tree-affine.c (tree_to_aff_combination,
15017 get_inner_reference_aff): Adjust calls to get_inner_reference.
15018 * tree-data-ref.c (split_constant_offset_1,
15019 dr_analyze_innermost): Likewise.
15020 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
15021 * tree-sra.c (ipa_sra_check_caller): Likewise.
15022 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
15023 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
15024 bswap_replace): Likewise.
15025 * tree-vect-data-refs.c (vect_check_gather,
15026 vect_analyze_data_refs): Likewise.
15027 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
15028 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
15029 TYPE_ALIGN_OK.
15030
15031 2016-07-11 David Malcolm <dmalcolm@redhat.com>
15032
15033 * Makefile.in (selftest-valgrind): New phony target.
15034 * function-tests.c (selftest::build_cfg): Delete pass instances
15035 created by the test.
15036 (selftest::convert_to_ssa): Likewise.
15037 (selftest::test_expansion_to_rtl): Likewise.
15038 * tree-cfg.c (selftest::test_linear_chain): Release dominator
15039 vectors.
15040 (selftest::test_diamond): Likewise.
15041
15042 2016-07-11 Richard Biener <rguenther@suse.de>
15043
15044 PR tree-optimization/71816
15045 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
15046 than replacing all of its operands.
15047
15048 2016-07-11 Alan Modra <amodra@gmail.com>
15049
15050 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
15051 (ctr<mode>): Add unspec.
15052 (ctr<mode>_internal*): Likewise.
15053
15054 2016-07-08 James Bowman <james.bowman@ftdichip.com>
15055
15056 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
15057 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
15058
15059 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
15060
15061 PR rtl-optimization/71621
15062 * lra-constraints.c (process_alt_operands): Check combination of
15063 reg class and mode.
15064
15065 2016-07-08 Jason Merrill <jason@redhat.com>
15066 Richard Biener <rguenther@suse.de>
15067
15068 P0145: Refining Expression Order for C++.
15069 * gimplify.c (initial_rhs_predicate_for): New.
15070 (gimplfy_modify_expr): Gimplify RHS before LHS.
15071
15072 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15073
15074 PR target/71297
15075 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15076 Allow standard error handling to take over when a wrong number
15077 of arguments is presented to __builtin_vec_ld () or
15078 __builtin_vec_st ().
15079
15080 2016-07-08 Jiong Wang <jiong.wang@arm.com>
15081
15082 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
15083 variants.
15084 (smin): Likewise.
15085 (fmax): New entry.
15086 (fmin): Likewise.
15087 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
15088 __builtin_aarch64_fmaxv2sf.
15089 (vmaxnmq_f32): Likewise.
15090 (vmaxnmq_f64): Likewise.
15091 (vminnm_f32): Likewise.
15092 (vminnmq_f32): Likewise.
15093 (vminnmq_f64): Likewise.
15094
15095 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15096
15097 PR target/71806
15098 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
15099 enable -mfloat128-hardware by default.
15100 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
15101 that IEEE 128-bit hardware support needs.
15102 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
15103 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
15104 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
15105 floating point requires.
15106 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15107 -mfloat128 and -mfloat128-hardware changes.
15108
15109 2016-07-08 Alan Hayward <alan.hayward@arm.com>
15110
15111 PR tree-optimization/71667
15112 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
15113
15114 2016-07-08 Martin Liska <mliska@suse.cz>
15115
15116 PR middle-end/71606
15117 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
15118 folding produces SAVE_EXPRs, thus return false for the type.
15119
15120 2016-07-07 Martin Liska <mliska@suse.cz>
15121
15122 * file-find.c (remove_prefix): New function.
15123 * file-find.h (remove_prefix): Declare the function.
15124 * gcc-ar.c (main): Skip a folder of the wrapper if
15125 a wrapped binary would point to the same file.
15126
15127 2016-07-07 Jan Hubicka <jh@suse.cz>
15128
15129 * tree-scalar-evolution.c (iv_can_overflow_p): export.
15130 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
15131 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
15132
15133 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
15134
15135 PR ipa/71624
15136 * ipa-inline-analysis.c (compute_inline_parameters): Set
15137 local.can_change_signature to false for intrumentation
15138 thunk callees.
15139
15140 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15141
15142 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
15143 with TARGET_HAVE_MOVT.
15144 (TARGET_HAVE_MOVT): Define.
15145 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
15146 availability with TARGET_HAVE_MOVT.
15147 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
15148 availability.
15149 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
15150 TARGET_THUMB2.
15151 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
15152 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
15153 * config/arm/constraints.md (define_constraint "j"): Use
15154 TARGET_HAVE_MOVT to check MOVT availability.
15155
15156 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15157
15158 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
15159
15160 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15161
15162 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
15163 (armv8-m.main): Likewise.
15164 (armv8-m.main+dsp): Likewise.
15165 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
15166 (FL_FOR_ARCH8M_MAIN): Likewise.
15167 * config/arm/arm-tables.opt: Regenerate.
15168 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
15169 armv8-m.main+dsp to BE8_LINK_SPEC.
15170 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
15171 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
15172 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
15173 Baseline and Mainline.
15174 (arm_option_override_internal): Also disable arm_restrict_it when
15175 !arm_arch_notm. Update comment for -munaligned-access to also cover
15176 ARMv8-M Baseline.
15177 (arm_file_start): Increase buffer size for printing architecture name.
15178 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
15179 and armv8-m.main+dsp.
15180 (mno-unaligned-access): Clarify that this is disabled by default for
15181 ARMv8-M Baseline architectures as well.
15182
15183 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15184
15185 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
15186 decide whether to prevent some libgcc routines being included for some
15187 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
15188 link between this condition and the one in
15189 libgcc/config/arm/lib1func.S.
15190
15191 2016-07-07 Richard Biener <rguenther@suse.de>
15192
15193 * tree-ssa-pre.c: Include alias.h.
15194 (compute_avail): If we have multiple VN_REFERENCEs with the
15195 same hashtable entry adjust that to make it a valid replacement
15196 for all of them with respect to alignment and aliasing
15197 when doing insertion.
15198 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
15199 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
15200
15201 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
15202
15203 PR target/70098
15204 PR target/71763
15205 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
15206 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
15207 constraint.
15208
15209 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15210
15211 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
15212 (adjust_mems): Adjust.
15213 (adjust_insn): Likewise.
15214 (prepare_call_arguments): Likewise.
15215
15216 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15217
15218 * gcse.c (struct ls_expr): Make stores field a vector.
15219 (ldst_entry): Adjust.
15220 (free_ldst_entry): Likewise.
15221 (print_ldst_list): Likewise.
15222 (compute_ld_motion_mems): Likewise.
15223 (update_ld_motion_stores): Likewise.
15224
15225 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15226
15227 * gcse.c (struct ls_expr): Remove loads field.
15228 (ldst_entry): Adjust.
15229 (free_ldst_entry): Likewise.
15230 (print_ldst_list): Likewise.
15231 (compute_ld_motion_mems): Likewise.
15232
15233 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15234
15235 * store-motion.c (struct st_expr): Make antic_stores a vector.
15236 (st_expr_entry): Adjust.
15237 (free_st_expr_entry): Likewise.
15238 (print_store_motion_mems): Likewise.
15239 (find_moveable_store): Likewise.
15240 (compute_store_table): Likewise.
15241 (remove_reachable_equiv_notes): Likewise.
15242 (replace_store_insn): Likewise.
15243 (build_store_vectors): Likewise.
15244
15245 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15246
15247 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
15248 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
15249
15250 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
15251
15252 PR tree-optimization/71518
15253 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
15254 misalign also for outer loops with negative step.
15255
15256 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
15257
15258 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
15259 (cortex_a53_shift): Add mov_shift.
15260 (cortex_a53_shift_reg): Add new reservation for register shifts.
15261 (cortex_a53_alu): Remove bfm.
15262 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
15263 (cortex_a53_alu_extr): Add new reservation for EXTR.
15264 (bypasses): Improve bypass modelling.
15265
15266 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15267
15268 PR target/50739
15269 * config/avr/avr.c (avr_asm_select_section): Strip off
15270 SECTION_DECLARED from flags when calling get_section.
15271
15272 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15273
15274 * tree-vectorizer.h (vect_memory_access_type): Add
15275 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
15276 * tree-vect-stmts.c (compare_step_with_zero): New function.
15277 (perm_mask_for_reverse): Move further up file.
15278 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
15279 step is negative.
15280 (get_negative_load_store_type): New function.
15281 (get_load_store_type): Call it. Add an ncopies argument.
15282 (vectorizable_mask_load_store): Update call accordingly and
15283 remove tests for negative steps.
15284 (vectorizable_store, vectorizable_load): Likewise. Handle new
15285 memory_access_types.
15286
15287 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15288
15289 * tree-vectorizer.h (vect_memory_access_type): New enum.
15290 (_stmt_vec_info): Add a memory_access_type field.
15291 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
15292 (vect_model_store_cost): Take an access type instead of a boolean.
15293 (vect_model_load_cost): Likewise.
15294 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
15295 vect_model_store_cost and vect_model_load_cost.
15296 * tree-vect-stmts.c (vec_load_store_type): New enum.
15297 (vect_model_store_cost): Take an access type instead of a
15298 store_lanes_p boolean. Simplify tests.
15299 (vect_model_load_cost): Likewise, but for load_lanes_p.
15300 (get_group_load_store_type, get_load_store_type): New functions.
15301 (vectorizable_store): Use get_load_store_type. Record the access
15302 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
15303 (vectorizable_load): Likewise.
15304 (vectorizable_mask_load_store): Likewise. Replace is_store
15305 variable with vls_type.
15306
15307 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15308
15309 * tree-vectorizer.h (vect_grouped_load_supported): Add a
15310 single_element_p parameter.
15311 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
15312 Check the PR65518 case here rather than in vectorizable_load.
15313 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
15314 * tree-vect-stmts.c (vectorizable_load): Likewise.
15315
15316 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15317
15318 * tree-vectorizer.h (gather_scatter_info): New structure.
15319 (vect_check_gather_scatter): Return a bool rather than a decl.
15320 Replace return-by-pointer arguments with a single
15321 gather_scatter_info *.
15322 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
15323 (vect_analyze_data_refs): Update call accordingly.
15324 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15325 (vectorizable_mask_load_store): Likewise. Also record the
15326 offset dt and vectype in the gather_scatter_info.
15327 (vectorizable_store): Likewise.
15328 (vectorizable_load): Likewise.
15329
15330 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15331
15332 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
15333 strided groups, use the cost of N scalar accesses instead
15334 of ncopies vector accesses.
15335 (vect_model_load_cost): Likewise.
15336
15337 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15338
15339 * tree-vect-stmts.c (vect_cost_group_size): Delete.
15340 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
15341 variable to indicate when once-per-group costs are being used.
15342 (vect_model_load_cost): Likewise. Fix comment and misindented code.
15343
15344 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15345
15346 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
15347 peeling-for-gaps condition.
15348
15349 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15350
15351 * config/s390/s390.c (s390_expand_vec_init): Force initializer
15352 element to register if it doesn't match general_operand.
15353
15354 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
15355 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15356
15357 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
15358 prototype.
15359 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
15360 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
15361 (SIGNBIT): New mode iterator.
15362 (Fsignbit): New mode attribute.
15363 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
15364 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
15365 when direct moves are available.
15366 (signbit<mode>2_dm): New define_insn_and_split).
15367 (signbit<mode>2_dm2): New define_insn.
15368
15369 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15370
15371 PR rtl-optimization/71594
15372 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
15373 into subregs of appropriate mode before trying to emit a conditional
15374 move.
15375
15376 2016-07-05 Jan Hubicka <jh@suse.cz>
15377
15378 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
15379 (simple_iv): Use it.
15380
15381 2016-07-05 Jan Hubicka <jh@suse.cz>
15382
15383 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
15384
15385 2016-07-05 Jiong Wang <jiong.wang@arm.com>
15386
15387 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
15388 "offmemok".
15389
15390 2016-07-05 Jan Hubicka <jh@suse.cz>
15391
15392 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
15393 IV can overflow.
15394
15395 2016-07-05 Richard Biener <rguenther@suse.de>
15396
15397 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
15398 Handle empty else block.
15399 (is_feasible_trace): Likewise.
15400 (split_paths): Likewise.
15401
15402 2016-07-05 Richard Biener <rguenther@suse.de>
15403
15404 * tree-loop-distribution.c (distribute_loop): Fix issue with
15405 the cost model loop.
15406
15407 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
15408
15409 * config/arm/neon-testgen.ml: Delete.
15410 * config/arm/neon.ml: Delete.
15411
15412 2016-07-04 Jakub Jelinek <jakub@redhat.com>
15413
15414 PR c++/71739
15415 * tree.c (attribute_value_equal): Use get_attribute_name instead of
15416 directly using TREE_PURPOSE.
15417
15418 2016-07-04 Jiong Wang <jiong.wang@arm.com>
15419
15420 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
15421 * config/aarch64/aarch64_neon.h: Likewise.
15422 * config/aarch64/arm_neon.h: Likewise.
15423 * config/aarch64/atomics.md: Likewise.
15424 * config/aarch64/aarch64-simd-builtins.def: Likewise.
15425 * doc/invoke.texi: Likewise.
15426
15427 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15428
15429 * config/s390/s390.md: Add "z13" cpu_facility.
15430 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
15431 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
15432 condition" type instructions.
15433
15434 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15435 Jeff Law <law@redhat.com>
15436
15437 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
15438 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
15439
15440 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
15441
15442 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
15443 permutation for TARGET_AVX512F.
15444 (ix86_expand_vec_one_operand_perm_avx512): New function.
15445 (expand_vec_perm_1): Invoke introduced function.
15446 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15447 it may be not valid after vectorization.
15448
15449 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15450
15451 PR target/63874
15452 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
15453 typo in comment. Only force to memory if it is a weak
15454 external reference.
15455
15456 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
15457 Jiong Wang <jiong.wang@arm.com>
15458
15459 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
15460 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
15461 (AARCH64_FL_F16): New.
15462 (AARCH64_FL_FOR_ARCH8_2): New.
15463 (AARCH64_ISA_8_2): New.
15464 (AARCH64_ISA_F16): New.
15465 (TARGET_FP_F16INST): New.
15466 (TARGET_SIMD_F16INST): New.
15467 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
15468 ("fp"): Disabling "fp" also disables "fp16".
15469 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
15470 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
15471 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
15472 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
15473
15474 2016-07-04 Jan Beulich <jbeulich@suse.com>
15475
15476 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
15477
15478 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15479
15480 PR target/71720
15481 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
15482 the insns, use an insn form that does not adjust the offset on
15483 little endian systems.
15484
15485 2016-07-01 Jan Beulich <jbeulich@suse.com>
15486
15487 * varasm.c (get_variable_section): Validate initializer in
15488 named .bss-like sections.
15489
15490 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15491
15492 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
15493 Exchange the order of the second and third operands in the vpermr
15494 instruction tmeplate.
15495
15496 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
15497
15498 PR target/71698
15499 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
15500 Disallow TDmode values.
15501
15502 2016-07-01 Alan Modra <amodra@gmail.com>
15503
15504 PR rtl-optimization/71709
15505 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
15506 being set, not referenced.
15507
15508 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15509
15510 PR tree-optimization/70729
15511 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
15512 of loop since it can be not valid after transformation.
15513
15514 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15515
15516 * config/arm/arm.c (thumb_reload_in_hi): Delete.
15517 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
15518
15519 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
15520
15521 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
15522 for NULL decl.
15523
15524 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15525
15526 PR target/71677
15527 * config/rs6000/constraints.md (wY constraint): New constraint to
15528 match the requirements for the LXSD and STXSD instructions.
15529 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
15530 predicate to match the requirements for the LXSD and STXSD
15531 instructions.
15532 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
15533 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
15534 to make sure that the bottom 2 bits of offset are 0, the address
15535 form is offsettable, and no updating is done in the address mode.
15536 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
15537 (movdi_internal32): Likewise
15538 (movdi_internal64): Likewise.
15539
15540 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15541
15542 PR tree-optimization/71707
15543 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
15544 strinfo even for ADDR_EXPR ptr.
15545
15546 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15547
15548 * config/rs6000/altivec.md (darn_32): Change the condition to
15549 TARGET_P9_MISC instead of TARGET_MODULO.
15550 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
15551 condition expression.
15552 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
15553 condition expression.
15554 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
15555 (DFP_TEST): New code iterator.
15556 (dfptstsfi_<code>_mode>): New define_expand.
15557 (*dfp_sgnfcnc_<mode>): New define_insn.
15558 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
15559 definition next to BU_P9_MISC_1 definition and change the MASK
15560 value to RS6000_BTM_P9_MISC.
15561 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
15562 (BU_P9_64BIT_MISC_0): Likewise.
15563 (BU_P9_DFP_MISC_0): New macro definition.
15564 (BU_P9_DFP_MISC_1): New macro definition.
15565 (BU_P9_DFP_MISC_2): New macro definition.
15566 (BU_P9_DFP_OVERLOAD_1): New macro definition.
15567 (BU_P9_DFP_OVERLOAD_2): New macro definition.
15568 (BU_P9_DFP_OVERLOAD_3): New macro definition.
15569 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
15570 (TSTSFI_LT_TD): Likewise.
15571 (TSTSFI_EQ_DD): Likewise.
15572 (TSTSFI_EQ_TD): Likewise.
15573 (TSTSFI_GT_DD): Likewise.
15574 (TSTSFI_GT_TD): Likewise.
15575 (TSTSFI_OV_DD): Likewise.
15576 (TSTSFI_OV_TD): Likewise.
15577 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
15578 (TSTSFI_LT_DD): Likewise.
15579 (TSTSFI_LT_TD): Likewise.
15580 (TSTSFI_EQ): Likewise.
15581 (TSTSFI_EQ_DD): Likewise.
15582 (TSTSFI_EQ_TD): Likewise.
15583 (TSTSFI_GT): Likewise.
15584 (TSTSFI_GT_DD): Likewise.
15585 (TSTSFI_GT_TD): Likewise.
15586 (TSTSFI_OV): Likewise.
15587 (TSTSFI_OV_DD): Likewise.
15588 (TSTSFI_OV_TD): Likewise.
15589 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15590 overloaded test significance functions.
15591 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15592 OPTION_MASK_P9_MISC into the representation of this mask.
15593 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
15594 of this mask.
15595 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
15596 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
15597 non-zero.
15598 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
15599 argument is a 6-bit unsigned literal value if the icode argument
15600 represents a DFP test significance built-in call.
15601 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
15602 flag used independently and in combination with the
15603 RS6000_BTM_64BIT flag.
15604 (rs6000_opt_masks): Add entry for power9-misc command-line option.
15605 (rs6000_builtin_mask_names): Add entry for power9-misc
15606 command-line option.
15607 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
15608 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
15609 RS6000_BTM_P9_MISC macros.
15610 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
15611 option and change the description of the -mpower9-vector option to
15612 enable only vector instructions, removing its erroneously claimed
15613 support for scalar instructions.
15614 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15615 the ISA 3.0 digital floating point test significance built-in
15616 functions.
15617
15618 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
15619
15620 * config/aarch64/aarch64.c (cortexa35_tunings):
15621 Enable AES fusion. Use cortexa57_branch_cost.
15622 (cortexa53_tunings): Use cortexa57_branch_cost.
15623 (cortexa72_tunings): Use cortexa57_branch_cost.
15624 Use AUTOPREFETCHER_WEAK.
15625 (cortexa73_tunings): Use cortexa57_branch_cost.
15626
15627 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15628 James Greenhalgh <james.greenhalgh@arm.com>
15629
15630 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
15631 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
15632 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
15633 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
15634 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
15635 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
15636 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
15637 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
15638 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
15639 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
15640 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
15641 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
15642 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
15643 New intrinsics.
15644
15645 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
15646 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15647
15648 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
15649 New define_insn.
15650 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
15651
15652 2016-06-30 David Malcolm <dmalcolm@redhat.com>
15653
15654 PR driver/71651
15655 * gcc.c (driver::build_option_suggestions): Pass "option" to
15656 add_misspelling_candidates.
15657 * opts-common.c (add_misspelling_candidates): Add "option" param;
15658 use it to avoid adding negated forms for options marked with
15659 RejectNegative.
15660 * opts.h (add_misspelling_candidates): Add "option" param.
15661
15662 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15663
15664 PR middle-end/71693
15665 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15666 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15667 first when permuting bitwise operation with rotate. Cast
15668 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15669
15670 2016-06-29 David Malcolm <dmalcolm@redhat.com>
15671
15672 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15673 for misspelled param names.
15674 * params.c: Include spellcheck.h.
15675 (find_param_fuzzy): New function.
15676 * params.h (find_param_fuzzy): New prototype.
15677 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15678 * spellcheck.h (struct edit_distance_traits<const char *>):
15679 ...here.
15680
15681 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
15682
15683 * config/rs6000/predicates.md (const_0_to_7_operand): New
15684 predicate, recognize 0..7.
15685 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15686 support for doing extracts from V16QImode, V8HImode, V4SImode
15687 under ISA 3.0.
15688 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15689 vector extract support.
15690 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15691 for ISA 3.0 vector extract.
15692 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15693 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15694 extracts of a constant element number from small integer vectors
15695 on 64-bit ISA 3.0 systems.
15696 (vsx_extract_<mode>_di): Likewise.
15697 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15698 say when we can do ISA 3.0 vector extracts.
15699 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15700 registers, using the stxsiwx instruction.
15701
15702 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
15703
15704 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15705 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15706 qdf24xx_regmove_cost, qdf24xx_tunings): New.
15707 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15708 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15709 * config/arm/arm.c (arm_qdf24xx_tune): New.
15710
15711 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
15712
15713 * config/aarch64/aarch64.c (cortexa53_tunings):
15714 Increase loop alignment to 8. Set function alignment to 16.
15715 (cortexa35_tunings): Likewise.
15716 (cortexa57_tunings): Increase loop alignment to 8.
15717 (cortexa72_tunings): Likewise.
15718 (cortexa73_tunings): Likewise.
15719
15720 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
15721
15722 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15723 for arm_fp16_ok and arm_fp16_hw.
15724 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15725 arm_fp16_alternative.
15726
15727 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
15728
15729 PR tree-optimization/71655
15730 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15731 types when swapping operands.
15732
15733 2016-06-29 Martin Liska <mliska@suse.cz>
15734
15735 PR middle-end/71585
15736 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15737 * ipa-inline-transform.c (inline_call): Remove unnecessary call
15738 of build_optimization_node.
15739
15740 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15741
15742 PR tree-optimization/70729
15743 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15744 independent in loops having positive safelen value.
15745 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15746 it may be not valid after vectorization.
15747
15748 2016-06-29 Jakub Jelinek <jakub@redhat.com>
15749
15750 PR tree-optimization/71625
15751 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
15752 is sorted by ascending list->offset. If PTR is non-NULL and there is
15753 previous strinfo, call get_stridx_plus_constant.
15754 (get_stridx): Pass exp as second argument to get_addr_stridx.
15755 (addr_stridxptr): Add missing list = list->next, so that there can be
15756 more than one entries in the list. Bump limit from 16 to 32. Ensure
15757 the list is sorted by ascending list->offset.
15758 (get_stridx_plus_constant): Adjust so that it can be also called with
15759 ADDR_EXPR instead of SSA_NAME as PTR.
15760 (handle_char_store): Pass NULL_TREE as second argument to
15761 get_addr_stridx.
15762
15763 2016-06-29 Richard Biener <rguenther@suse.de>
15764
15765 PR rtl-optimization/68961
15766 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15767
15768 2016-06-29 Richard Biener <rguenther@suse.de>
15769
15770 PR middle-end/71002
15771 * alias.c (component_uses_parent_alias_set_from): Handle
15772 type punning through union accesses by using the union alias set.
15773 * gimple.c (gimple_get_alias_set): Remove union type punning case.
15774
15775 2016-07-29 Richard Biener <rguenther@suse.de>
15776
15777 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15778 precision not matching mode precision.
15779
15780 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
15781
15782 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15783 pa_output_arg_descriptor.
15784 (call_val_symref_64bit_post_reload): Likewise.
15785 (call_val_powf_64bit_post_reload): Likewise.
15786 (sibcall_internal_symref_64bit): Likewise.
15787 (sibcall_value_internal_symref_64bit): Likewise.
15788
15789 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15790
15791 PR middle-end/71626
15792 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15793 a constant, force its SUBREG_REG into memory or register instead
15794 of whole op1.
15795
15796 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15797
15798 PR target/58655
15799 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15800 * doc/invoke.texi (AVR Options): Document it.
15801
15802 2016-06-28 Walter Lee <walt@tilera.com>
15803
15804 * config/tilegx/linux.h: Do not include arch/icache.h
15805 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15806 * config/tilepro/linux.h: Do not include arch/icache.h
15807 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15808
15809 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
15810
15811 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15812 for big-endian BIT_FIELD_REF.
15813
15814 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
15815
15816 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15817 ('size' attribute): Add '128'.
15818 Include power9.md.
15819 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15820 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15821 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15822 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15823 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15824 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15825 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15826 *trunc<mode>df2_odd): Set size attribute to '128'.
15827 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15828 * config/rs6000/power6.md (power6-fp): Include dfp type.
15829 * config/rs6000/power7.md (power7-fp): Likewise.
15830 * config/rs6000/power8.md (power8-fp): Likewise.
15831 * config/rs6000/power9.md: New file.
15832 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15833 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15834 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15835 htmsimple.
15836 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15837 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15838 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15839 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15840 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15841 dfp_dscri_<mode>): Change type attribute to dfp.
15842 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15843 attribute to vecsimple.
15844 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15845 and prefetch streams.
15846 (rs6000_option_override_internal): Remove temporary code setting
15847 tuning to power8. Don't set rs6000_sched_groups for power9.
15848 (last_scheduled_insn): Change to rtx_insn *.
15849 (divide_cnt, vec_load_pendulum): New variables.
15850 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15851 (rs6000_issue_rate): Set issue rate for Power9.
15852 (is_power9_pairable_vec_type): New.
15853 (power9_sched_reorder2): New.
15854 (rs6000_sched_reorder2): Call new function for Power9 specific
15855 reordering.
15856 (insn_must_be_first_in_group): Remove Power9.
15857 (insn_must_be_last_in_group): Likewise.
15858 (force_new_group): Likewise.
15859 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15860 Initialize divide_cnt/vec_load_pendulum.
15861 (_rs6000_sched_context, rs6000_init_sched_context,
15862 rs6000_set_sched_context): Handle context save/restore of new
15863 variables.
15864
15865 2016-06-28 Richard Biener <rguenther@suse.de>
15866
15867 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15868 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15869 COMPONENT_REF operand.
15870 (nonoverlapping_component_refs_p): Likewise.
15871 * stor-layout.c (start_bitfield_representative): Mark
15872 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15873
15874 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15875
15876 * Makefile.in: Don't cat ../stage_current if it does not exist.
15877
15878 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15879 last argument is a bit-field.
15880
15881 PR rtl-optimization/71673
15882 * internal-fn.c (expand_arith_overflow_result_store): Use
15883 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15884 expand_simple_binop.
15885
15886 PR middle-end/66867
15887 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15888 expand_ifn_atomic_compare_exchange): New functions.
15889 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15890 * tree.h (build_call_expr_internal_loc): Rename to ...
15891 (build_call_expr_internal_loc_array): ... this. Fix up type of
15892 last argument.
15893 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15894 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15895 ATOMIC_COMPARE_EXCHANGE result.
15896 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15897 * gimple-fold.h (optimize_atomic_compare_exchange_p,
15898 fold_builtin_atomic_compare_exchange): New prototypes.
15899 * gimple-fold.c (optimize_atomic_compare_exchange_p,
15900 fold_builtin_atomic_compare_exchange): New functions..
15901 * tree-ssa.c (execute_update_addresses_taken): If
15902 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15903 of call when finding addressable vars, and if such var becomes
15904 non-addressable, call fold_builtin_atomic_compare_exchange.
15905
15906 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
15907
15908 PR target/71670
15909 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15910 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15911
15912 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
15913
15914 * config/rs6000/rs6000.md ('type' attribute): Add
15915 veclogical,veccmpfx,vecexts,vecmove insn types.
15916 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15917 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15918 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15919 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15920 *nabs<mode>2_hw): Change type to vecmove.
15921 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15922 *boolcc<mode>3_internal, *eqv<mode>3_internal,
15923 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15924 *ieee_128bit_vsx_abs<mode>2_internal,
15925 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15926 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15927 *ieee128_mtvsrd_32bit): Change type to veclogical.
15928 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15929 *movdi_internal32, *movdi_internal64): Update insn types.
15930 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15931 vsx_extract_<mode>): Change type to veclogical.
15932 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15933 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15934 *vsx_sign_extend_si_v2di): Change type to vecexts.
15935 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15936 type to veclogical.
15937 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15938 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15939 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15940 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15941 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15942 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15943 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15944 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15945 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15946 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15947 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15948 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15949 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15950 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15951 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15952 (ppc7450-vecsimple): Add veclogical, vecmove.
15953 (ppc7450-veccmp): Add veccmpfx.
15954 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15955 vecmove.
15956 (ppc8540_vector_compare): Add veccmpfx.
15957 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15958 * config/rs6000/cell.md (cell-fp): Add fpsimple.
15959 (cell-vecsimple): Add veclogical, vecmove.
15960 (cell-veccmp): Add veccmpfx.
15961 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15962 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15963 veccmpfx.
15964 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15965 * config/rs6000/power4.md (power4-fp): Add fpsimple.
15966 (power4-vecsimple): Add veclogical, vecmove.
15967 (power4-veccmp): Add veccmpfx.
15968 * config/rs6000/power5.md (power5-fp): Add fpsimple.
15969 * config/rs6000/power6.md (power6-fp): Add fpsimple.
15970 (power6-vecsimple): Add veclogical, vecmove.
15971 (power6-veccmp): Add veccmpfx.
15972 * config/rs6000/power7.md (power7-fp): Add fpsimple.
15973 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
15974 * config/rs6000/power8.md (power8-fp): Add fpsimple.
15975 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
15976 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
15977 * config/rs6000/titan.md (titan_fp): Add fpsimple.
15978 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
15979 fpsimple.
15980 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
15981
15982 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
15983
15984 PR target/71656
15985 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15986 OPTION_MASK_P9_DFORM_VECTOR.
15987 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
15988 disable -mpower9-dform-vector when using reload.
15989 (quad_address_p): Remove 'gpr_p' argument and all associated code.
15990 New 'strict' argument. Update all callers. Add strict addressing
15991 support.
15992 (rs6000_legitimate_offset_address_p): Remove call to
15993 virtual_stack_registers_memory_p.
15994 (rs6000_legitimize_reload_address): Add quad address support.
15995 (rs6000_legitimate_address_p): Move call to quad_address_p above
15996 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
15997 to account for new strict usage.
15998 (rs6000_output_move_128bit): Adjust quad_address_p args to account
15999 for new strict usage.
16000 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
16001
16002 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
16003
16004 PR target/70902
16005 PR target/71453
16006 PR target/71555
16007 PR target/71596
16008 PR target/71657
16009 * config/i386/i386.c (ix86_spill_class): Disable condition to
16010 always return NO_REGS.
16011
16012 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
16013
16014 * predict.c: Include gimple-pretty-print.h
16015 (predicted_by_loop_heuristics_p): Check also
16016 PRED_LOOP_EXIT_WITH_RECURSION
16017 (predict_loops): Find self recursive calls and use special purpose
16018 predictors for them; dump log about decisions.
16019 (pass_profile::execute): Dump info about #of iterations.
16020 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
16021 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
16022
16023 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
16024
16025 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
16026 output_asm_insn calls and shorten long lines. Output .CALL
16027 argument descriptor using pa_output_arg_descriptor. Add various
16028 inline $$dyncall and other optimizations.
16029 (pa_attr_length_indirect_call): Adjust ordering and lengths.
16030
16031 2016-06-25 Jakub Jelinek <jakub@redhat.com>
16032
16033 PR tree-optimization/71643
16034 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
16035 EH preds.
16036
16037 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
16038 leak a bitmap if dep_bb is NULL.
16039
16040 PR tree-optimization/71631
16041 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
16042 to rewrite_expr_tree even if negate_result, move new_lhs var
16043 declaration and initialization earlier, for powi_result set afterwards
16044 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
16045 if new_lhs != lhs, and don't shadow gsi var.
16046
16047 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
16048
16049 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
16050 Add in_loop parameter.
16051 (predict_loops): Add loop guard heuristics.
16052 * predict.def (PRED_LOOP_GUARD): New heuristics.
16053
16054 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
16055
16056 * predict.c: Include ipa-utils.h
16057 (tree_bb_level_prediction): Predict recursive calls.
16058 (tree_estimate_probability_bb): Skip inexpensive calls for call
16059 predictor.
16060 * predict.def (PRED_RECURSIVE_CALL): New.
16061
16062 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16063
16064 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
16065 (BU_FLOAT128_1): Likewise.
16066 (FABSQ): Likewise.
16067 (COPYSIGNQ): Likewise.
16068 (RS6000_BUILTIN_NANQ): Likewise.
16069 (RS6000_BUILTIN_NANSQ): Likewise.
16070 (RS6000_BUILTIN_INFQ): Likewise.
16071 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
16072 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
16073 (TARGET_FOLD_BUILTIN): New #define.
16074 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
16075 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
16076 (rs6000_fold_builtin): New target hook implementation, handling
16077 folding of 128-bit NaNs and infinities.
16078 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
16079 entries are filled in to avoid problems during bootstrap
16080 self-test; define builtins for 128-bit NaNs and infinities.
16081 (rs6000_opt_mask): Add entry for float128.
16082 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
16083 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
16084 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
16085 (const_str_type_node): New #define.
16086 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
16087 to a define_expand that dispatches to either copysign<mode>3_soft
16088 or copysign<mode>3_hard.
16089 (copysign<mode>3_hard): Rename from copysign<mode>3.
16090 (copysign<mode>3_soft): New define_insn.
16091 * doc/extend.texi: Document new builtins.
16092
16093 2016-06-24 Jakub Jelinek <jakub@redhat.com>
16094
16095 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
16096 PRIu64 instead of lu.
16097
16098 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
16099
16100 PR debug/71642
16101 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
16102 copy the type name.
16103
16104 2016-06-24 Jakub Jelinek <jakub@redhat.com>
16105
16106 PR tree-optimization/71647
16107 * omp-low.c (lower_rec_input_clauses): Convert
16108 omp_clause_aligned_alignment (c) to size_type_node for the
16109 last argument of __builtin_assume_aligned.
16110
16111 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
16112
16113 * configure.ac (calling ___tls_get_addr via GOT): New
16114 assembler/linker check.
16115 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
16116 assembler and linker supports calling ___tls_get_addr via GOT.
16117 Otherise, defined to 0.
16118 * config.in: Regenerated.
16119 * configure: Likewise.
16120 * config/i386/constraints.md (Yb): New constraint.
16121 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
16122 (REG_CLASS_NAMES): Likewise.
16123 (REG_CLASS_CONTENTS): Likewise.
16124 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
16125 the b constraint with the Yb constraint. Call ___tls_get_addr
16126 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
16127 is 1.
16128 (*tls_local_dynamic_base_32_gnu): Likewise.
16129 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
16130 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
16131 (*tls_local_dynamic_base_64_<mode>): Likewise.
16132
16133 2016-06-24 Martin Liska <mliska@suse.cz>
16134
16135 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
16136 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
16137 few functions.
16138 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
16139 argument to true if the expected number of iterations is
16140 loop-based.
16141
16142 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
16143
16144 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
16145 assemble for 32bit target.
16146 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
16147 and $ld_ix86_gld_32_opt to link for 32bit target.
16148 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
16149 * configure: Regenerate.
16150
16151 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16152
16153 * config/arm/arm.c (int_log2): Delete definition and prototype.
16154 (shift_op): Use exact_log2 instead of int_log2.
16155 (vfp3_const_double_for_fract_bits): Likewise.
16156
16157 2016-06-24 Jakub Jelinek <jakub@redhat.com>
16158
16159 * internal-fn.c (expand_arith_set_overflow): New function.
16160 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
16161 Use it.
16162 (expand_arith_overflow_result_store): Likewise. Handle precision
16163 smaller than mode precision.
16164 * tree-vrp.c (extract_range_basic): For imag part, handle
16165 properly signed 1-bit precision result.
16166 * doc/extend.texi (__builtin_add_overflow): Document that last
16167 argument can't be pointer to enumerated or boolean type.
16168 (__builtin_add_overflow_p): Document that last argument can't
16169 have enumerated or boolean type.
16170
16171 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16172 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16173
16174 * config/rs6000/predicates.md (splat_input_operand): Rework.
16175 Don't allow constants, since the insns that use this predicate
16176 don't support constants. Constants are handled by other insns
16177 that are created via combine. During and after register
16178 allocation, only allow indexed or indirect addresses, and not
16179 general addresses. Only allow modes supported by the hardware.
16180 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
16181 comment. Move check for using VSPLTIS<x> to a common location,
16182 instead of doing it in two different places.
16183
16184 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
16185
16186 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16187 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
16188 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
16189 signature_CENTAUR_ebx.
16190
16191 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
16192
16193 PR target/66232
16194 PR target/67400
16195 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
16196 (as_ix86_gas_32_opt): This.
16197 (ld_ix86_tls_ldm_opt): Renamed to ...
16198 (ld_ix86_gld_32_opt): This.
16199 (R_386_TLS_LDM reloc): Updated.
16200 (R_386_GOT32X reloc): New assembler/linker check.
16201 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
16202 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
16203 defined to 0.
16204 * config.in: Regenerated.
16205 * configure: Likewise.
16206 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
16207 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
16208 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
16209 if ix86_force_load_from_GOT_p returns true.
16210 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
16211 ix86_force_load_from_GOT_p returns true.
16212 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
16213 the external function address via the GOT slot.
16214 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
16215 HAVE_AS_IX86_GOT32X before returning false.
16216 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
16217 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
16218
16219 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
16220
16221 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
16222
16223 2016-06-23 Andi Kleen <ak@linux.intel.com>
16224
16225 * Makefile.in: Regenerate.
16226 * doc/install.texi: Document autoprofiledbootstrap.
16227
16228 2016-06-23 Andi Kleen <ak@linux.intel.com>
16229
16230 * config/i386/gcc-auto-profile: New file.
16231
16232 2016-06-23 Martin Liska <mliska@suse.cz>
16233
16234 PR middle-end/71619
16235 * predict.c (predict_loops): Revert the hunk that was removed
16236 in r237103.
16237
16238 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
16239
16240 * config.gcc: Add support for arm*-*-phoenix* targets.
16241 * config/arm/t-phoenix: New.
16242 * config/phoenix.h: New.
16243
16244 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
16245 H.J. Lu <hongjiu.lu@intel.com>
16246
16247 PR target/67400
16248 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
16249 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
16250 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
16251 ix86_force_load_from_GOT_p returns true.
16252 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
16253 ix86_force_load_from_GOT_p returns true.
16254 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
16255 ix86_force_load_from_GOT_p returns true.
16256 (ix86_expand_move): Load the external function address via the
16257 GOT slot if ix86_force_load_from_GOT_p returns true.
16258 * config/i386/predicates.md (x86_64_immediate_operand): Return
16259 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
16260 (x86_64_zext_immediate_operand): Ditto.
16261
16262 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
16263
16264 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
16265
16266 2016-06-22 David Malcolm <dmalcolm@redhat.com>
16267
16268 PR c/70339
16269 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
16270 * diagnostic.c (pedwarn_at_rich_loc): New function.
16271 * spellcheck.h (best_match::best_match): Add a
16272 "best_distance_so_far" optional parameter.
16273 (best_match::set_best_so_far): New method.
16274 (best_match::get_best_distance): New accessor.
16275 (best_match::get_best_candidate_length): New accessor.
16276
16277 2016-06-22 Nick Clifton <nickc@redhat.com>
16278
16279 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
16280 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
16281 modes are accepted as well.
16282 (ucompare_loc_descriptor): Likewise.
16283 (minmax_loc_descriptor): Likewise.
16284 (clz_loc_descriptor): Likewise.
16285 (popcount_loc_descriptor): Likewise.
16286 (bswap_loc_descriptor): Likewise.
16287 (rotate_loc_descriptor): Likewise.
16288 (mem_loc_descriptor): Likewise.
16289 (loc_descriptor): Likewise.
16290
16291 2016-06-22 David Malcolm <dmalcolm@redhat.com>
16292
16293 * common.opt (fdiagnostics-parseable-fixits): New option.
16294 * diagnostic.c: Include "selftest.h".
16295 (print_escaped_string): New function.
16296 (print_parseable_fixits): New function.
16297 (diagnostic_report_diagnostic): Call print_parseable_fixits.
16298 (selftest::assert_print_escaped_string): New function.
16299 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
16300 (selftest::test_print_escaped_string): New function.
16301 (selftest::test_print_parseable_fixits_none): New function.
16302 (selftest::test_print_parseable_fixits_insert): New function.
16303 (selftest::test_print_parseable_fixits_remove): New function.
16304 (selftest::test_print_parseable_fixits_replace): New function.
16305 (selftest::diagnostic_c_tests): New function.
16306 * diagnostic.h (struct diagnostic_context): Add field
16307 "parseable_fixits_p".
16308 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
16309 -fdiagnostics-parseable-fixits.
16310 (-fdiagnostics-parseable-fixits): New option.
16311 * opts.c (common_handle_option): Handle
16312 -fdiagnostics-parseable-fixits.
16313 * selftest-run-tests.c (selftest::run_tests): Call
16314 selftest::diagnostic_c_tests.
16315 * selftest.h (selftest::diagnostic_c_tests): New prototype.
16316
16317 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
16318
16319 PR tree-optimization/71488
16320 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
16321 comparison of boolean vectors.
16322 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
16323 of boolean vectors using bitwise operations.
16324
16325 2016-06-22 Andreas Schwab <schwab@suse.de>
16326
16327 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
16328 Remove declaration.
16329
16330 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
16331
16332 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
16333
16334 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
16335
16336 * config/i386/i386.c (print_reg): Emit an error message on attempt to
16337 print FLAGS_REG.
16338
16339 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16340
16341 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
16342 * config/arm/arm-cores.def (cortex-a73): New entry.
16343 (cortex-a73.cortex-a35): Likewise.
16344 (cortex-a73.cortex-a53): Likewise.
16345 * config/arm/arm-tables.opt: Regenerate.
16346 * config/arm/arm-tune.md: Likewise.
16347 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
16348 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16349 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
16350 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16351 * doc/invoke.texi (ARM Options): Document cortex-a73,
16352 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
16353
16354 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16355
16356 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
16357 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
16358 (cortex-a73.cortex-a35): Likewise.
16359 (cortex-a73.cortex-a53): Likewise.
16360 * config/aarch64/aarch64-tune.md: Regenerate.
16361 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
16362 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
16363 -mcpu and -mtune.
16364
16365 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16366
16367 * configure.ac (gcc_cv_as_compress_debug): Remove
16368 --compress-debug-sections as extra as switch.
16369 Handle gas --compress-debug-sections=type.
16370 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
16371 Handle gld --compress-debug-sections=type.
16372 * configure: Regenerate.
16373
16374 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
16375
16376 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
16377
16378 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
16379
16380 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
16381 (do_rewrite): likewise.
16382
16383 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16384
16385 * common/config/mep/mep-common.c: Remove.
16386 * config.gcc: Remove mep-* support.
16387 * config/mep/constraints.md: Remove.
16388 * config/mep/default.h: Remove.
16389 * config/mep/intrinsics.h: Remove.
16390 * config/mep/intrinsics.md: Remove.
16391 * config/mep/ivc2-template.h: Remove.
16392 * config/mep/mep-c5.cpu: Remove.
16393 * config/mep/mep-core.cpu: Remove.
16394 * config/mep/mep-default.cpu: Remove.
16395 * config/mep/mep-ext-cop.cpu: Remove.
16396 * config/mep/mep-intrin.h: Remove.
16397 * config/mep/mep-ivc2.cpu: Remove.
16398 * config/mep/mep-pragma.c: Remove.
16399 * config/mep/mep-protos.h: Remove.
16400 * config/mep/mep.c: Remove.
16401 * config/mep/mep.cpu: Remove.
16402 * config/mep/mep.h: Remove.
16403 * config/mep/mep.md: Remove.
16404 * config/mep/mep.opt: Remove.
16405 * config/mep/predicates.md: Remove.
16406 * config/mep/t-mep: Remove.
16407 * doc/install.texi: Remove mep-* documentation.
16408 * doc/md.texi: Likewise.
16409
16410 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16411
16412 * config.gcc: Remove support for avr-rtems.
16413 * config/avr/gen-avr-mmcu-specs.c: Likewise.
16414 * config/avr/rtems.h: Remove.
16415 * config/avr/t-rtems: Remove.
16416
16417 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16418
16419 * config.gcc: Remove m32r-rtems support.
16420 * config/m32r/rtems.h: Remove.
16421
16422 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16423
16424 * config.gcc: Remove h8300-rtems support.
16425 * config/h8300/rtems.h: Remove.
16426 * config/h8300/t-rtems: Remove.
16427
16428 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16429
16430 * config.gcc: Remove support for knetbsd.
16431 * configure.ac: Likewise.
16432 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
16433 * config/knetbsd-gnu.h: Remove.
16434 * configure: Regenerate.
16435
16436 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16437
16438 * config.gcc: Remove support for openbsd 2 and 3.
16439 * config/openbsd-oldgas.h: Remove.
16440
16441 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16442
16443 * config.gcc: Remove interix support.
16444 * config/i386/i386-interix.h: Remove.
16445 * config/i386/interix.opt: Remove.
16446 * config/i386/t-interix: Remove.
16447 * configure: Regenerate.
16448 * configure.ac: Remove interix support.
16449 * doc/install.texi: Remove interix documentation.
16450
16451 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
16452
16453 * config/rs6000/rs6000.h: Add conditional preprocessing directives
16454 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
16455 not defined.
16456
16457 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16458
16459 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
16460 they are both PLACEHOLDER_EXPRs.
16461
16462 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16463
16464 * stor-layout.c (layout_type): Move setting complex MODE to
16465 layout_type, instead of setting it ahead of time by the caller.
16466 * tree.c (build_complex_type): Likewise.
16467
16468 2016-06-21 Martin Liska <mliska@suse.cz>
16469
16470 * predict.c (force_edge_cold): Replace imposisble with
16471 impossible.
16472
16473 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16474
16475 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
16476 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
16477
16478 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16479
16480 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
16481
16482 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
16483 Ilya Enkovich <ilya.enkovich@intel.com>
16484
16485 PR target/71549
16486 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16487 New member function to convert V1TImode register to SUBREG
16488 TImode in debug insn.
16489 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
16490 after changing register mode to V1TImode.
16491
16492 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
16493
16494 * config/aarch64/aarch64-cores.def (vulcan): New core.
16495 * config/aarch64/aarch64-tune.md: Regenerate.
16496 * doc/invoke.texi: Document vulcan as an available option.
16497
16498 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16499
16500 * cse.c (canon_asm_operands): New function extracted from...
16501 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
16502 either standalone or member of a PARALLEL.
16503
16504 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16505
16506 PR target/30417
16507 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
16508 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
16509 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
16510
16511 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16512
16513 PR target/71103
16514 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
16515 constant addresses if can_create_pseudo_p.
16516
16517 2016-06-21 Jakub Jelinek <jakub@redhat.com>
16518
16519 PR tree-optimization/71588
16520 * tree-ssa-strlen.c (valid_builtin_call): New function.
16521 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
16522 it.
16523
16524 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16525
16526 PR middle-end/71581
16527 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
16528 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
16529 for conversion of scalar user var to complex type and use the
16530 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
16531 punt.
16532
16533 PR rtl-optimization/71591
16534 * toplev.c (toplev::run_self_tests): If no_backend, complain and
16535 don't run any tests.
16536
16537 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
16538
16539 PR target/71571
16540 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
16541 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
16542 space for PIC with non-v32 and the common non-PIC "jump".
16543
16544 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16545
16546 PR target/71559
16547 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
16548 returned values and add UN*/LTGT/*ORDERED cases with values matching
16549 D operand modifier on vcmp for AVX.
16550
16551 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16552
16553 * config/aarch64/aarch64.opt
16554 (mpc-relative-literal-loads): Rename internal option name.
16555 * config/aarch64/aarch64.c
16556 (aarch64_nopcrelative_literal_loads): Rename to
16557 aarch64_pcrelative_literal_loads.
16558 (aarch64_expand_mov_immediate): Likewise.
16559 (aarch64_secondary_reload): Likewise.
16560 (aarch64_can_use_per_function_literal_pools_p): Likewise.
16561 (aarch64_override_options_after_change_1): Rename and simplify logic.
16562 (aarch64_classify_symbol): Merge large model checks into switch,
16563 remove pc-relative load check.
16564
16565 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16566
16567 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
16568 costs relative to the cost of a register move.
16569
16570 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16571
16572 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
16573 (vcvt_n_f64_u64): Likewise.
16574 (vcvt_n_s64_f64): Likewise.
16575 (vcvt_n_u64_f64): Likewise.
16576 (vcvt_f64_s64): Likewise.
16577 (vrecpe_f64): Likewise.
16578 (vcvt_f64_u64): Likewise.
16579 (vrecps_f64): Likewise.
16580
16581 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16582
16583 * config/aarch64/aarch64.md
16584 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
16585 iterators.
16586 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
16587 attributes.
16588 * config/aarch64/aarch64-builtins.c
16589 (aarch64_types_binop_uss_qualifiers): Delete.
16590 (TYPES_BINOP_USS): Likewise.
16591 (aarch64_types_binop_sus_qualifiers): Likewise.
16592 (TYPES_BINOP_SUS): Likewise.
16593 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
16594 (TYPES_FCVTIMM_SUS): Likewise.
16595 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
16596 rather than BINOP.
16597 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
16598 (fcvtzs): Use SHIFTIMM rather than BINOP.
16599 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
16600
16601 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16602
16603 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
16604 costs relative to the cost of a register move.
16605
16606 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16607
16608 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
16609 Allow scalar/single vector modes to be tieable.
16610
16611 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16612
16613 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
16614
16615 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16616
16617 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
16618 "alignement".
16619 * tree.h (TYPE_ALIGN): Likewise.
16620
16621 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16622
16623 PR target/71103
16624 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
16625
16626 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16627
16628 * config/avr/avr.c (avr_print_operand): Fix "format not a string
16629 literal" build warnings.
16630 (avr_print_operand_address): Dito.
16631
16632 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
16633
16634 PR target/71375
16635 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
16636 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
16637
16638 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
16639
16640 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
16641
16642 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
16643
16644 PR bootstrap/71435
16645 * reload1.c (reload): Pass 0 to finish_spills when called because
16646 update_eliminables_and_spill returns true and remove did_spill.
16647 (finish_spills): Adjust comment and document GLOBAL parameter.
16648
16649 2016-06-17 DJ Delorie <dj@redhat.com>
16650
16651 PR target/71338
16652 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
16653 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
16654 (umulqihi3_virt): Likewise.
16655 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
16656 (umulqihi3_real): Likewise.
16657
16658 2016-06-17 Martin Liska <mliska@suse.cz>
16659
16660 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
16661
16662 2016-06-17 Martin Liska <mliska@suse.cz>
16663
16664 * predict.def: PRED_LOOP_EXIT from 92 to 85.
16665
16666 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
16667
16668 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16669 __FAST_MATH__.
16670 (vaddq_f32): Likewise.
16671 (vmul_f32): Likewise.
16672 (vmulq_f32): Likewise.
16673 (vsub_f32): Likewise.
16674 (vsubq_f32): Likewise.
16675
16676 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16677
16678 PR tree-optimization/71347
16679 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16680 cost for all uses in group.
16681
16682 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16683
16684 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16685 insert gimple seq if it's not empty.
16686
16687 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16688
16689 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16690 member OFFSET.
16691 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16692 rather than OFFSET.
16693 (comp_dr_with_seg_len_pair): Ditto.
16694 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
16695 struct dr_with_seg_len_pair against DR_OFFSET.
16696 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16697 DR_OFFSET directly.
16698
16699 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
16700
16701 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16702
16703 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
16704
16705 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16706 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16707 (pa_output_millicode_call): Likewise.
16708 (pa_output_call): Likewise.
16709 (pa_output_indirect_call): Likewise.
16710 (pa_asm_output_mi_thunk): Likewise.
16711
16712 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16713
16714 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16715
16716 2016-06-16 Martin Liska <mliska@suse.cz>
16717
16718 * predict.c (combine_predictions_for_insn): When we find a first
16719 match predictor, we should consider just predictors with
16720 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
16721 DS theory predictor.
16722 (combine_predictions_for_bb): Likewise.
16723
16724 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16725
16726 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16727 with base of reference to struct.
16728
16729 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16730
16731 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16732
16733 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16734
16735 PR target/71151
16736 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16737 progmem_swtable_section.
16738 (progmem_swtable_section): Remove.
16739 (avr_asm_function_rodata_section): Remove.
16740 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16741 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16742
16743 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
16744
16745 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16746 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16747 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16748 signature_CENTAUR_ebx.
16749 * config/i386/i386.c (ix86_option_override_internal): Add
16750 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16751 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16752 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16753
16754 2016-06-16 Martin Liska <mliska@suse.cz>
16755
16756 * predict.def: Add fortran loop preheader predictor.
16757 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16758 fold IFN_BUILTIN_EXPECT with a known constant argument.
16759
16760 2016-06-16 Martin Liska <mliska@suse.cz>
16761
16762 * predict.def: Add 'Fortran' to display text of all
16763 PRED_FORTRAN_* predictors.
16764
16765 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16766
16767 PR target/71242
16768 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16769 [IA64_BUILTIN_NANSQ]: Ditto.
16770 (ia64_fold_builtin): New function.
16771 (TARGET_FOLD_BUILTIN): New define.
16772 (ia64_init_builtins) Declare const_string_type node.
16773 Add __builtin_nanq and __builtin_nansq builtin functions.
16774 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16775
16776 2016-06-16 Nick Clifton <nickc@redhat.com>
16777
16778 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16779 MSP430_HWMULT_ prefix to enum values.
16780 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16781 * config/msp430/msp430.c: Update use of enum values.
16782 * config/msp430/msp430.md: Likewise.
16783 * config/msp430/msp430.opt: Likewise.
16784
16785 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
16786
16787 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16788 of comparsions in the last iteration.
16789
16790 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16791 Joern Rennecke <joern.rennecke@embecosm.com>
16792
16793 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16794 addresses.
16795 (arc_needs_pcl_p): Add GOTOFFPC.
16796 (arc_legitimate_pic_addr_p): Likewise.
16797 (arc_output_pic_addr_const): Likewise.
16798 (arc_legitimize_pic_address): Generate a pc-relative address using
16799 GOTOFFPC.
16800 (arc_output_libcall): Use @pcl syntax.
16801 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16802 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16803 (*movsi_insn): Use @pcl syntax.
16804 (doloop_begin_i): Likewise.
16805
16806 2016-06-16 Martin Liska <mliska@suse.cz>
16807
16808 * predict.def: Define a new predictor.
16809
16810 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16811
16812 * config/arc/arc.opt (mtp-regno): Update text.
16813
16814 2016-06-16 Renlin Li <renlin.li@arm.com>
16815
16816 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16817
16818 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16819
16820 PR target/71554
16821 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16822 (setcc + and peephole2): Likewise.
16823
16824 PR rtl-optimization/71532
16825 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16826 memory slots.
16827
16828 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16829
16830 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16831 DImode constants with XXSPLTIB in vector registers.
16832 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16833 vsx_extract_<mode>_internal{1,2} into a single insn that handles
16834 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16835 extraction of the element at the top of the register as a scalar
16836 value.
16837 (vsx_extract_<mode>_internal1): Likewise.
16838 (vsx_extract_<mode>_internal2): Likewise.
16839 * config/rs6000/constraints.md (wi constraint): Remove a comment
16840 about DImode not being allowed in Altivec registers.
16841 (wB constraint): New constraint for constants that can be
16842 generated in Altivec registers with VSPLTISW/VUPKHSW.
16843 * config/rs6000/predicates.md (xxspltib_constant_split): Update
16844 comments.
16845 (xxspltib_constant_nosplit): Likewise.
16846 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16847 support for -mupper-regs-di to enable DImode to go into Altivec
16848 registers.
16849 (POWERPC_MASKS): Likewise.
16850 (power7 cpu): Likewise.
16851 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16852 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16853 for DImode being allowed in Altivec registers. Update wi/wj
16854 constraints. Set scalar_in_vmx_p flag.
16855 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16856 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
16857 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16858 (rs6000_opt_masks): Add -mupper-regs-di.
16859 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16860 direct move to use wi and not wj.
16861 (lfiwzx): Likewise.
16862 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16863 alternative.
16864 (floatunssi<mode>2_lfiwzx_mem): Likewise.
16865 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16866 any VSX register, instead of just Altivec registers, to allow
16867 either operand to be an Altivec register or both.
16868 (fixuns_trunc<mode>di2_fctiduz): Likewise.
16869 (movdi_internal32): Add support for -mupper-regs-di. Add support
16870 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
16871 the alternatives and attributes to be lined up to be easier to
16872 read.
16873 (movdi_internal64): Likewise.
16874 (64-bit DImode splitters): Change predicates to only split loading
16875 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
16876 load constants in ISA 3.0 or ISA 2.07 respectively.
16877 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16878 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
16879 mention -mcpu=power9 sets these options.
16880 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16881 wB constraint.
16882
16883 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16884
16885 PR target/67353
16886 * config/avr/avr.c (avr_set_current_function): Warn misspelled
16887 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16888 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16889 by default to warn misspelled interrupt/ signal handler.
16890 * doc/invoke.texi (AVR Options): Document it. Update description
16891 for -nodevicelib option.
16892
16893 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16894
16895 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16896 up parentheses. Use GET_MODE_UNIT_BITSIZE.
16897 (aarch64_<sur>shll2_n<mode>): Likewise.
16898
16899 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
16900
16901 PR middle-end/71529
16902 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16903 DECL_CONTEXT for copied arguments.
16904
16905 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16906
16907 PR tree-optimization/71483
16908 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16909 for slp
16910
16911 2016-06-15 Martin Liska <mliska@suse.cz>
16912
16913 * predict.c (tree_predict_by_opcode): Call predict_edge_def
16914 instead of predict_edge w/o a probability.
16915
16916 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16917
16918 PR tree-optimization/71439
16919 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16920 live PHIs.
16921
16922 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16923
16924 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16925 register subregs in SET_SRC.
16926
16927 2016-06-15 Richard Biener <rguenther@suse.de>
16928
16929 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16930 store restrictions.
16931
16932 2016-06-15 Richard Biener <rguenther@suse.de>
16933
16934 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16935 not consider dependences between accesses that belong to the
16936 same group.
16937 (vect_analyze_data_ref_dependences): Do not analyze read-read
16938 or self-dependences.
16939
16940 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16941
16942 * spellcheck-tree.c: Include spellcheck-tree.h rather than
16943 spellcheck.h.
16944 (find_closest_identifier): Reimplement in terms of
16945 best_match<tree,tree>.
16946 * spellcheck-tree.h: New file.
16947 * spellcheck.c (struct edit_distance_traits<const char *>): New
16948 struct.
16949 (find_closest_string): Reimplement in terms of
16950 best_match<const char *, const char *>.
16951 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16952 overload to spellcheck-tree.h.
16953 (find_closest_identifier): Likewise.
16954 (struct edit_distance_traits<T>): New template.
16955 (class best_match): New class.
16956
16957 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16958
16959 * selftest-run-tests.c (selftest::run_tests): Call
16960 selftest::spellcheck_tree_c_tests.
16961 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16962 * spellcheck-tree.c: Include selftest.h and stringpool.h.
16963 (selftest::test_find_closest_identifier): New function.
16964 (selftest::spellcheck_tree_c_tests): New function.
16965 * spellcheck.c (selftest::test_find_closest_string): Verify that
16966 the order of the vec does not affect the results for this case.
16967 (selftest::test_data): New array.
16968 (selftest::test_metric_conditions): New function.
16969 (selftest::spellcheck_c_tests): Add a test of case-comparison.
16970 Call selftest::test_metric_conditions.
16971
16972 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16973
16974 * config/rs6000/rs6000-builtin.def (commentary): Typo.
16975 (BU_P9_MISC_1): Likewise.
16976 (BU_P9_64BIT_MISC_0): Likewise.
16977 (BU_P9_MISC_0): Likewise.
16978
16979 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16980
16981 * gcc-rich-location.c
16982 (gcc_rich_location::add_fixit_misspelled_id): New method.
16983 * gcc-rich-location.h
16984 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
16985
16986 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
16987
16988 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
16989 FreeBSD 11 and above.
16990
16991 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
16992
16993 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
16994
16995 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16996
16997 * expmed.h: Close parenthesis in "at your option" in copyright
16998 boilerplate.
16999 * lower-subreg.h: Likewise.
17000
17001 2016-06-14 Richard Biener <rguenther@suse.de>
17002
17003 PR middle-end/71526
17004 * genmatch.c (expr::gen_transform): Use in_type for comparisons
17005 if available.
17006
17007 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17008
17009 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
17010 New function.
17011 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
17012 mask+shift version.
17013 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
17014 New prototype.
17015 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
17016 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
17017
17018 2016-06-14 Richard Biener <rguenther@suse.de>
17019
17020 PR tree-optimization/71522
17021 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
17022 copying into float copying.
17023
17024 2016-06-14 Jakub Jelinek <jakub@redhat.com>
17025
17026 PR tree-optimization/71520
17027 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
17028 (replace_block_by): Move user labels from bb1 to bb2.
17029
17030 2016-06-14 Richard Biener <rguenther@suse.de>
17031
17032 PR middle-end/71310
17033 PR bootstrap/71510
17034 * expr.h (get_bit_range): Declare.
17035 * expr.c (get_bit_range): Export.
17036 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
17037 word_mode again to constrain the bitfield access.
17038
17039 2016-06-14 Richard Biener <rguenther@suse.de>
17040
17041 PR tree-optimization/71521
17042 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
17043 division int_const_binop against zero divisor.
17044
17045 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17046
17047 * config/i386/i386.md (signbittf2): New expander.
17048 * config/i386/sse.md (ptesttf2): New insn pattern.
17049
17050 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17051
17052 PR bootstrap/71481
17053 * input.c (selftest::test_reading_source_line): Avoid reading from
17054 __FILE__ by creating a tempfile with known content and reading
17055 from that instead.
17056
17057 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17058
17059 * pretty-print.c (assert_pp_format_colored): Skip the test if
17060 GCC_COLORS is set.
17061 (test_pp_format): Remove comment about GCC_COLORS.
17062
17063 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17064
17065 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
17066 * pretty-print.c (assert_pp_format_va): Add location param and use
17067 it with ASSERT_STREQ_AT.
17068 (assert_pp_format): Add location param and pass it to
17069 assert_pp_format_va.
17070 (assert_pp_format_colored): Likewise.
17071 (ASSERT_PP_FORMAT_1): New.
17072 (ASSERT_PP_FORMAT_2): New.
17073 (ASSERT_PP_FORMAT_3): New.
17074 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
17075 explicitly, or implicitly via the above macros.
17076 * selftest.c (selftest::pass): Use a selftest::location rather
17077 than file and line.
17078 (selftest::fail): Likewise. Print the function name.
17079 (selftest::fail_formatted): Likewise.
17080 (selftest::assert_streq): Use a selftest::location rather than
17081 file and line.
17082 * selftest.h (selftest::location): New struct.
17083 (SELFTEST_LOCATION): New macro.
17084 (selftest::pass): Accept a const location & rather than file
17085 and line.
17086 (selftest::fail): Likewise.
17087 (selftest::fail_formatted): Likewise.
17088 (selftest::assert_streq): Likewise.
17089 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
17090 (ASSERT_FALSE): Likewise.
17091 (ASSERT_EQ): Likewise.
17092 (ASSERT_NE): Likewise.
17093 (ASSERT_STREQ): Likewise.
17094 (ASSERT_PRED1): Likewise.
17095 (ASSERT_STREQ_AT): New macro.
17096
17097 2016-06-13 David Malcolm <dmalcolm@redhat.com>
17098
17099 * selftest.c (selftest::fail_formatted): New function.
17100 (selftest::assert_streq): New function.
17101 * selftest.h (selftests::fail_formatted): New decl.
17102 (selftest::assert_streq): New decl.
17103 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
17104
17105 2016-06-13 Jeff Law <law@redhat.com>
17106
17107 PR tree-optimization/71403
17108 * tree-ssa-threadbackward.c
17109 (convert_and_register_jump_thread_path): No longer accept reference
17110 to path. Do not pop items off the path anymore.
17111 (fsm_find_control_statement_thread_paths): Do not allow threading
17112 to a deeper loop nest. Pop the last item off the path here rather
17113 than in convert_and_register_jump_thread_path.
17114
17115 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
17116 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
17117
17118 [AArch64] Emit division using the Newton series
17119
17120 * config/aarch64/aarch64-protos.h
17121 (cpu_approx_modes): Add new member "division".
17122 (aarch64_emit_approx_div): Declare new function.
17123 * config/aarch64/aarch64.c
17124 (generic_approx_modes): New member "division".
17125 (exynosm1_approx_modes): Likewise.
17126 (xgene1_approx_modes): Likewise.
17127 (aarch64_emit_approx_div): Define new function.
17128 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
17129 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
17130 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
17131 * doc/invoke.texi (-mlow-precision-div): Describe new option.
17132
17133 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
17134 Wilco Dijkstra <wilco.dijkstra@arm.com>
17135
17136 [AArch64] Emit square root using the Newton series
17137
17138 * config/aarch64/aarch64-protos.h
17139 (aarch64_emit_approx_rsqrt): Replace with new function
17140 "aarch64_emit_approx_sqrt".
17141 (cpu_approx_modes): New member "sqrt".
17142 * config/aarch64/aarch64.c
17143 (generic_approx_modes): New member "sqrt".
17144 (exynosm1_approx_modes): Likewise.
17145 (xgene1_approx_modes): Likewise.
17146 (aarch64_emit_approx_rsqrt): Replace with new function
17147 "aarch64_emit_approx_sqrt".
17148 (aarch64_override_options_after_change_1): Handle new option.
17149 * config/aarch64/aarch64-simd.md
17150 (rsqrt<mode>2): Use new function instead.
17151 (sqrt<mode>2): New expansion and insn definitions.
17152 * config/aarch64/aarch64.md: Likewise.
17153 * config/aarch64/aarch64.opt
17154 (mlow-precision-sqrt): Add new option description.
17155 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
17156
17157 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
17158
17159 [AArch64] Add more choices for the reciprocal square root approximation
17160
17161 Allow a target to prefer such operation depending on the operation mode.
17162
17163 * config/aarch64/aarch64-protos.h
17164 (AARCH64_APPROX_MODE): New macro.
17165 (AARCH64_APPROX_{NONE,ALL}): Likewise.
17166 (cpu_approx_modes): New structure.
17167 (tune_params): New member "approx_modes".
17168 * config/aarch64/aarch64-tuning-flags.def
17169 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
17170 * config/aarch64/aarch64.c
17171 (generic_approx_modes): New core "cpu_approx_modes" structure.
17172 (exynosm1_approx_modes): Likewise.
17173 (xgene1_approx_modes): Likewise.
17174 (generic_tunings): New member "approx_modes".
17175 (cortexa35_tunings): Likewise.
17176 (cortexa53_tunings): Likewise.
17177 (cortexa57_tunings): Likewise.
17178 (cortexa72_tunings): Likewise.
17179 (exynosm1_tunings): Likewise.
17180 (thunderx_tunings): Likewise.
17181 (xgene1_tunings): Likewise.
17182 (use_rsqrt_p): New argument for the mode and use new member from
17183 "tune_params".
17184 (aarch64_builtin_reciprocal): Devise mode from builtin.
17185 (aarch64_optab_supported_p): New argument for the mode.
17186 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
17187
17188 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17189
17190 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
17191 RS6000_BTM_MODULO flag into the set of flags that are considered
17192 to be part of the common configuration.
17193
17194 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17195
17196 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
17197 difference unsigned.
17198 (vec_absdb): New macro for vector absolute difference unsigned
17199 byte.
17200 (vec_absdh): New macro for vector absolute difference unsigned
17201 half-word.
17202 (vec_absdw): New macro for vector absolute difference unsigned word.
17203 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
17204 (vadu<mode>3): New insn.
17205 (*p9_vadu<mode>3): New insn.
17206 * config/rs6000/rs6000-builtin.def (vadub): New built-in
17207 definition.
17208 (vaduh): New built-in definition.
17209 (vaduw): New built-in definition.
17210 (vadu): New overloaded built-in definition.
17211 (vadub): New overloaded built-in definition.
17212 (vaduh): New overloaded built-in definition.
17213 (vaduw): New overloaded built-in definition.
17214 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17215 overloaded vector absolute difference unsigned functions.
17216 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17217 the ISA 3.0 vector absolute difference unsigned built-in functions.
17218
17219 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
17220
17221 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
17222 update shared_lookup_references only once after changing operands.
17223
17224 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
17225
17226 PR middle-end/71373
17227 * tree-nested.c (convert_nonlocal_omp_clauses)
17228 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
17229
17230 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
17231 * tree.def (CASE_LABEL_EXPR): Likewise.
17232
17233 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
17234
17235 PR bootstrap/71481
17236 * input.c (test_builtins): Fix an assertion.
17237
17238 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17239
17240 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
17241 (paritysi2): Ditto.
17242 (isinfxf2): Ditto.
17243 (isinf<mode>2): Ditto.
17244
17245 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17246
17247 * ggc-tests.c (test_finalization): Only test need_finalization_p
17248 for GCC_VERSION >= 4003.
17249
17250 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17251
17252 * config/s390/vecintrin.h: Fix file description in comment.
17253
17254 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17255
17256 * config/s390/s390-builtin-types.def: Change builtin type naming
17257 scheme to match builtin-types.def.
17258
17259 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
17260
17261 * fold-const.c (optimize_minmax_comparison): Remove.
17262 (fold_comparison): Remove call to the above.
17263 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
17264 New transformations.
17265
17266 2016-06-13 Alan Hayward <alan.hayward@arm.com>
17267
17268 PR tree-optimization/71416
17269 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
17270 multiple entries
17271
17272 2016-06-13 Martin Liska <mliska@suse.cz>
17273
17274 * predict.c (enum predictor_reason): Prefix enum with REASON_.
17275 (combine_predictions_for_insn): Likewise.
17276 (prune_predictions_for_bb): Likewise.
17277 (combine_predictions_for_bb): Likewise.
17278
17279 2016-06-13 Richard Biener <rguenther@suse.de>
17280
17281 PR tree-optimization/71505
17282 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
17283 assert match comment.
17284
17285 2016-06-13 Marek Polacek <polacek@redhat.com>
17286
17287 PR middle-end/71476
17288 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
17289 gimplify_switch_expr.
17290 (warn_switch_unreachable_r): New function.
17291
17292 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17293
17294 PR target/71379
17295 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
17296 one.
17297
17298 2016-06-13 Richard Biener <rguenther@suse.de>
17299
17300 PR middle-end/64516
17301 * fold-const.c (fold_unary_loc): Preserve alignment when
17302 folding a VIEW_CONVERT_EXPR into a MEM_REF.
17303
17304 2016-06-13 Martin Liska <mliska@suse.cz>
17305
17306 PR sanitizer/71458
17307 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
17308 w/ -fsanitize=bounds.
17309
17310 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
17311
17312 * config/i386/i386.c (ix86_init_builtins): Calculate
17313 FLOAT128_FTYPE_CONST_STRING function type only once.
17314 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
17315 built-in functions are available for x86-32 and x86-64 targets.
17316
17317 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
17318
17319 PR target/71241
17320 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
17321 New primitive type.
17322 (FLOAT128_FTYPE_CONST_STRING): New function type.
17323 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
17324 [IX86_BUILTIN_NANSQ]: Ditto.
17325 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17326 (ix86_init_builtin_types): Declare const_string_type_node.
17327 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
17328 builtin functions.
17329 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17330 * doc/extend.texi (x86 Built-in Functions): Document
17331 __builtin_nanq and __builtin_nansq.
17332
17333 2016-06-11 Jiong Wang <jiong.wang@arm.com>
17334
17335 PR target/71061
17336 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
17337 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
17338 length for pop patterns.
17339 (arm_attr_length_push_multi): Update comments.
17340 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
17341 attribute.
17342 (*pop_multiple_with_writeback_and_return): Likewise.
17343 (*pop_multiple_with_return): Likewise.
17344
17345 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
17346
17347 PR middle-end/71310
17348 * fold-const.c (optimize_bit_field_compare): Don't try to use
17349 word_mode unconditionally for reading the bit field, look at
17350 DECL_BIT_FIELD_REPRESENTATIVE instead.
17351
17352 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
17353
17354 PR middle-end/71478
17355 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
17356 vector integer type.
17357
17358 2016-06-10 Jakub Jelinek <jakub@redhat.com>
17359
17360 PR middle-end/71494
17361 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
17362 without LABEL_DECL, set *handled_ops_p to false instead of true.
17363
17364 2016-06-10 Martin Sebor <msebor@redhat.com>
17365
17366 PR c/71392
17367 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
17368 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
17369 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
17370 them.
17371 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
17372 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
17373 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
17374 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
17375 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
17376 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
17377 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
17378 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
17379
17380 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17381
17382 * config/arm/arm.h (pool_vector_label,
17383 return_used_this_function): Remove.
17384
17385 2016-06-10 Jeff Law <law@redhat.com>
17386
17387 PR tree-optimization/71335
17388 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
17389 zero length paths here.
17390 (convert_and_register_jump_thread_path): Remove hacks related to
17391 duplicated blocks in the jump thread path.
17392 (fsm_find_control_statement_thread_paths): Avoid putting the same
17393 block on the thread path twice, but ensure the thread path is
17394 unchanged from the caller's point of view.
17395
17396 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17397
17398 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
17399 * predict.def (PRED_LOOP_BRANCH): Remove.
17400
17401 2016-06-10 David Malcolm <dmalcolm@redhat.com>
17402
17403 * Makefile.in (OBJS): Add ggc-tests.o.
17404 (GTFILES): Add ggc-tests.c.
17405 * ggc-tests.c: New file.
17406 * selftest-run-tests.c (selftest::run_tests): Call
17407 selftest::ggc_tests_c_tests.
17408 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
17409
17410 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
17411
17412 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
17413
17414 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
17415
17416 PR sanitizer/71480
17417 * varasm.c (place_block_symbol): Adjust alignment for asan protected
17418 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
17419
17420 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17421
17422 * profile.c: Include cfgloop.h.
17423 (branch_prob): Compute estimated number of iterations.
17424 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
17425 recompute estimate number of iterations from profile.
17426
17427 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17428
17429 PR inline-asm/68843
17430 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
17431 must be grouped on top of stack. Don't force early clobber
17432 on ordinary reg outputs.
17433
17434 2016-06-10 Richard Biener <rguenther@suse.de>
17435
17436 * targhooks.c (default_builtin_vectorization_cost): Adjust
17437 vec_construct cost.
17438
17439 2016-06-10 Richard Biener <rguenther@suse.de>
17440
17441 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
17442 to fold the RHS to a constant if possible.
17443
17444 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
17445
17446 PR middle-end/71373
17447 * tree-nested.c (convert_nonlocal_omp_clauses)
17448 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
17449 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17450 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
17451
17452 * gimplify.c (gimplify_adjust_omp_clauses): Discard
17453 OMP_CLAUSE_TILE.
17454 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
17455
17456 * omp-low.c (scan_sharing_clauses): Don't expect
17457 OMP_CLAUSE__CACHE_.
17458
17459 2016-06-10 Alan Hayward <alan.hayward@arm.com>
17460
17461 PR tree-optimization/71407
17462 PR tree-optimization/71416
17463 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
17464 BIT_FIELD_REF type.
17465
17466 2016-06-10 Richard Biener <rguenther@suse.de>
17467
17468 PR middle-end/71477
17469 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
17470
17471 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
17472
17473 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
17474
17475 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
17476 Jiong Wang <jiong.wang@arm.com>
17477
17478 PR rtl-optimization/70751
17479 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
17480 spilled into memory.
17481
17482 2016-06-09 Jonathan Yong <10walls@gmail.com>
17483
17484 Revert:
17485 2015-09-21 Jonathan Yong <10walls@gmail.com>
17486
17487 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17488 sysroot/usr/lib/32api for additional win32 libraries,
17489 fixes failing Cygwin bootstrapping.
17490
17491 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
17492
17493 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
17494 Delete.
17495
17496 2016-06-09 David Malcolm <dmalcolm@redhat.com>
17497
17498 PR bootstrap/71471
17499 * pretty-print.c (pp_indent): Specify that %p is printed in a
17500 host-dependent manner.
17501 (test_pp_format): Remove the test for %p.
17502
17503 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
17504
17505 * config/mips/mips.c (mips_output_jump): Fix formatting.
17506
17507 2016-06-09 Richard Biener <rguenther@suse.de>
17508
17509 PR tree-optimization/71462
17510 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
17511 removed blocks.
17512
17513 2016-06-09 Martin Liska <mliska@suse.cz>
17514
17515 * predict.c (dump_prediction): Add new argument.
17516 (enum predictor_reason): New enum.
17517 (struct predictor_hash): New struct.
17518 (predictor_hash::hash): New function.
17519 (predictor_hash::equal): Likewise.
17520 (not_removed_prediction_p): New function.
17521 (prune_predictions_for_bb): Likewise.
17522 (combine_predictions_for_bb): Prune predictions.
17523
17524 2016-06-09 Martin Liska <mliska@suse.cz>
17525
17526 * predict.c (filter_predictions): New function.
17527 (remove_predictions_associated_with_edge): Use the filter
17528 function.
17529 (equal_edge_p): New function.
17530
17531 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
17532
17533 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
17534 Correct usage of @samp vs @option, add @samp where appropriate.
17535 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
17536 Add armv6s-m and document it, as it is no official ARM name.
17537
17538 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17539
17540 * ifcvt.c (struct noce_if_info): Add transform_name field.
17541 (noce_try_move): Set if_info->transform_name to the function name.
17542 (noce_try_ifelse_collapse): Likewise.
17543 (noce_try_store_flag): Likewise.
17544 (noce_try_inverse_constants): Likewise.
17545 (noce_try_store_flag_constants): Likewise.
17546 (noce_try_addcc): Likewise.
17547 (noce_try_store_flag_mask): Likewise.
17548 (noce_try_cmove): Likewise.
17549 (noce_try_cmove_arith): Likewise.
17550 (noce_try_minmax): Likewise.
17551 (noce_try_abs): Likewise.
17552 (noce_try_sign_mask): Likewise.
17553 (noce_try_bitop): Likewise.
17554 (noce_convert_multiple_sets): Likewise.
17555 (noce_process_if_block): Print if_info->transform_name to
17556 dump_file if transformation succeeded.
17557
17558 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17559
17560 * config/arm/cortex-a57.md (cortex_a57_alu):
17561 Handle csel type.
17562
17563 2016-06-08 Martin Sebor <msebor@redhat.com>
17564 Jakub Jelinek <jakub@redhat.com>
17565
17566 PR c++/70507
17567 PR c/68120
17568 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
17569 BUILT_IN_MUL_OVERFLOW_P): New builtins.
17570 * builtins.c: Include gimple-fold.h.
17571 (fold_builtin_arith_overflow): Handle
17572 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
17573 (fold_builtin_3): Likewise.
17574 * doc/extend.texi (Integer Overflow Builtins): Document
17575 __builtin_{add,sub,mul}_overflow_p.
17576
17577 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
17578
17579 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
17580 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
17581
17582 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
17583
17584 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
17585 Rewrite, looking one level down for records and arrays.
17586
17587 2016-06-08 David Malcolm <dmalcolm@redhat.com>
17588
17589 * pretty-print.c: Include "selftest.h".
17590 (pp_format): Fix comment.
17591 (identifier_to_locale): Likewise.
17592 (selftest::test_basic_printing): New function.
17593 (selftest::assert_pp_format): New function.
17594 (selftest::test_pp_format): New function.
17595 (selftest::pretty_print_c_tests): New function.
17596 * selftest-run-tests.c (selftest::run_tests): Call
17597 selftest::pretty_print_c_tests.
17598 * selftest.h (pretty_print_c_tests): New declaration.
17599
17600 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17601
17602 * invoke.texi (max-loop-headers-insns): Document.
17603 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
17604 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
17605 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
17606
17607 2016-06-08 Richard Biener <rguenther@suse.de>
17608
17609 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
17610 on strided SLP loads and fall back to scalar loads in case
17611 we can't chunk them.
17612
17613 2016-06-08 Richard Biener <rguenther@suse.de>
17614
17615 PR tree-optimization/71452
17616 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
17617 type used for the SSA rewrite has enough precision to cover
17618 the dynamic type of the location.
17619
17620 2016-06-08 Jakub Jelinek <jakub@redhat.com>
17621 Richard Biener <rguenther@suse.de>
17622
17623 PR c++/71448
17624 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
17625 the same as DECL_P (base0) for indirect_base0. Use equality_code
17626 in one further place.
17627
17628 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
17629
17630 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
17631 to one word if the field is known to overlap other words.
17632 (extract_bit_field_1): Likewise.
17633 (store_split_bit_field): Remove compensating code.
17634 (extract_split_bit_field): Likewise.
17635
17636 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
17637
17638 PR debug/71432
17639 PR ada/71413
17640 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
17641
17642 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17643
17644 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
17645 VDQF.
17646 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
17647 (arch64_addpv4sf): Delete.
17648 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
17649 "gen_aarch64_addpv4sf".
17650 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
17651 builtin.
17652 (vpadds_f32): Likewise.
17653 (vpaddq_f32): Likewise.
17654 (vpaddq_f64): Likewise.
17655
17656 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17657
17658 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
17659 VALLF.
17660 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
17661 to VALLF. Rename to "fabd<mode>3".
17662 "*fabd_scalar<mode>3): Delete.
17663 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
17664 Use builtin.
17665 (vabdd_f64): Likewise.
17666 (vabd_f32): Likewise.
17667 (vabd_f64): Likewise.
17668 (vabdq_f32): Likewise.
17669 (vabdq_f64): Likewise.
17670
17671 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17672
17673 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17674 VALLF.
17675 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17676 "aarch64_rsqrts<mode>".
17677 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17678 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
17679 builtin.
17680 (vrsqrtsd_f64): Likewise.
17681 (vrsqrts_f32): Likewise.
17682 (vrsqrts_f64): Likewise.
17683 (vrsqrtsq_f32): Likewise.
17684 (vrsqrtsq_f64): Likewise.
17685
17686 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17687
17688 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17689 VALLF.
17690 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17691 "aarch64_rsqrte<mode>".
17692 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17693 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
17694 builtin.
17695 (vrsqrted_f64): Likewise.
17696 (vrsqrte_f32): Likewise.
17697 (vrsqrte_f64): Likewise.
17698 (vrsqrteq_f32): Likewise.
17699 (vrsqrteq_f64): Likewise.
17700
17701 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17702
17703 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17704 (ucvtf): Likewise.
17705 (fcvtzs): Likewise.
17706 (fcvtzu): Likewise.
17707 * config/aarch64/aarch64-simd.md
17708 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17709 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17710 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17711 Use builtin.
17712 (vcvt_n_f32_u32): Likewise.
17713 (vcvt_n_s32_f32): Likewise.
17714 (vcvt_n_u32_f32): Likewise.
17715 (vcvtq_n_f32_s32): Likewise.
17716 (vcvtq_n_f32_u32): Likewise.
17717 (vcvtq_n_f64_s64): Likewise.
17718 (vcvtq_n_f64_u64): Likewise.
17719 (vcvtq_n_s32_f32): Likewise.
17720 (vcvtq_n_s64_f64): Likewise.
17721 (vcvtq_n_u32_f32): Likewise.
17722 (vcvtq_n_u64_f64): Likewise.
17723 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17724 (VSDQ_SDI): Likewise.
17725 (fcvt_target): Support V4DI, V4SI and V2SI.
17726 (FCVT_TARGET): Likewise.
17727
17728 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17729
17730 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17731 (TYPES_BINOP_SUS): Likewise.
17732 (aarch64_simd_builtin_data): Update include file name.
17733 (aarch64_builtins): Likewise.
17734 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17735 for conversion between scalar float-point and fixed-point.
17736 (ucvtf): Likewise.
17737 (fcvtzs): Likewise.
17738 (fcvtzu): Likewise.
17739 * config/aarch64/aarch64.md
17740 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17741 pattern for conversion between scalar float to fixed-pointer.
17742 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17743 (UNSPEC_FCVTZS): New UNSPEC enumeration.
17744 (UNSPEC_FCVTZU): Likewise.
17745 (UNSPEC_SCVTF): Likewise.
17746 (UNSPEC_UCVTF): Likewise.
17747 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17748 Use builtin.
17749 (vcvtd_n_f64_u64): Likewise.
17750 (vcvtd_n_s64_f64): Likewise.
17751 (vcvtd_n_u64_f64): Likewise.
17752 (vcvtd_n_f32_s32): Likewise.
17753 (vcvts_n_f32_u32): Likewise.
17754 (vcvtd_n_s32_f32): Likewise.
17755 (vcvts_n_u32_f32): Likewise.
17756 * config/aarch64/iterators.md (fcvt_target): Support integer to float
17757 mapping.
17758 (FCVT_TARGET): Likewise.
17759 (FCVT_FIXED2F): New iterator.
17760 (FCVT_F2FIXED): Likewise.
17761 (fcvt_fixed_insn): New define_int_attr.
17762
17763 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17764
17765 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17766 some statements was removed.
17767
17768 2016-06-08 Alan Hayward <alan.hayward@arm.com>
17769
17770 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17771 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17772 (vect_can_advance_ivs_p): likewise.
17773 (vect_update_ivs_after_vectorizer): likewise.
17774 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17775 (vect_analyze_scalar_cycles_1): likewise.
17776 (vect_analyze_loop_operations): likewise.
17777 (report_vect_op): likewise.
17778 (vect_is_slp_reduction): likewise.
17779 (vect_is_simple_reduction): likewise.
17780 (get_initial_def_for_induction): likewise.
17781 (vect_transform_loop): likewise.
17782 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17783 (vect_recog_sad_pattern): likewise.
17784 (vect_recog_widen_sum_pattern): likewise.
17785 (vect_recog_widening_pattern): likewise.
17786 (vect_recog_divmod_pattern): likewise.
17787 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17788 (vect_analyze_slp_instance): likewise.
17789 (vect_transform_slp_perm_load): likewise.
17790 (vect_schedule_slp_instance): likewise.
17791
17792 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17793
17794 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17795 (return_prediction): PRED_CONST_RETURN predict return as not taken.
17796 * predict.def (PRED_CONTINUE): Change hitrate 50->67
17797 (PRED_LOOP_BRANCH): Document predictor as broken.
17798 (PRED_LOOP_EXIT): Change hitrate 91->92.
17799 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17800 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17801 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17802 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17803 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17804 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17805 (PRED_CALL): Chane hitrate 71->67.
17806 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17807 (PRED_GOTO): Document as unused right now.
17808 (PRED_CONST_RETURN): Change hitrate 67->69
17809 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17810 (PRED_NULL_RETURN): Change hitrate 91->90.
17811 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17812 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17813 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17814
17815 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
17816
17817 * config/rs6000/altivec.h: Add __builtin_vec_mul.
17818 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17819 special case Altivec builtin.
17820 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17821 VSX_BUILTIN_VEC_MUL (replaced with special case code).
17822 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17823 code for ALTIVEC_BUILTIN_VEC_MUL.
17824 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17825 for __builtin_vec_mul.
17826
17827 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
17828
17829 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17830 -mno-htm.
17831
17832 2016-06-07 David Malcolm <dmalcolm@redhat.com>
17833
17834 * spellcheck.c (selftest::test_find_closest_string): New function.
17835 (spellcheck_c_tests): Call the above.
17836
17837 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17838
17839 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17840
17841 2016-06-07 Jakub Jelinek <jakub@redhat.com>
17842
17843 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17844 Yv=Yv,C alternatives.
17845
17846 2016-06-07 Richard Biener <rguenther@suse.de>
17847
17848 PR c/61564
17849 * common.opt (ffast-math): Make Optimization.
17850
17851 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
17852 Prachi Godbole <prachi.godbole@imgtec.com>
17853
17854 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17855 `fabs' and `fneg' type attributes.
17856 (p5600_fpu_fabs): Add `fmove' to the comment.
17857
17858 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17859
17860 * gimple.c: Include builtins.h
17861 (gimple_inexpensive_call_p): New function.
17862 * gimple.h (gimple_inexpensive_call_p): Declare.
17863 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17864 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17865 fix formatting.
17866
17867 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
17868
17869 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17870 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17871 warning_at_rich_loc, warning_n, pedwarn, permerror,
17872 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17873 sorry, fatal_error, internal_error, internal_error_no_backtrace):
17874 Use the above.
17875
17876 2016-06-07 Richard Biener <rguenther@suse.de>
17877
17878 PR tree-optimization/71428
17879 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17880 BIT_FIELD_REF op vs. load.
17881
17882 2016-06-07 Richard Biener <rguenther@suse.de>
17883
17884 PR middle-end/71423
17885 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17886 for signed ops.
17887
17888 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17889
17890 * config/pa/pa.md (call): Generate indirect long calls to non-local
17891 functions on TARGET_64BIT.
17892 (call_value): Likewise.
17893
17894 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17895
17896 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17897 pattern and subsequent splitters.
17898 (call_val_reg_64bit_post_reload): Likewise.
17899
17900 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17901
17902 PR middle-end/71408
17903 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17904 propagate_op_to_single_use.
17905
17906 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17907
17908 PR middle-end/71281
17909 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17910
17911 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
17912
17913 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17914 (enum x86_dirflag_state): New enum.
17915 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17916 (machine_function): Remove needs_cld.
17917 (ix86_current_function_needs_cld): Remove.
17918 * config/i386/i386.c (ix86_set_func_type): Set
17919 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17920 (ix86_expand_prologue): Do not emit CLD here.
17921 (ix86_dirflag_mode_needed): New function.
17922 (ix86_dirflag_mode_entry): Ditto.
17923 (ix86_mode_needed): Handle X86_DIRFLAG entity.
17924 (ix86_mode_after): Ditto.
17925 (ix86_mode_entry): Ditto.
17926 (ix86_mode_exit): Ditto.
17927 (ix86_emit_mode_set): Ditto.
17928 * config/i386/i386.md (strmov_singleop): Set
17929 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17930 Do not set ix86_current_function_needs_cld.
17931 (rep_mov): Ditto.
17932 (strset_singleop): Ditto.
17933 (rep_stos): Ditto.
17934 (cmpstrnqi_nz_1): Ditto.
17935 (cmpstrnqi_1): Ditto.
17936 (strlenqi_1): Ditto.
17937
17938 2016-06-06 Jakub Jelinek <jakub@redhat.com>
17939
17940 PR tree-optimization/71259
17941 * tree-vect-slp.c (vect_get_constant_vectors): For
17942 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17943 one for constant op, and use COND_EXPR for non-constant.
17944
17945 2016-06-06 David Malcolm <dmalcolm@redhat.com>
17946
17947 * Makefile.in (OBJS): Add function-tests.o,
17948 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17949 selftest-run-tests.o.
17950 (OBJS-libcommon): Add selftest.o.
17951 (OBJS-libcommon-target): Add selftest.o.
17952 (all.internal): Add "selftest".
17953 (all.cross): Likewise.
17954 (selftest): New phony target.
17955 (s-selftest): New target.
17956 (selftest-gdb): New phony target.
17957 (COLLECT2_OBJS): Add selftest.o.
17958 * bitmap.c: Include "selftest.h".
17959 (selftest::test_gc_alloc): New function.
17960 (selftest::test_set_range): New function.
17961 (selftest::test_clear_bit_in_middle): New function.
17962 (selftest::test_copying): New function.
17963 (selftest::test_bitmap_single_bit_set_p): New function.
17964 (selftest::bitmap_c_tests): New function.
17965 * common.opt (fself-test): New.
17966 * diagnostic-show-locus.c: Include "selftest.h".
17967 (make_range): New function.
17968 (test_range_contains_point_for_single_point): New function.
17969 (test_range_contains_point_for_single_line): New function.
17970 (test_range_contains_point_for_multiple_lines): New function.
17971 (assert_eq): New function.
17972 (test_get_line_width_without_trailing_whitespace): New function.
17973 (selftest::diagnostic_show_locus_c_tests): New function.
17974 * et-forest.c: Include "selftest.h".
17975 (selftest::test_single_node): New function.
17976 (selftest::test_simple_tree): New function.
17977 (selftest::test_disconnected_nodes): New function.
17978 (selftest::et_forest_c_tests): New function.
17979 * fold-const.c: Include "selftest.h".
17980 (selftest::assert_binop_folds_to_const): New function.
17981 (selftest::assert_binop_folds_to_nonlvalue): New function.
17982 (selftest::test_arithmetic_folding): New function.
17983 (selftest::fold_const_c_tests): New function.
17984 * function-tests.c: New file.
17985 * gimple.c: Include "selftest.h".
17986 Include "gimple-pretty-print.h".
17987 (selftest::verify_gimple_pp): New function.
17988 (selftest::test_assign_single): New function.
17989 (selftest::test_assign_binop): New function.
17990 (selftest::test_nop_stmt): New function.
17991 (selftest::test_return_stmt): New function.
17992 (selftest::test_return_without_value): New function.
17993 (selftest::gimple_c_tests): New function.
17994 * hash-map-tests.c: New file.
17995 * hash-set-tests.c: New file.
17996 * input.c: Include "selftest.h".
17997 (selftest::assert_loceq): New function.
17998 (selftest::test_accessing_ordinary_linemaps): New function.
17999 (selftest::test_unknown_location): New function.
18000 (selftest::test_builtins): New function.
18001 (selftest::test_reading_source_line): New function.
18002 (selftest::input_c_tests): New function.
18003 * rtl-tests.c: New file.
18004 * selftest-run-tests.c: New file.
18005 * selftest.c: New file.
18006 * selftest.h: New file.
18007 * spellcheck.c: Include "selftest.h".
18008 (selftest::levenshtein_distance_unit_test_oneway): New function,
18009 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
18010 (selftest::levenshtein_distance_unit_test): Likewise.
18011 (selftest::spellcheck_c_tests): Likewise.
18012 * toplev.c: Include selftest.h.
18013 (toplev::run_self_tests): New.
18014 (toplev::main): Handle -fself-test.
18015 * toplev.h (toplev::run_self_tests): New.
18016 * tree.c: Include "selftest.h".
18017 (selftest::test_integer_constants): New function.
18018 (selftest::test_identifiers): New function.
18019 (selftest::test_labels): New function.
18020 (selftest::tree_c_tests): New function.
18021 * tree-cfg.c: Include "selftest.h".
18022 (selftest::push_fndecl): New function.
18023 (selftest::test_linear_chain): New function.
18024 (selftest::test_diamond): New function.
18025 (selftest::test_fully_connected): New function.
18026 (selftest::tree_cfg_c_tests): New function.
18027 * vec.c: Include "selftest.h".
18028 (selftest::safe_push_range): New function.
18029 (selftest::test_quick_push): New function.
18030 (selftest::test_safe_push): New function.
18031 (selftest::test_truncate): New function.
18032 (selftest::test_safe_grow_cleared): New function.
18033 (selftest::test_pop): New function.
18034 (selftest::test_safe_insert): New function.
18035 (selftest::test_ordered_remove): New function.
18036 (selftest::test_unordered_remove): New function.
18037 (selftest::test_block_remove): New function.
18038 (selftest::reverse_cmp): New function.
18039 (selftest::test_qsort): New function.
18040 (selftest::vec_c_tests): New function.c.
18041 * wide-int.cc: Include selftest.h and wide-int-print.h.
18042 (selftest::from_int <wide_int>): New function.
18043 (selftest::from_int <offset_int>): New function.
18044 (selftest::from_int <widest_int>): New function.
18045 (selftest::assert_deceq): New function.
18046 (selftest::assert_hexeq): New function.
18047 (selftest::test_printing <VALUE_TYPE>): New function template.
18048 (selftest::test_ops <VALUE_TYPE>): New function template.
18049 (selftest::test_comparisons <VALUE_TYPE>): New function template.
18050 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
18051 template.
18052 (selftest::wide_int_cc_tests): New function.
18053
18054 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18055
18056 PR middle-end/37780
18057 * ifcvt.c (noce_try_ifelse_collapse): New function.
18058 Declare prototype.
18059 (noce_process_if_block): Call noce_try_ifelse_collapse.
18060 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
18061 (simplify_ternary_operation): Use the above to simplify
18062 conditional CLZ/CTZ expressions.
18063
18064 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18065
18066 PR middle-end/37780
18067 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
18068 define_insn_and_split.
18069
18070 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18071
18072 PR middle-end/37780
18073 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
18074
18075 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
18076
18077 PR c/24414
18078 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
18079 Implicitly clobber memory for basic asm with non-empty assembler
18080 string. Use targetm.md_asm_adjust also here.
18081 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
18082 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
18083 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
18084 non-empty assembler string.
18085 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
18086 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
18087 (decode_asm_operands): Handle basic asm in PARALLEL block.
18088 (extract_insn): Handle basic asm in PARALLEL block.
18089 * doc/extend.texi: Mention new behavior of basic asm.
18090 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
18091 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
18092 branch_needs_nop_p): Use asm_noperands.
18093
18094 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
18095
18096 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
18097 Include the M7 SPARC DFA scheduler.
18098 New attribute v3pipe.
18099 Annotate insns with v3pipe where appropriate.
18100 Define cpu_feature vis4.
18101 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
18102 Add (V8QI "8") to vbits.
18103 Add insns {add,sub}v8qi3
18104 Add insns ss{add,sub}v8qi3
18105 Add insns us{add,sub}{v8qi,v4hi}3
18106 Add insns {min,max}{v8qi,v4hi,v2si}3
18107 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
18108 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
18109 * config/sparc/niagara4.md: Add a comment explaining the
18110 discrepancy between the documented latenty numbers and the
18111 implemented ones.
18112 * config/sparc/niagara7.md: New file.
18113 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
18114 supports SPARC5 and VIS 4.0 instructions.
18115 * configure: Regenerate.
18116 * config.in: Likewise.
18117 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
18118 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
18119 TARGET_CPU_niagara7.
18120 (ASM_CPU64_DEFAULT_SPEC): Likewise.
18121 (CPP_CPU_SPEC): Handle niagara7.
18122 (ASM_CPU_SPEC): Likewise.
18123 * config/sparc/sparc-opts.h (processor_type): Add
18124 PROCESSOR_NIAGARA7.
18125 (mvis4): New option.
18126 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
18127 (AS_NIAGARA7_FLAG): Define.
18128 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
18129 (CPP_CPU64_DEFAULT_SPEC): Likewise.
18130 (CPP_CPU_SPEC): Handle niagara7.
18131 (ASM_CPU_SPEC): Likewise.
18132 * config/sparc/sparc.c (niagara7_costs): Define.
18133 (sparc_option_override): Handle niagara7 and adjust cache-related
18134 parameters with better values for niagara cpus. Also support VIS4.
18135 (sparc32_initialize_trampoline): Likewise.
18136 (sparc_use_sched_lookahead): Likewise.
18137 (sparc_issue_rate): Likewise.
18138 (sparc_register_move_cost): Likewise.
18139 (dump_target_flag_bits): Support VIS4.
18140 (sparc_vis_init_builtins): Likewise.
18141 (sparc_builtins): Likewise.
18142 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
18143 VIS4 4.0.
18144 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
18145 UltraSparc M7.
18146 * config/sparc/sparc.opt (sparc_processor_type): New value
18147 niagara7.
18148 * config/sparc/visintrin.h (__attribute__): Prototypes for the
18149 VIS4 builtins.
18150 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
18151 -mvis4.
18152 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
18153 VIS4 builtins.
18154
18155 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
18156
18157 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
18158
18159 2016-06-06 Richard Biener <rguenther@suse.de>
18160
18161 PR tree-optimization/71398
18162 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
18163 remove edges.
18164
18165 2016-06-05 James Bowman <james.bowman@ftdichip.com>
18166
18167 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
18168 ft32_expand_prolog, ft32_expand_epilogue):
18169 Handle pretend_args.
18170 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
18171 * config/ft32/ft32.md: Add pretend_returner.
18172
18173 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
18174
18175 PR target/71389
18176 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18177 Copy op1 RTX to avoid invalid sharing.
18178 (ix86_expand_vector_move_misalign): Ditto.
18179
18180 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
18181
18182 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
18183 ATTRIBUTE_UNUSED.
18184
18185 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
18186
18187 * predict.c (predicted_by_loop_heuristics_p): New function.
18188 (predict_iv_comparison): Use it.
18189 (predict_loops): Walk from innermost loops; do not predict edges
18190 leaving multiple loops multiple times; implement
18191 PRED_LOOP_ITERATIONS_MAX heuristics.
18192 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
18193
18194 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
18195
18196 * cfg.c (check_bb_profile): Do not report mismatched profiles when
18197 only edges out of BB are EH edges.
18198
18199 2016-06-04 Martin Sebor <msebor@redhat.com>
18200 Marcin Baczyński <marbacz@gmail.com>
18201
18202 PR c/48116
18203 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
18204 a void expression in a void function.
18205
18206 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
18207
18208 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
18209 aux; dump reasons of decisions.
18210 (should_duplicate_loop_header_p): Likewise.
18211 (do_while_loop_p): Likewise.
18212 (ch_base::copy_headers): Dump asi num insns duplicated.
18213
18214 2016-06-04 Jakub Jelinek <jakub@redhat.com>
18215
18216 PR tree-optimization/71405
18217 * tree-ssa.c (execute_update_addresses_taken): For clobber with
18218 incompatible type, build a new clobber with the right type instead
18219 of building a VIEW_CONVERT_EXPR around it.
18220
18221 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
18222
18223 PR tree-optimization/52171
18224 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
18225 by_pieces_ninsns instead of move_by_pieces_ninsns.
18226
18227 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
18228
18229 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
18230 for reg+reg addressing mode.
18231
18232 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18233
18234 * rs6000-c.c (c/c-tree.h): Add #include.
18235 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
18236 in C++ when found in the base position of vec_ld or vec_st.
18237
18238 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
18239
18240 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
18241 use of profile unless profile status is PROFILE_READ.
18242 * profile.c (compute_branch_probabilities): Set profile status
18243 only after reporting predictor hitrates.
18244
18245 2016-06-03 Joseph Myers <joseph@codesourcery.com>
18246
18247 PR target/71276
18248 PR target/71277
18249 * common.opt (ffp-int-builtin-inexact): New option.
18250 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
18251 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
18252 (ceil@var{m}2): Document dependence on this option.
18253 * ipa-inline-transform.c (inline_call): Handle
18254 flag_fp_int_builtin_inexact.
18255 * ipa-inline.c (can_inline_edge_p): Likewise.
18256 * config/i386/i386.md (rintxf2): Do not test
18257 flag_unsafe_math_optimizations.
18258 (rint<mode>2_frndint): New define_insn.
18259 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
18260 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
18261 for 387 instead of extending and truncating.
18262 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
18263 !flag_trapping_math instead of flag_unsafe_math_optimizations.
18264 Change to frndint<mode>2_<rounding>.
18265 (frndintxf2_<rounding>_i387): Likewise. Change to
18266 frndint<mode>2_<rounding>_i387.
18267 (<rounding_insn>xf2): Likewise.
18268 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
18269 !flag_trapping_math instead of flag_unsafe_math_optimizations for
18270 x87. Test TARGET_ROUND || !flag_trapping_math ||
18271 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
18272 SSE. Use ROUND_NO_EXC in constant operand of
18273 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
18274 for 387 instead of extending and truncating.
18275
18276 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
18277 Julia Koval <julia.koval@intel.com>
18278
18279 PR target/66960
18280 PR target/67630
18281 PR target/67634
18282 PR target/67841
18283 PR target/68037
18284 PR target/68618
18285 PR target/68661
18286 PR target/69575
18287 PR target/69596
18288 PR target/69734
18289 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
18290 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
18291 all registers, except for function return registers if there are
18292 no caller-saved registers.
18293 (ix86_set_func_type): New function.
18294 (ix86_set_current_function): Call ix86_set_func_type to set
18295 no_caller_saved_registers and func_type. Call reinit_regs if
18296 caller-saved registers are changed. Don't allow MPX, SSE, MMX
18297 nor x87 instructions in interrupt handler nor function with
18298 no_caller_saved_registers attribute.
18299 (ix86_function_ok_for_sibcall): Return false if there are no
18300 caller-saved registers.
18301 (type_natural_mode): Don't warn ABI change for MMX in interrupt
18302 handler.
18303 (ix86_function_arg_advance): Skip for callee in interrupt handler.
18304 (ix86_function_arg): Return special arguments in interrupt handler.
18305 (ix86_promote_function_mode): Promote pointer to word_mode only
18306 for normal functions.
18307 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
18308 interrupt handler.
18309 (ix86_epilogue_uses): New function.
18310 (ix86_hard_regno_scratch_ok): Likewise.
18311 (ix86_save_reg): Preserve all registers in interrupt handler
18312 after reload. Preserve all registers, except for function return
18313 registers, if there are no caller-saved registers after reload.
18314 (find_drap_reg): Always use callee-saved register if there are
18315 no caller-saved registers.
18316 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
18317 for interrupt handler.
18318 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
18319 Emit cld instruction if stringops are used in interrupt handler
18320 or interrupt handler isn't a leaf function.
18321 (ix86_expand_epilogue): Generate interrupt return for interrupt
18322 handler and pop the 'ERROR_CODE' off the stack before interrupt
18323 return in exception handler.
18324 (ix86_expand_call): Disallow calling interrupt handler directly.
18325 If there are no caller-saved registers, mark all registers that
18326 are clobbered by the call which returns as clobbered.
18327 (ix86_handle_no_caller_saved_registers_attribute): New function.
18328 (ix86_handle_interrupt_attribute): Likewise.
18329 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
18330 attributes.
18331 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
18332 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
18333 accumulation in interrupt function if stack may be realigned to
18334 avoid DRAP.
18335 (EPILOGUE_USES): New.
18336 (function_type): New enum.
18337 (machine_function): Add func_type and no_caller_saved_registers.
18338 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
18339 (interrupt_return): New pattern.
18340 * doc/extend.texi: Document x86 interrupt and
18341 no_caller_saved_registers attributes.
18342
18343 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
18344
18345 PR tree-optimization/52171
18346 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
18347 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
18348 Look for constant strings. Move some code to emit_block_cmp_hints
18349 and use it.
18350 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
18351 * defaults.h (COMPARE_MAX_PIECES): New macro.
18352 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
18353 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
18354 (clear_by_pieces_1): Don't declare. Move definition before use.
18355 (can_do_by_pieces): New static function.
18356 (can_move_by_pieces): Use it. Return bool.
18357 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
18358 OP. All callers changed. Handle COMPARE_BY_PIECES.
18359 (class pieces_addr); New.
18360 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
18361 pieces_addr::adjust, pieces_addr::increment_address,
18362 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
18363 functions for it.
18364 (class op_by_pieces_d): New.
18365 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
18366 functions for it.
18367 (class move_by_pieces_d, class compare_by_pieces_d,
18368 class store_by_pieces_d): New subclasses of op_by_pieces_d.
18369 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
18370 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
18371 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
18372 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
18373 compare_by_pieces_d::finish_mode): New member functions.
18374 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
18375 functions.
18376 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
18377 (emit_block_cmp_hints): New function.
18378 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
18379 use the newly defined classes.
18380 * expr.h (by_pieces_constfn): New typedef.
18381 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
18382 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
18383 (move_by_pieces_ninsns): Don't declare.
18384 (can_move_by_pieces): Change return value to bool.
18385 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
18386 (compare_by_pieces_branch_ratio): New hook.
18387 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
18388 (by_pieces_ninsns): Declare.
18389 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
18390 COMPARE_BY_PIECES.
18391 (default_compare_by_pieces_branch_ratio): New function.
18392 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
18393 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
18394 * doc/tm.texi: Regenerate.
18395 * tree-ssa-strlen.c: Include "builtins.h".
18396 (handle_builtin_memcmp): New static function.
18397 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
18398 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
18399
18400 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18401
18402 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
18403 relevant stmts which are simple and invariant.
18404 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
18405 instead of simple and invariant
18406
18407 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18408
18409 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
18410 (vectorizable_reduction): Check for new relevant state.
18411 (vectorizable_live_operation): vectorize live stmts using
18412 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
18413 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
18414 (vect_stmt_relevant_p): Check for stmts which are only used live.
18415 (process_use): Use of a stmt does not inherit it's live value.
18416 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
18417 (vect_analyze_stmt): Check for new relevant state.
18418 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
18419 outside the loop, but not inside it.
18420
18421 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18422
18423 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
18424 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
18425 (vect_get_vec_def_for_operand): Split out code.
18426
18427 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18428
18429 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
18430
18431 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18432
18433 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
18434
18435 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18436
18437 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
18438
18439 2016-06-03 Jakub Jelinek <jakub@redhat.com>
18440
18441 PR middle-end/71387
18442 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
18443 to noreturn e->callee->decl that has void return type and void
18444 arguments, adjust gimple_call_fntype and remove lhs even if it had
18445 previously addressable type.
18446
18447 2016-06-02 Jeff Law <law@redhat.com>
18448
18449 PR tree-optimization/71328
18450 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
18451 error when checking for a jump back onto the copied path.
18452
18453 2016-06-02 David Malcolm <dmalcolm@redhat.com>
18454
18455 * config/microblaze/microblaze.c (get_branch_target): Add return
18456 NULL_RTX for the non-CALL_P case.
18457 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
18458 (insert_wic): Remove unused local "j".
18459
18460 2016-06-02 Martin Liska <mliska@suse.cz>
18461
18462 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
18463
18464 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
18465 Julia Koval <julia.koval@intel.com>
18466
18467 * function.c (assign_parm_setup_stack): Force source into a
18468 register if needed.
18469 * target.def (function_incoming_arg): Update documentation to
18470 allow arbitrary address computation based on hard register.
18471 * doc/tm.texi: Regenerated.
18472
18473 2016-06-02 Martin Liska <mliska@suse.cz>
18474
18475 * predict.c (combine_predictions_for_bb): Fix first match in
18476 cases where a first predictor contains more than one occurence
18477 in list of predictors. Take the best value in such case.
18478
18479 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18480
18481 PR rtl-optimization/71295
18482 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
18483 offset would go over the size of the inner mode reject it.
18484
18485 2016-06-02 Jakub Jelinek <jakub@redhat.com>
18486
18487 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
18488 x=x,x and v=v,m instead of x=x,m.
18489
18490 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
18491 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
18492 alternative to v=rm,C.
18493
18494 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
18495 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
18496 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
18497 instead of vex for the last two above mentioned alternatives.
18498
18499 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18500
18501 PR target/70830
18502 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
18503
18504 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
18505
18506 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
18507
18508 2016-06-01 David Malcolm <dmalcolm@redhat.com>
18509
18510 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
18511 from int to unsigned.
18512
18513 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18514
18515 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
18516 alternatives, eliminating preferred register class. Add support
18517 for the MTVSRDD instruction in ISA 3.0.
18518 (vsx_splat_v4si_internal): Use splat_input_operand instead of
18519 reg_or_indexed_operand.
18520 (vsx_splat_v4sf_internal): Likewise.
18521
18522 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18523
18524 PR target/71186
18525 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
18526 for loading up all 0's or all 1's.
18527
18528 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
18529
18530 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
18531
18532 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
18533
18534 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
18535 extension.
18536 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
18537 * gcc.c (set_source_date_epoch_envvar): New function, sets
18538 the SOURCE_DATE_EPOCH environment variable to the current time.
18539
18540 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18541
18542 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
18543 the factor for live Phi nodes.
18544
18545 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18546
18547 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
18548 * tree-parloops.c (parallelize_loops): likewise.
18549 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
18550 tree_unswitch_outer_loop): likewise.
18551
18552 2016-06-01 Jakub Jelinek <jakub@redhat.com>
18553
18554 PR middle-end/71371
18555 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
18556 around creation of the temporary.
18557
18558 2016-06-01 Richard Biener <rguenther@suse.de>
18559
18560 PR tree-optimization/71366
18561 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
18562 (unloop_loops): Move removing edges here ...
18563 (try_unroll_loop_completely): ... from here.
18564 (try_peel_loop): ... and here.
18565 (tree_unroll_loops_completely_1): Track parent loops via
18566 bitmap of header BBs.
18567 (tree_unroll_loops_completely): Adjust for that.
18568
18569 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18570
18571 * config/rs6000/altivec.h (vec_slv): New macro.
18572 (vec_srv): New macro.
18573 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
18574 (UNSPEC_VSRV): New value.
18575 (vslv): New insn.
18576 (vsrv): New insn.
18577 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
18578 (vsrv): New builtin definition.
18579 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
18580 define argument types for new builtin.
18581 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
18582 new builtin.
18583 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
18584 functions.
18585
18586 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
18587 Jocelyn Mayer <l_indien@magic.fr>
18588
18589 PR target/67310
18590 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
18591 detect processor family for signature_CENTAUR_ebx.
18592 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
18593 signature_CENTAUR_ebx.
18594 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
18595 <default>: Pass x86-64 for has_longmode.
18596
18597 2016-06-01 Nathan Sidwell <nathan@acm.org>
18598
18599 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
18600 undefined weak.
18601
18602 2016-06-01 Richard Biener <rguenther@suse.de>
18603
18604 PR tree-optimization/71261
18605 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
18606 of stmts successfully put in the bool pattern. Remove
18607 single-use restriction.
18608 (adjust_bool_pattern_cast): Add cast at the use site via the
18609 pattern def sequence.
18610 (adjust_bool_pattern): Remove recursion, maintain a hash-map
18611 of patterned defs. Use the pattern def seqence instead of
18612 multiple independent patterns.
18613 (sort_after_uid): New qsort compare function.
18614 (adjust_bool_stmts): New function to process stmts in the bool
18615 pattern in IL order.
18616 (vect_recog_bool_pattern): Adjust.
18617 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
18618 (ifcvt_walk_pattern_tree): Likewise.
18619 (stmt_is_root_of_bool_pattern): Likewise.
18620 (ifcvt_repair_bool_pattern): Likewise.
18621 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
18622
18623 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18624
18625 * loop-unroll.c (decide_unroll_constant_iterations,
18626 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
18627 likely upper bounds.
18628 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
18629
18630 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
18631
18632 * tree-core.h (enum omp_clause_code): Remove
18633 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
18634
18635 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18636
18637 * config/arm/sync.md (arm_store_exclusive<mode>):
18638 Use 'H' output modifier on operands[2] rather than creating a new
18639 entry in out-of-bounds memory of the operands array.
18640 (arm_store_release_exclusivedi): Likewise.
18641
18642 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18643
18644 * config/arm/arm.c (arm_fusion_enabled_p): New function.
18645 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
18646 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
18647 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18648
18649 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18650
18651 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
18652 into account live statements for mask producers.
18653
18654 2016-06-01 Richard Biener <rguenther@suse.de>
18655
18656 PR tree-optimization/71311
18657 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
18658 restrict to non-INTEGER_CST @0.
18659
18660 2016-06-01 Richard Biener <rguenther@suse.de>
18661
18662 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
18663 (relational patterns): Use :c to avoid pattern duplications.
18664
18665 2016-06-01 Richard Biener <rguenther@suse.de>
18666
18667 * genmatch.c (comparison_code_p): New predicate.
18668 (swap_tree_comparison): New function.
18669 (commutate): Add for_vec parameter to append new for entries.
18670 Support commutating relational operators by swapping it alongside
18671 operands.
18672 (lower_commutative): Adjust.
18673 (dt_simplify::gen): Do not pass artificial operators to gen
18674 functions.
18675 (decision_tree::gen): Do not add artificial operators as parameters.
18676 (parser::parse_expr): Verify operator commutativity when :c is
18677 applied. Allow :C to override this.
18678 * match.pd: Adjust patterns to use :C instead of :c where required.
18679
18680 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
18681
18682 PR tree-optimization/71077
18683 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18684 the combining step, use boolean_false_node and boolean_true_node
18685 as the designated false/true return values.
18686
18687 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18688
18689 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18690 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18691 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18692 PRED_LOOP_EXIT.
18693
18694 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18695
18696 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18697 of flags impliying the register renaming.
18698 * toplev.c (process_options): Do not imply flag_rename_registers with
18699 loop peeling.
18700
18701 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18702
18703 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18704 default implementation.
18705
18706 2016-05-31 Nathan Sidwell <nathan@acm.org>
18707
18708 * dwarf2out.c (cur_line_info_table): Add GTY marker.
18709
18710 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18711
18712 * config/sh/constraints.md (b): Remove constraint.
18713 * config/sh/predicates.md (arith_reg_operand): Remove
18714 TARGET_REGISTER_P.
18715 * config/sh/sh-modes.def (PDI): Remove.
18716 * config/sh/sh.c (sh_target_reg_class,
18717 sh_optimize_target_register_callee_saved): Remove functions.
18718 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18719 (sh_expand_epilogue): Update comment.
18720 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18721 sh_secondary_reload): Remove TARGET_REGS related code.
18722 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18723 TARGET_REGISTER_P): Remove macros.
18724 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18725 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18726 TR1_REG, TR2_REG): Remove constants.
18727 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18728
18729 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18730
18731 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18732 define_expand patterns.
18733 (adddi3_compact): Rename to adddi3.
18734 (subdi3_compact): Rename to subdi3.
18735 (*negdi2): Rename to negdi2.
18736 (*abs<mode>2): Rename to abs<mode>2.
18737
18738 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18739
18740 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18741 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18742 (atomic_sub_fetchsi): ... this new pattern.
18743 (mvtc): Add CC_REG clobber.
18744
18745 2016-05-31 Marek Polacek <polacek@redhat.com>
18746
18747 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18748
18749 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18750
18751 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18752 aarch64_fusion_enabled_p to check for fusion capabilities.
18753
18754 2016-05-31 Richard Biener <rguenther@suse.de>
18755
18756 PR tree-optimization/71352
18757 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18758 minus one and a negate.
18759
18760 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18761
18762 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18763 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18764 Delete prototype.
18765 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18766 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18767 Remove use of aarch64_simd_attr_length_move, set length attribute
18768 directly.
18769 (*aarch64_be_movoi): Likewise.
18770 (*aarch64_be_movci): Likewise.
18771 (*aarch64_be_movxi): Likewise.
18772
18773 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18774
18775 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18776 It no longer does that.
18777 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18778
18779 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
18780
18781 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18782 attribute __unused__.
18783
18784 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
18785
18786 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18787 * config/arm/arm.c (arm_arch_thumb1): Define.
18788 (arm_option_override): Initialize arm_arch_thumb1.
18789 * config/arm/arm.h (arm_arch_thumb1): Declare.
18790 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18791 support Thumb-1 ISA.
18792
18793 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
18794
18795 PR target/71346
18796 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18797 `Yv' for scalar operand.
18798
18799 2016-05-31 Tom de Vries <tom@codesourcery.com>
18800
18801 PR tree-optimization/69068
18802 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18803 phis with more than two args.
18804
18805 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
18806
18807 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18808 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18809 target.
18810
18811 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
18812
18813 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18814 tune_64.
18815 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18816 support on SPARC.
18817 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18818 cpu_32, cpu_64, tune_32 and tune_64.
18819 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18820
18821 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18822
18823 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18824
18825 2016-05-30 Andi Kleen <ak@linux.intel.com>
18826
18827 * auto-profile.c (read_profile): Replace asserts with errors
18828 when file does not exist.
18829 * gcov-io.c (gcov_read_words): Dito.
18830
18831 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18832
18833 * tree-cfg.c (print_loop): Print likely upper bounds.
18834
18835 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18836
18837 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18838 * opts.c (default_options): Enable peel loops at -O3.
18839 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18840 (try_peel_loop): Do not re-peel already peeled loops;
18841 use likely upper bounds; fix profile updating.
18842 (pass_complete_unroll::execute): Initialize peeled_loops.
18843
18844 2016-05-30 Martin Liska <mliska@suse.cz>
18845
18846 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18847 computed costs by frequency of BB they belong to.
18848 (get_scaled_computation_cost_at): New function.
18849
18850 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
18851 Marc Glisse <marc.glisse@inria.fr>
18852
18853 PR tree-optimization/71289
18854 * match.pd (-1 / B < A, A > -1 / B): New transformations.
18855
18856 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18857
18858 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18859
18860 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18861
18862 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18863 for peeled copies; avoid underflow when updating estimates; correctly
18864 scale loop profile.
18865
18866 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18867
18868 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18869 r236875. Corrected oe3 to oe2 as obvious.
18870
18871 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18872
18873 PR middle-end/71269
18874 PR middle-end/71252
18875 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18876 that inserted stmt will not dominate stmts that defines its operand.
18877 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18878 (rewrite_expr_tree_parallel): Likewise.
18879
18880 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18881
18882 PR middle-end/71252
18883 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18884 all fields including stmt_to_insert are swapped.
18885
18886 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18887
18888 * predict.h (force_edge_cold): Declare.
18889 * predict.c (force_edge_cold): New function.
18890 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18891 updating.
18892 (canonicalize_loop_induction_variables): Fix formating.
18893
18894 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
18895
18896 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18897 (visium_expand_copysign): Use gen_int_mode directly.
18898 (visium_compute_frame_size): Minor tweaks.
18899
18900 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18901
18902 * tree-vect-loop.c (vect_analyze_loop_2): Use
18903 likely_max_stmt_executions_int.
18904
18905 2016-05-30 Tom de Vries <tom@codesourcery.com>
18906
18907 PR tree-optimization/69067
18908 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18909
18910 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
18911
18912 PR target/71245
18913 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18914 New peepholes to remove unneeded fild/fistp pairs.
18915 (define_peephole2 atomic_loaddi_fpu): Ditto.
18916
18917 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18918
18919 * predict.c (maybe_hot_frequency_p): Avoid division.
18920
18921 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
18922
18923 * doc/install.texi: Use https for shop.fsf.org.
18924
18925 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18926
18927 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18928 likely_max_stmt_executions_int.
18929
18930 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18931
18932 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18933 likely_max_stmt_executions_int.
18934
18935 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18936
18937 * profile.c (compute_branch_probabilities): Do not report hitrates
18938 here.
18939 (branch_prob): Report hitrates here.
18940 * predict.c (gimple_predict_edge): Do not assert profile status;
18941 fix formatting issues.
18942
18943 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18944
18945 * predict.c (edge_predicted_by_p): New function.
18946 (predict_paths_for_bb): Do not put multiple predictions of the same type
18947 on one edge.
18948
18949 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18950
18951 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18952 commit.
18953
18954 2016-05-28 Alan Modra <amodra@gmail.com>
18955
18956 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18957
18958 2016-05-28 Alan Modra <amodra@gmail.com>
18959
18960 PR rtl-optimization/71275
18961 * ira.c (ira): Free dominance info.
18962
18963 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
18964
18965 * doc/sourcebuild.texi: New address for upstream Go repository.
18966
18967 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18968
18969 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18970 (TARGET_ARM_V7M): Likewise.
18971
18972 2016-05-26 Jeff Law <law@redhat.com>
18973
18974 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
18975 (thread_across_edge): Remove calls to find_jump_threads_backwards.
18976 * passes.def: Add jump threading passes before DOM/VRP.
18977 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
18978 argument to a basic block from an edge. Remove tests which are
18979 handled elsewhere.
18980 (pass_data_thread_jumps, class pass_thread_jumps): New.
18981 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
18982 (make_pass_thread_jumps): Likewise.
18983 * tree-pass.h (make_pass_thread_jumps): Declare.
18984
18985 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
18986
18987 * config/visium/visium-protos.h (split_double_move): Rename into...
18988 (visium_split_double_move): ...this.
18989 (visium_split_double_add): Declare.
18990 * config/visium/visium.c (split_double_move): Rename into...
18991 (visium_split_double_move): ...this.
18992 (visium_split_double_add): New function.
18993 (visium_expand_copysign): Renumber operands for consistency.
18994 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
18995 (DFmode move splitter): Likewise.
18996 (*addi3_insn): Split by means of visium_split_double_add.
18997 (*adddi3_insn_flags): Delete.
18998 (*plus_plus_sltu<subst_arith>): New insn.
18999 (*subdi3_insn): Split by means of visium_split_double_add.
19000 (subdi3_insn_flags): Delete.
19001 (*minus_minus_sltu<subst_arith>): New insn.
19002 (*negdi2_insn): Split by means of visium_split_double_add.
19003 (*negdi2_insn_flags): Delete.
19004
19005 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
19006
19007 * configure.ac: Treat a --with-headers option without argument
19008 the same as the default (i.e. consult sys-include directory).
19009 * configure: Regenerate.
19010
19011 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19012
19013 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
19014 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
19015 prototype.
19016 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
19017 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
19018
19019 2016-05-27 Jiong Wang <jiong.wang@arm.com>
19020
19021 PR target/63596
19022 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
19023 tree-stdarg analysis results.
19024 (aarch64_setup_incoming_varargs): Likewise.
19025
19026 2016-05-27 Jiong Wang <jiong.wang@arm.com>
19027
19028 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
19029 va_list_gpr_counter_field and va_list_fpr_counter_field.
19030
19031 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
19032
19033 PR67609
19034 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
19035 * config/aarch64/aarch64.c
19036 (aarch64_cannot_change_mode_class): Remove function.
19037 * config/aarch64/aarch64-protos.h
19038 (aarch64_cannot_change_mode_class): Remove.
19039
19040 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
19041
19042 * cfgloop.c (record_niter_bound): Record likely upper bounds.
19043 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
19044 get_likely_max_loop_iterations_int): New.
19045 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
19046 any_likely_upper_bound.
19047 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
19048 Declare.
19049 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
19050 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
19051 upper bound.
19052 (unroll_loop_constant_iterations): Likewise.
19053 (unroll_loop_runtime_iterations): Likewise.
19054 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
19055 * lto-streamer-out.c (output_cfg): Likewise.
19056 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
19057 bounds.
19058 (canonicalize_loop_induction_variables): Dump likely upper bounds.
19059 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
19060 (likely_max_loop_iterations): New.
19061 (likely_max_loop_iterations_int): New.
19062 (likely_max_stmt_executions): New.
19063 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
19064 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
19065 likely_max_stmt_executions): Declare.
19066
19067 2016-05-27 Marek Polacek <polacek@redhat.com>
19068
19069 PR middle-end/71308
19070 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
19071
19072 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19073
19074 * config/s390/s390.md (2x risbg splitters): Use
19075 reg_overlap_mentioned_p instead of rtx_equal_p.
19076
19077 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19078
19079 * combine.c (make_compound_operation): Take known zero bits into
19080 account when checking for possible zero_extend.
19081
19082 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19083
19084 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
19085 Use const_int_operand for operand 2 predicate. Simplify expand code
19086 as a result.
19087
19088 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
19089
19090 PR middle-end/71279
19091 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
19092 into comparison.
19093
19094 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19095
19096 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
19097 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
19098 that returns CC_SESWPmode and CC_ZESWPmode.
19099 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
19100 and CC_SESWPmode.
19101 (aarch64_rtx_costs): Likewise.
19102
19103 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
19104
19105 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
19106 for ISA 3.0 min/max support.
19107 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
19108 conditional move support.
19109 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
19110 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
19111 available.
19112 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
19113 conditional moves where the comparison type is different from move
19114 type.
19115 (fp_minmax): New code iterator for smin/smax.
19116 (minmax): New code attributes for min/max.
19117 (SMINMAX): Likewise.
19118 (smax<mode>3): Combine min, max insns into one insn using the
19119 fp_minmax code iterator. Add support for ISA 3.0 min/max
19120 instructions that don't need -ffast-math.
19121 (s<minmax><mode>3): Likewise.
19122 (smax<mode>3_vsx): Likewise.
19123 (smin<mode>3): Likewise.
19124 (s<minmax><mode>3_vsx): Likewise.
19125 (smin<mode>3_vsx): Likewise.
19126 (pre-VSX min/max splitters): Likewise.
19127 (s<minmax><mode>3_fpr): Likewise.
19128 (movsfcc): Rewrite floating point conditional moves to combine
19129 SFmode/DFmode into a single insn.
19130 (mov<mode>cc): Likewise.
19131 (movdfcc): Likewise.
19132 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
19133 SFDF2 iterators to handle all combinations.
19134 (fseldfsf4): Likewise.
19135 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
19136 (fseldfdf4): Likewise.
19137 (fselsfdf4): Likewise.
19138 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
19139 comparison instructions that set a 0/-1 mask, and use it for
19140 floating point conditional move via XXSEL.
19141 (fpmask<mode>): Likewise.
19142 (xxsel<mode>): Likewise.
19143 * config/rs6000/predicates.md (min_max_operator): Delete, no
19144 longer used.
19145 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
19146 instructions that generate a 0/-1 mask for use with XXSEL.
19147 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
19148 say whether floating point min/max is available, either through
19149 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
19150 (TARGET_MINMAX_DF): Likewise.
19151
19152 2016-05-27 Alan Modra <amodra@gmail.com>
19153
19154 PR rtl-optimization/71275
19155 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
19156 for update_equiv_regs and combine_and_move_insns.
19157
19158 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
19159
19160 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
19161 if_then_else or cond RTXes to calculate attribute value.
19162 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
19163 <attr "length_immediate>: Ditto.
19164 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
19165 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
19166 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
19167 <attr "type">: Ditto.
19168 <attr "prefix_data16">: Ditto.
19169 <attr "prefix_extra">: Ditto.
19170 <attr "length_immediate">: Ditto.
19171 <attr "prefix">: Ditto.
19172 (vec_set<mode>_0) <attr "isa">: Ditto.
19173 <attr "prefix_extra">: Ditto.
19174 <attr "length_immediate">: Ditto.
19175 <attr "prefix">: Ditto.
19176 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
19177 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
19178 (sse2_storelpd) <attr "prefix_data16">: Ditto.
19179 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
19180 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
19181 <attr "length_immediate">: Ditto.
19182 <attr "prefix">: Ditto.
19183 (sse2_movsd) <attr "length_immediate">: Ditto.
19184 <attr "prefix">: Ditto.
19185 (vec_concatv2df) <attr "isa">: Ditto.
19186 <attr "prefix">: Ditto.
19187 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
19188 (*vec_extractv2di_1) <attr "isa">: Ditto.
19189 <attr "type">: Ditto.
19190 <attr "length_immediate">: Ditto.
19191 <attr "prefix_rex">: Ditto.
19192 <attr "prefix_extra">: Ditto.
19193 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
19194 <attr "prefix_extra">: Ditto.
19195 <attr "length_immediate">: Ditto.
19196 (vec_concatv2di) <attr "isa">: Ditto.
19197 <attr "prefix_extra">: Ditto.
19198 <attr "length_immediate">: Ditto.
19199 <attr "prefix">: Ditto.
19200
19201 2016-05-26 Martin Liska <mliska@suse.cz>
19202
19203 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
19204 function.
19205 (operator+): Likewise.
19206 (operator-): Likewise.
19207 (comp_cost::operator+=): Likewise.
19208 (comp_cost::operator-=): Likewise.
19209 (comp_cost::operator/=): Likewise.
19210 (comp_cost::operator*=): Likewise.
19211 (operator<): Likewise.
19212 (operator==): Likewise.
19213 (operator<=): Likewise.
19214 (new_cost): Remove.
19215 (infinite_cost_p): Likewise.
19216 (add_costs): Likewise.
19217 (sub_costs): Likewise.
19218 (compare_costs): Likewise.
19219 (set_group_iv_cost): Use the newly introduced functions.
19220 (get_address_cost): Likewise.
19221 (get_shiftadd_cost): Likewise.
19222 (force_expr_to_var_cost): Likewise.
19223 (split_address_cost): Likewise.
19224 (ptr_difference_cost): Likewise.
19225 (difference_cost): Likewise.
19226 (get_computation_cost_at): Likewise.
19227 (determine_group_iv_cost_generic): Likewise.
19228 (determine_group_iv_cost_address): Likewise.
19229 (determine_group_iv_cost_cond): Likewise.
19230 (autoinc_possible_for_pair): Likewise.
19231 (determine_group_iv_costs): Likewise.
19232 (cheaper_cost_pair): Likewise.
19233 (iv_ca_recount_cost): Likewise.
19234 (iv_ca_set_no_cp): Likewise.
19235 (iv_ca_set_cp): Likewise.
19236 (iv_ca_cost): Likewise.
19237 (iv_ca_new): Likewise.
19238 (iv_ca_dump): Likewise.
19239 (iv_ca_narrow): Likewise.
19240 (iv_ca_prune): Likewise.
19241 (iv_ca_replace): Likewise.
19242 (try_add_cand_for): Likewise.
19243 (try_improve_iv_set): Likewise.
19244 (find_optimal_iv_set): Likewise.
19245
19246 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
19247
19248 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
19249 that internal functions will clobber all caller-saved registers.
19250
19251 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
19252
19253 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
19254 Return a better case_values_threshold when optimizing.
19255
19256 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
19257
19258 * config/aarch64/aarch64-simd.md (aarch64_combinez):
19259 Add ? to integer variant.
19260 (aarch64_combinez_be): Likewise.
19261
19262 2016-05-26 Jakub Jelinek <jakub@redhat.com>
19263
19264 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
19265 instead of x constraint.
19266 (vcvtps2ph256<mask_name>): Likewise.
19267
19268 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
19269 alternative. Formatting fix.
19270
19271 * config/i386/sse.md
19272 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
19273 to ...
19274 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
19275 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
19276 maybe_evex prefix instead of vex.
19277 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
19278 EXT_REX_SSE_REG_P (op0) case in the splitter.
19279
19280 2016-05-25 Jeff Law <law@redhat.com>
19281
19282 PR tree-optimization/71272
19283 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
19284 Update comments. Add test for empty path.
19285
19286 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19287
19288 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
19289 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
19290 special case builtin.
19291 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19292 code for ALTIVEC_BUILTIN_VEC_CMPNE.
19293 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19294 for __builtin_vec_cmpne.
19295
19296 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
19297
19298 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
19299 redundant test and bail out if the type of the new operand is not
19300 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
19301
19302 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
19303
19304 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
19305 (x_ix86_target_flags_explicit): Remove.
19306 * config/i386/i386.c (ix86_function_specific_save): Do not copy
19307 x_ix86_target_flags_explicit.
19308 (ix86_function_specific_restore): Ditto.
19309
19310 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
19311 H.J. Lu <hongjiu.lu@intel.com>
19312
19313 PR target/70738
19314 * common/config/i386/i386-common.c
19315 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
19316 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
19317 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
19318 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
19319 (-mgeneral-regs-only): Add new option.
19320 * config/i386/i386.c (ix86_option_override_internal): Don't enable
19321 x87 instructions if only general registers are allowed.
19322 (ix86_target_string): Add ix86_flags argument. Handle additional
19323 flags options through ix86_flags argument. Update all callers.
19324 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
19325
19326 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19327
19328 PR rtl-optimization/66940
19329 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
19330 decrementing desired_val will not overflow before performing these
19331 operations.
19332
19333 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
19334
19335 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
19336 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
19337 * config/i386/i386.c (enum ix86_builtins): Add
19338 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
19339 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
19340 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
19341 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
19342 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
19343 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
19344 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
19345 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
19346 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
19347 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
19348 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
19349 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
19350 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
19351 __builtin_ia32_cvtps2dq512_mask.
19352 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
19353 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
19354 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
19355 * config/i386/sse.md
19356 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
19357 Rename to ...
19358 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
19359 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
19360 to ...
19361 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
19362 (avx512f_vec_pack_sfix_v8df): New define_expand.
19363 (avx512f_roundpd512): Rename to ...
19364 (avx512f_round<castmode>512): ... this. Change iterator.
19365 (avx512f_roundps512_sfix): New define_expand.
19366 (round<mode>2_sfix): Change iterator.
19367
19368 2016-05-25 Nick Clifton <nickc@redhat.com>
19369
19370 * config/msp430/msp430.c (msp430_attr): Produce an error if a
19371 static interrupt handler is detected.
19372 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
19373 default linker script.
19374 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
19375 the low part of a symbolic pointer.
19376
19377 2016-05-25 Richard Biener <rguenther@suse.de>
19378
19379 PR tree-optimization/71261
19380 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
19381 interesting stmt instead of immediate uses when looking
19382 for the use operand to replace.
19383
19384 2016-05-25 Martin Liska <mliska@suse.cz>
19385
19386 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
19387
19388 2016-05-25 Richard Biener <rguenther@suse.de>
19389
19390 PR tree-optimization/71264
19391 * tree-vect-stmts.c (vect_init_vector): Properly deal with
19392 vector type val.
19393
19394 2016-05-25 Martin Liska <mliska@suse.cz>
19395
19396 PR tree-optimization/71239
19397 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
19398 if DECL_SIZE is NULL.
19399
19400 2016-05-25 Richard Biener <rguenther@suse.de>
19401
19402 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
19403 * tree-if-conv.c (pass_data_if_conversion): Use it.
19404
19405 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19406
19407 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
19408 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
19409 * varpool.c (varpool_node::get_availability): Likewise.
19410
19411 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19412
19413 * config/rs6000/altivec.md (VNEG iterator): New iterator for
19414 VNEGW/VNEGD instructions.
19415 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
19416 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
19417 support for ISA 3.0 VNEGW/VNEGD instructions.
19418
19419 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
19420
19421 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
19422 pointers inside OACC_DATA regions.
19423 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
19424 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
19425 (gimplify_adjust_omp_clauses): Fix typo in comment.
19426
19427 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19428
19429 * config/rs6000/altivec.md (VParity): New mode iterator for vector
19430 parity built-in functions.
19431 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
19432 zeros.
19433 (p9v_parity<mode>2): Likewise.
19434 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
19435 parity.
19436 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
19437 (parity<mode>2): ISA 3.0 expander for vector parity.
19438 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
19439 power9 built-ins.
19440 (BU_P9_64BIT_MISC_0): Likewise.
19441 (BU_P9_MISC_0): Likewise.
19442 (BU_P9V_AV_1): Likewise.
19443 (BU_P9V_AV_2): Likewise.
19444 (BU_P9V_AV_3): Likewise.
19445 (BU_P9V_AV_P): Likewise.
19446 (BU_P9V_VSX_1): Likewise.
19447 (BU_P9V_OVERLOAD_1): Likewise.
19448 (BU_P9V_OVERLOAD_2): Likewise.
19449 (BU_P9V_OVERLOAD_3): Likewise.
19450 (VCTZB): Add vector count trailing zeros support.
19451 (VCTZH): Likewise.
19452 (VCTZW): Likewise.
19453 (VCTZD): Likewise.
19454 (VPRTYBD): Add vector parity support.
19455 (VPRTYBQ): Likewise.
19456 (VPRTYBW): Likewise.
19457 (VCTZ): Add overloaded vector count trailing zeros support.
19458 (VPRTYB): Add overloaded vector parity support.
19459 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19460 overloaded vector count trailing zeros and parity instructions.
19461 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
19462 vector parity support.
19463 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
19464 trailing zeros support.
19465 (vec_cntlz): Likewise.
19466 (vec_vctzb): Likewise.
19467 (vec_vctzd): Likewise.
19468 (vec_vctzh): Likewise.
19469 (vec_vctzw): Likewise.
19470 (vec_vprtyb): Add ISA 3.0 vector parity support.
19471 (vec_vprtybd): Likewise.
19472 (vec_vprtybw): Likewise.
19473 (vec_vprtybq): Likewise.
19474 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19475 the ISA 3.0 vector count trailing zeros and vector parity built-in
19476 functions.
19477
19478 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19479
19480 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
19481 when there is stmt_to_insert.
19482
19483 2016-05-24 Martin Sebor <msebor@redhat.com>
19484
19485 PR c++/71147
19486 * tree.h (complete_or_array_type_p): New inline function.
19487
19488 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19489
19490 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
19491 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
19492 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
19493
19494 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
19495 Limit 1st alternative to noavx isa, split 2nd alternative into one
19496 noavx and one avx alternative, use *x and Bm in the former and
19497 x and m in the latter.
19498
19499 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
19500 of sse4 for the first alternative, drop %v from the template
19501 and d operand modifier. Split second alternative into one sse4_noavx
19502 and one avx alternative, use *x instead of *v in the former and v
19503 instead of *v in the latter.
19504 (*sse4_1_extractps): Use noavx isa instead of * for the first
19505 alternative, drop %v from the template. Split second alternative into
19506 one noavx and one avx alternative, use *x instead of *v in the
19507 former and v instead of *v in the latter.
19508 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
19509 with noavx and the last one with avx.
19510 (sse4_1_phminposuw): Guard first alternative with noavx isa,
19511 split the second one into one noavx and one avx alternative,
19512 use *x and Bm in the former and x and m in the latter one.
19513 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
19514 alternatives.
19515
19516 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
19517 first two alternatives to noavx, use *x instead of *v in the second
19518 one, add avx alternative without *.
19519 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
19520 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
19521 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
19522
19523 2016-05-24 Jeff Law <law@redhat.com>
19524
19525 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
19526 New function, extracted from...
19527 (fsm_find_control_statement_thread_paths): Here. Use the new function.
19528 Allow simple copies and constant initializations in the SSA chain.
19529
19530 2016-05-24 Marek Polacek <polacek@redhat.com>
19531
19532 PR c/71249
19533 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
19534 scope.
19535
19536 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19537
19538 PR c++/71257
19539 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
19540 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
19541 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
19542 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
19543 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
19544
19545 2016-05-24 Richard Biener <rguenther@suse.de>
19546
19547 PR tree-optimization/71240
19548 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
19549 has integral type.
19550
19551 2016-05-24 Richard Biener <rguenther@suse.de>
19552
19553 PR tree-optimization/71230
19554 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
19555
19556 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19557
19558 * tree-vectorizer.h (vectorizable_comparison): Delete.
19559 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
19560 PURE_SLP_STMT check.
19561 * tree-vect-stmts.c (vectorizable_call): Likewise.
19562 (vectorizable_simd_clone_call): Likewise.
19563 (vectorizable_conversion): Likewise.
19564 (vectorizable_assignment): Likewise.
19565 (vectorizable_shift): Likewise.
19566 (vectorizable_operation): Likewise.
19567 (vectorizable_load): Likewise.
19568 (vectorizable_condition): Likewise.
19569 (vectorizable_store): Likewise. Assert that we don't have
19570 hybrid SLP.
19571 (vectorizable_comparison): Make static. Remove redundant
19572 PURE_SLP_STMT check.
19573 (vect_transform_stmt): Assert that we always have an slp_node
19574 if PURE_SLP_STMT.
19575
19576 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19577
19578 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
19579 operands[2] against 1 with comparison against CONST1_RTX.
19580 (<shift>di3_neon): Likewise.
19581 * config/arm/predicates.md (const0_operand): Replace with comparison
19582 against CONST0_RTX.
19583
19584 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19585
19586 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
19587 operands[2] against 1 with comparison against CONST1_RTX.
19588 (ashrdi3): Likewise.
19589 (lshrdi3): Likewise.
19590 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
19591 UINTVAL.
19592 (ashrsi3): Likewise.
19593 (lshrsi3): Likewise.
19594 (rotrsi3): Likewise.
19595 (define_split above *compareqi_eq0): Likewise.
19596 (define_split above "prologue"): Likewise.
19597 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
19598 * config/arm/predicates.md (shift_operator): Likewise.
19599 (shift_nomul_operator): Likewise.
19600 (sat_shift_operator): Likewise.
19601 (thumb1_cmp_operand): Likewise.
19602 (const_neon_scalar_shift_amount_operand): Replace manual range
19603 check with IN_RANGE.
19604 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
19605 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
19606
19607 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19608
19609 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
19610 with HOST_WIDE_INT_1.
19611 (insv): Likewise.
19612 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
19613 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
19614 (arm_canonicalize_comparison): Likewise.
19615 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
19616 HOST_WIDE_INT_1.
19617 (thumb1_size_rtx_costs): Likewise.
19618 (vfp_const_double_index): Replace cast of 1 to unsigned
19619 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19620 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
19621 HOST_WIDE_INT_1.
19622 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
19623 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19624 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
19625 HOST_WIDE_INT with HOST_WIDE_INT_1.
19626
19627 2016-05-24 Marek Polacek <polacek@redhat.com>
19628
19629 * tree-cfg.h (should_remove_lhs_p): New predicate.
19630 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19631 * gimplify.c (gimplify_modify_expr): Likewise.
19632 * tree-cfg.c (verify_gimple_call): Likewise.
19633 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19634 * gimple-fold.c: Include "tree-cfg.h".
19635 (gimple_fold_call): Use should_remove_lhs_p.
19636
19637 2016-05-24 Richard Biener <rguenther@suse.de>
19638
19639 PR tree-optimization/71253
19640 * cfganal.h (control_dependences): Make robust against edge
19641 and BB removal.
19642 (control_dependences::control_dependences): Remove edge_list argument.
19643 (control_dependences::get_edge): Remove.
19644 (control_dependences::get_edge_src): Add.
19645 (control_dependences::get_edge_dest): Likewise.
19646 (control_dependences::m_el): Make a vector of edge src/dest index.
19647 * cfganal.c (control_dependences::find_control_dependence): Adjust.
19648 (control_dependences::control_dependences): Likewise.
19649 (control_dependences::~control_dependence): Likewise.
19650 (control_dependences::get_edge): Remove.
19651 (control_dependences::get_edge_src): Add.
19652 (control_dependences::get_edge_dest): Likewise.
19653 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
19654 get_edge_src.
19655 (perform_tree_ssa_dce): Adjust.
19656 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
19657 get_edge_src.
19658 (pass_loop_distribution::execute): Adjust. Do loop destroying
19659 conditional on changed.
19660
19661 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19662
19663 PR target/69857
19664 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
19665 return. Reindent transformation comment and mention the ARM state
19666 behavior.
19667
19668 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19669
19670 PR middle-end/71252
19671 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19672 after build_and_add_sum creates new use stmt.
19673
19674 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19675
19676 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19677 load_lanes/grouped_load classification comes first. Don't check
19678 whether the vectorization factor is a multiple of the group size
19679 for load_lanes.
19680
19681 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19682
19683 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19684 GROUP_GAP for single-element interleaving.
19685 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19686 variable.
19687
19688 2016-05-24 Richard Biener <rguenther@suse.de>
19689
19690 PR middle-end/70434
19691 PR c/69504
19692 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19693 bases which are accessed with non-invariant indices.
19694 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19695 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19696
19697 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19698
19699 PR middle-end/71170
19700 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19701 (add_to_ops_vec): Add stmt_to_insert.
19702 (add_repeat_to_ops_vec): Init stmt_to_insert.
19703 (insert_stmt_before_use): New.
19704 (transform_add_to_multiply): Remove mult_stmt insertion and add it
19705 to ops vector.
19706 (get_ops): Init stmt_to_insert.
19707 (maybe_optimize_range_tests): Likewise.
19708 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19709 (rewrite_expr_tree_parallel): Likewise.
19710 (reassociate_bb): Likewise.
19711
19712 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19713
19714 PR target/71201
19715 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19716 ISA 3.0 xxperm fusion alternative.
19717 (altivec_vperm_v8hiv16qi): Likewise.
19718 (altivec_vperm_<mode>_uns_internal): Likewise.
19719 (vperm_v8hiv4si): Likewise.
19720 (vperm_v16qiv8hi): Likewise.
19721
19722 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19723 Kelvin Nilsen <kelvin@gcc.gnu.org>
19724
19725 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19726 vpermr/xxpermr on ISA 3.0.
19727 (altivec_expand_vec_perm_le): Likewise.
19728 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19729 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19730 ISA 3.0.
19731
19732 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
19733
19734 * config/i386/i386.h (IS_STACK_MODE): Enable for
19735 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
19736 SSE_FLOAT_MODE_P macros.
19737 * config/i386/i386.c (ix86_preferred_reload_class): Use
19738 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19739 Cleanup regclass processing for CONST_DOUBLE_P.
19740 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19741 (ix86_rtx_costs): Remove redundant TARGET_80387 check
19742 with IS_STACK_MODE macro.
19743 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19744 with TARGET_SSE2.
19745 (*movdf_internal): Use IS_STACK_MODE macro.
19746 (*movsf_internal): Ditto.
19747
19748 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
19749
19750 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19751 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19752
19753 2016-05-23 Jeff Law <law@redhat.com>
19754
19755 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19756 extracted from ...
19757 (fsm_find_control_statement_thread_paths): Call it.
19758
19759 2016-05-23 Martin Jambor <mjambor@suse.cz>
19760
19761 PR ipa/71234
19762 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19763 from_global_constant if t is not NULL.
19764
19765 2016-05-23 Marek Polacek <polacek@redhat.com>
19766
19767 PR c/49859
19768 * common.opt (Wswitch-unreachable): New option.
19769 * doc/invoke.texi: Document -Wswitch-unreachable.
19770 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19771 warning.
19772
19773 2016-05-23 Bin Cheng <bin.cheng@arm.com>
19774
19775 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19776 TMR_INDEX is non-NULL.
19777
19778 2016-05-23 Richard Biener <rguenther@suse.de>
19779
19780 PR tree-optimization/71230
19781 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19782 (try_special_add_to_ops): ... here. Always test for single-use.
19783
19784 2016-05-23 Martin Jambor <mjambor@suse.cz>
19785
19786 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19787 default block if a PHI node in the original one would be resized.
19788
19789 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19790
19791 PR tree-optimization/58135
19792 * tree-vect-slp.c: When group size is not multiple
19793 of vector size, allow splitting of store group at
19794 vector boundary.
19795
19796 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
19797
19798 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19799
19800 2016-05-22 Jakub Jelinek <jakub@redhat.com>
19801
19802 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19803 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19804 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
19805 of 64x2.
19806
19807 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19808 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19809 v constraint instead of x and vinserti32x4 insn.
19810
19811 * config/i386/sse.md (i128vldq): New mode iterator.
19812 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19813 avx512dq and avx512vl alternatives.
19814
19815 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19816 constraint, use maybe_evex prefix instead of vex.
19817 (vec_dupv4sf): Use v constraint instead of x for output
19818 operand except for noavx alternative, use Yv constraint
19819 instead of x for input. Use maybe_evex prefix instead of vex.
19820 (*vec_dupv4si): Likewise.
19821 (*vec_dupv2di): Likewise.
19822
19823 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19824
19825 PR middle-end/40921
19826 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19827 (linearize_expr_tree): Call try_special_add_to_ops.
19828 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19829
19830 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19831
19832 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19833 to computed stack_usage.
19834
19835 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19836
19837 PR target/71103
19838 * config/avr/avr.md (define_expand "mov<mode>"): If the source
19839 operand is subreg (symbol_ref) then move the symbol ref to register.
19840
19841 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
19842
19843 * tree.c (array_at_struct_end_p): Look through MEM_REF.
19844
19845 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
19846
19847 PR middle-end/71179
19848 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19849 VECTOR type.
19850
19851 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19852
19853 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19854 ranges by calling get_single_symbol and tidy up. Look more closely
19855 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19856
19857 2016-05-20 Jeff Law <law@redhat.com>
19858
19859 * bitmap.c (bitmap_find_bit): Remove useless test.
19860
19861 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19862
19863 * function.c (thread_prologue_and_epilogue_insns): Commit the
19864 insertion of the epilogue.
19865
19866 2016-05-20 Martin Jambor <mjambor@suse.cz>
19867
19868 PR tree-optimization/70884
19869 * tree-sra.c (initialize_constant_pool_replacements): Do not check
19870 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19871 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19872 of constant pool data as a reason for scalarization.
19873
19874 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19875
19876 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19877 for naked functions.
19878 (thumb1_expand_prologue): Likewise.
19879
19880 2016-05-20 Nathan Sidwell <nathan@acm.org>
19881
19882 * config/nvptx/nptx.c (nvptx_option_override): Only set
19883 flag_toplevel_reorder, if not explicitly specified. Set
19884 flag_no_common, unless explicitly specified.
19885
19886 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19887
19888 * calls.c (can_implement_as_sibling_call_p): Mark param
19889 reg_parm_stack_space with ATTRIBUTE_UNUSED.
19890
19891 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
19892
19893 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19894 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19895 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19896 constants.
19897 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19898 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19899 and CASE_CONST_ANY.
19900
19901 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
19902
19903 * config/nvptx/nvptx.md (sincossf3): New pattern.
19904
19905 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19906
19907 * calls.c (maybe_complain_about_tail_call): New function.
19908 (initialize_argument_information): Call
19909 maybe_complain_about_tail_call when clearing *may_tailcall.
19910 (can_implement_as_sibling_call_p): Call
19911 maybe_complain_about_tail_call when returning false.
19912 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19913 ensure try_tail_call is set. Call maybe_complain_about_tail_call
19914 if tail-call optimization fails.
19915 * cfgexpand.c (expand_call_stmt): Initialize
19916 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19917 * gimple-pretty-print.c (dump_gimple_call): Dump
19918 gimple_call_must_tail_p.
19919 * gimple.c (gimple_build_call_from_tree): Call
19920 gimple_call_set_must_tail with the value of
19921 CALL_EXPR_MUST_TAIL_CALL.
19922 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19923 (gimple_call_set_must_tail): New function.
19924 (gimple_call_must_tail_p): New function.
19925 * print-tree.c (print_node): Update printing of TREE_STATIC
19926 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19927 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19928 trailing comment listing applicable flags.
19929 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19930
19931 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19932
19933 * calls.c (expand_call): Move "Rest of purposes for tail call
19934 optimizations to fail" to...
19935 (can_implement_as_sibling_call_p): ...this new function, and
19936 split into multiple "if" statements.
19937
19938 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19939
19940 * cfgloop.h (expected_loop_iterations_unbounded,
19941 expected_loop_iterations): Unconstify.
19942 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19943 profile with known upper bound; return 3 when profile is absent.
19944 (expected_loop_iterations): Update.
19945
19946 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19947
19948 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19949 and get_max_loop_iterations_int.
19950
19951 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19952
19953 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19954 realistic upper bounds here.
19955
19956 2016-05-20 Jakub Jelinek <jakub@redhat.com>
19957
19958 PR c++/71210
19959 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19960 calls if the LHS is variable length or has addressable type.
19961 If targets[0]->decl is a noreturn call with void return type and
19962 zero arguments, adjust fntype and remove lhs in that case.
19963
19964 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
19965
19966 PR tree-optimization/71079
19967 PR tree-optimization/71206
19968 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19969
19970 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19971
19972 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
19973 (get_vec_alignment_for_array_decl): Likewise.
19974 (get_vec_alignment_for_record_decl): Likewise.
19975 (increase_alignment::execute): Move code to find alignment to
19976 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
19977 (type_align_map): New hash_map.
19978
19979 2016-05-20 Richard Guenther <rguenther@suse.de>
19980
19981 PR tree-optimization/29756
19982 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
19983 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
19984 * fold-const.c (operand_equal_p): Likewise.
19985 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
19986 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
19987 * tree-inline.c (estimate_operator_cost): Likewise.
19988 * tree-pretty-print.c (dump_generic_node): Likewise.
19989 * tree-ssa-operands.c (get_expr_operands): Likewise.
19990 * cfgexpand.c (expand_debug_expr): Likewise.
19991 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19992 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
19993 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
19994 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
19995 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
19996 (execute_update_addresses_taken): Do it.
19997
19998 2016-05-20 Richard Biener <rguenther@suse.de>
19999
20000 PR tree-optimization/71185
20001 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
20002 register operations.
20003
20004 2016-05-20 Richard Biener <rguenther@suse.de>
20005
20006 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
20007 gimple_seq_add_seq_without_update.
20008 (release_bb_predicate): Assert we have no operands to free.
20009 (if_convertible_loop_p_1): Calculate post dominators later.
20010 Do not free BB predicates here.
20011 (combine_blocks): Do not recompute BB predicates.
20012 (version_loop_for_if_conversion): Save BB predicates around
20013 loop versioning.
20014
20015 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20016
20017 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
20018 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
20019 code. Ignore sibcalls on EDGE_IGNORE edges.
20020 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
20021 on edges for sibcalls that run without prologue. The rest of the
20022 function is combined from...
20023 (fix_fake_fallthrough_edge): ... this, and ...
20024 (try_shrink_wrapping): ... a part of this. Remove the bb_with
20025 function argument, make it a local variable.
20026
20027 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
20028
20029 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
20030 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
20031 for 32-bit mode and SEH for 64-bit.
20032 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
20033 TARGET_64BIT_DEFAULT.
20034
20035 2016-05-19 Ryan Burn <contact@rnburn.com>
20036
20037 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
20038 * gengtype.c (open_base_files): Add cilk.h to ifiles.
20039
20040 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
20041
20042 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
20043 force pending loads from memory.
20044
20045 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
20046
20047 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
20048 (UNSPEC_DARN_32): New unspec constant.
20049 (UNSPEC_DARN_RAW): New unspec constant.
20050 (darn_32): New instruction.
20051 (darn_raw): New instruction.
20052 (darn): New instruction.
20053 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
20054 support and documentation for this macro.
20055 (BU_P9_MISC_1): New macro definition.
20056 (BU_P9_64BIT_MISC_0): New macro definition.
20057 (BU_P9_MISC_0): New macro definition.
20058 (darn_32): New builtin definition.
20059 (darn_raw): New builtin definition.
20060 (darn): New builtin definition.
20061 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
20062 RS6000_BUILTIN_0 directives to surround each occurrence of
20063 #include "rs6000-builtin.def".
20064 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
20065 RS6000_BTM_64BIT flags to the returned mask, depending on
20066 configuration.
20067 (def_builtin): Correct an error in the assignments made to the
20068 debugging variable attr_string.
20069 (rs6000_expand_builtin): Add support for no-operand built-in
20070 functions.
20071 (builtin_function_type): Remove fatal_error assertion that is no
20072 longer valid.
20073 (rs6000_common_init_builtins): Add support for no-operand built-in
20074 functions.
20075 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
20076 definition.
20077 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
20078 definition.
20079 (RS6000_BTM_64BIT): New macro definition.
20080 * doc/extend.texi: Document __builtin_darn (void),
20081 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
20082 functions.
20083
20084 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
20085
20086 * tree-vect-loop.c (vect_analyze_loop_2): Use also
20087 max_loop_iterations_int.
20088
20089 2016-05-19 Marek Polacek <polacek@redhat.com>
20090
20091 PR tree-optimization/71031
20092 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
20093 condition and adjust the code a bit.
20094
20095 2016-05-19 Martin Liska <mliska@suse.cz>
20096
20097 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
20098 auto_vec instead of vec.
20099
20100 2016-05-19 Martin Liska <mliska@suse.cz>
20101
20102 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
20103
20104 2016-05-19 Martin Liska <mliska@suse.cz>
20105
20106 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
20107
20108 2016-05-19 Martin Liska <mliska@suse.cz>
20109
20110 * ipa-pure-const.c (set_function_state): Remove an existing
20111 funct_state.
20112 (remove_node_data): Do not free it as it's released
20113 in set_function_state.
20114
20115 2016-05-19 Martin Liska <mliska@suse.cz>
20116
20117 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
20118 bitmap.
20119
20120 2016-05-19 Martin Liska <mliska@suse.cz>
20121
20122 * omp-simd-clone.c (simd_clone_adjust): Release vector.
20123
20124 2016-05-19 Martin Liska <mliska@suse.cz>
20125
20126 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
20127 an auto_vec instead of re-creating it.
20128
20129 2016-05-19 Martin Liska <mliska@suse.cz>
20130
20131 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
20132 auto_vec instead of vec.
20133
20134 2016-05-19 Martin Liska <mliska@suse.cz>
20135
20136 * lto-section-in.c (lto_get_section_data): Call
20137 lto_check_version with additional argument.
20138 * lto-streamer.c (lto_check_version): Add new argument.
20139 * lto-streamer.h (lto_check_version): Likewise.
20140
20141 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20142
20143 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
20144 Don't add cost of inner memory when handling sign-extended loads.
20145
20146 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
20147
20148 PR rtl-optimization/71148
20149 * cse.c (cse_main): Free dominance info.
20150 (rest_of_handle_cse): Don't free dominance info.
20151 (rest_of_handle_cse2): Likewise.
20152 (rest_of_handle_cse_after_global_opts): Likewise.
20153
20154 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20155
20156 PR target/71056
20157 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
20158 NULL_TREE early if NEON is not available. Remove now redundant check
20159 in ARM_CHECK_BUILTIN_MODE.
20160
20161 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
20162
20163 PR sanitizer/64354
20164 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
20165 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
20166 * doc/cpp.texi: Document new macros.
20167
20168 2016-05-19 Bin Cheng <bin.cheng@arm.com>
20169
20170 PR tree-optimization/69848
20171 * tree-vect-loop.c (vectorizable_reduction): Don't factor
20172 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
20173
20174 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20175
20176 * function.c (thread_prologue_and_epilogue_insn): Move the
20177 "goto epilogue_done" one block later.
20178
20179 2016-05-19 Richard Biener <rguenther@suse.de>
20180
20181 PR tree-optimization/70729
20182 * passes.def: Move LIM pass before PRE. Remove no longer
20183 required copyprop and move first DCE out of the loop pipeline.
20184
20185 2016-05-18 David Malcolm <dmalcolm@redhat.com>
20186
20187 PR driver/69265
20188 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
20189 (OBJS-libcommon-target): ...here.
20190 * opts-common.c: Include spellcheck.h.
20191 (cmdline_handle_error): Build a vec of valid options and use it
20192 to suggest provide hints for misspelled arguments.
20193
20194 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20195
20196 PR c++/71100
20197 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
20198 lhs if it has TREE_ADDRESSABLE type.
20199
20200 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
20201
20202 PR target/71145
20203 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
20204 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
20205
20206 2016-05-18 Martin Jambor <mjambor@suse.cz>
20207
20208 PR ipa/69708
20209 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
20210 input for NOP_EXPR pass-through functions.
20211 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
20212 aggregate global constant VAR_DECLs in constant jump functions.
20213
20214 2016-05-18 Martin Jambor <mjambor@suse.cz>
20215
20216 PR ipa/69708
20217 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
20218 from TREE_READONLY parameters.
20219
20220 2016-05-18 Martin Jambor <mjambor@suse.cz>
20221
20222 PR ipa/69708
20223 * cgraph.h (cgraph_indirect_call_info): New field
20224 guaranteed_unmodified.
20225 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
20226 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20227 appropriate.
20228 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
20229 pass the parameter value to ipa_find_agg_cst_for_param.
20230 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
20231 guaranteed_unmodified, store AA results there instead of bailing out
20232 if present.
20233 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
20234 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
20235 (find_constructor_constant_at_offset): New function.
20236 (ipa_find_agg_cst_from_init): Likewise.
20237 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
20238 static initializers of contants, report back through a new paameter
20239 from_global_constant if that was the case.
20240 (try_make_edge_direct_simple_call): Also pass parameter value to
20241 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20242 appropriate.
20243 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
20244 (ipa_read_indirect_edge_info): Likewise.
20245 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
20246 (ipa_load_from_parm_agg): Likewise.
20247
20248 2016-05-18 Jiong Wang <jiong.wang@arm.com>
20249
20250 PR rtl-optimization/71150
20251 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
20252 check.
20253
20254 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20255
20256 PR target/70915
20257 * config/rs6000/constraints.md (wE constraint): New constraint
20258 for a vector constant that can be loaded with XXSPLTIB.
20259 (wM constraint): New constraint for a vector constant of a 1's.
20260 (wS constraint): New constraint for a vector constant that can be
20261 loaded with XXSPLTIB and a vector sign extend instruction.
20262 * config/rs6000/predicates.md (xxspltib_constant_split): New
20263 predicates for wE/wS constraints.
20264 (xxspltib_constant_nosplit): Likewise.
20265 (easy_vector_constant): Add support for constants that can be
20266 loaded via XXSPLTIB.
20267 (all_ones_constant): New predicate for vector constant with all
20268 1's set.
20269 (splat_input_operand): Add support for ISA 3.0 word splat operations.
20270 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
20271 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
20272 instruction and possibly with a sign extension.
20273 (output_vec_const_move): Add support for XXSPLTIB. If we are
20274 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
20275 instead of XXLXOR/XXLORC.
20276 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
20277 operations.
20278 (rs6000_legitimize_reload_address): Likewise.
20279 (rs6000_output_move_128bit): Use output_vec_const_move to emit
20280 constants.
20281 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
20282 combine VSX_M and VSX_M2 into one iterator.
20283 (VSX_M2): Likewise.
20284 (VSINT_84): New iterators for loading constants with XXSPLTIB.
20285 (VSINT_842): Likewise.
20286 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
20287 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
20288 XXSPLTIB instruction.
20289 (xxspltib_<mode>_nosplit): Likewise.
20290 (xxspltib_<mode>_split): New insn to load up constants with
20291 XXSPLTIB and a sign extend instruction.
20292 (vsx_mov<mode>): Replace single move that handled all vector types
20293 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
20294 moves (when -mvsx-timode is in effect) into the main vector
20295 moves. Eliminate separate moves for <VSr> <VSa>, where the
20296 preferred register class (<VSr>) is listed first, and the
20297 secondary register class (<VSa>) is listed second with a '?' to
20298 discourage use. Prefer loading 0/-1 in any VSX register for ISA
20299 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
20300 that if the register was involved in a slow operation, the
20301 clear/set operation does not wait for the slow operation to
20302 finish. Adjust the length attributes for 32-bit mode. Use
20303 rs6000_output_move_128bit and drop the use of the string
20304 instructions for 32-bit movti when -mvsx-timode is in effect. Use
20305 spacing so that the alternatives and attributes don't generate
20306 long lines, and put things in columns, so that it is easier to
20307 match up the operands and attributes with the insn alternatives.
20308 (vsx_mov<mode>_64bit): Likewise.
20309 (vsx_mov<mode>_32bit): Likewise.
20310 (vsx_movti_64bit): Fold movti into normal vector moves.
20311 (vsx_movti_32bit): Likewise.
20312 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
20313 splat instructions.
20314 (vsx_splat_v4si_internal): Likewise.
20315 (vsx_splat_v4sf_internal): Likewise.
20316 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
20317 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
20318 extend vector elements.
20319 (vsx_sign_extend_hi_<mode>): Likewise.
20320 (vsx_sign_extend_si_v2di): Likewise.
20321 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
20322 declaration.
20323 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
20324 constraints. Add trailing period to wL documentation.
20325
20326 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
20327
20328 PR middle-end/71020
20329 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
20330 * tree-dfa.c (replace_abnormal_ssa_names): New function.
20331 * tree-call-cdce.c: Include tree-dfa.h.
20332 (can_guard_call_p): New function, extracted from...
20333 (can_use_internal_fn): ...here.
20334 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
20335 and return void.
20336 (shrink_wrap_one_built_in_call): Likewise.
20337 (use_internal_fn): Likewise.
20338 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
20339 and return void. Call replace_abnormal_ssa_names.
20340 (pass_call_cdce::execute): Check can_guard_call_p during the
20341 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
20342 will always change something.
20343
20344 2016-05-18 Martin Jambor <mjambor@suse.cz>
20345
20346 PR ipa/70646
20347 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
20348 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
20349
20350 2016-05-18 Martin Jambor <mjambor@suse.cz>
20351
20352 PR ipa/70646
20353 * ipa-inline.h (condition): New field size.
20354 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
20355 for comaprison and store it into the new condition.
20356 (evaluate_conditions_for_known_args): Use condition size to check
20357 access sizes for all but CHANGED conditions.
20358 (unmodified_parm_1): New parameter size_p, store access size into it.
20359 (unmodified_parm): Likewise.
20360 (unmodified_parm_or_parm_agg_item): Likewise.
20361 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
20362 (set_cond_stmt_execution_predicate): Extract access sizes and store
20363 them to conditions.
20364 (set_switch_stmt_execution_predicate): Likewise.
20365 (will_be_nonconstant_expr_predicate): Likewise.
20366 (will_be_nonconstant_predicate): Likewise.
20367 (inline_read_section): Stream condition size.
20368 (inline_write_summary): Likewise.
20369
20370 2016-05-18 Richard Biener <rguenther@suse.de>
20371
20372 * tree-ssa-loop-im.c (determine_max_movement): Properly add
20373 condition cost to PHI cost instead of total_cost.
20374
20375 2016-05-18 Martin Liska <mliska@suse.cz>
20376
20377 PR fortran/70856
20378 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
20379 merged variables.
20380
20381 2016-05-18 Richard Biener <rguenther@suse.de>
20382
20383 * lto-streamer.h (LTO_major_version): Bump to 6.
20384
20385 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20386
20387 * function.c (make_split_prologue_seq, make_prologue_seq,
20388 make_epilogue_seq): New functions, factored out from...
20389 (thread_prologue_and_epilogue_insns): Here.
20390
20391 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20392
20393 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
20394 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
20395 of before. Add a comment.
20396
20397 2016-05-18 Bin Cheng <bin.cheng@arm.com>
20398
20399 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
20400 expression pointer, not pointer to the pointer.
20401
20402 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20403
20404 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
20405 (avx2_pbroadcast<mode>): Add another alternative with v instead
20406 of x constraints in it, using <pbroadcast_evex_isa> isa.
20407 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
20408
20409 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
20410 constraint x instead of v in second alternative, add avx512bw
20411 alternative.
20412
20413 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
20414 constraint x instead of v in second alternative, add avx512bw
20415 alternative.
20416
20417 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
20418 constraint x instead of v in second alternative, add avx512bw
20419 alternative.
20420
20421 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
20422 avx512bw alternative.
20423
20424 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20425
20426 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
20427 array to 128 chars.
20428 (define_insn "*andnottf3"): Ditto.
20429 (define_insn "*<code><mode>3"/any_logic): Ditto.
20430 (define_insn "*<code>tf3"/any_logic): Ditto.
20431 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
20432 operand to block AVX-512VL insn variant emit when it is not enabled.
20433
20434 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20435
20436 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
20437 constraint fot SF mode.
20438
20439 2016-05-18 Petr Murzin <petr.murzin@intel.com>
20440 Kirill Yukhin <kirill.yukhin@intel.com>
20441
20442 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
20443 modifiers.
20444 (define_insn "rsqrt14<mode>"): Ditto.
20445 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20446 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
20447 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
20448 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
20449 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
20450 Ditto.
20451 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
20452 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
20453 * config/i386/i386.c (ix86_print_operand): Expand check for size
20454 override codes for Intel syntax.
20455
20456 2016-05-18 Richard Biener <rguenther@suse.de>
20457
20458 PR tree-optimization/71168
20459 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
20460 initialization earlier.
20461
20462 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
20463
20464 * config/aarch64/aarch64-simd.md
20465 (aarch64_reduc_plus_internal<mode>): Rename to...
20466 (reduc_plus_scal): ...This, and remove previous implementation.
20467
20468 2016-05-18 Richard Biener <rguenther@suse.de>
20469
20470 * passes.def: Put late dse and cd_dce in canonical order.
20471
20472 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
20473
20474 * ipa-inline-transform.c (preserve_function_body_p): Look for
20475 first non-thunk clone.
20476 (save_function_body): Save into first non-thunk.
20477 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
20478 up call stmt id.
20479 (lto_output_node): Inline thunks don't need body in every
20480 partition.
20481 * lto-streamer-in.c: Do not fixup thunk clones.
20482 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
20483 thunks.
20484 * tree-inline.c (copy_bb): Be prepared for target node to be new after
20485 folding suceeds.
20486
20487 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20488
20489 PR middle-end/63586
20490 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
20491 (reassociate_bb): Call transform_add_to_multiply.
20492
20493 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20494
20495 * config/aarch64/aarch64.c (all_extensions): Removed unused
20496 static variable.
20497
20498 2016-05-17 Nathan Sidwell <nathan@acm.org>
20499
20500 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
20501 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
20502
20503 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
20504
20505 PR tree-optimization/54579
20506 PR middle-end/55299
20507 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
20508
20509 2016-05-17 Marek Polacek <polacek@redhat.com>
20510
20511 PR ipa/71146
20512 * tree-inline.c (expand_call_inline): Call
20513 maybe_remove_unused_call_args.
20514
20515 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
20516
20517 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
20518 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
20519 * doc/md.texi (fmin@var{m}3): Likewise.
20520
20521 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20522
20523 * match.pd (X & C): New transformation.
20524
20525 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20526
20527 * match.pd (~X & Y): New transformation.
20528
20529 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20530
20531 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
20532 information for new SSA_NAME.
20533 (simplify_conversion_using_ranges): Get range through get_range_info
20534 instead of get_value_range.
20535
20536 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20537
20538 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
20539 Remove inline assembly.
20540 (vmvn_s16): Likewise.
20541 (vmvn_s32): Likewise.
20542 (vmvn_u8): Likewise.
20543 (vmvn_u16): Likewise.
20544 (vmvn_u32): Likewise.
20545 (vmvnq_s8): Likewise.
20546 (vmvnq_s16): Likewise.
20547 (vmvnq_s32): Likewise.
20548 (vmvnq_u8): Likewise.
20549 (vmvnq_u16): Likewise.
20550 (vmvnq_u32): Likewise.
20551 (vmvn_p8): Likewise.
20552 (vmvnq_p16): Likewise.
20553
20554 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20555
20556 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
20557 Use builtin.
20558 (vmul_n_s16): Likewise.
20559 (vmul_n_s32): Likewise.
20560 (vmul_n_u16): Likewise.
20561 (vmul_n_u32): Likewise.
20562 (vmulq_n_f32): Likewise.
20563 (vmulq_n_f64): Likewise.
20564 (vmulq_n_s16): Likewise.
20565 (vmulq_n_s32): Likewise.
20566 (vmulq_n_u16): Likewise.
20567 (vmulq_n_u32): Likewise.
20568
20569 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20570
20571 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
20572 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
20573
20574 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20575
20576 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
20577 to *aarch64_fma4_elt_from_dup<mode>.
20578 (*aarch64_fnma4_elt_to_128df): Rename to
20579 *aarch64_fnma4_elt_from_dup<mode>.
20580 * config/aarch64/arm_neon.h (vfma_n_f64): New.
20581 (vfms_n_f32): Likewise.
20582 (vfms_n_f64): Likewise.
20583 (vfmsq_n_f32): Likewise.
20584 (vfmsq_n_f64): Likewise.
20585
20586 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
20587
20588 * wide-int.h: Change fixed_wide_int_storage from class to struct.
20589
20590 2016-05-17 Richard Biener <rguenther@suse.de>
20591
20592 PR tree-optimization/71132
20593 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
20594 Only add control dependences for blocks in the loop.
20595 (build_rdg): Adjust.
20596 (generate_code_for_partition): Return whether loop should
20597 be destroyed and delay that.
20598 (distribute_loop): Likewise.
20599 (pass_loop_distribution::execute): Record loops to be destroyed
20600 and perform delayed destroying of loops.
20601
20602 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20603
20604 PR target/70809
20605 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
20606
20607 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20608
20609 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
20610
20611 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
20612
20613 PR target/71114
20614 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
20615 insertion point for instructions generated by validize_mem.
20616
20617 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20618
20619 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
20620 in brackets.
20621
20622 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20623
20624 * config/aarch64/aarch64.c
20625 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
20626 rather than a macro.
20627
20628 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20629
20630 * doc/invoke.texi (AArch64 Options): Various updates.
20631
20632 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20633
20634 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
20635 into instrumentation thunks.
20636 * cif-code.def (CIF_CHKP): New.
20637
20638 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
20639
20640 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
20641
20642 2016-05-16 Martin Jambor <mjambor@suse.cz>
20643
20644 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
20645 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
20646
20647 2016-05-16 Marek Polacek <polacek@redhat.com>
20648
20649 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
20650 commentary.
20651
20652 2016-05-16 Martin Jambor <mjambor@suse.cz>
20653
20654 PR hsa/70857
20655 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
20656 the outlined kernel function.
20657
20658 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
20659
20660 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
20661 (ISA_HAS_DLSA): Ditto.
20662
20663 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20664
20665 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20666
20667 2016-05-16 Nathan Sidwell <nathan@acm.org>
20668
20669 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20670 (nvptx_name_replacement): Restore. Add comment.
20671 (write_fn_proto, write_fn_proto_from_insn,
20672 nvptx_output_call_insn): Restore
20673 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20674
20675 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20676
20677 * config/aarch64/aarch64.md
20678 (add<mode>3_compareC_cconly_imm): Remove use of %w.
20679 (add<mode>3_compareC_imm): Likewise.
20680 (<optab>si3_uxtw): Split into register and immediate variants.
20681 (andsi3_compare0_uxtw): Likewise.
20682 (and<mode>3_compare0): Likewise.
20683 (and<mode>3nr_compare0): Likewise.
20684 (stack_protect_test_<mode>): Don't use %x for memory operands.
20685
20686 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20687
20688 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20689
20690 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20691
20692 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20693 Split integer shifts into shift_reg and bfm.
20694 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20695 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20696 (ror<mode>3_insn): Likewise.
20697 (<optab>si3_insn_uxtw): Likewise.
20698 (<optab><mode>3_insn): Change to rotate_imm.
20699 (extr<mode>5_insn_alt): Likewise.
20700 (extrsi5_insn_uxtw): Likewise.
20701 (extrsi5_insn_uxtw_alt): Likewise.
20702
20703 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20704
20705 * doc/tm.texi: Regenerate.
20706 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20707 (TARGET_INVALID_RETURN_TYPE): Remove.
20708 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20709 TARGET_INVALID_RETURN_TYPE.
20710 * target.def (invalid_parameter_type): Remove.
20711 (invalid_return_type): Remove.
20712
20713 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20714
20715 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20716 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20717 calls from thunk.
20718 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20719 gimple body.
20720 (preserve_function_body_p): No need to preserve function body
20721 * cif-codes.def (CIF_THUNK): Remove.
20722 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20723
20724 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20725
20726 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20727
20728 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20729
20730 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20731 for thunks.
20732
20733 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20734
20735 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20736 (inline_small_functions): Do not look for function symbol when
20737 resetting caches.
20738
20739 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20740
20741 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20742 of inline thunks
20743
20744 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20745 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20746 Jiong Wang <jiong.wang@arm.com>
20747
20748 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20749 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20750 Define __ARM_FP16_ARGS when appropriate.
20751 * config/arm/arm.c (arm_invalid_parameter_type): Remove
20752 declaration.
20753 (arm_invalid_return_type): Likewise.
20754 (TARGET_INVALID_PARAMETER_TYPE): Remove.
20755 (TARGET_INVALID_RETURN_TYPE): Remove.
20756 (aapcs_vfp_sub_candidate): Allow HFmode.
20757 (aapcs_vfp_allocate): Add comment. Support HFmode.
20758 (aapcs_vfp_allocate_return_reg): Likewise.
20759 (struct aapcs_cp_arg_layout): Slightly reword comments for
20760 is_return_candidate and allocate_return_reg.
20761 (output_mov_vfp): Update assert.
20762 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20763 condition.
20764 (arm_invalid_parameter_type): Remove.
20765 (amr_invalid_return_type): Remove.
20766 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20767 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20768 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20769
20770 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20771
20772 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20773 * config/aarch64/arch64-protos.h
20774 (aarch64_legitimize_reload_address): Remove.
20775 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20776 Remove.
20777
20778 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
20779
20780 * configure.ac: Add ACX_NONCANONICAL_HOST.
20781 * configure: Regenerate.
20782 * Makefile.in: Set host_noncanonical.
20783
20784 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
20785
20786 PR target/71097
20787 * config/i386/i386.md (*movtf_internal): Before register allocation,
20788 do not allow FP constants for CM_MEDIUM memory model, allow only
20789 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20790 (*movxf_internal): Ditto.
20791 (*movdf_internal): Ditto.
20792 (*movsf_internal): Ditto.
20793
20794 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20795
20796 PR rtl-optimization/67483
20797 * combine.c (make_compound_operation): Don't call extract_left_shift
20798 with negative shift amounts.
20799
20800 2016-05-13 Jakub Jelinek <jakub@redhat.com>
20801
20802 PR bootstrap/71071
20803 * fold-const.c (fold_checksum_tree): Allow modification
20804 of TYPE_ALIAS_SET during folding.
20805
20806 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20807 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20808 (ix86_split_to_parts): Likewise. Fix up formatting.
20809
20810 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
20811
20812 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20813 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20814 printf format.
20815
20816 2016-05-13 Nathan Sidwell <nathan@acm.org>
20817
20818 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20819 (nvptx_name_replacement): Delete.
20820 (write_fn_proto, write_fn_proto_from_insn,
20821 nvptx_output_call_insn): Remove nvptx_name_replacement call.
20822 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20823 * langhooks.c (add_builtin_funcction_common): Call
20824 targetm.mangle_decl_assembler_name.
20825
20826 * config/nvptx/nvptx.c (write_fn_proto): Handle
20827 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20828
20829 2016-05-13 Martin Liska <mliska@suse.cz>
20830
20831 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20832 and PRIu64 in printf format.
20833
20834 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20835
20836 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20837 comment.
20838
20839 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20840
20841 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20842 Change --param max-completely-peeled-times to
20843 --param max-completely-peel-times in dump file printing.
20844
20845 2016-05-13 Richard Biener <rguenther@suse.de>
20846
20847 PR tree-optimization/42587
20848 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20849 (find_bswap_or_nop_1): Likewise.
20850 (bswap_replace): Likewise.
20851
20852 2016-05-13 Martin Liska <mliska@suse.cz>
20853
20854 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20855 Initialize a variable with default value.
20856
20857 2016-05-13 Martin Liska <mliska@suse.cz>
20858
20859 * doc/invoke.texi: Enhance explanation of error recovery
20860 of sanitizers.
20861
20862 2016-05-13 Martin Liska <mliska@suse.cz>
20863
20864 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20865 (struct cost_pair): Change inv_expr_id (int) to inv_expr
20866 (iv_inv_expr_ent *).
20867 (struct iv_inv_expr_ent): Comment struct fields.
20868 (sort_iv_inv_expr_ent): New function.
20869 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20870 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20871 a hash_map between iv_inv_expr_ent and number of usages.
20872 (niter_for_exit): Fix coding style.
20873 (tree_ssa_iv_optimize_init): Use renamed variable.
20874 (determine_base_object): Fix coding style.
20875 (alloc_iv): Likewise.
20876 (find_interesting_uses_outside): Likewise.
20877 (add_candidate_1): Likewise.
20878 (add_standard_iv_candidates): Likewise.
20879 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20880 (prepare_decl_rtl): Fix coding style.
20881 (get_address_cost): Likewise.
20882 (get_shiftadd_cost): Likewise.
20883 (force_expr_to_var_cost): Likewise.
20884 (compare_aff_trees): Likewise.
20885 (get_expr_id): Restructure the function.
20886 (get_loop_invariant_expr_id): Renamed to
20887 get_loop_invariant_expr.
20888 (get_computation_cost_at): Replace usage of inv_expr_id with
20889 inv_expr.
20890 (get_computation_cost): Likewise.
20891 (determine_group_iv_cost_generic): Likewise.
20892 (determine_group_iv_cost_address): Likewise.
20893 (iv_period): Fix coding style.
20894 (iv_elimination_compare_lt): Likewise.
20895 (may_eliminate_iv): Likewise.
20896 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
20897 inv_expr.
20898 (determine_group_iv_costs): Dump invariant expressions.
20899 (iv_ca_recount_cost): Use the newly added hash_map.
20900 (iv_ca_set_remove_invariants): Fix coding style.
20901 (iv_ca_set_add_invariants): Fix coding style.
20902 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20903 invariants.
20904 (iv_ca_set_cp): Likewise.
20905 (iv_ca_new): Initialize the newly added hash_map and remove
20906 initialization of fields.
20907 (iv_ca_free): Delete the hash_map.
20908 (iv_ca_dump): Dump invariant expressions.
20909 (iv_ca_extend): Fix coding style.
20910 (try_add_cand_for): Likewise.
20911 (create_new_ivs): Dump information about # of avg iterations and
20912 # of used invariant expressions.
20913 (rewrite_use_compare): Fix coding style.
20914 (free_loop_data): Set default value for max_inv_expr_id.
20915
20916 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20917
20918 * cse.c (rest_of_handle_cse): Use cleanup_cfg
20919 returned value cse_cfg_altered computation.
20920 (rest_of_handle_cse2): Likewise.
20921 (rest_of_handle_cse_after_global_opts): Likewise.
20922
20923 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20924
20925 PR target/53440
20926 * config/arm/arm.c (arm32_output_mi_thunk): New.
20927 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20928 to split Thumb1 vs TARGET_32BIT functionality.
20929 (arm_thumb1_mi_thunk): New.
20930
20931 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20932
20933 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20934 to true.
20935
20936 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20937
20938 PR target/71080
20939 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20940
20941 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
20942
20943 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20944 (expand_builtin_trap): Emit a regular call.
20945 (set_builtin_user_assembler_name): Remove obsolete cases.
20946 * dse.c (scan_insn): Adjust.
20947 * except.c: Include calls.h.
20948 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20949 emit a regular call to setjmp.
20950 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20951 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20952 (emit_block_move_via_libcall): Delete.
20953 (block_move_fn): Delete.
20954 (init_block_move_fn): Likewise.
20955 (emit_block_move_libcall_fn): Likewise.
20956 (emit_block_op_via_libcall): New function.
20957 (set_storage_via_libcall): Tidy up and use memset builtin.
20958 (block_clear_fn): Delete.
20959 (init_block_clear_fn): Likewise.
20960 (clear_storage_libcall_fn): Likewise.
20961 (expand_assignment): Call emit_block_move_via_libcall.
20962 Do not include gt-expr.h.
20963 * expr.h (emit_block_op_via_libcall): Declare.
20964 (emit_block_copy_via_libcall): New inline function.
20965 (emit_block_move_via_libcall): Likewise.
20966 (emit_block_comp_via_libcall): Likewise.
20967 (block_clear_fn): Delete.
20968 (init_block_move_fn): Likewise.
20969 (init_block_clear_fn): Likewise.
20970 (emit_block_move_via_libcall): Likewise.
20971 (set_storage_via_libcall): Add default parameter value.
20972 * libfuncs.h (enum libfunc_index): Remove obsolete values.
20973 (abort_libfunc): Delete.
20974 (memcpy_libfunc): Likewise.
20975 (memmove_libfunc): Likewise.
20976 (memcmp_libfunc): Likewise.
20977 (memset_libfunc): Likewise.
20978 (setbits_libfunc): Likewise.
20979 (setjmp_libfunc): Likewise.
20980 (longjmp_libfunc): Likewise.
20981 (profile_function_entry_libfunc): Likewise.
20982 (profile_function_exit_libfunc): Likewise.
20983 (gcov_flush_libfunc): Likewise.
20984 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
20985 and DECL_VISIBILITY on the declaration.
20986 (init_optabs): Do not initialize obsolete libfuncs.
20987 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
20988 * tree-core.h (ECF_RET1): Define.
20989 (ECF_TM_PURE): Adjust.
20990 (ECF_TM_BUILTIN): Likewise.
20991 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
20992 (build_common_builtin_nodes): Initialize abort builtin.
20993 Add ECF_RET1 on memcpy, memmove and memset builtins.
20994 Pass final flags for alloca and alloca_with_align builtins.
20995 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
20996 obsolete builtins.
20997 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
20998 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
20999 set_storage_via_libcall and call emit_block_copy_via_libcall.
21000
21001 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
21002
21003 * config/i386/i386.md (*call_got_x32): Change operand 0 to
21004 DImode before it is passed to ix86_output_call_operand.
21005 (*call_value_got_x32): Ditto for operand 1.
21006
21007 2016-05-12 Jiong Wang <jiong.wang@arm.com>
21008
21009 PR rtl-optimization/70904
21010 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
21011 reload for wide mode.
21012
21013 2016-05-12 Marek Polacek <polacek@redhat.com>
21014
21015 PR c/70756
21016 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
21017 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
21018 * langhooks.h (incomplete_type_error): Likewise.
21019 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
21020 parameter, pass it down to incomplete_type_error.
21021 * tree.h (size_in_bytes): New inline overload.
21022 (size_in_bytes_loc): Renamed from size_in_bytes.
21023
21024 2016-05-12 Richard Biener <rguenther@suse.de>
21025
21026 PR tree-optimization/71059
21027 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
21028 nary before looking up or entering the expression into the VN
21029 hashes.
21030 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
21031 Make sure to re-use NARYs without result as inserted by
21032 phi-translation.
21033
21034 2016-05-12 Richard Biener <rguenther@suse.de>
21035
21036 PR tree-optimization/71062
21037 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
21038 field.
21039 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21040 vars_contains_restrict if the var is a restrict tag.
21041 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
21042 do not disambiguate pointers against it.
21043 (dump_points_to_solution): Re-structure and adjust for new
21044 vars_contains_restrict flag.
21045 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
21046
21047 2016-05-12 Martin Liska <mliska@suse.cz>
21048
21049 * doc/invoke.texi: Explain connection between
21050 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
21051
21052 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
21053
21054 PR tree-optimization/71006
21055 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
21056 consider COND_EXPR as a mask producer.
21057
21058 2016-05-12 Marek Polacek <polacek@redhat.com>
21059
21060 PR driver/71063
21061 * opts.c (common_handle_option): Detect missing argument for --help^.
21062
21063 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21064
21065 PR target/70830
21066 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
21067 when popping the PC and within an interrupt handler routine.
21068 Add missing tab to output of "ldmfd".
21069 (output_return_instruction): Output LDMFD with SP update rather
21070 than POP when returning from interrupt handler.
21071
21072 2016-05-12 Jakub Jelinek <jakub@redhat.com>
21073
21074 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
21075 TARGET_64BIT && TARGET_AVX512DQ.
21076 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
21077 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
21078 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
21079 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
21080 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
21081 (*vec_extractv4si_zext): Add avx512dq alternative.
21082 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
21083 use v instead of x constraint in other alternatives where possible.
21084
21085 * config/i386/sse.md (sse2_loadld): Use v instead of x
21086 constraint in alternatives 0,1,4.
21087
21088 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
21089 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
21090 v constraints instead of x and <pinsr_evex_isa> isa attribute.
21091
21092 PR target/71019
21093 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
21094 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
21095 is not emitted unless TARGET_AVX512BW.
21096 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
21097 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
21098 for the result operand.
21099
21100 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
21101 constraint instead of x in avx alternatives. Use maybe_evex instead
21102 of vex prefix.
21103
21104 * config/i386/constraints.md (Yv): New constraint.
21105 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
21106 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
21107 * config/i386/i386.md (avx512fvecmode): New mode attr.
21108 (*pushtf): Use v constraint instead of x.
21109 (*movtf_internal): Likewise. For TARGET_AVX512VL and
21110 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
21111 (*absneg<mode>2): Use Yv constraint instead of x constraint.
21112 (*absnegtf2_sse): Likewise.
21113 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
21114 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
21115 avx512f alternatives.
21116 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
21117
21118 2016-05-12 Richard Biener <rguenther@suse.de>
21119
21120 PR tree-optimization/71060
21121 * tree-data-ref.c (initialize_data_dependence_relation): Do not
21122 require exact match of DR_BASE_OBJECT but only matching address and
21123 type.
21124
21125 2016-05-12 Richard Biener <rguenther@suse.de>
21126
21127 PR tree-optimization/70986
21128 * cfganal.c: Include cfgloop.h.
21129 (dfs_find_deadend): Prefer to take edges exiting loops.
21130
21131 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21132
21133 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
21134 compile and run time.
21135
21136 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
21137
21138 PR c/43651
21139 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
21140
21141 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
21142
21143 * config/i386/i386.c (legitimize_pic_address): Use
21144 copy_to_suggested_reg instead of gen_movsi.
21145
21146 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21147
21148 * config/rs6000/predicates.md (quad_memory_operand): Move most of
21149 the code into quad_address_p and call it to share code with
21150 vsx_quad_dform_memory_operand.
21151 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
21152 d-form support.
21153 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
21154 bit instead of being a separate word. Split -mpower9-dform into
21155 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21156 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
21157 for the register class supporting 128-bit quad word memory offsets.
21158 (mode_supports_vsx_dform_quad): Helper function to return if the
21159 register class uses quad word memory offsets.
21160 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
21161 (rs6000_debug_reg_global): Always print if we are using LRA or not.
21162 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
21163 instructions are enabled, set up the appropriate addr_masks for
21164 128-bit types.
21165 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
21166 -mpower9-dform-scalar, instead of -mpower9-dform.
21167 (rs6000_option_override_internal): Split -mpower9-dform into two
21168 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
21169 -mpower9-dform switch sets or clears both. If we are not using
21170 the LRA register allocator, do not enable -mpower9-dform-vector by
21171 default. If we are using LRA, enable -mpower9-dform-vector and
21172 -mvsx-timode if it is appropriate. Issue a warning if either
21173 -mpower9-dform-vector or -mvsx-timode are explicitly used without
21174 enabling LRA.
21175 (quad_address_offset_p): New helper function to return if the
21176 offset is legal for quad word memory instructions.
21177 (quad_address_p): New function to determin if GPR or vector
21178 register quad word memory addresses are legal.
21179 (mem_operand_gpr): Validate quad word address offsets.
21180 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
21181 d-form (register + offset) instructions.
21182 (offsettable_ok_by_alignment): Likewise.
21183 (rs6000_legitimate_offset_address_p): Likewise.
21184 (legitimate_lo_sum_address_p): Likewise.
21185 (rs6000_legitimize_address): Likewise.
21186 (rs6000_legitimize_reload_address): Add more debug statements for
21187 -mdebug=addr.
21188 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
21189 d-form instructions.
21190 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
21191 d-form instructions. Distinguish different cases in debug
21192 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
21193 d-form instructions.
21194 (rs6000_preferred_reload_class): Likewise.
21195 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
21196 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
21197 of the ISA 2.06 indexed memory instructions.
21198 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
21199 use them to save/restore the saved vector registers instead of
21200 using Altivec instructions.
21201 (rs6000_emit_epilogue): Likewise.
21202 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
21203 (rs6000_opt_masks): Split -mpower9-dform into
21204 -mpower9-dform-scalar and -mpower9-dform-vector.
21205 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
21206 was not selected.
21207 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
21208 ISA 3.0 vector indexed memory instructions, and fold the code into
21209 the normal mov<mode> patterns.
21210 (p9_vecstore_<mode>): Likewise.
21211 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
21212 instructions.
21213 (vsx_movti_64bit): Likewise.
21214 (vsx_movti_32bit): Likewise.
21215 * config/rs6000/constraints.md (wO constraint): New constraint for
21216 ISA 3.0 vector d-form support.
21217 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
21218 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
21219 include -mpower9-dform-vector until we switch over to LRA.
21220 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
21221 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21222 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
21223 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21224 for -mpower9-dform and -mlra.
21225 * doc/md.texi (wO constraint): Document wO constraint.
21226
21227 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
21228
21229 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
21230 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
21231 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
21232 Move handling of non-insn arguments inline into the sole user:
21233 (output_trans_func): ...here.
21234 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
21235 in emitted function prototype.
21236 (output_internal_insn_latency_func): Ditto. Simplify.
21237 (output_internal_maximal_insn_latency_func): Ditto. Delete
21238 always-unused argument.
21239 (output_insn_latency_func): Ditto.
21240 (output_maximal_insn_latency_func): Ditto.
21241
21242 2016-05-11 Richard Biener <rguenther@suse.de>
21243
21244 PR tree-optimization/71055
21245 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
21246 sth with precision not equal to access size verify we don't chop
21247 off bits.
21248
21249 2016-05-11 Richard Biener <rguenther@suse.de>
21250
21251 PR debug/71057
21252 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
21253 (dwarf2out_finish): Move retry_incomplete_types call ...
21254 (dwarf2out_early_finish): ... here.
21255
21256 2016-05-11 Richard Biener <rguenther@suse.de>
21257
21258 PR middle-end/71002
21259 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
21260 if the langhook insists on it.
21261 * fold-const.c (make_bit_field_ref): Add arg for the original
21262 reference and preserve its alias-set.
21263 (decode_field_reference): Take exp by reference and adjust it
21264 to the original memory reference.
21265 (optimize_bit_field_compare): Adjust callers.
21266 (fold_truth_andor_1): Likewise.
21267 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
21268
21269 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
21270
21271 PR middle-end/70807
21272 * cfgrtl.h (delete_insn_and_edges): Now return bool.
21273 * cfgrtl.c (delete_insn_and_edges): Likewise.
21274 * config/i386/i386.c (convert_scalars_to_vector): Remove
21275 redundant code.
21276 * cse.c (cse_insn): Compute cse_cfg_altered.
21277 (delete_trivially_dead_insns): Likewise.
21278 (cse_cc_succs): Likewise.
21279 (rest_of_handle_cse): Free dominance info if required.
21280 (rest_of_handle_cse2): Likewise.
21281 (rest_of_handle_cse_after_global_opts): Likewise.
21282
21283 2016-05-11 Alan Modra <amodra@gmail.com>
21284
21285 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
21286 abi_v4_pass_in_fpr): New functions.
21287 (rs6000_function_arg_boundary): Exclude complex IBM long double
21288 from 64-bit alignment when ABI_V4.
21289 (rs6000_function_arg, rs6000_function_arg_advance_1,
21290 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
21291
21292 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
21293
21294 PR rtl-optimization/71028
21295 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
21296 jump with just a return in the fallthrough block if the branch
21297 block contains just a return as well.
21298
21299 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
21300
21301 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
21302 * match.pd ((X & Y) ^ Y): ... this.
21303 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
21304 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
21305
21306 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21307
21308 * read-md.c (require_char_ws): New function.
21309 (read_string): Simplify using require_char_ws.
21310 (handle_constants): Likewise.
21311 (handle_enum): Likewise.
21312 (handle_file): Likewise.
21313 * read-md.h (require_char_ws): New declaration.
21314 * read-rtl.c (read_conditions): Simplify using require_char_ws.
21315 (read_mapping): Likewise.
21316 (read_rtx_code): Likewise.
21317 (read_nested_rtx): Likewise.
21318
21319 2016-05-10 James Norris <jnorris@codesourcery.com>
21320
21321 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
21322 if offloading is enabled and -fopenacc or -fopenmp is specified.
21323 (CRTOFFLOADEND): Likewise.
21324 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
21325 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
21326
21327 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
21328
21329 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
21330 gotoff_operand code paths. Use copy_to_suggested_regs and
21331 expand_simple_binop where appropriate. Cleanup.
21332
21333 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21334
21335 PR target/70799
21336 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
21337 integer constants.
21338 (dimode_scalar_chain::vector_const_cost): New.
21339 (dimode_scalar_chain::compute_convert_gain): Handle constants.
21340 (dimode_scalar_chain::convert_op): Likewise.
21341 (dimode_scalar_chain::convert_insn): Likewise.
21342
21343 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21344
21345 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
21346 unary operation, not a binary one.
21347
21348 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21349
21350 PR middle-end/70877
21351 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
21352 calls with type casted fndecl.
21353
21354 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21355
21356 PR tree-optimization/70786
21357 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
21358 * calls.c (initialize_argument_information): Bind bounds
21359 with corresponding args passed by reference.
21360
21361 2016-05-10 Jakub Jelinek <jakub@redhat.com>
21362
21363 PR target/70927
21364 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
21365 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
21366 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
21367 accordingly.
21368
21369 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21370
21371 PR target/70963
21372 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
21373 code for a zero scale factor.
21374 (vsx_xvcvdpuxds_scale): Likewise.
21375
21376 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21377
21378 * diagnostic-show-locus.c (layout::layout): Call show_ruler
21379 if show_ruler_p was set on the context.
21380 (layout::show_ruler): New method.
21381 * diagnostic.h (struct diagnostic_context): Add field
21382 "show_ruler_p".
21383
21384 2016-05-10 Richard Biener <rguenther@suse.de>
21385
21386 PR tree-optimization/71039
21387 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
21388 (chk_uses): New function.
21389 (propagate_with_phi): Verify we can safely replicate the lhs of an
21390 aggregate assignment on all incoming edges.
21391
21392 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
21393
21394 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
21395 Forward declare.
21396 (rx_atomic_sequence): New class.
21397 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
21398 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
21399 non-inline.
21400 (rx_atomic_sequence::rx_atomic_sequence,
21401 rx_atomic_sequence::~rx_atomic_sequence): New functions.
21402 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
21403 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
21404 CTRLREG_INTB): New constants.
21405 (FETCHOP): New code iterator.
21406 (fethcop_name, fetchop_name2): New iterator code attributes.
21407 (QIHI): New mode iterator.
21408 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
21409 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
21410 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
21411
21412 2016-05-10 Martin Liska <mliska@suse.cz>
21413
21414 * tree-inline.c (remap_dependence_clique): Do not remap
21415 debugging statements.
21416
21417 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21418
21419 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
21420 ("*fixuns_truncdfdi2_z13")
21421 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
21422 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
21423 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
21424
21425 2016-05-10 Richard Biener <rguenther@suse.de>
21426
21427 PR tree-optimization/70497
21428 PR tree-optimization/28367
21429 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
21430 split out from ...
21431 (visit_reference_op_load): ... here.
21432 (vn_reference_lookup_3): Use it to handle subreg-like accesses
21433 with simplified BIT_FIELD_REFs.
21434 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
21435 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
21436 correctly.
21437
21438 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21439
21440 * dwarf2out.c (add_abstract_origin_attribute): Adjust
21441 documentation comment. For BLOCK nodes, add a
21442 DW_AT_abstract_origin attribute that points to the DIE generated
21443 for the origin BLOCK.
21444 (gen_lexical_block_die): Call add_abstract_origin_attribute for
21445 blocks from inlined functions.
21446
21447 2016-05-10 Alan Modra <amodra@gmail.com>
21448
21449 PR target/70947
21450 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
21451 regrename modifying insns saving lr before __morestack call.
21452 * config/rs6000/rs6000.md (split_stack_return): Similarly for
21453 insns restoring lr after __morestack call.
21454
21455 2016-05-09 Jakub Jelinek <jakub@redhat.com>
21456
21457 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
21458 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
21459 expanders.
21460 * config/i386/sse.md (vec_interleave_high<mode>,
21461 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
21462 <avx512>_vpermt2var<mode>3_maskz): Likewise.
21463
21464 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21465
21466 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
21467 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
21468 parallel reassociation for power8 and forward.
21469
21470 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
21471
21472 * config/i386/i386.md (absneg splitters with general regs): Use
21473 general_reg_operand predicate.
21474 (btsq peephole2): Use x86_64_immediate_operand to check if new
21475 value is suitable for immediate operand. Generate emitted insn
21476 using RTL expressions.
21477 (btcq peephole2): Ditto.
21478 (btrq peephole2): Ditto. Generate correct immediate operand
21479 for AND masking.
21480
21481 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21482
21483 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
21484 bitpos.
21485
21486 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21487
21488 * tree-affine.c (wide_int_constant_multiple_p): Add missing
21489 pointer dereference.
21490
21491 2016-05-09 Richard Biener <rguenther@suse.de>
21492
21493 PR tree-optimization/70985
21494 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
21495 op0 isn't a gimple register.
21496
21497 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
21498
21499 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
21500 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
21501 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
21502 (i6400_fpu_mult): New cpu units.
21503 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
21504 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
21505 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
21506 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
21507 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
21508 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
21509 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
21510 (i6400_msa_long_float4, i6400_msa_long_float5)
21511 (i6400_msa_long_float8, i6400_msa_fdiv_df)
21512 (i6400_msa_fdiv_sf): New reservations.
21513 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
21514 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
21515 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
21516 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
21517 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
21518 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
21519 (msa_short_cmp, msa_short_float2, msa_short_logic3)
21520 (msa_short_store4, msa_long_load, msa_short_store)
21521 (msa_long_logic, msa_long_float2, msa_long_float4)
21522 (msa_long_float5, msa_long_float8, msa_long_mult)
21523 (msa_long_fdiv, msa_long_div): New reservations.
21524
21525 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
21526 Sameera Deshpande <sameera.deshpande@imgtec.com>
21527 Matthew Fortune <matthew.fortune@imgtec.com>
21528 Graham Stott <graham.stott@imgtec.com>
21529 Chao-ying Fu <chao-ying.fu@imgtec.com>
21530
21531 * config.gcc: Add MSA header file for mips*-*-* target.
21532 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
21533 (Ubv8i, Urv8): New constraints.
21534 * config/mips/mips-ftypes.def: Add function types for MSA
21535 builtins.
21536 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
21537 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
21538 * config/mips/mips-msa.md: New file.
21539 * config/mips/mips-protos.h
21540 (mips_split_128bit_const_insns): New prototype.
21541 (mips_msa_idiv_insns): Likewise.
21542 (mips_split_128bit_move): Likewise.
21543 (mips_split_128bit_move_p): Likewise.
21544 (mips_split_msa_copy_d): Likewise.
21545 (mips_split_msa_insert_d): Likewise.
21546 (mips_split_msa_fill_d): Likewise.
21547 (mips_expand_msa_branch): Likewise.
21548 (mips_const_vector_same_val_p): Likewise.
21549 (mips_const_vector_same_bytes_p): Likewise.
21550 (mips_const_vector_same_int_p): Likewise.
21551 (mips_const_vector_shuffle_set_p): Likewise.
21552 (mips_const_vector_bitimm_set_p): Likewise.
21553 (mips_const_vector_bitimm_clr_p): Likewise.
21554 (mips_msa_vec_parallel_const_half): Likewise.
21555 (mips_msa_output_division): Likewise.
21556 (mips_ldst_scaled_shift): Likewise.
21557 (mips_expand_vec_cond_expr): Likewise.
21558 * config/mips/mips.c (enum mips_builtin_type): Add
21559 MIPS_BUILTIN_MSA_TEST_BRANCH.
21560 (mips_gen_const_int_vector_shuffle): New prototype.
21561 (mips_const_vector_bitimm_set_p): New function.
21562 (mips_const_vector_bitimm_clr_p): Likewise.
21563 (mips_const_vector_same_val_p): Likewise.
21564 (mips_const_vector_same_bytes_p): Likewise.
21565 (mips_const_vector_same_int_p): Likewise.
21566 (mips_const_vector_shuffle_set_p): Likewise.
21567 (mips_symbol_insns): Forbid loading symbols via immediate for
21568 MSA.
21569 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
21570 stores.
21571 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
21572 MSA.
21573 (mips_lx_address_p): Add support load indexed address for MSA.
21574 (mips_address_insns): Add calculation of instructions needed for
21575 stores and loads for MSA.
21576 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
21577 CONST_VECTOR for MSA and let it fall through.
21578 (mips_ldst_scaled_shift): New function.
21579 (mips_subword_at_byte): Likewise.
21580 (mips_msa_idiv_insns): Likewise.
21581 (mips_legitimize_move): Validate MSA moves.
21582 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
21583 calculation of costs for MSA division.
21584 (mips_split_move_p): Check if MSA moves need splitting.
21585 (mips_split_move): Split MSA moves if necessary.
21586 (mips_split_128bit_move_p): New function.
21587 (mips_split_128bit_move): Likewise.
21588 (mips_split_msa_copy_d): Likewise.
21589 (mips_split_msa_insert_d): Likewise.
21590 (mips_split_msa_fill_d): Likewise.
21591 (mips_output_move): Handle MSA moves.
21592 (mips_expand_msa_branch): New function.
21593 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
21594 Reinstate 'y' modifier.
21595 (mips_file_start): Add MSA .gnu_attribute.
21596 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
21597 FPRs.
21598 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
21599 (mips_class_max_nregs): Add register size for MSA supported mode.
21600 (mips_cannot_change_mode_class): Allow conversion between MSA
21601 vector modes and TImode.
21602 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
21603 instruction.
21604 (mips_secondary_reload_class): Force MSA loads/stores via memory.
21605 (mips_preferred_simd_mode): Add preffered modes for MSA.
21606 (mips_vector_mode_supported_p): Add MSA supported modes.
21607 (mips_autovectorize_vector_sizes): New function.
21608 (mips_msa_output_division): Likewise.
21609 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
21610 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
21611 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
21612 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
21613 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
21614 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
21615 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
21616 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
21617 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
21618 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
21619 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
21620 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
21621 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
21622 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
21623 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
21624 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
21625 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
21626 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
21627 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
21628 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
21629 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
21630 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
21631 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
21632 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
21633 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
21634 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
21635 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
21636 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
21637 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
21638 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
21639 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
21640 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
21641 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
21642 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
21643 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
21644 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
21645 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
21646 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
21647 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
21648 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
21649 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
21650 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
21651 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
21652 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
21653 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21654 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21655 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21656 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21657 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21658 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21659 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21660 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21661 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
21662 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
21663 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
21664 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
21665 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21666 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21667 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21668 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21669 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21670 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21671 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21672 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21673 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21674 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21675 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21676 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21677 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21678 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21679 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21680 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21681 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21682 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21683 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21684 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21685 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21686 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21687 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21688 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21689 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21690 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21691 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21692 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21693 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21694 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21695 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21696 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21697 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21698 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21699 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21700 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21701 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21702 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21703 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21704 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21705 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21706 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21707 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21708 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21709 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21710 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21711 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21712 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21713 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21714 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21715 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21716 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21717 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21718 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21719 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21720 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21721 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21722 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21723 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21724 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21725 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21726 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21727 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21728 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21729 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21730 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21731 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21732 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21733 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21734 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21735 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21736 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21737 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21738 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21739 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21740 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21741 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21742 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21743 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21744 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21745 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21746 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21747 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21748 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21749 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21750 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21751 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21752 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21753 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21754 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21755 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21756 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21757 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21758 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21759 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21760 move_v builtins.
21761 (mips_get_builtin_decl_index): New array.
21762 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21763 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21764 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21765 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21766 (mips_init_builtins): Initialize mips_get_builtin_decl_index
21767 array.
21768 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21769 hook.
21770 (mips_expand_builtin_insn): Prepare operands for
21771 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21772 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21773 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21774 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21775 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21776 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21777 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21778 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21779 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21780 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21781 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21782 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21783 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21784 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21785 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21786 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21787 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21788 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21789 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21790 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21791 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21792 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21793 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21794 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21795 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21796 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21797 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21798 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21799 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21800 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21801 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21802 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21803 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21804 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21805 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21806 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21807 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21808 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21809 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21810 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21811 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21812 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21813 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21814 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21815 These are set implicitly and an error is reported if overridden.
21816 (mips_expand_builtin_msa_test_branch): New function.
21817 (mips_expand_msa_shuffle): Likewise.
21818 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21819 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21820 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21821 (mips_expand_vec_unpack): Add support for MSA.
21822 (mips_expand_vector_init): Likewise.
21823 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21824 instead of const0_rtx.
21825 (mips_msa_vec_parallel_const_half): New function.
21826 (mips_gen_const_int_vector): Likewise.
21827 (mips_gen_const_int_vector_shuffle): Likewise.
21828 (mips_expand_msa_cmp): Likewise.
21829 (mips_expand_vec_cond_expr): Likewise.
21830 * config/mips/mips.h
21831 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21832 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21833 specified.
21834 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21835 (ISA_HAS_MSA): New macro.
21836 (UNITS_PER_MSA_REG): Likewise.
21837 (BITS_PER_MSA_REG): Likewise.
21838 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21839 (MSA_REG_FIRST): New macro.
21840 (MSA_REG_LAST): Likewise.
21841 (MSA_REG_NUM): Likewise.
21842 (MSA_REG_P): Likewise.
21843 (MSA_REG_RTX_P): Likewise.
21844 (MSA_SUPPORTED_MODE_P): Likewise.
21845 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21846 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21847 * config/mips/mips.md: Include mips-msa.md.
21848 (alu_type): Add simd_add.
21849 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21850 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21851 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21852 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21853 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21854 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21855 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21856 simd_move, simd_load, simd_store. Choose "multi" for moves
21857 for "qword_mode".
21858 (qword_mode): New attribute.
21859 (insn_count): Add instruction count for quad moves.
21860 Increase the count for MIPS SIMD division.
21861 (UNITMODE): Add UNITMODEs for vector types.
21862 (addsub): New code iterator.
21863 * config/mips/mips.opt (mmsa): New option.
21864 * config/mips/msa.h: New file.
21865 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21866 specified.
21867 * config/mips/mti-linux.h: Likewise.
21868 * config/mips/predicates.md
21869 (const_msa_branch_operand): New constraint.
21870 (const_uimm3_operand): Likewise.
21871 (const_uimm4_operand): Likewise.
21872 (const_uimm5_operand): Likewise.
21873 (const_uimm8_operand): Likewise.
21874 (const_imm5_operand): Likewise.
21875 (aq10b_operand): Likewise.
21876 (aq10h_operand): Likewise.
21877 (aq10w_operand): Likewise.
21878 (aq10d_operand): Likewise.
21879 (const_m1_operand): Likewise.
21880 (reg_or_m1_operand): Likewise.
21881 (const_exp_2_operand): Likewise.
21882 (const_exp_4_operand): Likewise.
21883 (const_exp_8_operand): Likewise.
21884 (const_exp_16_operand): Likewise.
21885 (const_vector_same_val_operand): Likewise.
21886 (const_vector_same_simm5_operand): Likewise.
21887 (const_vector_same_uimm5_operand): Likewise.
21888 (const_vector_same_uimm6_operand): Likewise.
21889 (const_vector_same_uimm8_operand): Likewise.
21890 (par_const_vector_shf_set_operand): Likewise.
21891 (reg_or_vector_same_val_operand): Likewise.
21892 (reg_or_vector_same_simm5_operand): Likewise.
21893 (reg_or_vector_same_uimm6_operand): Likewise.
21894 * doc/extend.texi (MIPS SIMD Architecture Functions): New
21895 section.
21896 * doc/invoke.texi (-mmsa): Document new option.
21897
21898 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21899
21900 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21901 * configure: Regenerate.
21902 * config.in: Regenerate.
21903 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21904 on -fvtable-verify.
21905 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21906 (ENDFILE_VTV_SPEC): Define.
21907
21908 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
21909
21910 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21911 registers in all interrupt handlers if necessary.
21912 (rl78_option_override): Add warning.
21913 (MUST_SAVE_MDUC_REGISTERS): New macro.
21914 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21915 * config/rl78/rl78.c (check_mduc_usage): New function.
21916 (mduc_regs): New structure to hold MDUC register data.
21917 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21918 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21919 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21920 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21921 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21922 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21923
21924 2016-05-09 Bin Cheng <bin.cheng@arm.com>
21925
21926 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21927 (tree-ssa-loop-niter.h): Ditto.
21928 (idx_within_array_bound, ref_within_array_bound): New functions.
21929 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21930 Factor out check on writable base object to ...
21931 (base_object_writable): ... here.
21932
21933 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21934
21935 * config/arm/arm.md (probe_stack): Add modes to set source
21936 and destination.
21937
21938 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
21939
21940 * regrename.c (base_reg_class_for_rename): New static function.
21941 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21942
21943 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
21944
21945 * cgraph.c (thunk_adjust): Export.
21946 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21947 * cgraphunit.c (thunk_adjust): Export.
21948 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21949 thunks.
21950 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21951 inlinable.
21952 * tree-inline.c (expand_call_inline): Expand thunks inline.
21953
21954 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
21955
21956 PR target/70998
21957 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21958 (*sse2_vd_cvtss2sd): Ditto.
21959 * config/i386/i386.md
21960 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21961 Generate *sse2_vd_cvtsd2ss pattern.
21962 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21963 Generate *sse2_vd_cvtss2sd pattern.
21964
21965 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21966
21967 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21968 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
21969 users.
21970
21971 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21972
21973 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
21974 * config/sh/sh.c: Define and declare variables on first use throughout
21975 the file.
21976 (current_function_interrupt): Change to bool type.
21977 (frame_insn): Rename to emit_frame_insn and update users.
21978 (push_regs): Use bool for 'interrupt_handler' argument.
21979 (save_schedule_s): Remove.
21980 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
21981 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
21982 targetm.asm_out.unaligned_op.di.
21983 (gen_far_branch): Remove redundant forward declaration.
21984 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
21985 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
21986 (sh_set_return_address, sh_function_ok_for_sibcall,
21987 scavenge_reg): Update comments.
21988 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
21989 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
21990 (sh_attr_renesas_p): Remove unnecessary parentheses.
21991 (branch_dest): Simplify.
21992 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
21993 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
21994 (CUMULATIVE_ARGS): Change macro to typedef.
21995 (current_function_interrupt): Change to bool type.
21996 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
21997 Surround with __cplusplus ifdef.
21998 (sh_compare_op0, sh_compare_op1): Remove.
21999 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
22000
22001 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
22002
22003 * config/arm/arm.md (arch): Add neon.
22004 (arch_enabled): Return yes for arch neon when TARGET_NEON.
22005 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
22006 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
22007 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
22008 attributes for alt renumbering. Mark alt 3 as non-predicable.
22009 (thumb2_movdf_vfp): Likewise.
22010
22011 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
22012
22013 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
22014 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
22015 (*andqi_1): Add preferred_for_speed attribute to disparage
22016 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
22017 (*<code>qi_1): Ditto.
22018 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
22019 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
22020 (*ashlqi3_1): Ditto.
22021 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
22022 Add preferred_for_size attribute to disparage alternative 0 and
22023 preferred_for_speed attribute to disparage alternative 1 for
22024 TARGET_PARTIAL_REG_STALL targets.
22025
22026 2016-05-07 Tom de Vries <tom@codesourcery.com>
22027
22028 PR tree-optimization/70956
22029 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
22030 def.
22031
22032 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22033
22034 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
22035 * config/sh/sh.c (sh_cbranch_distance): Implement it.
22036 * config/sh/sh.md (branch_zero): Remove define_attr.
22037 (define_delay): Disable delay slot if branch distance is one insn.
22038
22039 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22040
22041 * config/i386/i386.md (LEAMODE): New mode attribute.
22042 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
22043 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
22044 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
22045 operand 2 predicate.
22046 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
22047 (*lea<mode>_general_3): Ditto.
22048 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
22049
22050 2016-05-06 Jakub Jelinek <jakub@redhat.com>
22051
22052 * genmddump.c (main): Convert argv from char ** to const char **.
22053
22054 2016-05-06 David Malcolm <dmalcolm@redhat.com>
22055
22056 * coretypes.h (OVERRIDE): New macro.
22057 (FINAL): New macro.
22058
22059 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
22060
22061 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
22062 allow coalescing if the types are compatible.
22063
22064 2016-05-06 David Malcolm <dmalcolm@redhat.com>
22065
22066 * pass_manager.h (pass_manager::register_pass_name): New method.
22067 (pass_manager::get_pass_by_name): New method.
22068 (pass_manager::create_pass_tab): New method.
22069 (pass_manager::m_name_to_pass_map): New field.
22070 * passes.c (name_to_pass_map): Delete global in favor of field
22071 "m_name_to_pass_map" of pass_manager.
22072 (register_pass_name): Rename from a function to...
22073 (pass_manager::register_pass_name): ...this method, updating
22074 for renaming of global "name_to_pass_map" to field
22075 "m_name_to_pass_map".
22076 (create_pass_tab): Rename from a function to...
22077 (pass_manager::create_pass_tab): ...this method, updating
22078 for renaming of global "name_to_pass_map" to field.
22079 (get_pass_by_name): Rename from a function to...
22080 (pass_manager::get_pass_by_name): ...this method.
22081 (enable_disable_pass): Convert use of get_pass_by_name to
22082 a method call, locating the pass_manager singleton.
22083
22084 2016-05-06 David Malcolm <dmalcolm@redhat.com>
22085
22086 * genattr-common.c (main): Convert argv from char ** to const char **.
22087 * genattr.c (main): Likewise.
22088 * genattrtab.c (main): Likewise.
22089 * genautomata.c (initiate_automaton_gen): Likewise.
22090 (main): Likewise.
22091 * gencodes.c (main): Likewise.
22092 * genconditions.c (main): Likewise.
22093 * genconfig.c (main): Likewise.
22094 * genconstants.c (main): Likewise.
22095 * genemit.c (main): Likewise.
22096 * genenums.c (main): Likewise.
22097 * genextract.c (main): Likewise.
22098 * genflags.c (main): Likewise.
22099 * genmddeps.c (main): Likewise.
22100 * genopinit.c (main): Likewise.
22101 * genoutput.c (main): Likewise.
22102 * genpeep.c (main): Likewise.
22103 * genpreds.c (main): Likewise.
22104 * genrecog.c (main): Likewise.
22105 * gensupport.c (init_rtx_reader_args_cb): Likewise.
22106 (init_rtx_reader_args): Likewise.
22107 * gensupport.h (init_rtx_reader_args_cb): Likewise.
22108 (init_rtx_reader_args): Likewise.
22109 * gentarget-def.c (main): Likewise.
22110 * read-md.c (read_md_files): Likewise.
22111 * read-md.h (read_md_files): Likewise.
22112
22113 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22114
22115 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
22116 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
22117 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
22118 Remove unused predicate.
22119 (register_and_not_fp_reg_operand): Ditto.
22120
22121 2016-05-06 Martin Liska <mliska@suse.cz>
22122
22123 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
22124 instead of vec as the vector is local to the function.
22125
22126 2016-05-06 Jakub Jelinek <jakub@redhat.com>
22127
22128 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
22129 avx512bw alternative.
22130
22131 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
22132 before the ashr<mode>3 pattern.
22133
22134 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
22135 v instead of x in vex or maybe_vex alternatives, use
22136 maybe_evex instead of vex in prefix.
22137
22138 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
22139 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
22140 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
22141 in vex or maybe_vex alternatives, use maybe_evex instead of vex
22142 in prefix.
22143
22144 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
22145 v instead of x in vex or maybe_vex alternatives, use
22146 maybe_evex instead of vex in prefix.
22147
22148 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
22149 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
22150 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
22151 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
22152 alternatives, use maybe_evex instead of vex in prefix.
22153
22154 * config/i386/sse.md (vec_interleave_lowv4sf,
22155 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
22156 v instead of x in vex or maybe_vex alternatives, use
22157 maybe_evex instead of vex in prefix.
22158
22159 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
22160 v instead of x in vex or maybe_vex alternatives, use
22161 maybe_evex instead of vex in prefix.
22162
22163 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
22164 v constraint instead of x.
22165
22166 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
22167
22168 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
22169 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
22170 equality first.
22171
22172 2016-05-06 Richard Biener <rguenther@suse.de>
22173
22174 PR tree-optimization/70948
22175 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22176 Properly clobber all fields of va_list for __builtin_va_start.
22177
22178 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
22179
22180 PR debug/70935
22181 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
22182 loop latch destination.
22183
22184 2016-05-06 Martin Liska <mliska@suse.cz>
22185
22186 * tree-ssa-uninit.c: Apply manual changes
22187 to the GNU coding style.
22188 (prune_uninit_phi_opnds): Rename from
22189 prune_uninit_phi_opnds_in_unrealizable_paths.
22190
22191 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22192
22193 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
22194 mspace): Remove deprecated options.
22195 * doc/invoke.texi (SH options): Remove -mspace.
22196
22197 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22198
22199 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
22200
22201 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22202
22203 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
22204 corresponding combine split pattern.
22205
22206 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22207
22208 PR target/58219
22209 * config/sh/predicates.md (long_displacement_mem_operand): New.
22210 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
22211 Add movi20, movi20s alternatives. Adjust length attribute for
22212 alternatives.
22213 (movsi_ie): Allow for any FPU. Adjust length attribute for
22214 alternatives.
22215 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
22216 attribute for alternatives.
22217 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
22218 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
22219 length attribute for alternatives.
22220
22221 2016-05-06 Richard Biener <rguenther@suse.de>
22222
22223 PR tree-optimization/70960
22224 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
22225
22226 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22227
22228 PR target/52933
22229 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
22230 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
22231
22232 2016-05-06 Marek Polacek <polacek@redhat.com>
22233
22234 PR sanitizer/70875
22235 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
22236
22237 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22238
22239 PR target/54089
22240 * config/sh/sh.md (*rotcr): Add another variant.
22241
22242 2016-05-06 Richard Biener <rguenther@suse.de>
22243
22244 PR middle-end/70931
22245 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
22246
22247 2016-05-06 Richard Biener <rguenther@suse.de>
22248
22249 PR middle-end/70941
22250 * fold-const.c (split_tree): Always convert to the original type
22251 before negating.
22252
22253 2016-05-06 Richard Biener <rguenther@suse.de>
22254
22255 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
22256 (fwprop_addr): Likewise.
22257
22258 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22259
22260 PR target/70873
22261 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
22262 New prototype.
22263 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
22264 * config/i386/i386.md (push mem splitter): Use find_constant_src in
22265 the splitter condition.
22266 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
22267 the splitter condition.
22268 (FP float_extend load splitter): Ditto.
22269
22270 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
22271
22272 * config/i386/i386.md (peehole2 patterns): Change true_regnum
22273 to REGNO in all peephole2 patterns.
22274 (post-reload splitters): Change true_regnum to REGNO in
22275 post-reload splitters.
22276 (zero_extend splitters): Use general_reg_operand and
22277 nonimmediate_gr_operand predicates.
22278
22279 2016-05-05 Jakub Jelinek <jakub@redhat.com>
22280
22281 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
22282 v constraint instead of x.
22283
22284 2016-05-05 Alan Modra <amodra@gmail.com>
22285
22286 PR target/68662
22287 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
22288 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
22289 TARGET_NO_FP_IN_TOC for -mrelocatable.
22290 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
22291 TARGET_RELOCATABLE test.
22292 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22293 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22294 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22295 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22296 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22297 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22298 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22299 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22300 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
22301 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22302 Likewise.
22303 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
22304 (rs6000_stack_info): Likewise.
22305 (rs6000_elf_asm_out_constructor): Likewise.
22306 (rs6000_elf_asm_out_destructor): Likewise.
22307 (rs6000_elf_declare_function_name): Likewise.
22308 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
22309 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
22310 Don't define.
22311
22312 2016-05-05 Alan Modra <amodra@gmail.com>
22313
22314 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
22315
22316 2016-05-05 Alan Modra <amodra@gmail.com>
22317
22318 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
22319 out-of-line gpr restore for one or two regs if that would add
22320 a save of lr.
22321
22322 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
22323
22324 PR target/70873
22325 * config/i386/i386.md
22326 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
22327 Change to post-epilogue_completed late splitter. Use sse_reg_operand
22328 as operand 0 predicate.
22329 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
22330 Ditto.
22331 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
22332 Ditto. Emit the pattern using RTX.
22333
22334 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
22335 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
22336 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
22337 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
22338 Ditto.
22339 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
22340 sse_reg_operand as operand 0 predicate.
22341
22342 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
22343 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
22344 instead of gen_rtx_REG.
22345 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
22346 Ditto.
22347
22348 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22349
22350 * function.c (emit_use_return_register_into_block): Delete.
22351 (gen_return_pattern): Delete.
22352 (emit_return_into_block): Delete.
22353 (active_insn_between): Delete.
22354 (convert_jumps_to_returns): Delete.
22355 (emit_return_for_exit): Delete.
22356 (thread_prologue_and_epilogue_insns): Delete all code dealing with
22357 simple_return for shrink-wrapped blocks.
22358 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
22359 end of blocks that need one.
22360 (get_unconverted_simple_return): Delete.
22361 (convert_to_simple_return): Delete.
22362 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
22363 (convert_to_simple_return): Ditto.
22364
22365 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22366
22367 * cfgcleanup.c (bb_is_just_return): New function.
22368 (try_optimize_cfg): Simplify jumps to return, branches to return,
22369 and branches around return.
22370
22371 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22372
22373 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
22374 branch to a return.
22375
22376 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22377
22378 PR c++/70906
22379 PR c++/70933
22380 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
22381 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
22382 assert flags & OEP_HASH_CHECK, instead of asserting it
22383 never happens. Handle TARGET_EXPR.
22384 * fold-const.c (operand_equal_p): For hash verification,
22385 or in OEP_HASH_CHECK into flags.
22386
22387 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
22388
22389 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
22390 comment.
22391 (compute_samebase_partition_bases): Fix typo.
22392
22393 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22394
22395 * config/i386/sse.md (vec_interleave_highv8sf,
22396 vec_interleave_lowv8sf, vec_interleave_highv4df,
22397 vec_interleave_lowv4df): Remove constraints from expanders.
22398
22399 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
22400
22401 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22402
22403 * tree-inline.c (expand_call_inline): Fix path dealing with
22404 making lhs of call statement undefined.
22405
22406 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22407
22408 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22409 Check availability on NODE, too.
22410 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
22411 (cgraph_node::call_for_symbol_and_aliases): Likewise.
22412 (varpool_node::call_for_symbol_and_aliase): Likewise.
22413 * ipa-pure-const.c (add_new_function): Analyze all bodies.
22414 (propagate_pure_const): Propagate across interposable functions, too.
22415 (skip_function_for_local_pure_const): Do not skip interposable bodies
22416 with aliases.
22417 (pass_local_pure_const::execute): Update.
22418
22419 2016-05-04 Marek Polacek <polacek@redhat.com>
22420
22421 * doc/invoke.texi: Document -Wdangling-else.
22422
22423 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22424
22425 * config.gcc: Error out when conflicting multilib is detected. Do not
22426 loop over multilibs since no combination is legal.
22427
22428 2016-05-04 Alan Modra <amodra@gmail.com>
22429
22430 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
22431 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
22432 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22433 Align .toc.
22434
22435 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
22436
22437 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
22438 Clean up p5600 comments.
22439
22440 2016-05-04 Richard Biener <rguenther@suse.de>
22441
22442 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
22443 constructor simplifications.
22444 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
22445
22446 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
22447
22448 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
22449 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
22450 result.set_rtx is null instead of aborting.
22451 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
22452 Always enable.
22453 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
22454 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
22455 *mov<mode>_store_postinc): New patterns.
22456
22457 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
22458
22459 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
22460 as commutative. Check both conversions are NOP.
22461 ((A & B) OP (C & B)): Remove.
22462
22463 2016-05-04 Alan Modra <amodra@gmail.com>
22464
22465 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
22466
22467 2016-05-04 Alan Modra <amodra@gmail.com>
22468
22469 PR target/70866
22470 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
22471 when cr2,3,4 are all fixed regs.
22472
22473 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
22474
22475 PR rtl-optimization/57193
22476 * opts.c (default_options_table): Revert OPT_frename_registers change.
22477 * doc/invoke.texi (-frename-registers, -O2): Likewise.
22478
22479 2016-05-03 Martin Sebor <msebor@redhat.com>
22480
22481 PR c++/66561
22482 * builtins.c (fold_builtin_FILE): New function.
22483 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
22484 (fold_builtin_0): Call them.
22485 * gimplify.c (gimplify_call_expr): Remove the handling of
22486 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
22487
22488 PR c++/66561
22489 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
22490 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
22491 constants.
22492
22493 PR c++/66639
22494 * doc/extend.texi (Function Names as Strings): Update __func__,
22495 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
22496 constants.
22497
22498 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22499 Richard Biener <rguenther@suse.de>
22500
22501 PR tree-optimization/70916
22502 * tree-if-conv.c: Include cfganal.h.
22503 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
22504 and remove_fake_exit_edges around the optimization pass.
22505
22506 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
22507
22508 * cgraph.c (symbol_table::create_edge): Set inline_failed.
22509 (cgraph_edge::make_direct): Likewise.
22510 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
22511 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
22512 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
22513 (CIF_THUNK): New code.
22514 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
22515 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
22516 (compute_inline_parameters): Set inline_failed for thunks.
22517 (inline_analyze_function): Cleanup.
22518 * ipa-inline.c (can_inline_edge_p): Do not deal with
22519 call_stmt_cannot_inline_p.
22520 (can_early_inline_edge_p): Likewise.
22521 (early_inliner): Initialize inline_failed.
22522 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
22523
22524 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
22525
22526 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22527 from nonimm_ssenomem_operand.
22528 (nonimm_ssenomem_operand): New predicate.
22529 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
22530 as operand 0 predicate.
22531 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
22532 Disable unsupported alternatives using "enabled" attribute.
22533 Use register_ssemem_operand as operand 0 predicate.
22534 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
22535
22536 2016-05-03 Marek Polacek <polacek@redhat.com>
22537
22538 PR c/70859
22539 * input.c (expansion_point_location): New function.
22540 * input.h (expansion_point_location): Declare.
22541
22542 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
22543
22544 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
22545 occurence with frame_offset_ ones.
22546
22547 2016-05-03 Alan Modra <amodra@gmail.com>
22548
22549 PR rtl-optimization/70890
22550 * ira.c (combine_and_move_insns): When moving def_insn, remove
22551 equivs on use_insn.
22552
22553 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
22554
22555 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
22556 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
22557 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
22558 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
22559
22560 2016-05-03 Alan Modra <amodra@gmail.com>
22561
22562 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
22563 for SAVE_MULTIPLE/STORE_MULTIPLE.
22564
22565 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22566
22567 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
22568 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
22569
22570 2016-05-03 Richard Biener <rguenther@suse.de>
22571
22572 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
22573 default true.
22574 (gimplify_arg): Likewise.
22575 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
22576 re-writing the result to a decl if required.
22577 (internal_get_tmp_var): Add allow_ssa parameter
22578 and override into_ssa with it.
22579 (get_formal_tmp_var): Adjust.
22580 (get_initialized_tmp_var): Add allow_ssa parameter.
22581 (gimplify_arg): Add allow_ssa parameter and avoid generating
22582 SSA names for the result false.
22583 (gimplify_call_expr): If the call may return twice do not
22584 gimplify parameters into SSA.
22585 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
22586 (gimplify_modify_expr): Adjust assert. For noreturn calls
22587 with a SSA name LHS adjust its def.
22588 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
22589 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
22590 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
22591 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
22592 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
22593 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
22594 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
22595 (optimize_target_teams): Do not allow SSA names for clause operands.
22596 (gimplify_expr): Likewise for where we mark the result addressable.
22597 * passes.def (pass_init_datastructures): Remove.
22598 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
22599 (rewrite_stmt): Likewise.
22600 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
22601 (replace_locals_op): Replace SSA names.
22602 (copy_gimple_seq_and_replace_locals): Init src_cfun.
22603 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
22604 * cgraph.c (release_function_body): Free CFG annotations only
22605 when we have a CFG. Simplify.
22606 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
22607 force_gimple_operand instead of get_initialized_tmp_var.
22608 * tree-pass.h (make_pass_init_datastructures): Remove.
22609 * tree-ssa.c (execute_init_datastructures): Remove.
22610 (pass_data_init_datastructures): Likewise.
22611 (class pass_init_datastructures): Likewise.
22612 (make_pass_init_datastructures): Likewise.
22613 * omp-low.c (create_omp_child_function): Init SSA data structures.
22614 (grid_expand_target_grid_body): Likewise.
22615 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
22616 name before adding it to names_to_release.
22617 (remove_bb): Always release SSA defs.
22618 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
22619 before dereferencing it.
22620 * cgraphunit.c (init_lowered_empty_function): Always
22621 int SSA data structures.
22622 * tree-ssanames.c (release_defs): Remove assert that we are in
22623 SSA form.
22624 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
22625
22626 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22627 Uros Bizjak <ubizjak@gmail.com>
22628
22629 PR rtl-optimization/70467
22630 * config/i386/predicates.md (x86_64_hilo_int_operand,
22631 x86_64_hilo_general_operand): New predicates.
22632 * config/i386/constraints.md (Wd): New constraint.
22633 * config/i386/i386.md (mode attr di): Use Wd instead of e.
22634 (general_hilo_operand): New mode attr.
22635 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
22636 instead of <general_operand>.
22637 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
22638 x86_64_hilo_general_operand instead of <general_operand>.
22639
22640 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22641
22642 PR tree-optimization/70916
22643 * tree-if-conv.c (constant_or_ssa_name): Removed.
22644 (fold_build_cond_expr): Use is_gimple_val instead of
22645 constant_or_ssa_name.
22646
22647 PR tree-optimization/70916
22648 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
22649 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
22650
22651 PR target/49244
22652 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
22653 (optimize_atomic_bit_test_and): New function.
22654 (pass_fold_builtins::execute): Use it.
22655 * optabs.def (atomic_bit_test_and_set_optab,
22656 atomic_bit_test_and_complement_optab,
22657 atomic_bit_test_and_reset_optab): New optabs.
22658 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
22659 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
22660 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
22661 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
22662 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
22663 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
22664 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
22665 * doc/md.texi (atomic_bit_test_and_set@var{mode},
22666 atomic_bit_test_and_complement@var{mode},
22667 atomic_bit_test_and_reset@var{mode}): Document.
22668 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22669 atomic_bit_test_and_complement<mode>,
22670 atomic_bit_test_and_reset<mode>): New expanders.
22671 (atomic_bit_test_and_set<mode>_1,
22672 atomic_bit_test_and_complement<mode>_1,
22673 atomic_bit_test_and_reset<mode>_1): New insns.
22674
22675 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
22676
22677 PR rtl-optimization/70687
22678 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
22679 instead of unsigned HOST_WIDE_INT.
22680
22681 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
22682
22683 PR rtl-optimization/44281
22684 * hard-reg-set.h (struct target_hard_regs): New field
22685 x_fixed_nonglobal_reg_set.
22686 (fixed_nonglobal_reg_set): New macro.
22687 * reginfo.c (init_reg_sets_1): Initialize it.
22688 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22689 of fixed_reg_set.
22690 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22691
22692 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22693
22694 PR tree-optimization/56541
22695 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22696 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22697 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22698 (any_complicated_phi): new static variable.
22699 (aggressive_if_conv): delete.
22700 (if_convertible_phi_p): support phis with more than two arguments.
22701 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22702 critical pred edges.
22703 (ifcvt_split_critical_edges): support phis with more than two
22704 arguments by checking new parameter. only split critical edges
22705 if needed.
22706 (tree_if_conversion): handle simd pragma marked loop using new
22707 local variable aggressive_if_conv. check any_complicated_phi.
22708
22709 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22710
22711 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22712 before using it.
22713
22714 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22715
22716 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22717 cbase.
22718
22719 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22720
22721 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22722 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22723 define_insn_and_split.
22724 (mulsi3_i): New define_insn_and_split.
22725 (mulsi3_call): Convert to define_insn.
22726 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22727 Remove constraints.
22728
22729 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22730
22731 * machmode.h (mode_complex): Add support to give the complex mode
22732 for a given mode.
22733 (GET_MODE_COMPLEX_MODE): Likewise.
22734 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22735 stored by build_complex_type and gfc_build_complex_type instead of
22736 trying to figure out the appropriate mode based on the size. Raise
22737 an assertion error, if the type was not set.
22738 * genmodes.c (struct mode_data): Add field for the complex type of
22739 the given type.
22740 (blank_mode): Likewise.
22741 (make_complex_modes): Remember the complex mode created in the
22742 base type.
22743 (emit_mode_complex): Write out the mode_complex array to map a
22744 type mode to the complex version.
22745 (emit_insn_modes_c): Likewise.
22746 * tree.c (build_complex_type): Set the complex type to use before
22747 calling layout_type.
22748 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22749 support for __float128 complex datatypes.
22750 (rs6000_hard_regno_mode_ok): Likewise.
22751 (rs6000_setup_reg_addr_masks): Likewise.
22752 (rs6000_complex_function_value): Likewise.
22753 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22754 __float128 and __ibm128 complex.
22755 (FLOAT128_IBM_P): Likewise.
22756 (ALTIVEC_ARG_MAX_RETURN): Likewise.
22757 * doc/extend.texi (Additional Floating Types): Document that
22758 -mfloat128 must be used to enable __float128. Document complex
22759 __float128 and __ibm128 support.
22760
22761 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22762
22763 PR target/49244
22764 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22765 char/short arguments promoted to int because of promote_prototypes.
22766
22767 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22768
22769 * config/i386/predicates.md (register_ssemem_operand): New predicate.
22770 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22771 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22772 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
22773 alternatives using "enabled" attribute. Use register_ssemem_operand
22774 as operand 1 predicate.
22775 (*cmpi<unord>xf_i387): Split XFmode pattern from
22776 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22777 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22778 *absneg<mode>2_i387. Disable unsupported alternatives using
22779 "enabled" attribute.
22780 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22781
22782 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22783
22784 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22785 marker.
22786 (oacc_loop_process): Check mask for loop termination.
22787
22788 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22789
22790 * cif-code.def (CIF_THUNK): Add.
22791 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22792 accidental change.
22793
22794 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22795
22796 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22797 (dump_inline_summary): Dump it.
22798 (fp_expression_p): New predicate.
22799 (estimate_function_body_sizes): Use it.
22800 (inline_merge_summary): Merge fp_expressions.
22801 (inline_read_section): Read fp_expressions.
22802 (inline_write_summary): Write fp_expressions.
22803 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22804 codegen boundary if either caller or callee is !fp_expressions.
22805 * ipa-inline.h (inline_summary): Add fp_expressions.
22806 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22807 to fp_expressions be sure the fp generation flags are updated.
22808
22809 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22810
22811 PR rtl-optimization/70467
22812 * cse.c (cse_insn): Handle no-op MEM moves after folding.
22813
22814 PR rtl-optimization/70467
22815 * ipa-pure-const.c (check_call): Handle internal calls even in
22816 ipa mode like in local mode.
22817
22818 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22819
22820 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22821
22822 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22823
22824 * match.pd (X u< X, X u> X): New transformations.
22825
22826 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22827
22828 * flag-types.h (enum warn_strict_overflow_code): Move ...
22829 * coretypes.h: ... here.
22830 * fold-const.h (fold_overflow_warning): Declare.
22831 * fold-const.c (fold_overflow_warning): Make non-static.
22832 (fold_comparison): Move the transformation of X +- C1 CMP C2
22833 into X CMP C2 -+ C1 ...
22834 * match.pd: ... here.
22835 * gimple-fold.c (fold_stmt_1): Protect with
22836 fold_defer_overflow_warnings.
22837
22838 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22839
22840 * omp-low.c (struct oacc_loop): Add 'inner' field.
22841 (new_oacc_loop_raw): Initialize it to zero.
22842 (oacc_loop_fixed_partitions): Initialize it.
22843 (oacc_loop_auto_partitions): Partition outermost loop to outermost
22844 available partitioning.
22845
22846 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22847
22848 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22849 register_operand.
22850 (umulsidi3): Likewise.
22851 (indirect_jump): Fix jump instruction assembly patterns.
22852
22853 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
22854
22855 PR target/70860
22856 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22857 (nvptx_function_value): Assert non-NULL cfun.
22858
22859 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
22860
22861 PR rtl-optimization/70886
22862 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22863
22864 * cselib.h (rtx_equal_for_cselib_1): Declare.
22865 (rtx_equal_for_cselib_p: New inline function.
22866 * cselib.c (rtx_equal_for_cselib_p): Delete.
22867 (rtx_equal_for_cselib_1): Make public.
22868
22869 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22870
22871 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22872 (register_mixssei387nonimm_operand): Remove predicate.
22873 * config/i386/i386.md (*fop_<mode>_comm): Merge from
22874 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
22875 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
22876 for TARGET_MIX_SSE_I387 alternatives.
22877 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22878 Disable unsupported alternatives using "enabled" attribute. Use
22879 nonimm_ssenomem_operand as operand 1 predicate. Also check
22880 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22881
22882 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22883
22884 * tree.c (cst_and_fits_in_hwi): Simplify.
22885
22886 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22887
22888 * tree.h (wi::to_wide): New function.
22889 * expr.c (expand_expr_real_1): Use wi::to_wide.
22890 * fold-const.c (int_const_binop_1): Likewise.
22891 (extract_muldiv_1): Likewise.
22892
22893 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22894
22895 * wide-int.h: Update offset_int and widest_int documentation.
22896 (WI_SIGNED_SHIFT_RESULT): New macro.
22897 (wi::binary_shift): Define signed_shift_result_type for
22898 shifts on offset_int- and widest_int-like types.
22899 (generic_wide_int): Support <<= and >>= if << and >> are supported.
22900 * tree.h (int_bit_position): Use shift operators instead of wi::
22901 shifts.
22902 * alias.c (adjust_offset_for_component_ref): Likewise.
22903 * expr.c (get_inner_reference): Likewise.
22904 * fold-const.c (fold_comparison): Likewise.
22905 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22906 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22907 * tree-dfa.c (get_ref_base_and_extent): Likewise.
22908 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22909 (stmt_kills_ref_p): Likewise.
22910 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22911 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22912 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22913 (ao_ref_init_from_vn_reference): Likewise.
22914
22915 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22916
22917 * wide-int.h: Update offset_int and widest_int documentation.
22918 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22919 (wi::binary_traits): Allow ordered comparisons between offset_int and
22920 offset_int, between widest_int and widest_int, and between either
22921 of these types and basic C types.
22922 (operator <, <=, >, >=): Define for the same combinations.
22923 * tree.h (tree_int_cst_lt): Use comparison operators instead
22924 of wi:: comparisons.
22925 (tree_int_cst_le): Likewise.
22926 * gimple-fold.c (fold_array_ctor_reference): Likewise.
22927 (fold_nonarray_ctor_reference): Likewise.
22928 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22929 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22930 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22931 * tree-sra.c (completely_scalarize): Likewise.
22932 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22933 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22934 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22935 (check_for_binary_op_overflow): Likewise.
22936 (search_for_addr_array): Likewise.
22937 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22938
22939 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22940
22941 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22942 (arc_save_restore): Likewise.
22943 (arc_dwarf_register_span): Likewise.
22944 (arc_output_pic_addr_const): Initialize suffix variable.
22945
22946 2016-05-02 Martin Liska <mliska@suse.cz>
22947
22948 * symbol-summary.h (function_summary::function_summary):
22949 Remove checking assert for all cgraph nodes.
22950 (function_summary::get): Check summary_uid.
22951 (symtab_insertion): Check summary_uid.
22952
22953 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22954
22955 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22956 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22957 bmaskn instruction.
22958 (arc_dwarf_register_span): Remove enum keyword.
22959 (compact_memory_operand_p): New function.
22960 * config/arc/arc.h (reg_class): Add code density register classes.
22961 (REG_CLASS_NAMES): Likewise.
22962 (REG_CLASS_CONTENTS): Likewise.
22963 * config/arc/arc.md (*movqi_insn): Add code density instructions.
22964 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22965 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22966 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22967 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22968 constraints.
22969 (h, Rcd, Rsd, Rzd): New register constraints.
22970 (T): Use compact_memory_operand_p function.
22971 * config/arc/predicates.md (compact_load_memory_operand): Remove.
22972
22973 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22974
22975 * config/sh/sh.md (*negnegt, *movtt): Remove.
22976
22977 2016-05-02 Marek Polacek <polacek@redhat.com>
22978 Tom de Vries <tom@codesourcery.com>
22979
22980 PR tree-optimization/70700
22981 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
22982 bigger than FIRST_REF_NODE.
22983
22984 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22985
22986 PR target/52898
22987 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
22988 TARGET_CMPEQDI_T.
22989 (prepare_cbranch_operands): Don't use scratch register. Assume that
22990 function is used when pseudos can be created.
22991 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
22992 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
22993 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
22994 define_expand. Allow it only when pseudos can be created.
22995 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
22996
22997 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
22998
22999 * config/i386/constraints.md (BC): Only allow -1 operands.
23000 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
23001 Add "enabled" attribute. Update XI mode attribute calculation.
23002 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
23003 (*movoi_internal_avx): Update XI mode attribute calculation.
23004 (*movti_internal): Ditto.
23005
23006 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
23007
23008 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
23009 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
23010
23011 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
23012
23013 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
23014 statement on instruction code. Remove trailing spaces.
23015 (altivec_expand_stv_builtin): Likewise.
23016
23017 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
23018
23019 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
23020 (TARGET_FPU_DOUBLE): Simplify.
23021 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
23022 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
23023 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
23024 with 'TARGET_FPU_DOUBLE'.
23025 * config/sh/sh.md: Likewise.
23026
23027 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
23028
23029 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
23030 SH_DIV_STR_FOR_SIZE): Remove.
23031 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
23032 SH_DIV_STR_FOR_SIZE): Remove.
23033
23034 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
23035
23036 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
23037 logical_reg_operand): Delete.
23038 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
23039 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
23040 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
23041 match_operand and match_test.
23042 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
23043 variables on their first use. Return bool values.
23044 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
23045 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
23046 arith_reg_operand for input operand. Remove empty constraints.
23047 (xorsi3): Delete.
23048 (*xorsi3_compact): Rename to xorsi3.
23049 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
23050 (*zero_extend<mode>si2_disp_mem): Update comment.
23051 (mov_nop): Delete.
23052
23053 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
23054
23055 * config/sh/t-sh: Remove SH5 support.
23056 * config.gcc: Likewise.
23057 * configure: Likewise.
23058
23059 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23060
23061 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
23062
23063 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
23064
23065 * config/sh/sh.c (register_sh_passes, sh_option_override,
23066 sh_print_operand, prepare_move_operands,
23067 sh_can_follow_jump): Remove TARGET_SH1 checks.
23068 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
23069 PROMOTE_MODE): Likewise.
23070 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
23071 movdi): Likewise.
23072
23073 2016-04-30 Alan Modra <amodra@gmail.com>
23074
23075 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
23076 restoring when fixed_reg_p, but allow out-of-line or stmw save.
23077 Check for user regs later to avoid unnecessary looping over regs.
23078 Merge user reg check with non-saved reg check. Don't force
23079 inline VR restore when static chain used.
23080 (rs6000_frame_related): Omit eh_frame info for user regs when
23081 saving.
23082 (fixed_regs_p): Delete.
23083
23084 2016-04-30 Alan Modra <amodra@gmail.com>
23085
23086 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
23087 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
23088 Update all uses.
23089
23090 2016-04-30 Alan Modra <amodra@gmail.com>
23091
23092 PR target/69645
23093 * config/rs6000/rs6000.c (fixed_reg_p): New function.
23094 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
23095 Update all uses.
23096
23097 2016-04-30 Alan Modra <amodra@gmail.com>
23098
23099 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
23100 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
23101 flag_pic test for Darwin.
23102
23103 2016-04-30 Alan Modra <amodra@gmail.com>
23104
23105 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
23106 throw_calls_crossed.
23107 (REG_FREQ_CALLS_CROSSED): Delete.
23108 (REG_N_THROWING_CALLS_CROSSED): Delete.
23109 * regstat.c (regstat_bb_compute_ri): Don't calculate
23110 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
23111 (dump_reg_info): Don't print call cross frequency.
23112 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
23113 and REG_N_THROWING_CALLS_CROSSED.
23114
23115 2016-04-30 Alan Modra <amodra@gmail.com>
23116
23117 * regs.h (struct reg_info_t): Delete live_length.
23118 (REG_LIVE_LENGTH): Delete macro.
23119 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
23120 local_live, local_processed and local_live_last_luid params.
23121 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
23122 Formatting fixes.
23123 (regstat_compute_ri): Adjust for above. Don't set
23124 REG_LIVE_LENGTH.
23125 (dump_reg_info): Don't print live length.
23126 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
23127 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
23128 Localize loop_depth var.
23129
23130 2016-04-30 Alan Modra <amodra@gmail.com>
23131
23132 * ira.c (enum valid_equiv): New.
23133 (validate_equiv_mem): Return enum.
23134 (update_equiv_mem): Create replacement in more cases.
23135 (add_store_equivs): Update validate_equiv_mem call.
23136
23137 2016-04-30 Alan Modra <amodra@gmail.com>
23138
23139 * ira.c (combine_and_move_insns): Rather than scanning insns,
23140 use DF infrastucture to find use and def insns.
23141
23142 2016-04-30 Alan Modra <amodra@gmail.com>
23143
23144 ira.c (combine_and_move_insns): Move invariant conditions..
23145 (ira.c): ..to here. Call combine_and_move_insns before
23146 add_store_equivs. Call grow_reg_equivs later. Allocate
23147 req_equiv later using max_reg_num() rather than global max_regno.
23148 (contains_replace_regs): Delete.
23149 (add_store_equivs): Remove contains_replace_regs test.
23150
23151 2016-04-30 Alan Modra <amodra@gmail.com>
23152
23153 * ira.c (struct equiv_mem_data): New.
23154 (equiv_mem, equiv_mem_modified): Delete static vars.
23155 (validate_equiv_mem_from_store): Use "data" param to communicate..
23156 (validate_equiv_mem): ..from here.
23157
23158 2016-04-30 Alan Modra <amodra@gmail.com>
23159
23160 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
23161 split out from..
23162 (update_reg_equivs): ..here. Move allocation and freeing of
23163 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
23164 end_alias_analysis to..
23165 (ira): ..here.
23166
23167 2016-04-30 Alan Modra <amodra@gmail.com>
23168
23169 * ira.c (pdx_subregs): Delete.
23170 (struct equivalence): Add pdx_subregs field.
23171 (set_paradoxical_subreg): Remove pdx_subregs param. Update
23172 pdx_subregs access.
23173 (update_equiv_regs): Don't create or free pdx_subregs. Update
23174 pdx_subregs access.
23175
23176 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23177
23178 * config/rs6000/altivec.h: Change definitions of vec_xl and
23179 vec_xst.
23180 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
23181 (LD_ELEMREV_V2DI): New.
23182 (LD_ELEMREV_V4SF): New.
23183 (LD_ELEMREV_V4SI): New.
23184 (LD_ELEMREV_V8HI): New.
23185 (LD_ELEMREV_V16QI): New.
23186 (ST_ELEMREV_V2DF): New.
23187 (ST_ELEMREV_V2DI): New.
23188 (ST_ELEMREV_V4SF): New.
23189 (ST_ELEMREV_V4SI): New.
23190 (ST_ELEMREV_V8HI): New.
23191 (ST_ELEMREV_V16QI): New.
23192 (XL): New.
23193 (XST): New.
23194 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23195 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
23196 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
23197 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
23198 (altivec_expand_builtin): Add handling for
23199 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
23200 (rs6000_invalid_builtin): Add error-checking for
23201 RS6000_BTM_P9_VECTOR.
23202 (altivec_init_builtins): Define builtins used to implement vec_xl
23203 and vec_xst.
23204 (rs6000_builtin_mask_names): Define power9-vector.
23205 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
23206 (RS6000_BTM_P9_VECTOR): Define.
23207 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
23208 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
23209 (vsx_ld_elemrev_v2df): Likewise.
23210 (vsx_ld_elemrev_v4sf): Likewise.
23211 (vsx_ld_elemrev_v4si): Likewise.
23212 (vsx_ld_elemrev_v8hi): Likewise.
23213 (vsx_ld_elemrev_v16qi): Likewise.
23214 (vsx_st_elemrev_v2df): Likewise.
23215 (vsx_st_elemrev_v2di): Likewise.
23216 (vsx_st_elemrev_v4sf): Likewise.
23217 (vsx_st_elemrev_v4si): Likewise.
23218 (vsx_st_elemrev_v8hi): Likewise.
23219 (vsx_st_elemrev_v16qi): Likewise.
23220 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
23221 grammar.
23222
23223 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
23224
23225 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
23226 out into ...
23227 (simplify_control_stmt_condition_1): ... here. Recurse into
23228 BIT_AND_EXPRs and BIT_IOR_EXPRs.
23229
23230 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
23231
23232 PR target/69810
23233 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
23234 (zero_extendqi<mode>2_dot): Revert earlier conversion from
23235 define_insn_and_split to define_insn.
23236 (zero_extendqi<mode>2_dot2): Same.
23237 (extendqi<mode>2_dot): Same.
23238 (extendqi<mode>2_dot2): Same.
23239
23240 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23241
23242 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
23243 (probe_stack): New expander.
23244 (probe_stack_<mode>): New insn pattern.
23245
23246 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23247
23248 * config/i386/i386.md
23249 (operations with memory inputs setting flags peephole2):
23250 Remove uneeded REG_P checks. Cleanup pattern generation.
23251
23252 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
23253
23254 * tree-vect-loop.c (vect_transform_loop): Fix
23255 nb_iterations_upper_bound computation for vectorized loop.
23256
23257 2016-04-29 Marek Polacek <polacek@redhat.com>
23258 Jakub Jelinek <jakub@redhat.com>
23259
23260 PR sanitizer/70342
23261 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
23262 TARGET_EXPR_SLOT as a base.
23263
23264 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
23265
23266 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
23267 with 'rCm2' constraints to limit possible immediate size.
23268 (*load_zeroextendqisi_update): Likewise.
23269 (*load_signextendqisi_update): Likewise.
23270 (*loadhi_update): Likewise.
23271 (*load_zeroextendhisi_update): Likewise.
23272 (*load_signextendhisi_update): Likewise.
23273 (*loadsi_update): Likewise.
23274 (*loadsf_update): Likewise.
23275
23276 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23277
23278 * config/i386/predicates.md (constm1_operand): Fix comparison.
23279
23280 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23281
23282 * testsuite/gcc.target/arc/ieee_eq.c: New test.
23283
23284 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
23285
23286 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
23287 remaining SH5 related settings.
23288 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
23289 shmedia_prepare_call_address): Delete.
23290 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
23291 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
23292 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
23293 UNSUPPORTED_SH2A): Remove m5 checks.
23294 (sh_divide_strategy_e): Remove SH5 division strategies.
23295 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
23296 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
23297
23298 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23299
23300 * config/s390/s390.c (s390_rtx_costs): Update documentation.
23301
23302 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23303
23304 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
23305 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
23306 Change lder to ldr.
23307 * config/s390/vector.md ("mov<mode>"): Likewise.
23308
23309 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
23310
23311 * config/s390/constraints.md ("U", "W"): Invoke
23312 s390_mem_constraint with "ZR" and "ZT".
23313 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
23314 addresses when using LRA. Accept also short displacements for S
23315 and T constraints. Do not check for long displacement target for
23316 S and T constraints.
23317 (s390_mem_constraint): Remove handling of U and W constraints.
23318 * config/s390/s390.md (various patterns): Remove the short
23319 displacement constraints (Q and R) if a long displacement
23320 constraint is present. Add longdisp as required CPU capability.
23321 * config/s390/vector.md: Likewise.
23322 * config/s390/vx-builtins.md: Likewise.
23323
23324 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23325
23326 PR target/60040
23327 * reload1.c (reload): Call finish_spills before
23328 restarting reload loop. Skip select_reload_regs
23329 if update_eliminables_and_spill returns true.
23330
23331 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23332
23333 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
23334 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
23335 (umulhisi3_imm): Update predicates and constraint letters.
23336 (umulhisi3_reg): Declare instruction as commutative.
23337 * config/arc/constraints.md (J12, J16): New constraints.
23338 * config/arc/predicates.md (short_unsigned_const_operand): New
23339 predicate.
23340 (arc_short_operand): Likewise.
23341 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
23342
23343 2016-04-29 Richard Biener <rguenther@suse.de>
23344
23345 PR tree-optimization/13962
23346 PR tree-optimization/65686
23347 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
23348 * tree-ssa-alias.c (ptrs_compare_unequal): New function
23349 using PTA to compare pointers.
23350 * match.pd: Add pattern for pointer equality compare simplification
23351 using ptrs_compare_unequal.
23352
23353 2016-04-29 Richard Biener <rguenther@suse.de>
23354
23355 * stor-layout.c (layout_type): Do not build a pointer-to-element
23356 type for arrays.
23357
23358 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23359
23360 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
23361 Use SWI mode iterator. Use general_reg_operand predicate.
23362 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
23363 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
23364 predicates.
23365
23366 2016-04-29 Jakub Jelinek <jakub@redhat.com>
23367
23368 PR middle-end/70843
23369 * fold-const.c (operand_equal_p): Don't verify hash value equality
23370 if arg0 == arg1.
23371 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
23372 and OMP_CLAUSE.
23373
23374 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23375
23376 PR target/70858
23377 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
23378 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
23379 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
23380 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
23381 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
23382
23383 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23384
23385 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
23386 to info. Don't initialize separate fields to 0. Clean up
23387 formatting a bit.
23388
23389 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23390
23391 * config/i386/i386.md (peephole2s for operations with memory inputs):
23392 Use SWI mode iterator.
23393 (peephole2s for operations with memory outputs): Ditto.
23394 Do not check for stack checking probe.
23395
23396 (probe_stack): Remove expander.
23397
23398 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23399 Andrew Burgess <andrew.burgess@embecosm.com>
23400
23401 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
23402 operands as 32-bits.
23403
23404 2016-04-28 Jason Merrill <jason@redhat.com>
23405
23406 * gdbinit.in: Skip line-map.h.
23407
23408 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23409 Andrew Burgess <andrew.burgess@embecosm.com>
23410
23411 * config/arc/arc.c (arc_conditional_register_usage): Take
23412 TARGET_RRQ_CLASS into account.
23413 (arc_print_operand): Support printing 'p' and 's' operands.
23414 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
23415 as 0.
23416 (TARGET_RRQ_CLASS): Define.
23417 (IS_POWEROF2_OR_0_P): Define.
23418 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
23419 alternatives.
23420 (*tst_movb): New define_insn.
23421 (*tst): Avoid recognition if it could prevent '*tst_movb'
23422 combination; replace c/CnL with c/Chs alternative.
23423 (*tst_bitfield_tst): New define_insn.
23424 (*tst_bitfield_asr): New define_insn.
23425 (*tst_bitfield): New define_insn.
23426 (andsi3_i): Add Rrq variant.
23427 (extzv): New define_expand.
23428 (insv): New define_expand.
23429 (*insv_i): New define_insn.
23430 (*movb): New define_insn.
23431 (*movb_signed): New define_insn.
23432 (*movb_high): New define_insn.
23433 (*movb_high_signed): New define_insn.
23434 (*movb_high_signed + 1): New define_split pattern.
23435 (*mrgb): New define_insn.
23436 (*mrgb + 1): New define_peephole2 pattern.
23437 (*mrgb + 2): New define_peephole2 pattern.
23438 * config/arc/arc.opt (mbitops): New option for nps400, uses
23439 TARGET_NPS_BITOPS_DEFAULT.
23440 * config/arc/constraints.md (q): Make register class conditional.
23441 (Rrq): New register constraint.
23442 (Chs): New constraint.
23443 (Clo): New constraint.
23444 (Chi): New constraint.
23445 (Cbf): New constraint.
23446 (Cbn): New constraint.
23447 (C18): New constraint.
23448 (Cbi): New constraint.
23449
23450 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23451
23452 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
23453 dst->popcount.
23454 (bitmap_intersection_of_preds): Ditto.
23455 (bitmap_union_of_succs): Ditto.
23456 (bitmap_union_of_preds): Ditto.
23457 * sbitmap.c (do_popcount): Delete.
23458 (BITMAP_DEBUGGING): Delete.
23459 (sbitmap_verify_popcount): Delete.
23460 (sbitmap_alloc): Don't initialize the popcount field.
23461 (sbitmap_alloc_with_popcount): Delete.
23462 (sbitmap_resize): Don't resize the popcount array.
23463 (sbitmap_vector_alloc): Don't initialize the popcount field.
23464 (bitmap_copy): Don't copy the popcount array.
23465 (bitmap_clear): Don't clear the popcount array.
23466 (bitmap_clear): Delete the popcount array handling.
23467 (bitmap_ior_and_compl): Delete the popcount assert.
23468 (bitmap_not): Ditto.
23469 (bitmap_and_compl): Ditto.
23470 (bitmap_and): Delete the popcount array handling.
23471 (bitmap_xor): Ditto.
23472 (bitmap_ior): Ditto.
23473 (bitmap_or_and): Delete the popcount assert.
23474 (bitmap_and_or): Ditto.
23475 (popcount_table): Delete.
23476 (sbitmap_elt_popcount): Delete.
23477 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
23478 (bitmap_set_bit): Delete the popcount assert.
23479 (bitmap_clear_bit): Ditto.
23480 (sbitmap_free): Don't free the popcount array.
23481 (sbitmap_alloc_with_popcount): Delete declaration.
23482 (sbitmap_popcount): Ditto.
23483
23484 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23485 Andrew Burgess <andrew.burgess@embecosm.com>
23486
23487 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
23488 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
23489 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
23490 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
23491 * config/arc/arc.opt (mcmem): New option.
23492 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
23493 supply length for r/m alternative.
23494 (*extendqisi2_ac): Likewise.
23495 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
23496 r/Uex alternative.
23497 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
23498 (movhi_insn): Likewise.
23499 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
23500 (*zero_extendqihi2_i): Add r/Ucm alternative.
23501 (*zero_extendqisi2_ac): Likewise.
23502 (*zero_extendhisi2_i): Likewise.
23503 * config/arc/constraints.md (Uex): New memory constraint.
23504 (Ucm): New define_constraint.
23505 * config/arc/predicates.md (long_immediate_loadstore_operand):
23506 Return 0 for MEM with cmem_address address.
23507 (cmem_address_0): New predicates.
23508 (cmem_address_1): Likewise.
23509 (cmem_address_2): Likewise.
23510 (cmem_address): Likewise.
23511
23512 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23513
23514 * config/rs6000/rs6000.c (machine_function): Rename
23515 insn_chain_scanned_p to spe_insn_chain_scanned_p.
23516 (rs6000_stack_info): Adjust.
23517
23518 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23519 Andrew Burgess <andrew.burgess@embecosm.com>
23520
23521 * config/arc/constraints.md (Usd): Convert to define_constraint.
23522 (Us<): Likewise.
23523 (Us>): Likewise.
23524
23525 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23526
23527 PR target/70821
23528 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
23529 Add new peephole2 where the first insn is *mov<mode>_or instead of
23530 *mov<mode>_internal.
23531
23532 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
23533
23534 * tracer.c (bb_seen): Make static.
23535
23536 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
23537
23538 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
23539 support, setup defaults.
23540 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
23541 * config/arc/arc.c (arc_init): Add NPS400 support.
23542 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
23543 (TARGET_ARC700): NPS400 is also an ARC700.
23544 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
23545
23546 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23547
23548 PR target/70668
23549 * config/nds32/nds32.md (casesi): Don't access the operands array
23550 out of bounds.
23551
23552 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23553
23554 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
23555 (or $-1,reg peephole2): Ditto.
23556 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
23557
23558 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23559
23560 * doc/extend.texi (Common Function Attributes) [optimize]:
23561 Discourage use of the optimize attribute.
23562
23563 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
23564
23565 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
23566 special case builtin.
23567 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23568 ALTIVEC_BUILTIN_VEC_ADDE.
23569 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23570 support for ALTIVEC_BUILTIN_VEC_ADDE.
23571 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
23572 for __builtin_vec_adde.
23573
23574 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23575
23576 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
23577 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
23578
23579 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23580
23581 PR testsuite/70595
23582 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23583 attributes): Document cilkplus_runtime.
23584
23585 2016-04-28 Martin Jambor <mjambor@suse.cz>
23586
23587 * tree-cfg.c (verify_expr): Verify that local declarations belong to
23588 this function. Call verify_expr on MEM_REFs and bases of other
23589 handled_components.
23590
23591 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23592
23593 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
23594 for WORD_REGISTER_OPERATIONS to runtime check.
23595
23596 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23597
23598 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
23599
23600 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23601
23602 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
23603 big-endian compilation.
23604 * config/arc/arc.md (addf3): Likewise.
23605 (subdf3): Likewise.
23606 (muldf3): Likewise.
23607
23608 2016-04-28 Richard Biener <rguenther@suse.de>
23609
23610 PR tree-optimization/70840
23611 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
23612 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
23613 Mark x * pow(x,c) -> pow(x,c+1) commutative.
23614 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
23615
23616 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23617
23618 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
23619 and explain why in a comment.
23620
23621 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23622
23623 * config/arc/arc.md (cpu_facility): Add fpx variant.
23624 (subdf3): Prohibit use reverse sub when assist operations option
23625 is enabled.
23626 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
23627 instructions only when FPX is enabled.
23628 * testsuite/gcc.target/arc/trsub.c: New test.
23629
23630 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23631
23632 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
23633 mult_operator when calculating "type" attribute.
23634 (*fop_<mode>_1_i387): Ditto.
23635 (*fop_xf_1_i387): Ditto.
23636 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
23637 Use std::swap to swap operands. Use RTL expressions to generate
23638 converted pattern.
23639
23640 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23641 Joern Rennecke <joern.rennecke@embecosm.com>
23642
23643 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
23644 declaration.
23645 (emit_pic_move): Remove.
23646 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
23647 * config/arc/arc.c (emit_pic_move): Removed.
23648 (TARGET_HAVE_TLS): Define.
23649 (arc_conditional_register_usage): Test for arc_tp_regno.
23650 (arc_print_operand, arc_print_operand_address): Handle TLS
23651 unspecs.
23652 (arc_needs_pcl_p): New function.
23653 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
23654 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
23655 (arc_raw_symbolic_reference_mentioned_p): Likewise.
23656 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
23657 (arc_legitimize_tls_address): Likewise.
23658 (DTPOFF_ZERO_SYM): Define.
23659 (arc_legitimize_pic_address): Make it static, handle TLS cases.
23660 (arc_output_pic_addr_const): Print TLS unspecs.
23661 (prepare_pic_move): New function, replaces emit_pic_move.
23662 (arc_legitimate_constant_p): Handle TLS unspecs.
23663 (arc_legitimate_address_p): Likewise.
23664 (arc_rewrite_small_data_p): Use assert for TLS constants.
23665 (prepare_move_operands): Use prepare_pic_move.
23666 (arc_legitimize_address): Legitimize tls addresses.
23667 (arc_epilogue_uses): Check for arc_tp_regno.
23668 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23669 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23670 Define.
23671 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23672 Likewise.
23673 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23674 %(arc_tls_extra_start_spec).
23675 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23676 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23677 (EH_USES): Define.
23678 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23679 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23680 (UNSPEC_TLS_OFF): Add.
23681 (R10_REG): Define.
23682 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23683 (get_thread_pointersi): New patterns.
23684 * config/arc/arc.opt (mtp-regno): New option.
23685 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23686 (move_dest_operand): Likewise.
23687 * configure: Regenerate.
23688 * configure.ac: Add arc*-*-* case to test for tls.
23689 * doc/invoke.texi (ARC options): Document mtp-regno.
23690
23691 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23692
23693 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23694 the new ARC HS SIMD instructions.
23695 (arc_preferred_simd_mode): New function.
23696 (arc_autovectorize_vector_sizes): Likewise.
23697 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23698 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23699 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23700 (arc_init_builtins): Add new SIMD builtin types.
23701 (arc_split_move): Handle 64 bit vector moves.
23702 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23703 (TARGET_PLUS_QMACW): Define.
23704 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23705 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23706 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23707 (VSUBADD4H): New builtins.
23708 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23709 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23710
23711 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
23712 Matthias Klose <doko@debian.org>
23713
23714 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23715
23716 2016-04-28 Richard Biener <rguenther@suse.de>
23717
23718 PR middle-end/70777
23719 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23720 canonicalization.
23721
23722 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
23723
23724 * common/config/sh/sh-common.c: Remove SH5 support.
23725 * config/sh/constraints.md: Likewise.
23726 * config/sh/config/sh/elf.h: Likewise.
23727 * config/sh/linux.h: Likewise.
23728 * config/sh/netbsd-elf.h: Likewise.
23729 * config/sh/predicates.md: Likewise.
23730 * config/sh/sh-c.c: Likewise.
23731 * config/sh/sh-protos.h: Likewise.
23732 * config/sh/sh.c: Likewise.
23733 * config/sh/sh.h: Likewise.
23734 * config/sh/sh.md: Likewise.
23735 * config/sh/sh.opt: Likewise.
23736 * config/sh/sync.md: Likewise.
23737 * config/sh/sh64.h: Delete.
23738 * config/sh/shmedia.h: Likewise.
23739 * config/sh/shmedia.md: Likewise.
23740 * config/sh/sshmedia.h: Likewise.
23741 * config/sh/t-netbsd-sh5-64: Likewise.
23742 * config/sh/t-sh64: Likewise.
23743 * config/sh/ushmedia.h: Likewise.
23744
23745 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23746
23747 * config/i386/i386.md (sign_extend to memory peephole2s): Use
23748 general_reg_operand instead of register_operand predicate.
23749
23750 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23751
23752 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23753
23754 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
23755
23756 * match.pd (A - B > A, A + B < A): New transformations.
23757
23758 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
23759
23760 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23761 which defaults to true. Emit an outer pair of parentheses only if
23762 EMIT_PARENS. When continuing a chain of && or || (or & or |),
23763 don't emit parentheses for the right-hand operand.
23764
23765 2016-04-27 Jeff Law <law@redhat.com>
23766
23767 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23768
23769 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23770
23771 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23772 (altivec_lvx_<mode>_internal): Document.
23773 (altivec_lvx_<mode>_2op): New define_insn.
23774 (altivec_lvx_<mode>_1op): Likewise.
23775 (altivec_lvx_<mode>_2op_si): Likewise.
23776 (altivec_lvx_<mode>_1op_si): Likewise.
23777 (altivec_stvx_<mode>): Remove.
23778 (altivec_stvx_<mode>_internal): Document.
23779 (altivec_stvx_<mode>_2op): New define_insn.
23780 (altivec_stvx_<mode>_1op): Likewise.
23781 (altivec_stvx_<mode>_2op_si): Likewise.
23782 (altivec_stvx_<mode>_1op_si): Likewise.
23783 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23784 Expand vec_ld and vec_st during parsing.
23785 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23786 changes.
23787 (altivec_expand_stvx_be): Likewise.
23788 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23789 address-masking behavior in RTL.
23790 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23791 address-masking behavior in RTL.
23792 (altivec_expand_builtin): Change builtin code arguments for calls
23793 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23794 (insn_is_swappable_p): Avoid incorrect swap optimization in the
23795 presence of lvx/stvx patterns.
23796 (alignment_with_canonical_addr): New function.
23797 (alignment_mask): Likewise.
23798 (find_alignment_op): Likewise.
23799 (recombine_lvx_pattern): Likewise.
23800 (recombine_stvx_pattern): Likewise.
23801 (recombine_lvx_stvx_patterns): Likewise.
23802 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23803 stvx patterns from expand.
23804 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23805 expansions.
23806 (vector_altivec_store_<mode>): Likewise.
23807
23808 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
23809
23810 * config/aarch64/aarch64.md
23811 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23812 remove the "fp" attributes.
23813 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23814 add the "simd" attributes.
23815 (*movdf_aarch64): Likewise.
23816 (*movtf_aarch64): Remove the "fp" attributes.
23817 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23818 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23819
23820 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23821
23822 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23823 rtx to rtx_code_label *.
23824 * rtl.h (maybe_set_first_label_num): Likewise.
23825
23826 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23827
23828 * df-core.c (df_add_problem): Make the problem param be const.
23829 (df_remove_problem): Make local "problem" be const.
23830 * df-problems.c (problem_RD): Make const.
23831 (problem_LR): Likewise.
23832 (problem_LIVE): Likewise.
23833 (problem_MIR): Likewise.
23834 (problem_CHAIN): Likewise.
23835 (problem_WORD_LR): Likewise.
23836 (problem_NOTE): Likewise.
23837 (problem_MD): Likewise.
23838 * df-scan.c (problem_SCAN): Likewise.
23839 * df.h (struct df_problem): Make field "dependent_problem" be
23840 const.
23841 (struct dataflow): Likewise for field "problem".
23842 (df_add_problem): Make param const.
23843
23844 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23845
23846 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23847 inter-unit moves to/from vector registers are enabled. Do not disable
23848 for TARGET_MMX.
23849
23850 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23851
23852 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23853 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23854 #define to...
23855 (enum df_problem_id): ...this new enum.
23856 (struct df_problem): Convert field "id" from "int" to
23857 enum df_problem_id.
23858
23859 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23860
23861 * rtl.def: Update comment for "things in the instruction chain" to
23862 reflect the removal of the leading "i" field for INSN_UID in
23863 r210360. Fix bogus apostrophe.
23864
23865 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23866
23867 * config/i386/i386.md
23868 (lea arith with mem operand + setcc peephole2): Set operator mode.
23869
23870 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
23871
23872 PR target/70155
23873 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23874 (dimode_scalar_to_vector_candidate_p): This.
23875 (timode_scalar_to_vector_candidate_p): New function.
23876 (scalar_to_vector_candidate_p): Likewise.
23877 (timode_check_non_convertible_regs): Likewise.
23878 (timode_remove_non_convertible_regs): Likewise.
23879 (remove_non_convertible_regs): Likewise.
23880 (remove_non_convertible_regs): Renamed to ...
23881 (dimode_remove_non_convertible_regs): This.
23882 (scalar_chain::~scalar_chain): Make it virtual.
23883 (scalar_chain::compute_convert_gain): Make it pure virtual.
23884 (scalar_chain::mark_dual_mode_def): Likewise.
23885 (scalar_chain::convert_insn): Likewise.
23886 (scalar_chain::convert_registers): Likewise.
23887 (scalar_chain::add_to_queue): Make it protected.
23888 (scalar_chain::emit_conversion_insns): Likewise.
23889 (scalar_chain::replace_with_subreg): Likewise.
23890 (scalar_chain::replace_with_subreg_in_insn): Likewise.
23891 (scalar_chain::convert_op): Likewise.
23892 (scalar_chain::convert_reg): Likewise.
23893 (scalar_chain::make_vector_copies): Likewise.
23894 (scalar_chain::convert_registers): New pure virtual function.
23895 (class dimode_scalar_chain): New class.
23896 (class timode_scalar_chain): Likewise.
23897 (scalar_chain::mark_dual_mode_def): Renamed to ...
23898 (dimode_scalar_chain::mark_dual_mode_def): This.
23899 (timode_scalar_chain::mark_dual_mode_def): New function.
23900 (timode_scalar_chain::convert_insn): Likewise.
23901 (dimode_scalar_chain::convert_registers): Likewise.
23902 (scalar_chain::compute_convert_gain): Renamed to ...
23903 (dimode_scalar_chain::compute_convert_gain): This.
23904 (scalar_chain::replace_with_subreg): Renamed to ...
23905 (dimode_scalar_chain::replace_with_subreg): This.
23906 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23907 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23908 (scalar_chain::make_vector_copies): Renamed to ...
23909 (dimode_scalar_chain::make_vector_copies): This.
23910 (scalar_chain::convert_reg): Renamed to ...
23911 (dimode_scalar_chain::convert_reg ): This.
23912 (scalar_chain::convert_op): Renamed to ...
23913 (dimode_scalar_chain::convert_op): This.
23914 (scalar_chain::convert_insn): Renamed to ...
23915 (dimode_scalar_chain::convert_insn): This.
23916 (scalar_chain::convert): Call convert_registers.
23917 (convert_scalars_to_vector): Change to scalar_chain pointer to
23918 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23919 in 32-bit mode. Delete scalar_chain pointer. Call
23920 free_dominance_info in 64-bit mode.
23921 (pass_stv::gate): Remove TARGET_64BIT check.
23922 (ix86_option_override): Put the 64-bit STV pass before the CSE
23923 pass.
23924
23925 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
23926
23927 * dwarf2out.h (struct dw_loc_descr_node): Remove the
23928 dw_loc_frame_offset field.
23929 * dwarf2out.c (new_loc_descr): Likewise.
23930 (resolve_args_picking_1): Turn the VISITED hash set into a
23931 FRAME_OFFSET hash map. Use it to associate a frame offset to
23932 visited nodes. Remove uses of the CHECKING_P macro.
23933 (resolve_args_picking): Update call to resolve_args_picking_1.
23934
23935 2016-04-27 Martin Liska <mliska@suse.cz>
23936
23937 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23938 (free_loop_data): Release vuses of groups.
23939
23940 2016-04-27 Bin Cheng <bin.cheng@arm.com>
23941
23942 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23943 instead of redundant use_id and boolean have_use_for.
23944 (struct iv_use): Change sub_id into group_id. Remove field next.
23945 Move fields: related_cands, n_map_members, cost_map and selected
23946 to ...
23947 (struct iv_group): ... here. New structure.
23948 (struct iv_common_cand): Use structure declaration directly.
23949 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23950 (MAX_CONSIDERED_USES): Rename macro to ...
23951 (MAX_CONSIDERED_GROUPS): ... here.
23952 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23953 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23954 (dump_uses): Rename to ...
23955 (dump_groups): ... here. Update all uses.
23956 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23957 (find_induction_variables): Refactor format of dump information.
23958 (record_sub_use): Delete.
23959 (record_use): Update all uses.
23960 (record_group): New function.
23961 (record_group_use, find_interesting_uses_op): Call above functions.
23962 Update all uses.
23963 (find_interesting_uses_cond): Ditto.
23964 (group_compare_offset): New function.
23965 (split_all_small_groups): Rename to ...
23966 (split_small_address_groups_p): ... here. Update all uses.
23967 (split_address_groups): Update all uses.
23968 (find_interesting_uses): Refactor format of dump information.
23969 (add_candidate_1): Update all uses. Remove redundant check on iv,
23970 base and step.
23971 (add_candidate, record_common_cand): Remove redundant assert.
23972 (add_iv_candidate_for_biv): Update use.
23973 (add_iv_candidate_derived_from_uses): Update all uses.
23974 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
23975 (alloc_use_cost_map): Ditto.
23976 (set_use_iv_cost, get_use_iv_cost): Rename to ...
23977 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
23978 (determine_use_iv_cost_generic): Ditto.
23979 (determine_group_iv_cost_generic): Ditto.
23980 (determine_use_iv_cost_address): Ditto.
23981 (determine_group_iv_cost_address): Ditto.
23982 (determine_use_iv_cost_condition): Ditto.
23983 (determine_group_iv_cost_cond): Ditto.
23984 (determine_use_iv_cost): Ditto.
23985 (determine_group_iv_cost): Ditto.
23986 (set_autoinc_for_original_candidates): Update all uses.
23987 (find_iv_candidates): Update all uses. Refactor dump information.
23988 (determine_use_iv_costs): Ditto.
23989 (determine_iv_costs): Ditto.
23990 (iv_ca_cand_for_use): Rename to ...
23991 (iv_ca_cand_for_group): ... here. Update all uses.
23992 (iv_ca_add_use, iv_ca_add_group): Ditto.
23993 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
23994 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
23995 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
23996 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
23997 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
23998 (create_new_iv, adjust_iv_update_pos): Ditto.
23999 (rewrite_use_address): Delete.
24000 (rewrite_use_address_1): Rename to ...
24001 (rewrite_use_address): ... here.
24002 (rewrite_use_compare): Update all uses.
24003 (rewrite_use): Delete.
24004 (rewrite_uses): Rename to ...
24005 (rewrite_groups): ... here. Update all uses.
24006 (remove_unused_ivs, free_loop_data): Update all uses.
24007 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
24008
24009 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24010
24011 * rtlanal.c (nonzero_bits1): Convert preprocessor check
24012 for WORD_REGISTER_OPERATIONS to runtime check.
24013
24014 2016-04-27 Richard Biener <rguenther@suse.de>
24015
24016 PR ipa/70760
24017 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
24018 aggregate_value_p to determine if a function result is
24019 returned by reference.
24020 (ipa_pta_execute): Functions having their address taken are
24021 not automatically nonlocal.
24022
24023 2016-04-27 Jakub Jelinek <jakub@redhat.com>
24024
24025 PR sanitizer/70683
24026 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
24027 * fold-const.c (operand_equal_p): If flag_checking and
24028 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
24029 and if it returns non-zero, assert iterative_hash_expr on both
24030 args is the same.
24031
24032 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
24033
24034 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
24035
24036 2016-04-27 Nick Clifton <nickc@redhat.com>
24037
24038 PR middle-end/49889
24039 * varasm.c (merge_weak): Generate an error if an attempt is made
24040 to convert a non-weak static function into a weak, public function.
24041
24042 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24043
24044 * params.def (MAX_PARTITION_SIZE): New param.
24045 * doc/invoke.texi: Document lto-max-partition.
24046
24047 2016-04-27 Richard Biener <rguenther@suse.de>
24048
24049 PR ipa/70785
24050 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
24051 function cummulating used_from_other_partition, externally_visible
24052 and force_output from aliases.
24053 (refered_from_nonlocal_var): Likewise.
24054 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
24055 node flags properly.
24056
24057 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
24058
24059 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
24060 (-Wmemset-elt-size): New item.
24061
24062 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
24063
24064 PR ada/70759
24065 * stor-layout.h (internal_reference_types): Delete.
24066 * stor-layout.c (reference_types_internal): Likewise.
24067 (internal_reference_types): Likewise.
24068 (layout_type) <REFERENCE_TYPE>: Adjust.
24069
24070 2016-04-27 Jakub Jelinek <jakub@redhat.com>
24071
24072 PR sanitizer/70683
24073 * tree.h (inchash::add_expr): Add FLAGS argument.
24074 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
24075 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
24076 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
24077 Formatting fix. Adjust recursive calls. For tcc_comparison,
24078 if swap_tree_comparison (code) is smaller than code, hash that
24079 and arguments in the other order. Hash CONVERT_EXPR the same
24080 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
24081 of ADDR_EXPR of decl as the decl itself. Add or remove
24082 OEP_ADDRESS_OF from recursive flags as needed. For
24083 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
24084 operands commutatively and only the third one normally.
24085 For internal CALL_EXPR hash in CALL_EXPR_IFN.
24086
24087 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
24088
24089 * config/rtems.h (LIB_SPEC): Add -latomic.
24090
24091 2016-04-27 Joel Sherrill <joel@rtems.org>
24092
24093 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
24094 xilink.ld and flags not relevant to RTEMS.
24095
24096 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24097
24098 * toplev.c (backend_init_target): Avoid calling init_reload when using
24099 LRA.
24100
24101 2016-04-26 Jakub Jelinek <jakub@redhat.com>
24102
24103 * reorg.c (try_merge_delay_insns): Declare i and j inside the
24104 for loops rather than one for the whole function.
24105
24106 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
24107
24108 * match.pd (X + CST CMP X): New transformation.
24109
24110 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
24111
24112 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
24113 * fold-const.c (fold_binary_loc): Remove 2 transformations
24114 superseded by match.pd.
24115 * match.pd (x+x -> x*2): Generalize to integers.
24116
24117 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
24118
24119 * config/i386/i386.md (operation on memory peephole): Duplicate an
24120 existing peephole and adapt it to match lea rather than an operation
24121 that clobbers CC.
24122
24123 PR rtl-optimization/57193
24124 * opts.c (default_options_table): Add OPT_frename_registers at -O2
24125 and above.
24126 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
24127
24128 2016-04-26 Bin Cheng <bin.cheng@arm.com>
24129
24130 * tree-if-conv.c (any_pred_load_store): New static variable.
24131 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
24132 any_pred_load_store instead of and_mask_load_store.
24133 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
24134 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
24135 (combine_blocks, tree_if_conversion): Ditto.
24136
24137 2016-04-26 Bin Cheng <bin.cheng@arm.com>
24138
24139 PR tree-optimization/70771
24140 PR tree-optimization/70775
24141 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
24142 virtual PHI nodes. Delete parameter.
24143 (if_convertible_loop_p_1): Delete argument to above function.
24144 (predicate_all_scalar_phis): Delete code handling single-argument
24145 PHIs.
24146 (tree_if_conversion): Mark and update virtual SSA.
24147
24148 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24149
24150 PR target/61821
24151 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
24152 (x86_elf_aligned_common): Rename to ...
24153 (x86_elf_aligned_decl_common): ... this.
24154 Add decl arg. Switch to .lbss for largecomm object. Use
24155 LARGECOMM_SECTION_ASM_OP.
24156 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
24157 renaming.
24158 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
24159 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
24160 Pass new decl arg.
24161 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24162 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
24163
24164 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24165
24166 PR target/59407
24167 * config/i386/i386.c (SECTION_LARGE): Define.
24168 (x86_64_elf_select_section): Set it for large data/bss sections.
24169 Only clear SECTION_WRITE for .lrodata.
24170 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
24171 data/bss sections.
24172 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
24173 * varasm.c (default_elf_asm_named_section): Grow flagchars.
24174 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
24175 SECTION_MACH_DEP.
24176 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
24177 * doc/tm.texi: Regenerate.
24178
24179 2016-04-26 Jakub Jelinek <jakub@redhat.com>
24180
24181 PR bootstrap/70704
24182 * configure.ac (--enable-checking): Document extra flag, for
24183 non-release builds default to --enable-checking=yes,extra.
24184 If misc checking and extra checking, define CHECKING_P to 2 instead
24185 of 1.
24186 * common.opt (fchecking=): Add.
24187 * doc/invoke.texi (-fchecking=): Document.
24188 * doc/install.texi: Document --enable-checking changes.
24189 * configure: Regenerated.
24190 * config.in: Regenerated.
24191
24192 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24193
24194 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
24195 attribute instead of which_alternative.
24196 * config/i386/sse.md (*mov<mode>_internal): Ditto.
24197 Use EXT_REX_SSE_REG_P where appropriate.
24198
24199 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24200
24201 * config/i386/predicates.md (const0_operand): Do not match
24202 const_wide_int code.
24203 (const1_operand): Ditto.
24204
24205 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24206
24207 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
24208 for SSE constm1 operands and TARGET_AVX512VL.
24209 (*movti_internal): Ditto.
24210 (*mov<mode>_or): Use constm1_operand predicate.
24211 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
24212 for SSE vector_all_ones operands and TARGET_AVX512VL.
24213 * config/i386/predicates.md (constm1_operand): New predicate.
24214 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
24215 emission of constant -1 load.
24216
24217 2016-04-25 Jason Merrill <jason@redhat.com>
24218
24219 * gdbinit.in: Skip is-a.h.
24220
24221 * attribs.c (register_scoped_attributes): Fix logic.
24222 * attribs.h: Declare register_scoped_attributes.
24223
24224 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24225
24226 * config/rs6000/rs6000-builtin.def: Correct pasto error for
24227 stxvd2x and stxvw4x built-in functions.
24228
24229 2016-04-25 DJ Delorie <dj@redhat.com>
24230
24231 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
24232 (ashrhi3): Likewise.
24233 (lshrhi3): Likewise.
24234
24235 2016-04-25 Richard Biener <rguenther@suse.de>
24236
24237 PR tree-optimization/70780
24238 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
24239 wasn't visited yet.
24240 (compute_antic): Mark blocks with abnormal preds as visited as
24241 they have a final empty antic-in solution already.
24242
24243 2016-04-25 Michael Collison <michael.collison@linaro.org>
24244
24245 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
24246
24247 2016-04-25 Michael Collison <michael.collison@linaro.org>
24248
24249 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
24250 mode is VQI to improve mixed mode vectorization.
24251 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
24252 define_insn to match low half of signed vaddw.
24253 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
24254 define_insn to match high half of signed vaddw.
24255 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
24256 define_insn to match low half of unsigned vaddw.
24257 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
24258 define_insn to match high half of unsigned vaddw.
24259 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
24260 (arm_simd_check_vect_par_cnst_half_p): Likewise.
24261 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
24262 for new function.
24263 (arm_simd_check_vect_par_cnst_half_p): Likewise.
24264 * config/arm/predicates.md (vect_par_constant_high): Support
24265 big endian and simplify by calling
24266 arm_simd_check_vect_par_cnst_half
24267 (vect_par_constant_low): Likewise.
24268
24269 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24270
24271 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
24272 predicate for operand 2.
24273
24274 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
24275 H.J. Lu <hongjiu.lu@intel.com>
24276
24277 * config/i386/i386-protos.h (standard_sse_constant_p): Add
24278 machine_mode argument.
24279 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
24280 constm1_rtx operands. For VOIDmode constants, get mode from
24281 pred_mode. Check mode size if the mode is supported by ABI.
24282 (standard_sse_constant_opcode): Do not use standard_constant_p.
24283 Strictly check ABI support for all-ones operands.
24284 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
24285 immediates. Update calls to standard_sse_constant_p.
24286 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
24287 (ix86_rtx_costs): Ditto.
24288 * config/i386/i386.md (*movxi_internal_avx512f): Use
24289 nonimmediate_or_sse_const_operand instead of vector_move_operand.
24290 Use (v,BC) alternative instead of (v,C). Use register_operand
24291 checks instead of MEM_P.
24292 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
24293 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
24294 isa attribute. Use register_operand checks instead of MEM_P.
24295 (*movti_internal): Use nonimmediate_or_sse_const_operand for
24296 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
24297 alternative and corresponding sse2 isa attribute.
24298 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
24299 to standard_sse_constant_p.
24300 (FP constant splitters): Ditto.
24301 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
24302 (C): Ditto.
24303 * config/i386/predicates.md (constm1_operand): Remove.
24304 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
24305 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
24306 vector_all_ones_operand instead of constm1_operand.
24307
24308 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24309
24310 * print-rtl.c (print_rtx_insn_vec): New function.
24311 * print-rtl.h: New prototype.
24312 * store-motion.c (struct st_expr): Make avail_stores a vector.
24313 (st_expr_entry): Adjust.
24314 (free_st_expr_entry): Likewise.
24315 (print_store_motion_mems): Likewise.
24316 (find_moveable_store): Likewise.
24317 (compute_store_table): Likewise.
24318 (delete_store): Likewise.
24319 (build_store_vectors): Likewise.
24320
24321 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24322
24323 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
24324
24325 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24326
24327 * vec.h (vec_safe_contains): New function.
24328 (vec::contains): Likewise.
24329 (vec::begin): Likewise.
24330 (vec::end): Likewise.
24331
24332 2016-04-23 Jakub Jelinek <jakub@redhat.com>
24333
24334 PR sanitizer/70712
24335 * cfgexpand.c (expand_stack_vars): Fix typo.
24336
24337 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24338
24339 * system.h (list, map, set, vector): Include conditionally.
24340 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
24341 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
24342 * ipa-icf.c (INCLUDE_LIST): Define.
24343 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
24344 * config/sh/sh.c (INCLUDE_VECTOR): Define.
24345 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
24346 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
24347 * cp/logic.cc (INCLUDE_LIST): Define.
24348 * fortran/trans-common.c (INCLUDE_MAP): Define.
24349
24350 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24351
24352 * auto-profile.c: Remove <string.h> include.
24353 * ipa-icf-gimple.c: Remove <list> include.
24354 * diagnostic.c: Remove <new> include.
24355 * genmatch.c: Likewise.
24356 * pretty-print.c: Likewise.
24357 * toplev.c: Likewise
24358 * c/c-objc-common.c: Likewise.
24359 * cp/error.c: Likewise.
24360 * fortran/error.c: Likewise.
24361
24362 2016-04-22 Richard Biener <rguenther@suse.de>
24363
24364 * lto-streamer-in.c (input_ssa_names): Do not allocate
24365 GIMPLE_NOP for all SSA names.
24366 * lto-streamer-out.c (output_ssa_names): Do not output
24367 SSA names that should have been released.
24368
24369 2016-04-22 Richard Biener <rguenther@suse.de>
24370
24371 PR tree-optimization/70740
24372 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
24373 VDEF.
24374
24375 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
24376
24377 PR target/70750
24378 * config/i386/predicates.md (call_insn_operand): Replace
24379 sibcall_memory_operand with memory_operand.
24380
24381 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
24382
24383 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
24384 has_single_use() tests.
24385 (register_edge_assert_for_1): Likewise.
24386 (find_assert_locations_1): Check the liveness bitmap instead of
24387 checking has_single_use().
24388
24389 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
24390
24391 PR target/70728
24392 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
24393 Extract AVX-512BW constraint from AVX.
24394
24395 2016-04-21 Richard Biener <rguenther@suse.de>
24396
24397 PR tree-optimization/70725
24398 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
24399 for phi_convertible_by_degenerating_args.
24400 (predicate_all_scalar_phis): Handle single-argument PHIs.
24401
24402 2016-04-21 Richard Biener <rguenther@suse.de>
24403
24404 PR middle-end/70747
24405 * fold-const.c (fold_comparison): Return properly typed
24406 constant boolean.
24407
24408 2016-04-21 Bin Cheng <bin.cheng@arm.com>
24409
24410 PR tree-optimization/70715
24411 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
24412 after expanding BASE using expand_simple_operations.
24413
24414 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24415
24416 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
24417 New transformations.
24418
24419 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24420
24421 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
24422
24423 2016-04-20 Jan Hubicka <jh@suse.cz>
24424
24425 * ipa-inline.c (can_inline_edge_p): Pass caller info to
24426 ultiimate_alias_target.
24427 (update_callee_keys): Likewise.
24428 (lookup_recursive_calls): Likewise.
24429 (speculation_useful_p): Likewise.
24430
24431 2016-04-20 Jan Hubicka <jh@suse.cz>
24432
24433 PR ipa/70018
24434 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
24435 (set_nothrow_flag_1): ... this; handle interposition correctly;
24436 recurse on aliases and thunks.
24437 (cgraph_node::set_nothrow_flag): New.
24438 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
24439 functions compiled with non-call exceptions that binds to current
24440 def.
24441 (propagate_nothrow): Be safe WRT interposition.
24442 * cgraph.h (set_nothrow_flag): Update prototype.
24443
24444 2016-04-18 Jan Hubicka <jh@suse.cz>
24445
24446 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24447 max_loop_iterations_int.
24448 (tree_unswitch_outer_loop): Likewise.
24449
24450 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24451
24452 PR tree-optimization/69489
24453 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
24454 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
24455 Revise dump message.
24456 (if_convertible_bb_p): Remove check on edge count of basic block's
24457 predecessors.
24458
24459 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24460
24461 PR tree-optimization/56625
24462 PR tree-optimization/69489
24463 * tree-data-ref.h (DR_INNERMOST): New macro.
24464 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
24465 hashing struct innermost_loop_behavior.
24466 (ref_DR_map): Remove.
24467 (innermost_DR_map): New map.
24468 (baseref_DR_map): Revise comment.
24469 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
24470 to innermost_DR_map accroding to its innermost loop behavior.
24471 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
24472 to its innermost loop behavior.
24473 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
24474 Add initialization for innermost_DR_map. Record memory reference
24475 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
24476 have innermost loop behavior.
24477 (if_convertible_loop_p): Remove release for ref_DR_map. Release
24478 innermost_DR_map.
24479
24480 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
24481
24482 * config/i386/i386.md (*lea<mode>_general_1): Rename from
24483 *lea_general_1. Use explicit SWI12 mode interator.
24484 (*lea<mode>_general_2): Rename from *lea_general_2.
24485 Use explicit SWI12 mode interator.
24486 (*lea<mode>_general_3): Rename from *lea_general_3.
24487 Use explicit SWI12 mode interator.
24488 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
24489 Use explicit SWI12 mode interator.
24490 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
24491 Use explicit SWI48 mode interator.
24492
24493 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24494
24495 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
24496 Short-cut unaligned load and store cases. Handle all integer
24497 vector modes.
24498 (ix86_expand_vector_move_misalign): Short-cut unaligned load
24499 and store cases. Call ix86_avx256_split_vector_move_misalign
24500 directly without checking mode class.
24501
24502 2016-04-20 Andrew Pinski <apinski@cavium.com>
24503 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24504
24505 PR target/64971
24506 * config/aarch64/aarch64.md (sibcall): Force call
24507 address to be DImode for ILP32.
24508 (sibcall_value): Likewise.
24509
24510 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24511
24512 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
24513
24514 2016-04-20 Richard Biener <rguenther@suse.de>
24515
24516 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
24517 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
24518 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
24519 (maybe_push_res_to_seq): Adjust.
24520 * gimple-fold.c (maybe_build_generic_op): Likewise.
24521
24522 2016-04-20 Marek Polacek <polacek@redhat.com>
24523
24524 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
24525 rather than true.
24526
24527 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
24528
24529 * config/i386/sse.md (vec_unpacks_lo_hi): Always
24530 use kmovw to support AVX512F target.
24531
24532 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24533
24534 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
24535
24536 2016-04-20 Marek Polacek <polacek@redhat.com>
24537
24538 PR tree-optimization/70725
24539 * tree-if-conv.c (is_false_predicate): New function.
24540 (predicate_mem_writes): Use it.
24541
24542 2016-04-20 Richard Biener <rguenther@suse.de>
24543
24544 PR tree-optimization/70726
24545 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
24546 shift amounts from a pattern stmt operand.
24547
24548 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24549
24550 PR target/70674
24551 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
24552 stack_restore_from_fpr pattern when restoring r15.
24553 (s390_optimize_prologue): Strip away the memory barrier in the
24554 parallel when trying to get rid of restore insns.
24555 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
24556 definition for loading the stack pointer from an FPR. Compared to
24557 the normal move insn this pattern includes a full memory barrier.
24558
24559 2016-04-19 Jakub Jelinek <jakub@redhat.com>
24560
24561 PR middle-end/70680
24562 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
24563 implicitly linear or lastprivate iterator on the outer context.
24564
24565 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24566
24567 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
24568 alignment check.
24569 * config/i386/i386.md (ssememalign): Removed.
24570 * config/i386/sse.md: Remove ssememalign attribute from patterns.
24571
24572 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24573
24574 PR target/69201
24575 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
24576 const short * to __builtin_ia32_loaddquhi512_mask.
24577 (_mm512_maskz_loadu_epi16): Likewise.
24578 (_mm512_mask_storeu_epi16): Pass short * to
24579 __builtin_ia32_storedquhi512_mask.
24580 (_mm512_mask_loadu_epi8): Pass const char * to
24581 __builtin_ia32_loaddquqi512_mask.
24582 (_mm512_maskz_loadu_epi8): Likewise.
24583 (_mm512_mask_storeu_epi8): Pass char * to
24584 __builtin_ia32_storedquqi512_mask.
24585 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
24586 const double * to __builtin_ia32_loadupd512_mask.
24587 (_mm512_mask_loadu_pd): Likewise.
24588 (_mm512_maskz_loadu_pd): Likewise.
24589 (_mm512_storeu_pd): Pass double * to
24590 __builtin_ia32_storeupd512_mask.
24591 (_mm512_mask_storeu_pd): Likewise.
24592 (_mm512_loadu_ps): Pass const float * to
24593 __builtin_ia32_loadups512_mask.
24594 (_mm512_mask_loadu_ps): Likewise.
24595 (_mm512_maskz_loadu_ps): Likewise.
24596 (_mm512_storeu_ps): Pass float * to
24597 __builtin_ia32_storeups512_mask.
24598 (_mm512_mask_storeu_ps): Likewise.
24599 (_mm512_mask_loadu_epi64): Pass const long long * to
24600 __builtin_ia32_loaddqudi512_mask.
24601 (_mm512_maskz_loadu_epi64): Likewise.
24602 (_mm512_mask_storeu_epi64): Pass long long *
24603 to __builtin_ia32_storedqudi512_mask.
24604 (_mm512_loadu_si512): Pass const int * to
24605 __builtin_ia32_loaddqusi512_mask.
24606 (_mm512_mask_loadu_epi32): Likewise.
24607 (_mm512_maskz_loadu_epi32): Likewise.
24608 (_mm512_storeu_si512): Pass int * to
24609 __builtin_ia32_storedqusi512_mask.
24610 (_mm512_mask_storeu_epi32): Likewise.
24611 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
24612 char * to __builtin_ia32_storedquqi256_mask.
24613 (_mm_mask_storeu_epi8): Likewise.
24614 (_mm256_mask_loadu_epi16): Pass const short * to
24615 __builtin_ia32_loaddquhi256_mask.
24616 (_mm256_maskz_loadu_epi16): Likewise.
24617 (_mm_mask_loadu_epi16): Pass const short * to
24618 __builtin_ia32_loaddquhi128_mask.
24619 (_mm_maskz_loadu_epi16): Likewise.
24620 (_mm256_mask_loadu_epi8): Pass const char * to
24621 __builtin_ia32_loaddquqi256_mask.
24622 (_mm256_maskz_loadu_epi8): Likewise.
24623 (_mm_mask_loadu_epi8): Pass const char * to
24624 __builtin_ia32_loaddquqi128_mask.
24625 (_mm_maskz_loadu_epi8): Likewise.
24626 (_mm256_mask_storeu_epi16): Pass short * to.
24627 __builtin_ia32_storedquhi256_mask.
24628 (_mm_mask_storeu_epi16): Pass short * to.
24629 __builtin_ia32_storedquhi128_mask.
24630 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
24631 const double * to __builtin_ia32_loadupd256_mask.
24632 (_mm256_maskz_loadu_pd): Likewise.
24633 (_mm_mask_loadu_pd): Pass onst double * to
24634 __builtin_ia32_loadupd128_mask.
24635 (_mm_maskz_loadu_pd): Likewise.
24636 (_mm256_mask_storeu_pd): Pass double * to
24637 __builtin_ia32_storeupd256_mask.
24638 (_mm_mask_storeu_pd): Pass double * to
24639 __builtin_ia32_storeupd128_mask.
24640 (_mm256_mask_loadu_ps): Pass const float * to
24641 __builtin_ia32_loadups256_mask.
24642 (_mm256_maskz_loadu_ps): Likewise.
24643 (_mm_mask_loadu_ps): Pass const float * to
24644 __builtin_ia32_loadups128_mask.
24645 (_mm_maskz_loadu_ps): Likewise.
24646 (_mm256_mask_storeu_ps): Pass float * to
24647 __builtin_ia32_storeups256_mask.
24648 (_mm_mask_storeu_ps): ass float * to
24649 __builtin_ia32_storeups128_mask.
24650 (_mm256_mask_loadu_epi64): Pass const long long * to
24651 __builtin_ia32_loaddqudi256_mask.
24652 (_mm256_maskz_loadu_epi64): Likewise.
24653 (_mm_mask_loadu_epi64): Pass const long long * to
24654 __builtin_ia32_loaddqudi128_mask.
24655 (_mm_maskz_loadu_epi64): Likewise.
24656 (_mm256_mask_storeu_epi64): Pass long long * to
24657 __builtin_ia32_storedqudi256_mask.
24658 (_mm_mask_storeu_epi64): Pass long long * to
24659 __builtin_ia32_storedqudi128_mask.
24660 (_mm256_mask_loadu_epi32): Pass const int * to
24661 __builtin_ia32_loaddqusi256_mask.
24662 (_mm256_maskz_loadu_epi32): Likewise.
24663 (_mm_mask_loadu_epi32): Pass const int * to
24664 __builtin_ia32_loaddqusi128_mask.
24665 (_mm_maskz_loadu_epi32): Likewise.
24666 (_mm256_mask_storeu_epi32): Pass int * to
24667 __builtin_ia32_storedqusi256_mask.
24668 (_mm_mask_storeu_epi32): Pass int * to
24669 __builtin_ia32_storedqusi128_mask.
24670 * config/i386/i386-builtin-types.def (PCSHORT): New.
24671 (PINT64): Likewise.
24672 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24673 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24674 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24675 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24676 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24677 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24678 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24679 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24680 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24681 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24682 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24683 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24684 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24685 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24686 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24687 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24688 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24689 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24690 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24691 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24692 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24693 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24694 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24695 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24696 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24697 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24698 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24699 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24700 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24701 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24702 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24703 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24704 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24705 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24706 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24707 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24708 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24709 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24710 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24711 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24712 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24713 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24714 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24715 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24716 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24717 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24718 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24719 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24720 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24721 use UNSPEC_STOREU.
24722 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24723 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24724 load nor store.
24725 (ix86_expand_vector_move_misalign): Likewise.
24726 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24727 to scalar function prototype for unaligned load/store builtins.
24728 (ix86_expand_special_args_builtin): Updated.
24729 * config/i386/sse.md (UNSPEC_LOADU): Removed.
24730 (UNSPEC_STOREU): Likewise.
24731 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24732 (VI_ULOADSTORE_F_AVX512VL): Likewise.
24733 (ssescalarsize): Handle V4TI, V2TI and V1TI.
24734 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24735 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24736 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24737 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24738 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24739 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24740 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24741 (<avx512>_storedqu<mode>_mask): Likewise.
24742 (*sse4_2_pcmpestr_unaligned): Likewise.
24743 (*sse4_2_pcmpistr_unaligned): Likewise.
24744 (*mov<mode>_internal): Renamed to ...
24745 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
24746 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24747 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24748 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24749
24750 2016-04-19 Richard Biener <rguenther@suse.de>
24751
24752 PR tree-optimization/70171
24753 * tree-ssa-phiprop.c: Include stor-layout.h.
24754 (phiprop_insert_phi): Handle the aggregate copy case.
24755 (propagate_with_phi): Likewise.
24756
24757 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
24758
24759 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24760 instead of simplify_gen_subreg (... , 0).
24761 (ix86_delegitimize_address): Ditto.
24762 (ix86_split_divmod): Ditto.
24763 (ix86_split_copysign_const): Ditto.
24764 (ix86_split_copysign_var): Ditto.
24765 (ix86_expand_args_builtin): Ditto.
24766 (ix86_expand_round_builtin): Ditto.
24767 (ix86_expand_special_args_builtin): Ditto.
24768 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24769 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24770 (udivmodqi4): Ditto.
24771 (absneg splitters): Ditto.
24772 (*jcc_bt<mode>_1): Ditto.
24773
24774 2016-04-19 Richard Biener <rguenther@suse.de>
24775
24776 PR tree-optimization/70724
24777 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24778 restoring out from ...
24779 (free_scc_vn): ... here.
24780 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24781 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24782 tail merging.
24783 (pass_fre::execute): Restore SSA info.
24784
24785 2016-04-19 Richard Biener <rguenther@suse.de>
24786
24787 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24788 * gimple-walk.c (walk_gimple_op): Initialize it.
24789 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24790 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24791 remapping SSA names of defs.
24792 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24793 adjustment.
24794
24795 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
24796
24797 PR middle-end/70689
24798 * lra-constraints.c (equiv_substition_p): New.
24799 (process_alt_operands): Use it.
24800 (swap_operands): Swap it.
24801 (curr_insn_transform): Update it.
24802
24803 2016-04-18 Michael Matz <matz@suse.de>
24804
24805 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24806 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24807 * tree-core.h (tree_type_common.align): Use bit-field.
24808 (tree_type_common.spare): New.
24809 (tree_decl_common.off_align): Make smaller.
24810 (tree_decl_common.align): Use bit-field.
24811
24812 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24813 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24814 (scan_sharing_clauses): Ditto.
24815 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24816 (omp_finish_file): Ditto.
24817 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24818 (layout_decl): Ditto.
24819 (relayout_decl): Ditto.
24820 (finalize_record_size): Use SET_TYPE_ALIGN.
24821 (finalize_type_size): Ditto.
24822 (finish_builtin_struct): Ditto.
24823 (layout_type): Ditto.
24824 (initialize_sizetypes): Ditto.
24825 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24826 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24827 (lookup_field_for_decl): Use SET_DECL_ALIGN.
24828 (get_chain_field): Ditto.
24829 (get_trampoline_type): Ditto.
24830 (get_nl_goto_field): Ditto.
24831 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24832 SET_DECL_ALIGN.
24833 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24834 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24835 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24836 (build_qualified_type): Use SET_TYPE_ALIGN.
24837 (build_aligned_type, build_range_type_1): Ditto.
24838 (build_atomic_base): Ditto.
24839 (build_common_tree_nodes): Ditto.
24840 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24841 (expand_one_stack_var_at): Ditto.
24842 * coverage.c (build_var): Use SET_DECL_ALIGN.
24843 * except.c (init_eh): Ditto.
24844 * function.c (assign_parm_setup_block): Ditto.
24845 * symtab.c (increase_alignment_1): Ditto.
24846 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24847 * tree-vect-stmts.c (ensure_base_align): Ditto.
24848 * varasm.c (align_variable): Ditto.
24849 (assemble_variable): Ditto.
24850 (build_constant_desc): Ditto.
24851 (output_constant_def_contents): Ditto.
24852
24853 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24854 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24855 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24856 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24857 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24858
24859 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
24860
24861 PR target/70708
24862 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24863 replace %vmovsd with "%vmovq".
24864 (vec_concatv2df): Likewise.
24865
24866 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
24867
24868 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24869 (*vec_extractv2si_0): Ditto.
24870 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24871 (zero_extended_scalar_load_operand splitters): Ditto.
24872 (vec_extract splitters): Ditto.
24873 (*vec_extractv4si_0_zext): Ditto.
24874 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24875 and lowpart_subreg.
24876 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24877 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24878 (*sse4_1_extractps): Use lowpart_subreg.
24879 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24880
24881 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24882
24883 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24884 gld requirements.
24885 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24886 Mention Solaris 11 packaging changes.
24887 Update gas and gld requirements.
24888 Remove reference to pre-Solaris 10 bug.
24889 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24890 systems and bugs.
24891 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24892 with cc.
24893
24894 2016-04-17 Jan Hubicka <jh@suse.cz>
24895
24896 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24897 max_loop_iterations_int.
24898
24899 2016-04-18 Richard Biener <rguenther@suse.de>
24900
24901 PR tree-optimization/43434
24902 * tree-ssa-structalias.c (struct vls_data): New.
24903 (visit_loadstore): Handle all pointer-based accesses.
24904 (compute_dependence_clique): Compute a bitmap of restrict tags
24905 assigned bases and pass it to visit_loadstore.
24906
24907 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
24908
24909 PR target/70711
24910 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24911 armv8.1-a and armv8.1-a+crc.
24912
24913 2016-04-18 Richard Biener <rguenther@suse.de>
24914
24915 PR tree-optimization/70701
24916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24917 references after translating through a memcpy.
24918
24919 2016-04-18 Richard Biener <rguenther@suse.de>
24920
24921 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24922 (compute_antic): ... here. For partial antic use regular
24923 postorder and scrap iteration.
24924 (compute_partial_antic_aux): Remove unused return value.
24925 (init_pre): Do not allocate postorder.
24926 (fini_pre): Do not free postorder.
24927
24928 2016-04-18 Richard Biener <rguenther@suse.de>
24929
24930 PR middle-end/37870
24931 * expmed.c (extract_bit_field_1): Remove broken case
24932 using a wider MODE_INT mode.
24933
24934 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
24935
24936 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24937 unless compiling with at least GCC-4.8.
24938
24939 2016-04-17 Jan Hubicka <jh@suse.cz>
24940
24941 PR bootstrap/70706
24942 * graphite.c (graphite_finalize): Update call to
24943 tree_estimate_probability.
24944 * predict.h (tree_estimate_probability): Update prototype.
24945
24946 2016-04-17 Jan Hubicka <jh@suse.cz>
24947
24948 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24949 (tree_estimate_probability): Likewise.
24950 (pass_profile::execute): Update.
24951 (report_predictor_hitrates): New function.
24952 * profile.c (compute_branch_probabilities): Use it.
24953 * predict.h (report_predictor_hitrates): Declare.
24954
24955 2016-04-17 Jan Hubicka <jh@suse.cz>
24956
24957 PR ipa/70018
24958 * cgraph.h (cgraph_node::set_const_flag,
24959 cgraph_node::set_pure_flag): Update prototype to return bool;
24960 update comment.
24961 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24962 of interposable symbol are interposable, too.
24963 (cgraph_set_const_flag_1): Rename to ...
24964 (set_const_flag_1): ... this one; change to self recursive function
24965 instead of call_for_symbol_thunks_and_aliases. Handle correctly
24966 clearnig the flag in all variants and also virtual thunks of const
24967 functions are pure; track if any change was done.
24968 (cgraph_node::set_const_flag): Update.
24969 (struct set_pure_flag_info): New struct.
24970 (cgraph_set_pure_flag_1): Rename to ...
24971 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
24972 rather than pointer encoded flags; track if any changes was done;
24973 handle correctly clearning flag and setting flag of aliases already
24974 declared const.
24975 (cgraph_node::set_pure_flag): Update.
24976 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
24977
24978 2016-04-17 Tom de Vries <tom@codesourcery.com>
24979
24980 PR other/70433
24981 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
24982 backslash in label.
24983
24984 2016-04-17 Tom de Vries <tom@codesourcery.com>
24985
24986 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
24987 '{}<> ' as escape-for-record.
24988
24989 2016-04-17 Tom de Vries <tom@codesourcery.com>
24990
24991 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
24992 structure.
24993
24994 2016-04-17 Tom de Vries <tom@codesourcery.com>
24995
24996 PR other/70185
24997 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
24998 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
24999 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
25000 * passes.c (finish_optimization_passes): Only call
25001 finish_graph_dump_file if dfi->graph_dump_initialized.
25002 (execute_function_dump, pass_init_dump_file): Use
25003 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
25004
25005 2016-04-17 Tom de Vries <tom@codesourcery.com>
25006
25007 PR tree-optimization/70256
25008 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
25009 (debug_varmap): New function.
25010
25011 2016-04-17 Tom de Vries <tom@codesourcery.com>
25012
25013 PR other/70183
25014 * passes.c (pass_manager::register_pass): Propagate pflags.
25015
25016 2016-04-17 Tom de Vries <tom@codesourcery.com>
25017
25018 PR other/68875
25019 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
25020 * passes.c (pass_manager::pass_manager): Declare and init p_start in
25021 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
25022 check if it's equal to p_start.
25023 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
25024
25025 2016-04-15 Jan Hubicka <jh@suse.cz>
25026
25027 PR ipa/70018
25028 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
25029 function does not bind to current def.
25030 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
25031 handle conservatively calls to functions that does not need to bind
25032 to current def.
25033 (check_call): Update call of worse_state.
25034 (ignore_edge_for_nothrow): Update.
25035 (ignore_edge_for_pure_const): Likewise.
25036 (propagate_pure_const): Update calls to worse_state.
25037 (skip_function_for_local_pure_const): Reformat comments.
25038
25039 2016-04-15 Jan Hubicka <jh@suse.cz>
25040
25041 PR ipa/70018
25042 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
25043 (cgraph_node::function_symbol): Likewise.
25044 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25045 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
25046 (symtab_node::ultimate_alias_target): Add REF parameter.
25047 (symtab_node::binds_to_current_def_p): Declare.
25048 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
25049 (cgraph_node::function_symbol): Likewise.
25050 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25051 (cgraph_node::get_availability): Likewise.
25052 (cgraph_edge::binds_to_current_def_p): New inline function.
25053 (varpool_node::get_availability): Add REF parameter.
25054 (varpool_node::ultimate_alias_target): Likewise.
25055 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
25056 (symtab_node::binds_to_current_def_p): Likewise.
25057 * varpool.c (varpool_node::get_availability): Likewise.
25058
25059 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
25060
25061 PR target/70662
25062 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
25063 Fix mode size check.
25064
25065 2016-04-15 Jakub Jelinek <jakub@redhat.com>
25066
25067 * BASE-VER: Set to 7.0.0.
25068
25069 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
25070
25071 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
25072
25073 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25074
25075 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
25076 architecture revisions.
25077
25078 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
25079
25080 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
25081 * config/i386/i386.c (ix86_using_red_zone): No longer static.
25082 * config/i386/i386.md (stack decrement to push peepholes): Guard
25083 with !x86_using_red_zone ().
25084
25085 2016-04-15 Jakub Jelinek <jakub@redhat.com>
25086
25087 PR c++/70675
25088 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
25089 to dump_generic_node.
25090 (NIY): Pass also flags to do_niy.
25091
25092 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
25093
25094 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
25095 (simd_clone_vector_of_formal_parm_types)
25096 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
25097 (simd_clone_mangle, simd_clone_create)
25098 (simd_clone_adjust_return_type, create_tmp_simd_array)
25099 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
25100 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
25101 (ipa_simd_modify_function_body, simd_clone_linear_addend)
25102 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
25103 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
25104 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
25105 * omp-simd-clone.c: ... this new file.
25106 (simd_clone_vector_of_formal_parm_types): Make it static.
25107 * Makefile.in (OBJS): Add omp-simd-clone.o.
25108
25109 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
25110
25111 PR target/70662
25112 * config/i386/sse.md: Use proper memory operand modifiers.
25113
25114
25115 2016-04-15 Richard Biener <rguenther@suse.de>
25116 Alan Modra <amodra@gmail.com>
25117
25118 PR tree-optimization/70130
25119 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
25120 when alignment stays not the same and no not use the realign
25121 scheme then.
25122
25123 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25124
25125 PR target/70669
25126 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25127 direct move handlers for KFmode. Change TFmode handlers test from
25128 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
25129
25130 2016-04-14 Jakub Jelinek <jakub@redhat.com>
25131
25132 PR c++/70594
25133 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
25134 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
25135 (inlined_polymorphic_ctor_dtor_block_p): Use it.
25136 * tree-ssa-live.c (remove_unused_scope_block_p): When
25137 in_ctor_dtor_block, avoid discarding not just BLOCKs with
25138 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
25139 block_ultimate_origin is FUNCTION_DECL.
25140 (remove_unused_locals): If current_function_decl is
25141 polymorphic_ctor_dtor_p, pass initial true to
25142 remove_unused_scope_block_p' is_ctor_dtor_block.
25143
25144 2016-04-14 Martin Sebor <msebor@redhat.com>
25145
25146 PR c++/69517
25147 PR c++/70019
25148 PR c++/70588
25149 * doc/extend.texi (Variable Length): Revert.
25150
25151 2016-04-14 Marek Polacek <polacek@redhat.com>
25152 Jan Hubicka <hubicka@ucw.cz>
25153
25154 PR c++/70029
25155 * tree.c (verify_type): Disable the canonical type of main variant
25156 check.
25157
25158 2016-04-14 Jason Merrill <jason@redhat.com>
25159
25160 * cfgexpand.c, expr.c: Revert previous change.
25161
25162 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
25163
25164 PR middle-end/70643
25165 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
25166 when building a mem ref for the incoming reduction variable.
25167
25168 2016-04-14 Richard Biener <rguenther@suse.de>
25169
25170 PR tree-optimization/70614
25171 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
25172 loop if the evolution dropped to chrec_dont_know.
25173 (interpret_condition_phi): Likewise.
25174
25175 2016-04-14 Richard Biener <rguenther@suse.de>
25176
25177 PR tree-optimization/70623
25178 * tree-ssa-pre.c (changed_blocks): Make global ...
25179 (compute_antic): ... local here. Move and fix worklist
25180 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
25181 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
25182 worklist handling, dump when ANTIC_IN changed.
25183 (compute_partial_antic_aux): Remove worklist handling.
25184 (init_pre): Do not compute post dominators. Add a comment about
25185 the CFG order chosen.
25186 (fini_pre): Do not free post dominators.
25187
25188 2016-04-13 Martin Sebor <msebor@redhat.com>
25189
25190 PR c++/69517
25191 PR c++/70019
25192 PR c++/70588
25193 * doc/extend.texi (Variable Length): Document C++ specifics.
25194
25195 2016-04-13 Jakub Jelinek <jakub@redhat.com>
25196
25197 PR c++/70641
25198 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
25199 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
25200 eh edges have been purged.
25201
25202 PR c++/70594
25203 * tree-sra.c (create_access_replacement,
25204 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
25205 gets fancy name.
25206 * tree-pretty-print.c (dump_fancy_name): New function.
25207 (dump_decl_name, dump_generic_node): Use it.
25208
25209 2016-04-13 Jason Merrill <jason@redhat.com>
25210
25211 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
25212 * expr.c (expand_expr_real_1): Likewise.
25213
25214 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
25215
25216 * config/i386/i386.md (kunpckhi): Swap operands.
25217 (kunpcksi): Likewise.
25218 (kunpckdi): Likewise.
25219 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
25220 (vec_pack_trunc_<mode>): Likewise.
25221
25222 2016-04-13 Jakub Jelinek <jakub@redhat.com>
25223
25224 PR debug/70628
25225 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
25226
25227 PR middle-end/70633
25228 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
25229 gimplification turns some element into non-constant.
25230
25231 PR debug/70628
25232 * rtl.h (convert_memory_address_addr_space_1): New prototype.
25233 * explow.c (convert_memory_address_addr_space_1): No longer static,
25234 add NO_EMIT argument and don't call convert_modes if true, pass
25235 it down recursively, remove break after return.
25236 (convert_memory_address_addr_space): Adjust caller.
25237 * simplify-rtx.c (simplify_unary_operation_1): Call
25238 convert_memory_address_addr_space_1 instead of convert_memory_address,
25239 if it returns NULL, don't simplify.
25240
25241 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
25242
25243 PR target/70630
25244 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
25245
25246 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25247
25248 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25249 Bump the upper SIMDLEN limits, so that if the return type or
25250 characteristic type if the return type is void can be passed in
25251 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
25252 allowed.
25253
25254 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25255
25256 PR target/70640
25257 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
25258 Do not use "=" constraint on an input constraint.
25259 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
25260 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
25261 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
25262 generates (neg (abs ...)) instead of (abs ...).
25263
25264 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25265
25266 PR rtl-optimization/70596
25267 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
25268 just invalidate LRA data and reset them. Adjust dump wording.
25269
25270 2016-04-12 Martin Liska <mliska@suse.cz>
25271
25272 Revert
25273 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25274
25275 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25276 estimates here.
25277 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25278 max_loop_iterations_int.
25279 (tree_unswitch_outer_loop): Likewise.
25280 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25281 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25282
25283 2016-04-12 Tom de Vries <tom@codesourcery.com>
25284
25285 PR tree-optimization/68756
25286 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
25287 instead of new_name.
25288
25289 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25290
25291 PR tree-optimization/70602
25292 * tree-sra.c (generate_subtree_copies): Don't write anything into
25293 constant pool decls.
25294
25295 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
25296 regardless whether there are depend clauses or not.
25297
25298 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25299
25300 PR target/70381
25301 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
25302 target attribute and pragma from changing the -mfloat128
25303 and -mfloat128-hardware options.
25304
25305 * doc/extend.texi (Additional Floating Types): Document PowerPC
25306 __float128 restrictions.
25307
25308 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25309
25310 PR target/70133
25311 * config/aarch64/driver-aarch64.c
25312 (aarch64_get_extension_string_for_isa_flags): New.
25313 (arch_extension): Rename to...
25314 (aarch64_arch_extension): ...This.
25315 (ext_to_feat_string): Rename to...
25316 (aarch64_extensions): ...This.
25317 (aarch64_core_data): Keep track of architecture extension flags.
25318 (cpu_data): Rename to...
25319 (aarch64_cpu_data): ...This.
25320 (aarch64_arch_driver_info): Keep track of architecture extension
25321 flags.
25322 (get_arch_name_from_id): Rename to...
25323 (get_arch_from_id): ...This, change return type.
25324 (host_detect_local_cpu): Update and reformat for renames, handle
25325 extensions through common infrastructure.
25326
25327 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25328
25329 PR target/70133
25330 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
25331 track of a canonical flag name.
25332 (all_extensions): Likewise.
25333 (arch_to_arch_name): Also track extension flags enabled by the arch.
25334 (all_architectures): Likewise.
25335 (aarch64_parse_extension): Move to here.
25336 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
25337 rework.
25338 (aarch64_rewrite_selected_cpu): Update for above change.
25339 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
25340 are handled, such that the single explicit value enabled by an
25341 extension is kept seperate from the implicit values it also enables.
25342 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
25343 to here.
25344 (aarch64_parse_extension): New.
25345 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
25346 here to config/aarch64/aarch64-protos.h.
25347 (aarch64_parse_extension): Move from here to
25348 common/config/aarch64/aarch64-common.c.
25349 (aarch64_option_print): Update.
25350 (aarch64_declare_function_name): Likewise.
25351 (aarch64_start_file): Likewise.
25352 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
25353 the canonical flag for extensions.
25354 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
25355 flags.
25356
25357 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25358
25359 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
25360 AARCH64_FL_CRC.
25361
25362 2016-04-09 Tom de Vries <tom@codesourcery.com>
25363
25364 PR tree-optimization/68953
25365 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
25366 first to last subscript.
25367
25368 2016-04-09 Jakub Jelinek <jakub@redhat.com>
25369
25370 PR tree-optimization/70586
25371 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
25372 for any calls.
25373
25374 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
25375
25376 PR lto/70289
25377 PR ipa/70348
25378 PR tree-optimization/70373
25379 PR middle-end/70533
25380 PR middle-end/70534
25381 PR middle-end/70535
25382 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
25383 clauses for acc parallel reductions as necessary. Error on those
25384 that are private.
25385 * omp-low.c (scan_sharing_clauses): Don't install variables which
25386 are used in acc parallel reductions.
25387 (lower_rec_input_clauses): Remove dead code.
25388 (lower_oacc_reductions): Add support for reference reductions.
25389 (lower_reduction_clauses): Remove dead code.
25390 (lower_omp_target): Don't remap variables appearing in acc parallel
25391 reductions.
25392 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
25393
25394 2016-04-08 Jakub Jelinek <jakub@redhat.com>
25395
25396 PR middle-end/70593
25397 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
25398 with multiple SSA_NAME defs, force the outputs other than first
25399 to be live before calling live_track_process_def on each output.
25400
25401 PR rtl-optimization/70574
25402 * fwprop.c (forward_propagate_and_simplify): Don't add
25403 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
25404 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
25405 paradoxical subregs within *loc.
25406
25407 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
25408
25409 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
25410 -ftree-parallelize-loops={0,1}.
25411 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25412 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25413 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25414 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25415 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25416
25417 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
25418
25419 PR sanitizer/70541
25420 * asan.c (instrument_derefs): If we get unknown location, extract it
25421 with EXPR_LOCATION.
25422 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
25423
25424 2016-04-08 Tom de Vries <tom@codesourcery.com>
25425
25426 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
25427 implicit firstprivate clause.
25428
25429 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25430
25431 PR target/70566
25432 * config/arm/thumb2.md (tst + branch-> lsls + branch
25433 peephole below *orsi_not_shiftsi_si): Require that condition
25434 register is dead after the peephole.
25435 (second peephole after the above): Likewise.
25436
25437 2016-04-08 Alan Modra <amodra@gmail.com>
25438
25439 PR target/70117
25440 * builtins.c (fold_builtin_classify): For IBM extended precision,
25441 look at just the high-order double to test for NaN.
25442 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
25443 test just the high double for Inf but both doubles for subnormal
25444 limit.
25445
25446 2016-04-07 Jakub Jelinek <jakub@redhat.com>
25447
25448 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
25449 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
25450 node->simdclone->mask_mode != VOIDmode masks.
25451 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
25452 earlier, use it instead of node->simdclone.
25453 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25454 Set clonei->mask_mode.
25455
25456 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25457
25458 PR c/70436
25459 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
25460 Pass it through to cp_parser_already_scoped_statement.
25461 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
25462 it through to cp_parser_statement.
25463 (cp_parser_statement): Pass IF_P through to
25464 cp_parser_iteration_statement.
25465 (cp_parser_pragma): Adjust call to
25466 cp_parser_iteration_statement.
25467
25468 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25469
25470 PR c/70436
25471 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
25472 resolve a future -Wparentheses warning.
25473 * omp-low.c (scan_sharing_clauses): Likewise.
25474 * tree-parloops.c (eliminate_local_variables): Likewise.
25475
25476 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
25477
25478 PR rtl-optimization/70398
25479 * lra-constraints.c (process_address_1): Check zero scale and code
25480 for reloading with zero scale.
25481
25482 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
25483
25484 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
25485 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
25486
25487 2016-04-06 Jakub Jelinek <jakub@redhat.com>
25488
25489 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25490 Add support for AVX512F clones, include them by default for
25491 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
25492 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
25493 up to 128.
25494
25495 PR middle-end/70550
25496 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
25497 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
25498 firstprivate clauses.
25499 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
25500 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
25501 (lower_omp_target): Set TREE_NO_WARNING for
25502 non-addressable possibly uninitialized vars which are copied into
25503 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
25504
25505 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
25506
25507 * config/pa/predicates.md (integer_store_memory_operand): Accept
25508 REG+D operands with a large offset when reload_in_progress is true.
25509 (floating_point_store_memory_operand): Likewise.
25510
25511 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25512
25513 PR c++/70336
25514 * match.pd (nested int casts): Limit to GIMPLE.
25515
25516 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
25517
25518 PR ipa/66223
25519 * ipa-devirt.c (maybe_record_node): Fix comment; use
25520 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
25521
25522 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25523
25524 PR rtl-optimization/70542
25525 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
25526 if there are any uses other than insn or debug insns.
25527
25528 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
25529 Jakub Jelinek <jakub@redhat.com>
25530
25531 PR tree-optimization/70509
25532 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
25533 Shift HOST_WIDE_INT_1U instead of 1.
25534
25535 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
25536
25537 PR tree-optimization/70509
25538 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
25539 of the vector base type for index.
25540
25541 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
25542
25543 PR target/70510
25544 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
25545
25546 2016-04-05 Richard Biener <rguenther@suse.de>
25547
25548 PR tree-optimization/70526
25549 * tree-sra.c (build_ref_for_offset): Use prev_base to
25550 extract the alias pointer type.
25551
25552 2016-04-05 Richard Biener <rguenther@suse.de>
25553
25554 * dse.c (struct store_info): Remove alias_set member.
25555 (struct read_info_type): Likewise.
25556 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
25557 spill_deleted, clear_alias_set_lookup): Remove.
25558 (get_group_info): Remove dead base == NULL_RTX case.
25559 (dse_step0): Remove initialization of removed variables.
25560 (delete_dead_store_insn): Reomve alias set dumping.
25561 (free_read_records): Remove alias_set handling.
25562 (canon_address): Remove alias_set_out parameter.
25563 (record_store): Remove spill_alias_set, it's always zero.
25564 (check_mem_read_rtx): Likewise.
25565 (dse_step2): Rename from ...
25566 (dse_step2_nospill): ... this. Adjust.
25567 (scan_stores): Rename from ...
25568 (scan_stores_nospill): ... this.
25569 (scan_reads): Rename from ...
25570 (scan_reads_nospill): ... this.
25571 (scan_stores_spill, scan_reads_spill): Remove.
25572 (dse_step3_scan): Remove for_spills argument which is always false.
25573 (dse_step3): Likewise.
25574 (dse_step5): Rename from ...
25575 (dse_step5_nospill): ... this. Remove alias_set handling.
25576 (rest_of_handle_dse): Adjust.
25577
25578 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25579
25580 PR target/70525
25581 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
25582 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
25583 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
25584 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
25585
25586 2016-04-05 Richard Biener <rguenther@suse.de>
25587
25588 PR middle-end/70499
25589 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
25590 non-register type temporaries into SSA.
25591
25592 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
25593
25594 PR ipa/66223
25595 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
25596 calls when sanitizing.
25597 (possible_polymorphic_call_target_p): Fix formatting.
25598
25599 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25600 Jakub Jelinek <jakub@redhat.com>
25601
25602 PR middle-end/70457
25603 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
25604 to ensure a call statement is compatible with a built-in's
25605 prototype.
25606 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
25607 Likewise.
25608
25609 2016-04-04 Richard Biener <rguenther@suse.de>
25610
25611 PR rtl-optimization/70484
25612 * rtl.h (canon_output_dependence): Declare.
25613 * alias.c (canon_output_dependence): New function.
25614 * dse.c (record_store): Use canon_output_dependence rather
25615 than canon_true_dependence.
25616
25617 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25618
25619 PR ipa/68881
25620 * cgraph.h (symtab_node::copy_visibility_from): New function.
25621 * symtab.c (symtab_node::copy_visibility_from): New function.
25622 * ipa-visibility.c (optimize_weakref): New function.
25623 (function_and_variable_visibility): Use it.
25624
25625 2016-04-04 Martin Liska <mliska@suse.cz>
25626
25627 PR hsa/70402
25628 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
25629 value that is really in range handled by SBR instruction.
25630 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
25631 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
25632 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
25633
25634 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
25635
25636 PR target/70416
25637 PR target/67391
25638 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
25639 set, but not for SP_REG operands.
25640
25641 2016-04-02 Martin Sebor <msebor@redhat.com>
25642
25643 PR c++/67376
25644 * fold-const.c (maybe_nonzero_address): New function.
25645 (fold_comparison): Call it. Fold equality and relational
25646 expressions involving null pointers.
25647 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
25648
25649 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
25650
25651 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
25652 the "Y" constraint (scalar FP 0.0 immediate).
25653
25654 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
25655 Add the "const_double" to the list of operand constraints.
25656
25657 2016-04-01 Jakub Jelinek <jakub@redhat.com>
25658
25659 PR rtl-optimization/70467
25660 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
25661 If low word of the last operand is 0, just emit addition/subtraction
25662 for the high word.
25663
25664 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25665
25666 PR target/70404
25667 * config/s390/s390.c (s390_expand_insv): Check for everything
25668 constant instead of just VOIDmode stuff.
25669
25670 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25671
25672 PR target/70496
25673 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25674
25675 2016-04-01 Nathan Sidwell <nathan@acm.org>
25676
25677 * tree.def (TRY_CATCH_EXPR): Correct documentation.
25678
25679 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
25680
25681 PR rtl-optimization/70461
25682 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25683 is necessary.
25684
25685 2016-03-31 Martin Liska <mliska@suse.cz>
25686
25687 PR hsa/70399
25688 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25689 a tree value or an immediate integer value to a buffer
25690 that is eventually copied to a BRIG section.
25691 (emit_immediate_operand): Call the function here.
25692 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25693 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25694 of class' fields that are removed.
25695 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25696 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25697 m_brig_repr_size fields.
25698
25699 2016-03-31 Martin Liska <mliska@suse.cz>
25700
25701 PR hsa/70391
25702 * hsa-gen.c (hsa_function_representation::update_dominance): New
25703 function.
25704 (convert_addr_to_flat_segment): Likewise.
25705 (gen_hsa_memory_set): New alignment argument.
25706 (gen_hsa_ctor_assignment): Likewise.
25707 (gen_hsa_insns_for_single_assignment): Provide alignment
25708 to gen_hsa_ctor_assignment.
25709 (gen_hsa_insns_for_direct_call): Add new argument.
25710 (expand_lhs_of_string_op): New function.
25711 (expand_string_operation_builtin): Likewise.
25712 (expand_memory_copy): New function.
25713 (expand_memory_set): New function.
25714 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25715 (convert_switch_statements): Change signature.
25716 (generate_hsa): Use a return value of the function.
25717 (pass_gen_hsail::execute): Do not call
25718 convert_switch_statements here.
25719 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25720 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25721 (hsa_function_representation::update_dominance): New function.
25722
25723 2016-03-31 Martin Liska <mliska@suse.cz>
25724
25725 PR hsa/70391
25726 * hsa-brig.c (emit_directive_variable): Emit alignment
25727 according to hsa_symbol::m_align.
25728 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25729 (dump_hsa_symbol): Dump alignment of HSA symbols.
25730 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25731 (gen_hsa_addr_with_align): New function.
25732 (hsa_bitmemref_alignment): Use newly added function.
25733 (gen_hsa_insns_for_load): Likewise.
25734 (gen_hsa_insns_for_store): Likewise.
25735 (gen_hsa_memory_copy): New argument added.
25736 (gen_hsa_insns_for_single_assignment): Respect
25737 alignment for assignments processed via gen_hsa_memory_copy.
25738 (gen_hsa_insns_for_direct_call): Likewise.
25739 (gen_hsa_insns_for_return): Likewise.
25740 (gen_function_def_parameters): Set default alignment.
25741 * hsa.c (hsa_object_alignment): New function.
25742 (hsa_byte_alignment): Pasted function.
25743 * hsa.h (hsa_symbol::m_align): New field.
25744
25745 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25746
25747 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25748 scratch field for goto case.
25749
25750 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
25751
25752 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25753
25754 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
25755
25756 PR target/70442
25757 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25758 (scalar_chain::convert_insn): Call convert_op for reg
25759 moves to handle undefined registers.
25760
25761 2016-03-31 Nathan Sidwell <nathan@acm.org>
25762
25763 PR c++/70393
25764 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25765 Assert we don't want to move backwards.
25766
25767 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
25768
25769 PR target/70453
25770 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25771
25772 2016-03-31 Jakub Jelinek <jakub@redhat.com>
25773
25774 PR rtl-optimization/70460
25775 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25776 with operand from REG_LABEL_OPERAND, instead substitute
25777 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25778 Don't do anything for REG_NON_LOCAL_GOTO jumps.
25779
25780 2016-03-31 Martin Liska <mliska@suse.cz>
25781
25782 * passes.c (execute_one_pass): Do not call
25783 todo_after for a discarded function.
25784
25785 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25786
25787 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25788 (no_cost, infinite_cost): Initialize the new field.
25789 (get_computation_cost_at): Record setup cost.
25790 (determine_use_iv_cost_address): Skip cost computation for sub
25791 uses if we can estimate it without losing accuracy.
25792
25793 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25794
25795 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25796 estimates here.
25797 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25798 max_loop_iterations_int.
25799 (tree_unswitch_outer_loop): Likewise.
25800 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25801 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25802
25803 2016-03-30 Richard Biener <rguenther@suse.de>
25804
25805 PR middle-end/70450
25806 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25807
25808 2016-03-30 Jakub Jelinek <jakub@redhat.com>
25809
25810 PR target/70421
25811 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25812 in gen_blendm expander.
25813
25814 2016-03-30 Nick Clifton <nickc@redhat.com>
25815
25816 PR target/62254
25817 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25818 case where we are already provided with an SImode SUBREG.
25819
25820 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
25821
25822 PR target/70439
25823 * config/i386/i386.c (ix86_expand_epilogue): Properly check
25824 conflict between DRAP register and __builtin_eh_return.
25825
25826 2016-03-30 Michael Matz <matz@suse.de>
25827 Richard Biener <rguenther@suse.de>
25828
25829 PR ipa/12392
25830 * ipa-polymorphic-call.c (struct type_change_info): Change
25831 speculative to an unsigned allowing to limit the work we do.
25832 (csftc_abort_walking_p): New inline function..
25833 (check_stmt_for_type_change): Limit the number of may-defs
25834 skipped for speculative devirtualization to
25835 max-speculative-devirt-maydefs.
25836 * params.def (max-speculative-devirt-maydefs): New param.
25837 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25838
25839 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
25840
25841 PR target/63890
25842 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25843 and TARGET_MACHO.
25844
25845 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
25846
25847 PR tree-optimization/59124
25848 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25849 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25850
25851 2016-03-29 Jeff Law <law@redhat.com>
25852
25853 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25854
25855 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25856
25857 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25858 to HOST_WIDE_INT.
25859
25860 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
25861
25862 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25863 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25864 gcrt0.o if linking dynamically.
25865
25866 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25867
25868 PR ipa/70283
25869 * ipa-devirt.c (methods_equal_p): New function.
25870 (compare_virtual_tables): Use it.
25871 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25872 * cgraphclones.c (clone_function_name_1): Use
25873 symbol_table::symbol_suffix_separator.
25874 * coverage.c (build_var): Likewise.
25875 * symtab.c (symbol_table::symbol_suffix_separator): New.
25876
25877 2016-03-29 Jakub Jelinek <jakub@redhat.com>
25878
25879 PR rtl-optimization/70429
25880 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25881 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25882 mode != result_mode.
25883
25884 PR c++/70353
25885 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25886
25887 PR tree-optimization/70405
25888 * ssa-iterators.h (num_imm_uses): Add missing braces.
25889
25890 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
25891
25892 PR rtl-optimization/68695
25893 * ira-color.c (allocno_copy_cost_saving): New.
25894 (improve_allocation): Use it.
25895
25896 2016-03-29 Richard Henderson <rth@redhat.com>
25897
25898 PR middle-end/70355
25899 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25900
25901 2016-03-29 Richard Biener <rguenther@suse.de>
25902
25903 PR middle-end/70424
25904 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25905 use alignment returned by get_pointer_alignment_1 if it is
25906 bigger than BITS_PER_UNIT.
25907 * builtins.c (get_pointer_alignment_1): Do not return true
25908 for alignment extracted from SSA info.
25909
25910 2016-03-28 James Bowman <james.bowman@ftdichip.com>
25911
25912 * config/ft32/ft32.opt (mnodiv): New.
25913 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25914 * doc/invoke.texi (FT32 Options -mnodiv): New.
25915
25916 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
25917
25918 PR target/70406
25919 * config/i386/i386.md (define_split, andn): Fix modes.
25920
25921 2016-03-26 Richard Biener <rguenther@suse.de>
25922 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25923
25924 PR ipa/70366
25925 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25926 instead of
25927 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25928 as 2nd argument to cl_optimization_restore().
25929
25930 2016-03-25 Richard Henderson <rth@redhat.com>
25931
25932 PR target/70120
25933 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25934 * config/aarch64/aarch64-protos.h: Declare it.
25935 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25936
25937 2016-03-25 Alan Modra <amodra@gmail.com>
25938
25939 PR target/70052
25940 * config/rs6000/constraints.md (j): Simplify.
25941 * config/rs6000/predicates.md (easy_fp_constant): Exclude
25942 decimal float 0.D.
25943 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25944 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25945 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25946 in all constraint alternatives.
25947 (movtd_64bit_nodm): Delete "j" constraint alternative.
25948
25949 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25950
25951 * tree-ssa-propagate.c: Enhance docs for
25952 SSA_PROP_NOT_INTERESTING.
25953
25954 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25955
25956 * doc/extend.texi: Fix typo in documentation to pure attribute.
25957
25958 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
25959
25960 PR target/70319
25961 * config/pa/pa.md (bswapdi2): Use a scratch register.
25962
25963 2016-03-24 Richard Henderson <rth@redhat.com>
25964
25965 PR middle-end/69845
25966 * fold-const.c (extract_muldiv_1): Correct test for multiplication
25967 overflow.
25968
25969 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
25970
25971 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
25972 using ix86_expand_binary_operator instead of gen_andsi3.
25973
25974 2016-03-24 Richard Biener <rguenther@suse.de>
25975
25976 PR tree-optimization/70396
25977 * tree-vect-stmts.c (vectorizable_comparison): Use
25978 get_vectype_for_scalar_type.
25979
25980 2016-03-24 Richard Biener <rguenther@suse.de>
25981
25982 PR middle-end/70370
25983 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
25984 with register bases.
25985
25986 2016-03-24 Richard Biener <rguenther@suse.de>
25987
25988 PR tree-optimization/70372
25989 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
25990 build_all_ones_cst to also handle vector types correctly.
25991
25992 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25993
25994 PR target/70381
25995 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
25996 -mfloat128 here.
25997
25998 2016-03-23 Marek Polacek <polacek@redhat.com>
25999
26000 PR c++/69884
26001 * doc/invoke.texi: Document -Wignored-attributes.
26002
26003 2016-03-23 Bin Cheng <bin.cheng@arm.com>
26004
26005 PR tree-optimization/69042
26006 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
26007 parameter from 30 to 40.
26008
26009 2016-03-23 Bin Cheng <bin.cheng@arm.com>
26010
26011 PR tree-optimization/69042
26012 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
26013 for use with constant offset stripped in base.
26014
26015 2016-03-23 Richard Biener <rguenther@suse.de>
26016
26017 PR middle-end/70251
26018 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
26019 mode compatibility check.
26020 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26021
26022 2016-03-23 Jeff Law <law@redhat.com>
26023
26024 PR tree-optimization/64058
26025 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
26026 CONFLICT_COUNT.
26027 (struct ssa_conflicts): Move up earlier in the file.
26028 (conflicts_, var_map_): New static variables.
26029 (initialize_conflict_count): New function to initialize the
26030 CONFLICT_COUNT field for each conflict pair.
26031 (compare_pairs): Lazily initialize the conflict count and use it
26032 as the first tie-breaker.
26033 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
26034 and wipe conflicts_ and map_ around the call to qsort. Remove
26035 special case for 2 coalesce pairs.
26036 * bitmap.c (bitmap_count_unique_bits): New function.
26037 (bitmap_count_bits_in_word): New function, extracted from
26038 bitmap_count_bits.
26039 (bitmap_count_bits): Use bitmap_count_bits_in_word.
26040 * bitmap.h (bitmap_count_unique_bits): Declare it.
26041
26042 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
26043
26044 PR target/69917
26045 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
26046 transparent alias chain for decl assembler name.
26047 * config/sol2.c (solaris_assemble_visibility): Likewise.
26048
26049 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26050
26051 * config/arm/arm1020e.md (1020call_op): Reduce reservation
26052 duration.
26053 (v10_fdivs): Likewise.
26054 (v10_fdivd): Likewise.
26055
26056 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26057
26058 PR driver/70132
26059 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
26060 to not call fclose twice on file.
26061
26062 2016-03-23 Jakub Jelinek <jakub@redhat.com>
26063
26064 PR tree-optimization/70354
26065 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26066 oprnd0 is wider than oprnd1 and there is a cast from the wider
26067 type to oprnd1, mask it with the mask of the narrower type.
26068
26069 PR target/70321
26070 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
26071 Optimize TARGET_STV splitters, if high or low word of last argument
26072 is 0 or -1.
26073
26074 2016-03-22 Jeff Law <law@redhat.com>
26075
26076 PR target/70232
26077 tree-ssa-threadbackward.c
26078 (fsm_find_control_statement_thread_paths): Correctly distinguish
26079 between old style jump threads vs FSM jump threads.
26080
26081 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
26082
26083 PR target/70302
26084 * config/i386/i386.c (scalar_chain::convert_op): Support
26085 uninitialized register usage case.
26086
26087 2016-03-22 Richard Biener <rguenther@suse.de>
26088
26089 PR middle-end/70251
26090 * genmatch.c (gen_transform): Adjust last parameter to a three-state
26091 int...
26092 (capture::gen_transform): ... to change behavior when substituting
26093 a condition into cond or not-cond expr context.
26094 (dt_simplify::gen_1): Adjust.
26095 * gimple-match-head.c: Include gimplify.h for unshare_expr.
26096 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
26097 last change and instead change to
26098 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
26099 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26100
26101 2016-03-22 Anthony Green <green@moxielogic.com>
26102
26103 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
26104 issue for moxiebox targets.
26105 (CC1PLUS_SPEC): Ditto.
26106
26107 2016-03-22 Richard Biener <rguenther@suse.de>
26108
26109 PR middle-end/70333
26110 * fold-const.c (extract_muldiv_1): Properly perform multiplication
26111 in the wide type.
26112
26113 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
26114
26115 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
26116
26117 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
26118
26119 PR target/70325
26120 * config/i386/i386.c (def_builtin): Handle
26121 OPTION_MASK_ISA_AVX512VL to be and-ed with other
26122 bits.
26123 (const struct builtin_description bdesc_special_args[]):
26124 Remove duplicate ISA bits.
26125
26126 2016-03-22 Jakub Jelinek <jakub@redhat.com>
26127
26128 PR target/70329
26129 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
26130 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
26131 in a way that works also for AVX512BW.
26132
26133 PR target/70300
26134 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
26135 instead of source if operands[1] is xmm16 and above and
26136 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
26137 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
26138
26139 PR c++/70295
26140 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
26141 on assign if (*from_p) is a comparison, set it to
26142 TREE_NO_WARNING (*from_p).
26143
26144 2016-03-21 Jakub Jelinek <jakub@redhat.com>
26145
26146 PR middle-end/70326
26147 * lra.c (restore_scratches): Ignore deleted insns.
26148
26149 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
26150 Jakub Jelinek <jakub@redhat.com>
26151
26152 PR tree-optimization/70317
26153 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
26154 to HONOR_NANS.
26155
26156 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
26157
26158 PR target/70327
26159 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
26160 of ix86_expand_move.
26161 (movoi): Ditto.
26162 (movti): Use general_operand for operand 1 predicate.
26163
26164 2016-03-21 Martin Liska <mliska@suse.cz>
26165
26166 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
26167 insns.
26168 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
26169
26170 2016-03-21 Martin Liska <mliska@suse.cz>
26171
26172 PR ipa/70306
26173 * ipa-icf.c (sem_function::parse): Skip static
26174 constructors and destructors.
26175
26176 2016-03-21 Jakub Jelinek <jakub@redhat.com>
26177
26178 PR target/70296
26179 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
26180 function-like macro, peek following token(s) if it is followed
26181 by CPP_OPEN_PAREN token with optional padding in between, and
26182 if not, don't treat it like a macro.
26183
26184 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
26185 Alexander Monakov <amonakov@ispras.ru>
26186
26187 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
26188 for the stabs debug format.
26189
26190 2016-03-21 Richard Biener <rguenther@suse.de>
26191
26192 PR tree-optimization/70310
26193 * tree-vect-generic.c (expand_vector_condition): Fold the built
26194 condition.
26195
26196 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
26197
26198 PR target/70293
26199 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
26200 Block third alternative for AVX-512VL target,
26201
26202 2016-03-21 Martin Liska <mliska@suse.cz>
26203
26204 PR hsa/70234
26205 * hsa-brig.c (emit_function_directives): Mark unemitted
26206 global variables for emission.
26207 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
26208 (get_symbol_for_decl): Likewise.
26209 * hsa.h (struct hsa_symbol): New flag.
26210
26211 2016-03-21 Richard Biener <rguenther@suse.de>
26212
26213 PR tree-optimization/70288
26214 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
26215 we do not estimate unsimplified all-constant conditionals or
26216 switches as optimized away.
26217
26218 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
26219
26220 PR rtl-optimization/69102
26221 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
26222 when we have a readonly dependency context.
26223
26224 2016-03-18 Jeff Law <law@redhat.com>
26225
26226 PR rtl-optimization/70263
26227 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
26228 (update_equiv_regs): When trying to move a store to after the insn
26229 that sets the source of the store, make sure the store occurs after
26230 the insn that sets the source of the store. When successful note
26231 the REG_EQUIV note created in the dump file.
26232
26233 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
26234 Bernd Schmidt <bschmidt@redhat.com>
26235
26236 * doc/extend.texi: Document more potential problems with basic asms.
26237
26238 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
26239
26240 PR rtl-optimization/70278
26241 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
26242 VOIDmode.
26243
26244 2016-03-18 Jason Merrill <jason@redhat.com>
26245
26246 * calls.c (load_register_parameters): Fix zero size sibcall logic.
26247
26248 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26249
26250 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
26251 values to 128b regs.
26252
26253 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26254
26255 PR tree-optimization/70252
26256 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
26257 boolean vector has a proper number of elements.
26258 (supportable_narrowing_operation): Likewise.
26259
26260 2016-03-18 Tom de Vries <tom@codesourcery.com>
26261
26262 PR ipa/70269
26263 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
26264
26265 2016-03-18 Jakub Jelinek <jakub@redhat.com>
26266
26267 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
26268 instead of replace_rtx for DEBUG_INSNs.
26269
26270 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26271
26272 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
26273 load type reservations.
26274
26275 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
26276
26277 PR target/70188
26278 * config/pa/constraints.md: Revert 2015-02-13 change. Use
26279 define_constraint for "Q" and "T" constraints.
26280
26281 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
26282
26283 Tweak the pipeline model for Exynos M1
26284
26285 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
26286 model.
26287
26288 2016-03-17 David Malcolm <dmalcolm@redhat.com>
26289
26290 PR c/70264
26291 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
26292 where one or both locations aren't within a line_map.
26293
26294 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 PR driver/70192
26297 * opts.c (finish_options): Don't set flag_pie to the default if
26298 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
26299 if it is -1.
26300
26301 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
26302
26303 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
26304 true as ALL_REGS argument to replace_rtx.
26305
26306 2016-03-17 Richard Biener <rguenther@suse.de>
26307
26308 PR debug/70271
26309 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
26310 last.
26311
26312 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26313
26314 PR target/70245
26315 * rtl.h (replace_rtx): Add ALL_REGS argument.
26316 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
26317 equality and assert mode is the same, instead of just rtx pointer
26318 equality.
26319 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
26320 true as ALL_REGS argument to replace_rtx.
26321
26322 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
26323
26324 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
26325 for boolean vector with vector mode only.
26326 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26327
26328 2016-03-17 Nick Clifton <nickc@redhat.com>
26329
26330 PR target/70162
26331 * config/rx/rx.c (rx_print_integer): Print negative constants in
26332 decimal.
26333
26334 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26335
26336 PR target/70261
26337 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
26338
26339 2016-03-16 Richard Henderson <rth@redhat.com>
26340 Richard Biener <rguenth@suse.de>
26341
26342 PR middle-end/70240
26343 PR middle-end/68215
26344 PR tree-opt/68714
26345 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
26346 first operand as is_gimple_condexpr.
26347
26348 PR middle-end/70240
26349 PR middle-end/68215
26350 Revert r231575
26351 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
26352 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
26353 Do not gimplify the result.
26354 (do_unop): Adjust call to tree_vec_extract.
26355 (do_binop): Likewise.
26356 (do_compare): Likewise.
26357 (do_plus_minus): Likewise.
26358 (do_negate): Likewise.
26359 (expand_vector_condition): Likewise.
26360 (do_cond): Likewise.
26361
26362 2016-03-16 Richard Henderson <rth@redhat.com>
26363
26364 PR target/70048
26365 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
26366 (aarch64_classify_address): Use it.
26367 (aarch64_legitimize_address): Force all subexpressions of PLUS
26368 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
26369
26370 2016-03-16 Jakub Jelinek <jakub@redhat.com>
26371 Richard Biener <rguenth@suse.de>
26372
26373 PR target/70245
26374 * rtlanal.c (replace_rtx): For REG, if from is a REG,
26375 return to even if only REGNO is equal, and assert
26376 mode is the same.
26377
26378 2016-03-11 Jeff Law <law@redhat.com>
26379
26380 PR rtl-optimization/70224
26381 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
26382
26383 2016-03-16 Richard Henderson <rth@redhat.com>
26384
26385 PR middle-end/70199
26386 * function.h (struct function): Add has_forced_label_in_static.
26387 * gimplify.c (force_labels_r): Set it.
26388 * lto-streamer-in.c (input_struct_function_base): Read it.
26389 * lto-streamer-out.c (output_struct_function_base): Write it.
26390 * tree-inline.c (has_label_address_in_static_1): Remove.
26391 (copy_forbidden): Remove fndecl parameter; test
26392 has_forced_label_in_static.
26393 (inline_forbidden_p): Update call to copy_forbidden.
26394 (tree_versionable_function_p): Likewise.
26395 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
26396 (chkp_versioning): Likewise.
26397 * tree-inline.h (copy_forbidden): Update decl.
26398
26399 2016-03-16 Marek Polacek <polacek@redhat.com>
26400
26401 PR c/70093
26402 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
26403 function being thunked if the result type doesn't have fixed size.
26404 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
26405 doesn't have fixed size.
26406
26407 2016-03-16 Bin Cheng <bin.cheng@arm.com>
26408
26409 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
26410 reporting malformed loop nest.
26411
26412 2016-03-16 Tom de Vries <tom@codesourcery.com>
26413
26414 PR lto/70187
26415 * ipa-devirt.c (possible_polymorphic_call_targets): Move
26416 nodes.length () == 1 test to before first nodes[0] access.
26417
26418 2016-03-16 Tom de Vries <tom@codesourcery.com>
26419
26420 PR tree-optimization/68715
26421 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
26422 single_pred_p test.
26423
26424 2016-03-16 Tom de Vries <tom@codesourcery.com>
26425
26426 PR tree-optimization/68809
26427 * graphite-scop-detection.c (same_close_phi_node): Test if result types
26428 are the same.
26429
26430 2016-03-16 Carlos O'Donell <carlos@redhat.com>
26431 Sandra Loosemore <sandra@codesourcery.com>
26432
26433 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
26434 on leaf attribute. Mention ELF interposition problems.
26435
26436 2016-03-16 Alan Modra <amodra@gmail.com>
26437
26438 PR rtl-optimization/69195
26439 PR rtl-optimization/47992
26440 * ira.c (indirect_jump_optimize): Ignore artificial defs.
26441 Add comments.
26442
26443 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
26444
26445 PR bootstrap/69513
26446 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
26447
26448 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26449
26450 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
26451
26452 2016-03-15 Jakub Jelinek <jakub@redhat.com>
26453
26454 PR rtl-optimization/70222
26455 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
26456 optimization if mode is different from result_mode, queue up masking
26457 of the result in outer_op. Formatting fix.
26458
26459 PR middle-end/70239
26460 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26461 of safe_grow.
26462
26463 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26464
26465 PR rtl-optimization/69032
26466 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
26467 looping backwards over basic block insns.
26468
26469 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26470
26471 PR target/66660
26472 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
26473 to non-speculative when propagating trap bits.
26474
26475 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26476
26477 PR rtl-optimization/63384
26478 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
26479 DEBUG_INSN_P insns.
26480
26481 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26482
26483 PR target/64411
26484 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
26485 factored out from ...
26486 (sched_analyze_insn): ... here.
26487 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
26488 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
26489 get_implicit_reg_pending_clobbers in it.
26490 (setup_id_reg_sets): Use setup_id_implicit_regs.
26491 (deps_init_id): Ditto.
26492
26493 2016-03-15 Tom de Vries <tom@codesourcery.com>
26494
26495 PR ipa/70161
26496 * cgraph.c (cgraph_node::get_body): Save, reset and restore
26497 dump_file_name.
26498 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
26499 execute_function_dump.
26500 (execute_one_pass): Don't dump function if it will be dumped after ipa
26501 transform.
26502
26503 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26504
26505 * genrecog.c (match_pattern_2): If pred is NULL don't call
26506 safe_predicate_mode on it.
26507
26508 2016-03-14 Jakub Jelinek <jakub@redhat.com>
26509
26510 PR middle-end/70219
26511 * lra-constraints.c (delete_move_and_clobber): Change assertion
26512 to also allow dregno == 0.
26513
26514 2016-03-14 Richard Henderson <rth@redhat.com>
26515
26516 PR tree-opt/68714
26517 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
26518 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
26519 (reassociate_bb): Use optimize_vec_cond_expr; avoid
26520 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
26521 on vectors.
26522
26523 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
26524
26525 PR target/70083
26526 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
26527 regs.
26528 (lra_create_live_ranges_1): initialize hard register biggest_mode to
26529 VOIDmode.
26530 * lra-constraints.c (split_reg): For hard regs, try to find the
26531 biggest single-register mode used in the function.
26532
26533 2016-03-14 Richard Biener <rguenther@suse.de>
26534
26535 PR tree-optimization/56365
26536 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
26537 constants to compare against.
26538
26539 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
26540
26541 PR target/70098
26542 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
26543 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
26544 (define_split for the GPR case): Use int_reg_operand instead of
26545 gpc_reg_operand for the output.
26546
26547 2016-03-14 Tom de Vries <tom@codesourcery.com>
26548
26549 PR tree-optimization/70045
26550 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
26551 create_empty_if_region_on_edge argument.
26552
26553 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
26554
26555 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
26556 (STACK_CHECK_PROTECT): Likewise.
26557 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26558 (STACK_CHECK_PROTECT): Likewise.
26559 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26560 (STACK_CHECK_PROTECT): Likewise.
26561 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
26562 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
26563 (STACK_CHECK_PROTECT): Likewise.
26564
26565 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
26566
26567 PR rtl-optimization/69307
26568 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
26569 registers in modes that span more than one register.
26570
26571 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
26572
26573 PR target/69614
26574 * lra-constraints.c (delete_move_and_clobber): New.
26575 (remove_inheritance_pseudos): Use it.
26576
26577 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
26578
26579 PR ada/70017
26580 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
26581 the libcall is LCT_THROW.
26582 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
26583 for the checking routine.
26584
26585 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26586
26587 PR target/70131
26588 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
26589 optimization if we have direct move.
26590 (roundu32<mode>2_fprs): Likewise.
26591
26592 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
26593
26594 PR target/70123
26595 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
26596 be rematerialized.
26597 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
26598 Arguments swapped. All callers changed. Take reg_renumber into
26599 account, and Calculate and compare register ranges for hard regs.
26600
26601 2016-03-11 Jeff Law <law@redhat.com>
26602
26603 PR tree-optimization/70190
26604 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26605 Handle cases where we can not extract the taken edge, even though we
26606 found a constant value.
26607
26608 PR tree-optimization/64058
26609 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
26610 (num_coalesce_pairs): Move up earlier in file.
26611 (find_coalesce_pair): Initialize the INDEX field for each pair
26612 discovered.
26613 (compare_pairs): No longer sort on the elements in each pair.
26614 Instead break ties with the index of the coalesce pair.
26615
26616 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26617
26618 PR target/70002
26619 * config/aarch64/aarch64-protos.h
26620 (aarch64_save_restore_target_globals): New prototype.
26621 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
26622 Call the above when popping pragma.
26623 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
26624 New function.
26625 (aarch64_set_current_function): Rewrite using the above.
26626
26627 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26628
26629 PR tree-optimization/70177
26630 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
26631 (extract_ops_from_tree): ... this. In the 2 argument
26632 overload remove _1 suffix.
26633 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
26634 (extract_ops_from_tree): ... this.
26635 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
26636 Adjust callers.
26637 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
26638 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
26639 extract_ops_from_tree instead of 2 operand one.
26640
26641 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
26642
26643 PR tree-optimization/70013
26644 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
26645 for constant-pool entries.
26646
26647 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26648
26649 PR rtl-optimization/70174
26650 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
26651 followed by gen_lowpart on force_reg instead of just gen_lowpart.
26652
26653 PR tree-optimization/70169
26654 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
26655 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
26656 for unknown codes.
26657
26658 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26659 Jakub Jelinek <jakub@redhat.com>
26660
26661 PR target/70160
26662 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
26663 of uninitialized values.
26664
26665 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26666
26667 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26668 define_expand.
26669 ("*trunctddd2"): New pattern definition.
26670 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26671 TD->DD truncation.
26672
26673 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26674
26675 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26676 definitions for BFP and DFP rounding modes.
26677 ("fixuns_truncdddi2", "fixuns_trunctddi2")
26678 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26679 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26680 ("fix_trunctf<mode>2"): Use the new constants instead of magic
26681 numbers.
26682
26683 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26684
26685 * config/s390/constraints.md: Adjust comment.
26686 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
26687 s390_decompose_addrstyle_without_index.
26688 * config/s390/predicates.md (shift_count_or_setmem_operand):
26689 Rename to setmem_operand.
26690 * config/s390/s390-protos.h
26691 (s390_decompose_shift_count): Rename to
26692 s390_decompose_addrstyle_without_index.
26693 * config/s390/s390.c (s390_decompose_shift_count)
26694 (s390_mem_constraint, print_shift_count_operand)
26695 (print_operand_address, print_operand): Rename
26696 s390_decompose_shift_count to
26697 s390_decompose_addrstyle_without_index and rename
26698 print_shift_count_operand to print_addrstyle_operand troughout the
26699 file.
26700 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26701 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26702 Rename shift_count_or_setmem_operand to setmem_operand.
26703 * config/s390/vx-builtins.md ("vec_insert<mode>")
26704 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26705 nonmemory_operand.
26706
26707 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26708
26709 PR target/70168
26710 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26711 Handle overlapping retval and newval.
26712
26713 2016-03-10 Nick Clifton <nickc@redhat.com>
26714
26715 PR target/7044
26716 * config/aarch64/aarch64.c
26717 (aarch64_override_options_after_change_1): When forcing
26718 flag_omit_frame_pointer to be true, use a special value that can
26719 be detected if this function is called again, thus preventing
26720 flag_omit_leaf_frame_pointer from being forced to be false.
26721
26722 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26723
26724 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26725 Set x_flag_omit_leaf_frame_pointer when handling
26726 -momit-leaf-frame-pointer.
26727
26728 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26729
26730 PR lto/69589
26731 * cgraph.c (cgraph_node::dump): Dump split_part and
26732 indirect_call_target.
26733 * cgraph.h (cgraph_node): Add indirect_call_target flag.
26734 * ipa.c (has_addr_references_p): Cleanup.
26735 (is_indirect_call_target_p): New.
26736 (walk_polymorphic_call_targets): Do not mark virtuals that may be
26737 called indirectly as local.
26738 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26739
26740 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26741
26742 PR ipa/69630
26743 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26744 on cxa_pure_virtual.
26745
26746 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26747
26748 PR lto/69589
26749 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26750
26751 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26752
26753 PR lto/69589
26754 * tree.c (need_assembler_name_p): Only record main variant type names.
26755
26756 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26757
26758 PR target/70113.
26759 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26760 Always define to 0 or 1.
26761 (TARGET_FIX_ERR_A53_843419): New macro.
26762 * config/aarch64/aarch64-elf-raw.h
26763 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26764 * config/aarch64/aarch64-linux.h: Likewise.
26765 * config/aarch64/aarch64.c
26766 (aarch64_override_options_after_change_1): Do not default
26767 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26768 843419 is on.
26769 (aarch64_attributes): Handle fix-cortex-a53-843419.
26770 (aarch64_can_inline_p): Likewise.
26771 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26772
26773 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
26774 Jakub Jelinek <jakub@redhat.com>
26775
26776 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26777 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26778 DECL_COMMONS if flag_unconstrained_commons is set.
26779 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26780 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26781 (funconstrained-commons): Document.
26782
26783 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26784
26785 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26786 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26787
26788 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
26789
26790 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26791 has a proper number of elements.
26792
26793 2016-03-10 Alan Modra <amodra@gmail.com>
26794
26795 PR rtl-optimization/69195
26796 PR rtl-optimization/47992
26797 * ira.c (recorded_label_ref): Delete.
26798 (update_equiv_regs): Return void.
26799 (indirect_jump_optimize): New function.
26800 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26801 before regstat_compute_ri. Don't rebuild_jump_labels here.
26802 Delete update_regstat.
26803
26804 2016-03-10 Richard Biener <rguenther@suse.de>
26805
26806 PR tree-optimization/70128
26807 * tree-ssa-structalias.c (set_uids_in_ptset): Set
26808 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26809
26810 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26811
26812 PR tree-optimization/70152
26813 * tree-sra.c (replace_removed_params_ssa_names): Copy over
26814 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26815
26816 PR target/70086
26817 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26818 instead of gen_sse2_loadlpd.
26819 * config/i386/sse.md (*vec_concatv2df): Rename to...
26820 (vec_concatv2df): ... this.
26821
26822 PR tree-optimization/70127
26823 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26824
26825 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26826
26827 PR c/68473
26828 PR c++/70105
26829 * diagnostic-show-locus.c (compatible_locations_p): New function.
26830 (layout::layout): Sanitize ranges using compatible_locations_p.
26831
26832 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26833
26834 PR c/68473
26835 PR c++/70105
26836 * diagnostic-show-locus.c (layout_range::layout_range): Replace
26837 location_range param with three const expanded_locations * and a
26838 bool.
26839 (layout::layout): Replace call to
26840 rich_location::lazily_expand_location with get_expanded_location.
26841 Extract the range and perform location expansion here, passing
26842 the results to the layout_range ctor.
26843 * diagnostic.c (source_range::debug): Delete.
26844 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26845 of rich_location::get_expanded_location.
26846 * gcc-rich-location.c (get_range_for_expr): Delete.
26847 (gcc_rich_location::add_expr): Reimplement to avoid the
26848 rich_location::add_range overload that took a location_range,
26849 passing a location_t instead.
26850
26851 2016-03-09 Richard Biener <rguenther@suse.de>
26852 Jakub Jelinek <jakub@redhat.com>
26853
26854 PR tree-optimization/70138
26855 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26856 Also skip vect_double_reduction_def.
26857
26858 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26859
26860 PR target/70049
26861 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26862 if the operand is "m".
26863
26864 2016-03-09 Nathan Sidwell <nathan@acm.org>
26865
26866 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26867
26868 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26869
26870 * config/i386/i386.c (processor_target_table): Fix cost table
26871 intialization order for znver1.
26872
26873 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26874
26875 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26876 - becuase -> because.
26877 * ipa-reference.c (ignore_module_statics): Likewise.
26878 * cgraph.c (cgraph_node::get_body): Likewise.
26879 * ipa-inline.c (early_inliner): Likewise.
26880 * ipa-devirt.c (types_same_for_odr): Likewise.
26881 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26882 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26883
26884 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26885
26886 * tree-ssa-math-opts.c: Fix typo in comment.
26887
26888 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26889
26890 PR target/70110
26891 * config/i386/i386.c (scalar_chain::make_vector_copies,
26892 scalar_chain::convert_reg): Call end_sequence in between
26893 get_insns and emit_conversion_insns rather than after both
26894 calls.
26895
26896 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
26897
26898 PR target/70064
26899 * config/i386/i386.h (machine_function): Add
26900 pc_thunk_call_expanded flag.
26901 (ix86_pc_thunk_call_expanded): New define.
26902 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26903 (*set_got): Rename insn pattern from set_got.
26904 (*set_got_labelled): Rename inst pattern from set_got_labelled.
26905 * config/i386/i386.c (ix86_compute_frame_layout): Use
26906 ix86_pc_thunk_call_expanded to prevent red-zone.
26907
26908 2016-03-07 Martin Jambor <mjambor@suse.cz>
26909
26910 * hsa.h (hsa_get_ctor_statements): Declare.
26911 (hsa_get_dtor_statements): Likewise.
26912 (hsa_get_kernel_dispatch_type): Likewise.
26913 * hsa.c (hsa_get_ctor_statements): New function.
26914 (hsa_get_dtor_statements): Likewise.
26915 (hsa_get_kernel_dispatch_type): Likewise.
26916 * hsa-brig.c (hsa_cdtor_statements): Removed.
26917 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26918 hsa_get_dtor_statements.
26919 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26920 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26921
26922 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
26923
26924 * config/arm/arm-cores.def (cortex-r8): New.
26925 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26926 * config/arm/arm-tune.md: Likewise.
26927 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26928
26929 2016-03-07 Martin Sebor <msebor@redhat.com>
26930
26931 PR rtl-optimization/19705
26932 * doc/invoke.texi (Options That Control Optimization): Clarify
26933 -fno-branch-count-reg.
26934
26935 2016-02-26 Richard Biener <rguenther@suse.de>
26936 Jeff Law <law@redhat.com>
26937
26938 PR tree-optimization/69740
26939 * cfghooks.c (remove_edge): Request loop fixups if we delete
26940 an edge that might turn an irreducible loop into a natural
26941 loop.
26942 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26943 Move after definition of loops_state_clear.
26944
26945 2016-03-07 Bin Cheng <bin.cheng@arm.com>
26946
26947 PR rtl-optimization/69052
26948 * rtlanal.c (commutative_operand_precedence): Set higher precedence
26949 to CONST_WIDE_INT.
26950
26951 2016-03-07 Tom de Vries <tom@codesourcery.com>
26952
26953 PR tree-optimization/70116
26954 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26955 is_tm_ending stmts and ubsan/asan internal functions.
26956 (find_duplicate): Use it. Don't test is_tm_ending here.
26957
26958 2016-03-07 Richard Biener <rguenther@suse.de>
26959
26960 PR tree-optimization/70115
26961 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26962 (propagate_constants_for_unrolling): Use replace_uses_by.
26963
26964 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
26965
26966 PR middle-end/69916
26967 * omp-low.c (struct oacc_loop): Add ifns.
26968 (new_oacc_loop_raw): Initialize it.
26969 (finish_oacc_loop): Clear mask & flags if no ifns.
26970 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
26971 (oacc_loop_xform_loop): Add ifns arg & adjust.
26972 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
26973
26974 2016-03-07 Richard Henderson <rth@redhat.com>
26975
26976 PR rtl-opt/70061
26977 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
26978 (insert_value_copy_on_edge): Likewise.
26979
26980 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26981
26982 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
26983
26984 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26985
26986 PR target/62281
26987 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
26988
26989 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26990
26991 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
26992
26993 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26994
26995 Fix sseimul type attribute.
26996 * config/i386/znver1.md
26997 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
26998 znver1_sseimul_avx256_load) : Fix the type attribute.
26999 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
27000 pipe usage and latency.
27001
27002 2016-03-05 Jakub Jelinek <jakub@redhat.com>
27003
27004 PR c++/70084
27005 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
27006 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
27007 to the right type.
27008
27009 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
27010
27011 PR c/69973
27012 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
27013
27014 PR rtl-optimization/69941
27015 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
27016 the reg share its mode.
27017
27018 2016-03-04 Jeff Law <law@redhat.com>
27019
27020 PR tree-optimization/69196
27021 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27022 If the both SSA_NAMEs are anonymous, then consider them unassociated
27023 and include the PHI in the statement count.
27024
27025 2016-03-05 Tom de Vries <tom@codesourcery.com>
27026
27027 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
27028 construct in oacc routine. Check for oacc region in oacc routine.
27029
27030 2016-03-04 Jakub Jelinek <jakub@redhat.com>
27031
27032 PR target/70062
27033 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
27034 2016-02-22 changes, instead don't recurse if RECUR is already true.
27035 Don't change *dynamic_check if RECUR. Adjust recursive caller
27036 to pass true to the new argument.
27037 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
27038
27039 PR target/70059
27040 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
27041 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
27042 fixes.
27043 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
27044
27045 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
27046
27047 PR rtl-optimization/57676
27048 * lra-assigns.c (lra_assign): Guard test for maximum iterations
27049 with flag_checking.
27050
27051 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
27052
27053 * tree-vect-patterns.c (search_type_for_mask): Handle
27054 comparison of booleans.
27055
27056 2016-03-04 Jakub Jelinek <jakub@redhat.com>
27057
27058 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
27059 Fix @xref usage.
27060
27061 PR debug/69947
27062 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
27063 all other ops that have dw_val_class_die_ref operands,
27064 and DW_OP_GNU_entry_value.
27065
27066 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27067
27068 PR rtl-optimization/69904
27069 * config/arm/arm.c (arm_cannot_copy_insn_p):
27070 Return true for load-exclusive instructions.
27071
27072 2016-03-03 Jakub Jelinek <jakub@redhat.com>
27073
27074 PR target/70021
27075 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
27076 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
27077 the pattern no matter if it is used just by non-pattern, pattern
27078 or mix thereof.
27079 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
27080 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
27081 oprnd1 def_stmt is in pattern, don't look through it.
27082
27083 2016-03-03 Marek Polacek <polacek@redhat.com>
27084
27085 PR middle-end/70050
27086 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
27087
27088 2016-03-03 Martin Liska <mliska@suse.cz>
27089
27090 PR tree-optimization/70043
27091 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
27092 previous statement if we see a debug statement.
27093
27094 2016-03-03 Richard Biener <rguenther@suse.de>
27095
27096 PR tree-optimization/55936
27097 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
27098 parameter and guard unsafe equivalence use.
27099 (vrp_evaluate_conditional_warnv_with_ops): Always use
27100 safe equivalences but not via the quadratic compare_names
27101 helper.
27102
27103 2016-03-03 Michael Collison <michael.collison@linaro.org>
27104
27105 PR target/70014
27106 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
27107 for operand 1 to s_register_operand. Change predicate for operand
27108 2 to arm_not_immediate_operand.
27109
27110 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
27111
27112 * doc/tm.texi: Regenerated.
27113
27114 2016-03-02 Richard Henderson <rth@redhat.com>
27115
27116 PR rtl-opt/67145
27117 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
27118 simplification when all args are positive non-fixed registers.
27119
27120 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27121
27122 * target.def (lra_p): Specify that new ports should use LRA.
27123
27124 2016-03-02 Jakub Jelinek <jakub@redhat.com>
27125
27126 PR libgomp/69555
27127 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
27128 gimplify_type_sizes the type they refer to.
27129 (omp_notice_variable): Handle reference vars to VLAs.
27130 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
27131 reference to VLA decls in the second pass instead of first pass.
27132
27133 2016-03-02 Tom de Vries <tom@codesourcery.com>
27134
27135 PR tree-optimization/68659
27136 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
27137 new_expr == NULL_TREE.
27138 (get_new_name): Handle ADDR_EXPR.
27139
27140 2016-03-02 Bin Cheng <bin.cheng@arm.com>
27141
27142 PR rtl-optimization/69052
27143 * loop-invariant.c (canonicalize_address): New function.
27144 (inv_can_prop_to_addr_use): Check validity of address expression
27145 which is canonicalized by above function.
27146
27147 2016-03-02 Alan Modra <amodra@gmail.com>
27148
27149 PR ipa/69990
27150 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
27151 larger alignment.
27152
27153 2016-03-02 Jakub Jelinek <jakub@redhat.com>
27154
27155 PR target/70028
27156 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
27157 (*movhi_internal): Put mask moves from and to memory separately
27158 from moves from/to GPRs.
27159
27160 2016-03-02 Richard Biener <rguenther@suse.de>
27161
27162 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
27163 GENERIC expressions in GIMPLE.
27164
27165 2016-03-02 Richard Biener <rguenther@suse.de>
27166
27167 * config/i386/i386.c (type_natural_mode): Fix typo.
27168
27169 2016-03-02 Nick Clifton <nickc@redhat.com>
27170
27171 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
27172
27173 2016-03-02 Richard Biener <rguenther@suse.de>
27174 Uros Bizjak <ubizjak@gmail.com>
27175
27176 PR target/67278
27177 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
27178
27179 2016-03-02 Richard Biener <rguenther@suse.de>
27180
27181 PR middle-end/67278
27182 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
27183
27184 2016-03-02 Marek Polacek <polacek@redhat.com>
27185
27186 PR c/67854
27187 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
27188 "is promoted to" warning.
27189
27190 2016-03-01 DJ Delorie <dj@redhat.com>
27191
27192 * config.gcc: Deprecate mep-*.
27193
27194 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
27195
27196 PR middle-end/70025
27197 * lra-constraints.c (regno_val_use_in): New.
27198 (match_reload): Use it instead of regno_use_in.
27199
27200 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
27201
27202 PR rtl-optimization/70007
27203 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
27204 references present in REG_EQUAL notes attached to non-SET patterns.
27205
27206 2016-03-01 Jeff Law <law@redhat.com>
27207
27208 PR tree-optimization/69196
27209 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27210 Appropriately clamp the number of statements to copy when the
27211 thread path does not traverse a loop backedge.
27212
27213 PR tree-optimization/69196
27214 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27215 Do count some PHIs in the thread path against the insn count. Decrease
27216 final statement count by one as the control statement in the last
27217 block will get removed. Remove special cased code for handling PHIs
27218 in the last block.
27219
27220 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
27221
27222 PR target/70027
27223 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
27224 asm dialect alternatives to explicit GOTPCREL calls.
27225
27226 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
27227
27228 PR ada/70017
27229 * ira.c (do_reload): Issue warning for generic stack checking here...
27230 * reload1.c (reload): ...instead of here and streamline it.
27231
27232 2016-03-01 Nick Clifton <nickc@redhat.com>
27233
27234 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
27235
27236 2016-03-01 Richard Biener <rguenther@suse.de>
27237
27238 PR tree-optimization/69983
27239 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
27240 types and fall back to operand_equal_p.
27241
27242 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27243
27244 Revert
27245 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27246
27247 * config/s390/constraints.md ("jm8"): New constraint.
27248 * config/s390/predicates.md ("const_int_8bitset_operand"): New
27249 predicate.
27250 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
27251 into ...
27252 ("*setmem_long<setmem_and>"): New pattern.
27253 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
27254 into ...
27255 ("*setmem_long_31z<setmem_and>"): New pattern.
27256 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
27257 New substitution rules with the required attributes.
27258
27259
27260 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27261
27262 Revert
27263 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27264
27265 * gensupport.c (process_substs_on_one_elem): Split loop to
27266 complete mark_operands_used_in_match_dup on all expressions in the
27267 vector first.
27268 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27269 and remove function.
27270
27271 2016-03-01 Richard Biener <rguenther@suse.de>
27272
27273 PR middle-end/70022
27274 * fold-const.c (fold_indirect_ref_1): Fix range checking for
27275 vector BIT_FIELD_REF extract.
27276
27277 2016-03-01 Richard Biener <rguenther@suse.de>
27278
27279 PR tree-optimization/69994
27280 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
27281
27282 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
27283
27284 PR tree-optimization/69956
27285 * tree-vect-stmts.c (supportable_widening_operation): Support
27286 multi-step conversion of boolean vectors.
27287 (supportable_narrowing_operation): Likewise.
27288
27289 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27290
27291 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
27292 anymore.
27293
27294 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27295
27296 * config/s390/subst.md (DSI_VI): New mode iterator.
27297 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
27298 * config/s390/vector.md ("vec_set<mode>"): Move expander before
27299 the insn definition.
27300 ("*vec_set<mode>"): Change predicate and add alternative to
27301 support only either register or const_int operands as element
27302 selector.
27303 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
27304 operands.
27305 ("vec_extract<mode>"): New expander.
27306 ("*vec_extract<mode>"): New insn definition supporting reg and
27307 const_int element selectors.
27308 ("*vec_extract<mode>_plus"): New insn definition supporting
27309 reg+const_int element selectors.
27310 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
27311 following expander+insn definition.
27312 ("<vec_shifts_name><mode>3"): New expander.
27313 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
27314
27315 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27316
27317 * config/s390/s390.md ("*tabort_1"): Change predicate to
27318 nonmemory_operand. Add a second alternative to cover
27319 register as well as const int operands.
27320 ("*tabort_1_plus"): New pattern definition.
27321
27322 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27323
27324 * config/s390/s390.md ("*ashrdi3_cc_31")
27325 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
27326 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
27327 Merge insn definitions into ...
27328 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27329 New pattern definition.
27330 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
27331 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
27332 ("*ashr<mode>3_and"): Merge insn definitions into ...
27333 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27334 New pattern definition.
27335 * config/s390/subst.md ("addr_style_op_cc_subst")
27336 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
27337 substitutions patterns plus attributes.
27338 Add ashiftrt to SUBST iterator.
27339
27340 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27341
27342 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
27343 op2 to nonmemory_operand.
27344 ("*<shift>di3_31", "*<shift>di3_31_and"):
27345 Merge into single pattern definition ...
27346 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
27347 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
27348 pattern definition ...
27349 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
27350 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
27351 iterator.
27352
27353 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27354
27355 * config/s390/predicates.md (const_int_6bitset_operand): New
27356 predicate.
27357 * config/s390/s390.md: Include subst.md.
27358 ("rotl<mode>3"): New expander.
27359 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
27360 ...
27361 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
27362 * config/s390/subst.md: New file.
27363
27364 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27365
27366 * config/s390/s390.md ("op_type", "atype", "length" attributes):
27367 Remove RRR type. It doesn't really exist.
27368 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
27369 attributes.
27370 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
27371 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
27372 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
27373 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
27374 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
27375 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
27376 `enabled' attribute.
27377
27378 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27379
27380 * gensupport.c (process_substs_on_one_elem): Split loop to
27381 complete mark_operands_used_in_match_dup on all expressions in the
27382 vector first.
27383 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27384 and remove function.
27385
27386 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27387
27388 PR target/69706
27389 * config/sparc/sparc.c (NWORDS_UP): Rename to...
27390 (CEIL_NWORDS): ...this. Use CEIL macro.
27391 (compute_fp_layout): Adjust to above renaming.
27392 (function_arg_union_value): Likewise.
27393 (sparc_arg_partial_bytes): Likewise.
27394 (sparc_function_arg_advance): Likewise.
27395
27396 2016-02-29 Jeff Law <law@redhat.com>
27397
27398 PR tree-optimization/70005
27399 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
27400 where an object with a boolean range is compared against a value
27401 outside [0..1].
27402
27403 PR tree-optimization/69999
27404 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
27405 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
27406 loop cleanups.
27407
27408 2016-02-29 Richard Biener <rguenther@suse.de>
27409
27410 PR tree-optimization/69994
27411 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
27412 (get_unary_op): Look through nop conversions.
27413 (ops_equal_values_p): New function, look for equality diregarding
27414 nop conversions.
27415 (eliminate_plus_minus_pair): Use ops_equal_values_p
27416 (repropagate_negates): Do not use get_unary_op here.
27417
27418 2016-02-29 Martin Liska <mliska@suse.cz>
27419
27420 * system.h: Poison ENABLE_CHECKING macro.
27421
27422 2016-02-29 Martin Liska <mliska@suse.cz>
27423
27424 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
27425 is presented in dump flags.
27426 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27427 (hsa_regalloc): Likewise.
27428
27429 2016-02-19 Richard Biener <rguenther@suse.de>
27430
27431 PR tree-optimization/69980
27432 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
27433 permutation of those we need to keep.
27434
27435 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27436
27437 PR target/69706
27438 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
27439 (NWORDS_UP): ...this
27440 (init_cumulative_args): Minor tweaks.
27441 (sparc_promote_function_mode): Likewise.
27442 (scan_record_type): Delete.
27443 (traverse_record_type): New function template.
27444 (classify_data_t): New structure type.
27445 (classify_registers): New inline function.
27446 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
27447 exhausted. Instantiate traverse_record_type on classify_registers and
27448 deal with the case of a structure passed in slot #15 with no FP field
27449 in the first word.
27450 (assign_data_t): New structure type.
27451 (compute_int_layout): New static function.
27452 (compute_fp_layout): Likewise.
27453 (count_registers): New inline function.
27454 (assign_int_registers): New static function.
27455 (assign_fp_registers): Likewise.
27456 (assign_registers): New inline function.
27457 (function_arg_record_value_1): Delete.
27458 (function_arg_record_value_2): Likewise.
27459 (function_arg_record_value_3): Likewise.
27460 (function_arg_record_value): Adjust to above changes. Instantiate
27461 traverse_record_type on count_registers to first count the number of
27462 registers to be used and then on assign_registers to assign them.
27463 (function_arg_union_value): Adjust to above renaming.
27464 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
27465 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
27466 case of a structure passed in slot #15
27467 (sparc_function_arg_advance): Likewise.
27468 (function_arg_padding): Minor tweak.
27469
27470 2016-02-29 Richard Biener <rguenther@suse.de>
27471
27472 PR tree-optimization/69720
27473 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
27474 the adjustment_def path for possibly vectorized defs.
27475 (vect_create_epilog_for_reduction): Handle vectorized initial
27476 defs properly.
27477
27478 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
27479
27480 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
27481
27482 2016-02-27 Jeff Law <law@redhat.com>
27483
27484 Revert
27485 2016-02-26 Richard Biener <rguenther@suse.de>
27486 Jeff Law <law@redhat.com>
27487
27488 PR tree-optimization/69740
27489 * cfghooks.c (remove_edge): Request loop fixups if we delete
27490 an edge that might turn an irreducible loop into a natural
27491 loop.
27492
27493 2016-02-27 Jakub Jelinek <jakub@redhat.com>
27494
27495 PR rtl-optimization/69896
27496 * tree-vect-generic.c (get_compute_type): Avoid single element
27497 vector types.
27498
27499 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
27500
27501 Rename the AArch64 tuning option and related functions to enable the
27502 Newton series for the reciprocal square root to reflect its
27503 approximative characteristic.
27504
27505 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
27506 function to "aarch64_emit_approx_rsqrt".
27507 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
27508 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
27509 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
27510 (xgene1_tunings): Likewise.
27511 (use_rsqrt_p): Likewise.
27512 (aarch64_emit_swrsqrt): Use new function name.
27513 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
27514 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
27515 text explaining this option.
27516 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
27517
27518 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27519
27520 PR target/69969
27521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27522 complain about -mallow-movmisalign without -mvsx if
27523 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
27524
27525 2016-02-26 Joel Sherrill <joel@rtems.org>
27526
27527 * config.gcc: Add x86_64-*-rtems*.
27528 * config/i386/rtems-64.h: New file.
27529
27530 2016-02-26 Joel Sherrill <joel@rtems.org>
27531
27532 * config.gcc: Add aarch64-*-rtems*.
27533 * config/aarch64/rtems.h: New file.
27534
27535 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
27536
27537 PR target/69946
27538 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
27539 shift amount using %h. Add comment.
27540
27541 2016-02-26 Richard Biener <rguenther@suse.de>
27542 Jeff Law <law@redhat.com>
27543
27544 PR tree-optimization/69740
27545 * cfghooks.c (remove_edge): Request loop fixups if we delete
27546 an edge that might turn an irreducible loop into a natural
27547 loop.
27548
27549 2016-02-26 Martin Jambor <mjambor@suse.cz>
27550
27551 PR middle-end/69920
27552 * tree-sra.c (sra_modify_assign): Do not remove loads of
27553 uninitialized aggregates to SSA_NAMEs.
27554
27555 2016-02-26 Richard Henderson <rth@redhat.com>
27556
27557 PR target/69709
27558 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
27559 pseudo in case the target rtx matches the source of the left
27560 shift.
27561
27562 2016-02-26 Martin Jambor <mjambor@suse.cz>
27563
27564 PR hsa/69568
27565 * hsa.h (hsa_type_packed_p): Declare.
27566 * hsa.c (hsa_type_packed_p): New function.
27567 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
27568 loads.
27569 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
27570 * hsa-brig.c (emit_basic_insn): Likewise.
27571
27572 2016-02-26 Martin Jambor <mjambor@suse.cz>
27573
27574 pr hsa/69674
27575 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
27576 pointers.
27577 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
27578
27579 2016-02-26 Martin Jambor <mjambor@suse.cz>
27580
27581 * hsa.h (is_a_helper): New overload for hsa_op_immed for
27582 hsa_op_with_type operands.
27583 (hsa_unsigned_type_for_type): Declare.
27584 * hsa.c (hsa_unsigned_type_for_type): New function.
27585 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
27586 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
27587 the finalizer. Do not emit extra move.
27588
27589 2016-02-26 Martin Jambor <mjambor@suse.cz>
27590
27591 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
27592 atomic operations in private segment.
27593
27594 2016-02-26 Martin Jambor <mjambor@suse.cz>
27595
27596 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
27597 statements to wi->info. Also disallow omp simd constructs.
27598 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
27599 for not gridifying. Dump special string for omp_for.
27600
27601 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27602
27603 PR target/69245
27604 * config/aarch64/aarch64.c (aarch64_set_current_function):
27605 Save/restore target globals when switching to
27606 target_option_default_node.
27607
27608 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27609
27610 PR target/69613
27611 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
27612 Return 0 if !SHIFT_COUNT_TRUNCATED.
27613
27614 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27615 Eric Botcazou <ebotcazou@adacore.com>
27616
27617 PR rtl-optimization/69891
27618 * dse.c (scan_insn): If we can't figure out memset arguments
27619 or they are non-constant, call clear_rhs_from_active_local_stores.
27620
27621 2016-02-26 Martin Liska <mliska@suse.cz>
27622
27623 * doc/extend.texi: Mention clog10, clog10f an clog10l
27624 in Builtins section.
27625
27626 2016-02-26 Martin Liska <mliska@suse.cz>
27627
27628 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
27629 CHECKING_P.
27630 (resolve_args_picking_1): Likewise.
27631 * dwarf2out.h (struct GTY): Likewise.
27632
27633 2016-02-26 Martin Liska <mliska@suse.cz>
27634
27635 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
27636 with flag_checking.
27637 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27638
27639 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27640 Martin Liska <mliska@suse.cz>
27641
27642 * doc/install.texi: Mention --enable-valgrind-annotations.
27643
27644 2016-02-26 Richard Biener <rguenther@suse.de>
27645
27646 PR tree-optimization/69551
27647 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
27648 looking through aliases adjust DECL_PT_UID to refer to the
27649 ultimate alias target.
27650
27651 2016-02-25 Martin Liska <mliska@suse.cz>
27652
27653 PR middle-end/69919
27654 * alloc-pool.c (after_memory_report): New variable.
27655 * alloc-pool.h (base_pool_allocator ::release): Do not use
27656 the infrastructure if after_memory_report.
27657 * toplev.c (toplev::main): Mark after memory report.
27658
27659 2016-02-25 Richard Biener <rguenther@suse.de>
27660
27661 PR tree-optimization/48795
27662 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
27663
27664 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
27665
27666 PR driver/68463
27667 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
27668 offloading is enabled and -fopenacc or -fopenmp is specified.
27669 (CRTOFFLOADEND): Likewise.
27670 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27671 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27672 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27673 (offload_objects_file_name): New static var.
27674 (tool_cleanup): Remove offload_objects_file_name file.
27675 (find_offloadbeginend): Replace with ...
27676 (find_crtoffloadtable): ... this.
27677 (run_gcc): Remove offload_argc and offload_argv.
27678 Get offload_objects_file_name from -foffload-objects=... option.
27679 Read names of object files with offload from this file, pass them to
27680 compile_images_for_offload_targets. Don't call find_offloadbeginend and
27681 don't pass offloadbegin and offloadend to the linker. Don't pass
27682 offload non-LTO files to the linker, because now they're not claimed.
27683
27684 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
27685
27686 PR ipa/69630
27687 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27688 on builtin_unreachable.
27689
27690 2016-02-25 Jakub Jelinek <jakub@redhat.com>
27691
27692 PR rtl-optimization/69896
27693 * regcprop.c: Include cfgrtl.h.
27694 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27695 than remembered mode, either delete it (if noop_move_p), or
27696 treat like copy_p but not noop_p instruction.
27697
27698 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27699
27700 PR debug/69705
27701 * dwarf2out.c (gen_variable_die): Work around buggy LTO
27702 - allow NULL decl for Fortran DW_TAG_common_block variables.
27703
27704 2016-02-24 Jason Merrill <jason@redhat.com>
27705
27706 * common.opt (flifetime-dse): Add -flifetime-dse=1.
27707
27708 2016-02-24 Richard Biener <rguenther@suse.de>
27709 Jakub Jelinek <jakub@redhat.com>
27710
27711 PR middle-end/69760
27712 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27713 conditionally executed ops to well-defined overflow behavior.
27714
27715 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27716
27717 PR middle-end/69915
27718 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27719 elements.
27720
27721 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27722
27723 PR rtl-optimization/69886
27724 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27725 argument. Use it when checking validity of set instructions.
27726 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27727 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27728 callsite.
27729 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27730 * store-motion.c (find_moveable_store): Update
27731 can_assign_to_reg_without_clobbers_p callsite.
27732
27733 2016-02-24 Richard Biener <rguenther@suse.de>
27734
27735 PR middle-end/68963
27736 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27737 bogus check.
27738 (record_nonwrapping_iv): Do not fall back to the low/high bound
27739 for non-constant IV bases if the stmt is not always executed.
27740
27741 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27742
27743 * config/arm/arm-cores.def (cortex-a32): New entry.
27744 * config/arm/arm-tables.opt: Regenerate.
27745 * config/arm/arm-tune.md: Regenerate.
27746 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27747 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27748 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27749 for -mcpu and -mtune.
27750
27751 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27752
27753 PR target/69875
27754 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27755 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27756 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27757 (atomic_loaddi_1): Delete.
27758 (atomic_loaddi): Rewrite expander using the above changes.
27759
27760 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27761
27762 PR c/69918
27763 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27764 2 to 3.
27765
27766 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27767 Richard Biener <rguenth@suse.de>
27768
27769 PR middle-end/69909
27770 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27771 set_mem_attributes if tem is SSA_NAME which got expanded
27772 as a MEM.
27773
27774 2016-02-24 Richard Biener <rguenther@suse.de>
27775
27776 PR tree-optimization/69907
27777 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27778 end of permutations for BB vectorization.
27779
27780 2016-02-24 Christian Bruel <christian.bruel@st.com>
27781
27782 * config/arm/arm-c.c (arm_option_override): Initialize
27783 target_option_current_node.
27784 * config/arm/arm.c (arm_pragma_target_parse): Replace
27785 build_target_option_node call by target_option_current_node.
27786 Set target_option_current_node.
27787 Fix comments.
27788
27789 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27790
27791 PR target/69810
27792 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27793 define_insn_and_split to define_insn.
27794 (zero_extendqi<mode>2_dot2): Same.
27795 (extendqi<mode>2_dot): Same.
27796 (extendqi<mode>2_dot2): Same.
27797
27798 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27799
27800 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27801 and add bypass for AES{D,E} and AESMC pairs.
27802 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27803 and AESMC pairs.
27804
27805 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27806
27807 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27808 series for reciprocal square root in Exynos M1.
27809
27810 2016-02-23 Martin Sebor <msebor@redhat.com>
27811
27812 PR c/69759
27813 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27814 __builtin_alloca_with_align.
27815
27816 2016-02-23 Richard Henderson <rth@redhat.com>
27817
27818 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27819 (ix86_register_pragmas): Remove __seg_tls.
27820 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27821 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27822 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27823 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27824 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27825 * doc/extend.texi (__seg_tls): Remove item.
27826
27827 2016-02-23 Richard Biener <rguenther@suse.de>
27828
27829 * alloc-pool.h (struct allocation_object): Make id member
27830 conditional on CHECKING_P again.
27831 (get_instance): Adjust.
27832 (base_pool_allocator): Likewise.
27833
27834 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
27835
27836 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27837 (parallelize_loops): In OpenACC kernels mode, set n_threads to
27838 zero.
27839 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27840 flag_openacc.
27841 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27842
27843 2016-02-23 Richard Biener <rguenther@suse.de>
27844
27845 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27846 * bitmap.h (struct bitmap_usage): Likewise.
27847 (bitmap_move): Declare.
27848 * bitmap.c (register_overhead): Take size_t argument.
27849 (bitmap_move): New function.
27850 * df-problems.c (df_rd_transfer_function): Use bitmap_move
27851 to properly account overhead.
27852 * tree.c (free_node): Use tree_size.
27853
27854 2016-02-23 Jakub Jelinek <jakub@redhat.com>
27855
27856 PR c++/69902
27857 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27858 when inverting comparison.
27859
27860 PR c/69900
27861 * common.opt (Wunreachable-code): Add Warning flag.
27862
27863 2016-02-23 Mark Wielaard <mjw@redhat.com>
27864 Jakub Jelinek <jakub@redhat.com>
27865
27866 PR c/69911
27867 * cgraphunit.c (check_global_declaration): Check main_input_filename
27868 and DECL_SOURCE_FILE are not NULL.
27869
27870 2016-02-23 Martin Jambor <mjambor@suse.cz>
27871
27872 PR tree-optimization/69666
27873 * tree-sra.c (sra_modify_assign): Do not attempt to create
27874 default_def replacements for unscalarizable regions.
27875
27876 2016-02-20 Mark Wielaard <mjw@redhat.com>
27877
27878 PR c/28901
27879 * cgraphunit.c (check_global_declaration): Check level of
27880 warn_unused_const_variable and main_input_filename.
27881 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27882 (-Wunused-variable): For C implies -Wunused-const-variable=1.
27883 (-Wunused-const-variable): Explain levels 1 and 2.
27884
27885 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27886
27887 PR target/69888
27888 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27889 identical arguments. Formatting and spelling fixes.
27890
27891 PR target/69885
27892 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27893 be specified.
27894
27895 PR target/69894
27896 PR target/69895
27897 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27898 and m68k-devices.def.
27899 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27900 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27901
27902 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
27903
27904 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27905 and HImode registers.
27906
27907 2016-02-22 Richard Biener <rguenther@suse.de>
27908
27909 PR tree-optimization/69882
27910 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27911 preserve permutations present because of gaps.
27912 (vect_supported_load_permutation_p): Always continue checking
27913 permutations after vect_attempt_slp_rearrange_stmts.
27914
27915 2016-02-22 Bin Cheng <bin.cheng@arm.com>
27916
27917 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27918 min_profitable_estimate, rather than min_profitable_iters.
27919
27920 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27921
27922 PR target/69885
27923 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27924 SImode for last match_operand.
27925
27926 2016-02-22 Martin Liska <mliska@suse.cz>
27927
27928 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27929 return bitsize - 1 as the return value.
27930
27931 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
27932
27933 PR target/69806
27934 PR target/54089
27935 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27936 Handle negative shift counts.
27937 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27938 force_reg on the shift constant.
27939 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
27940 (lshrsi3_d): Handle negative shift counts.
27941
27942 2016-02-22 Richard Biener <rguenther@suse.de>
27943 Tom de Vries <tom@codesourcery.com>
27944
27945 * graph.c: Include dumpfile.h.
27946 (print_graph_cfg): Split into three overloads.
27947 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27948
27949 2016-02-22 Tom de Vries <tom@codesourcery.com>
27950
27951 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27952 dump-fn.
27953
27954 2016-02-22 Richard Biener <rguenther@suse.de>
27955
27956 PR ipa/37448
27957 * ipa-inline-transform.c (inline_call): When not updating
27958 overall summaries adjust self size by the growth estimate.
27959 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27960 hash-set, do not update overall summaries here. Renamed from ...
27961 (inline_to_all_callers): ... this which is now wrapping the
27962 above and performing delayed overall summary update.
27963 (early_inline_small_functions): Delay updating of the overall
27964 summary.
27965
27966 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
27967
27968 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27969 variable.
27970
27971 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27972
27973 PR driver/69805
27974 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
27975 :%* in %:gt() argument.
27976 (greater_than_spec_func): Adjust for expecting only numbers,
27977 if there are more than two numbers, compare the last two.
27978
27979 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
27980
27981 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
27982 -Wnarrowing with -std.
27983
27984 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27985
27986 PR c++/69851
27987 * expr.c (store_field): Don't use bit-field path if exp is
27988 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
27989 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
27990 and the assignment can be performed by bitwise copy. Formatting
27991 fix.
27992
27993 PR middle-end/69838
27994 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
27995 call copy_reg_eh_region_note_forward on before and/or after sequences
27996 and remove note from insn if it no longer can throw.
27997
27998 PR target/69820
27999 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
28000 if TARGET_AVX512BW.
28001
28002 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28003
28004 * config/s390/vector.md: Add missing commutative operand markers
28005 to the patterns which qualify for one.
28006 * config/s390/vx-builtins.md: Likewise.
28007
28008 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28009
28010 * config/s390/vector.md (VI, VI_QHS): Add single element vector
28011 types to mode iterators.
28012 (vec_double): ... and mode attribute.
28013 * config/s390/vx-builtins.md (non_vec_int): Likewise.
28014
28015 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28016
28017 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
28018 Change the predicate of op2 from nonimmediate to general and let
28019 reload fix it if necessary.
28020
28021 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28022
28023 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
28024
28025 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28026
28027 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
28028 mode.
28029
28030 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28031
28032 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
28033 * config/s390/s390.c (s390_expand_vec_movstr): New function.
28034 * config/s390/s390.md ("movstr<P:mode>"): Call
28035 s390_expand_vec_movstr.
28036
28037 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28038
28039 * config/s390/s390.md: Add missing output modifier for operand 1
28040 to print it as address properly.
28041
28042 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28043
28044 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
28045 * config/s390/2964.md: New file.
28046 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
28047 of insn grouping attributes depending on the CPU level.
28048 (s390_get_unit_mask): New function.
28049 (s390_sched_score): Remove the OOO from the scheduling macros.
28050 Add loop to calculate a score for the instruction mix.
28051 (s390_sched_reorder): Likewise plus improve debug output.
28052 (s390_sched_variable_issue): Rename macros as above. Calculate
28053 the unit distances after actually scheduling an insn. Improve
28054 debug output.
28055 (s390_sched_init): Clear last_scheduled_unit_distance array.
28056 * config/s390/s390.md: Include 2964.md.
28057
28058 2016-02-18 Jakub Jelinek <jakub@redhat.com>
28059
28060 PR target/69671
28061 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
28062 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
28063 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
28064 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
28065 *avx512f_<code>v8div16qi2_mask_1): New insns.
28066
28067 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
28068
28069 PR target/68404
28070 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
28071 2016-02-09 change.
28072
28073 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
28074 earlyclobber from target. Use wF constraint for fused memory
28075 address.
28076 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
28077
28078 2016-02-18 Jakub Jelinek <jakub@redhat.com>
28079 Martin Liska <mliska@suse.cz>
28080
28081 PR sanitizer/69863
28082 * cfgexpand.c (asan_sanitize_stack_p): New function.
28083 (partition_stack_vars): Use the function.
28084 (expand_stack_vars): Likewise.
28085 (defer_stack_allocation): Likewise.
28086 (expand_used_vars): Likewise.
28087
28088 2016-02-18 Richard Biener <rguenther@suse.de>
28089
28090 PR middle-end/69553
28091 * fold-const.c (operand_equal_p): Properly compare offsets for
28092 IMAGPART_EXPR and ARRAY_REF.
28093
28094 2016-02-18 Nick Clifton <nickc@redhat.com>
28095
28096 PR target/62254
28097 PR target/69610
28098 * config/arm/arm.c (arm_option_override_internal): Disable
28099 interworking if the target does not support thumb instructions.
28100 (arm_reload_in_hi): Handle the case where a register to register
28101 move needs reloading because there is no simple pattern to handle
28102 it.
28103 (arm_reload_out_hi): Likewise.
28104
28105 2016-02-18 Richard Biener <rguenther@suse.de>
28106
28107 PR middle-end/69854
28108 * match.pd: Don't use fold_binary or fold_unary for folding
28109 constants.
28110
28111 2016-02-17 Jakub Jelinek <jakub@redhat.com>
28112
28113 PR c++/69850
28114 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
28115 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
28116 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
28117 warn on gimple_no_warning_p statements.
28118
28119 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
28120
28121 * doc/extend.texi (C++ Attributes): Correct description of
28122 warn_unused type attribute.
28123
28124 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28125
28126 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
28127 correct instruction.
28128
28129 2016-02-17 Richard Biener <rguenther@suse.de>
28130
28131 PR rtl-optimization/69609
28132 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
28133 (find_traces_1_round): When ending a trace update cached priority
28134 of successors.
28135 (bb_to_key): Use cached priority when available.
28136 (copy_bb): Initialize cached priority.
28137 (reorder_basic_blocks_software_trace_cache): Likewise.
28138
28139 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28140
28141 PR target/69161
28142 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
28143 New predicate.
28144 (aarch64_comparison_operator): Break overly long line into two.
28145 (aarch64_comparison_operation): Likewise.
28146 * config/aarch64/aarch64.md (cstorecc4): Use
28147 aarch64_comparison_operator_mode instead of
28148 aarch64_comparison_operator.
28149 (cstore<mode>4): Likewise.
28150 (aarch64_cstore<mode>): Likewise.
28151 (*cstoresi_insn_uxtw): Likewise.
28152 (cstore<mode>_neg): Likewise.
28153 (*cstoresi_neg_uxtw): Likewise.
28154
28155 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28156
28157 PR target/69161
28158 * config/arm/predicates.md (arm_comparison_operator_mode):
28159 New predicate.
28160 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
28161 instead of arm_comparison_operator.
28162 (*mov_negscc): Likewise.
28163 (*mov_notscc): Likewise.
28164 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
28165 (*thumb2_mov_negscc): Likewise.
28166 (*thumb2_mov_negscc_strict_it): Likewise.
28167 (*thumb2_mov_notscc): Likewise.
28168 (*thumb2_mov_notscc_strict_it): Likewise.
28169
28170 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
28171
28172 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
28173 Add missing return.
28174
28175 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
28176
28177 * config/visium/visium.c (machine_libfunc_index): New enum.
28178 (machine_libfuncs): New structure.
28179 (visium_libfuncs): New static variable.
28180 (TARGET_INIT_LIBFUNCS): Define to...
28181 (visium_init_libfuncs): ...this. New function.
28182 (expand_block_move_4): Use the appropriate libfunc.
28183 (expand_block_move_2): Likewise.
28184 (expand_block_move_1): Likewise.
28185 (expand_block_set_4): Likewise.
28186 (expand_block_set_2): Likewise.
28187 (expand_block_set_1): Likewise.
28188 (visium_trampoline_init): Likewise.
28189
28190 2016-02-17 Nick Clifton <nickc@redhat.com>
28191
28192 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
28193 TI's devices.csv file as of March 2016.
28194
28195 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
28196
28197 PR Target/48344
28198 * opts-global.c (handle_common_deferred_options): Introduce and
28199 initialize two global variables to remember command-line options
28200 specifying a stack-limiting register.
28201 * opts.h: Add extern declarations of the two new global variables.
28202 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
28203 variable based on the values of the two new global variables.
28204
28205 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28206
28207 PR c/69835
28208 * common.opt (Wnonnull-compare): New warning.
28209 * doc/invoke.texi (-Wnonnull): Remove text about comparison
28210 of arguments against NULL.
28211 (-Wnonnull-compare): Document.
28212 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
28213 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
28214 * passes.def (pass_warn_nonnull_compare): Add.
28215 * gimple-ssa-nonnull-compare.c: New file.
28216
28217 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28218
28219 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
28220 AARCH64_EXTRA_TUNE_RECIP_SQRT.
28221
28222 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28223
28224 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
28225 reciprocal sqrt for -mlow-precision-recip-sqrt.
28226
28227 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28228 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28229
28230 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
28231 always use lane loads to construct non-constant vectors.
28232
28233 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28234
28235 * config/aarch64/aarch64.md
28236 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
28237 constraints for operand 3.
28238 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
28239
28240 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28241 Richard Biener <rguenther@suse.de>
28242
28243 PR tree-optimization/69820
28244 * tree-vect-patterns.c (type_conversion_p): Return false if
28245 *orig_type is unsigned single precision or boolean.
28246 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
28247 Formatting fix.
28248
28249 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28250
28251 PR rtl-optimization/69764
28252 PR rtl-optimization/69771
28253 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
28254 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
28255
28256 2016-02-16 Richard Biener <rguenther@suse.de>
28257
28258 PR tree-optimization/69776
28259 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
28260 sets from caller.
28261 (indirect_refs_may_alias_p): Likewise.
28262 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
28263 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
28264 according to tbaa_p.
28265 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
28266 (optimize_stmt): For redundant store discovery do not allow tbaa.
28267
28268 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
28269
28270 PR tree-optimization/69714
28271 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
28272 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
28273
28274 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
28275
28276 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
28277 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
28278 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
28279 * config/arc/arc.c (arc_init): Check FPU options.
28280 (get_arc_condition_code): Handle new CC_FPU* modes.
28281 (arc_select_cc_mode): Likewise.
28282 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
28283 register pair only. Allow access for ARCv2 accumulator.
28284 (gen_compare_reg): Whenever we have FPU support use FPU compare
28285 instructions.
28286 (arc_reorg): Don't generate brcc insns when FPU compare
28287 instructions are involved.
28288 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
28289 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
28290 floating point emulation.
28291 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
28292 (REVERSE_CONDITION): Add new CC_FPU* modes.
28293 (TARGET_FP_SP_BASE): Define.
28294 (TARGET_FP_DP_BASE): Likewise.
28295 (TARGET_FP_SP_FUSED): Likewise.
28296 (TARGET_FP_DP_FUSED): Likewise.
28297 (TARGET_FP_SP_CONV): Likewise.
28298 (TARGET_FP_DP_CONV): Likewise.
28299 (TARGET_FP_SP_SQRT): Likewise.
28300 (TARGET_FP_DP_SQRT): Likewise.
28301 (TARGET_FP_DP_AX): Likewise.
28302 * config/arc/arc.md (ARCV2_ACC): New constant.
28303 (type): New fpu type attribute.
28304 (SDF): Conditional iterator.
28305 (cstore<mode>, cbranch<mode>): Change expand condition.
28306 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
28307 handles FPU/FPX cases as well.
28308 * config/arc/arc.opt (mfpu): New option.
28309 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
28310 Renamed.
28311 (adddf3, muldf3, subdf3): Removed.
28312 * config/arc/predicates.md (proper_comparison_operator): Recognize
28313 CC_FPU* modes.
28314 * config/arc/fpu.md: New file.
28315 * doc/invoke.texi (ARC Options): Document mfpu option.
28316
28317 2016-02-16 Richard Biener <rguenther@suse.de>
28318
28319 PR rtl-optimization/69291
28320 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
28321 noce_operand_ok check.
28322
28323 2016-02-16 Tom de Vries <tom@codesourcery.com>
28324
28325 PR lto/67709
28326 * omp-low.c (simd_clone_create): Remove call to
28327 symtab->call_cgraph_insertion_hooks.
28328
28329 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28330
28331 PR tree-optimization/69802
28332 * tree-ssa-reassoc.c (update_range_test): If op is
28333 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
28334 op == 1 test of precision 1 integral op, otherwise handle
28335 that case as op itself. Fix up formatting.
28336 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
28337 up formatting.
28338
28339 2016-02-16 Richard Biener <rguenther@suse.de>
28340
28341 PR tree-optimization/69586
28342 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
28343 types for conversion sources.
28344
28345 2016-02-16 Richard Biener <rguenther@suse.de>
28346
28347 PR middle-end/69801
28348 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
28349 mask OEP_ADDRESS_OF.
28350
28351 2016-02-16 Alan Modra <amodra@gmail.com>
28352
28353 PR target/68973
28354 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
28355 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28356 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
28357 (p8_mtvsrwz): New.
28358 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
28359 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
28360 (p8_fmrgow_<mode>): Likewise.
28361 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
28362 changes.
28363 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
28364 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
28365 to use movdi_internal64. Remove op0_di.
28366 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
28367
28368 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
28369
28370 Add support for the FCCMP insn types
28371
28372 * config/aarch64/aarch64.md (fccmp): Change insn type.
28373 (fccmpe): Likewise.
28374 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
28375 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
28376 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
28377 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
28378 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
28379 * config/arm/types.md (fccmps): Add new insn type.
28380 (fccmpd): Likewise.
28381
28382 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
28383
28384 * alias.c (get_alias_set): Fix a typo in comment.
28385
28386 2016-02-15 Richard Biener <rguenther@suse.de>
28387
28388 PR tree-optimization/69595
28389 * match.pd: Complete range test simplification to true.
28390
28391 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
28392
28393 PR rtl-optimization/69648
28394 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
28395 pic_offset_table_rtx.
28396
28397 PR rtl-optimization/69752
28398 * ira.c (update_equiv_regs): When looking for more than a single SET,
28399 also take other side effects into account.
28400
28401 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28402
28403 * config/s390/s390.c (s390_function_profiler): Add a new sequence
28404 for z900+ CPUs in 31-bit mode.
28405
28406 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28407
28408 * common/config/s390/s390-common.c (s390_supports_split_stack):
28409 New function.
28410 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
28411 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
28412 * config/s390/s390.c (struct machine_function): New field
28413 split_stack_varargs_pointer.
28414 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
28415 in s390_emit_prologue.
28416 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
28417 vararg pointer.
28418 (morestack_ref): New global.
28419 (SPLIT_STACK_AVAILABLE): New macro.
28420 (s390_expand_split_stack_prologue): New function.
28421 (s390_live_on_entry): New function.
28422 (s390_va_start): Use split-stack vararg pointer if appropriate.
28423 (s390_asm_file_end): Emit the split-stack note sections.
28424 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
28425 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
28426 (UNSPECV_SPLIT_STACK_CALL): New unspec.
28427 (UNSPECV_SPLIT_STACK_DATA): New unspec.
28428 (split_stack_prologue): New expand.
28429 (split_stack_space_check): New expand.
28430 (split_stack_data): New insn.
28431 (split_stack_call): New expand.
28432 (split_stack_call_*): New insn.
28433 (split_stack_cond_call): New expand.
28434 (split_stack_cond_call_*): New insn.
28435
28436 2016-02-15 Richard Biener <rguenther@suse.de>
28437
28438 PR tree-optimization/69783
28439 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28440 Add trivially correct cases.
28441
28442 2016-02-15 Tom de Vries <tom@codesourcery.com>
28443
28444 PR lto/69655
28445 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
28446 do_force_output.
28447 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
28448
28449 2016-02-15 Richard Biener <rguenther@suse.de>
28450
28451 PR tree-optimization/69776
28452 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
28453 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
28454 indicate whether we can use TBAA to disambiguate against stores.
28455 Use alias-set zero if not.
28456 (visit_reference_op_store): Do not use TBAA when looking up
28457 redundant stores.
28458 * tree-ssa-pre.c (compute_avail): Use TBAA here.
28459 (eliminate_dom_walker::before_dom_children): But not when looking
28460 up redundant stores.
28461
28462 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
28463
28464 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
28465
28466 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28467
28468 * config/i386/znver1.md
28469 (znver1_pop, znver1_pop_mem,
28470 znver1_load_imov_double_store,
28471 znver1_load_imov_direct_store,
28472 znver1_load_imov_direct_load,
28473 znver1_load_imov_double_load): Add new.
28474 (znver1_insn, znver1_insn_load): Add icmov type.
28475 (znver1_sseavx_fma,
28476 znver1_sseavx_fma_load,
28477 znver1_avx256_fma,
28478 znver1_avx256_fma_load): Fix pipe usage.
28479
28480 2016-02-14 Alan Modra <amodra@gmail.com>
28481
28482 PR target/68973
28483 * reload.c (find_reloads_address_1): For pre/post-inc/dec
28484 with an invalid hard reg, reload just the reg not the entire
28485 pre/post-inc/dec address expression.
28486
28487 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28488
28489 PR target/67260
28490 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
28491 fixed R1_REG scratch reg.
28492 (sibcall_value_pcrel_fdpic): Likewise.
28493
28494 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28495
28496 PR target/67636
28497 PR target/64345
28498 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
28499
28500 2016-02-12 Walter Lee <walt@tilera.com>
28501
28502 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
28503 * config/tilegx/t-tilegx: Likewise.
28504
28505 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28506
28507 PR other/69554
28508 * diagnostic-show-locus.c (struct line_span): New struct.
28509 (layout::get_first_line): Delete.
28510 (layout::get_last_line): Delete.
28511 (layout::get_num_line_spans): New member function.
28512 (layout::get_line_span): Likewise.
28513 (layout::print_heading_for_line_span_index_p): Likewise.
28514 (layout::get_expanded_location): Likewise.
28515 (layout::calculate_line_spans): Likewise.
28516 (layout::m_first_line): Delete.
28517 (layout::m_last_line): Delete.
28518 (layout::m_line_spans): New field.
28519 (layout::layout): Update comment. Replace m_first_line and
28520 m_last_line with m_line_spans, replacing their initialization
28521 with a call to calculate_line_spans.
28522 (diagnostic_show_locus): When printing source lines and
28523 annotations, rather than looping over a single span
28524 of lines, instead loop over each line_span within
28525 the layout, with an inner loop over the lines within them.
28526 Call the context's start_span callback when changing line spans.
28527 * diagnostic.c (diagnostic_initialize): Initialize start_span.
28528 (diagnostic_build_prefix): Break out the building of the location
28529 part of the string into...
28530 (diagnostic_get_location_text): ...this new function, rewriting
28531 it from nested ternary expressions to a sequence of "if"
28532 statements.
28533 (default_diagnostic_start_span_fn): New function.
28534 * diagnostic.h (diagnostic_start_span_fn): New typedef.
28535 (diagnostic_context::start_span): New field.
28536 (default_diagnostic_start_span_fn): New prototype.
28537
28538 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28539
28540 PR driver/69779
28541 * gcc.c (driver::finalize): Fix cleanup of "specs".
28542
28543 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28544
28545 PR driver/69265
28546 PR driver/69453
28547 * gcc.c (driver::driver): Initialize m_option_suggestions.
28548 (driver::~driver): Clean up m_option_suggestions.
28549 (suggest_option): Convert to...
28550 (driver::suggest_option): ...this, and split out into
28551 driver::build_option_suggestions and find_closest_string.
28552 (driver::build_option_suggestions): New function, from
28553 first half of suggest_option. Special-case
28554 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
28555 the sanitizer_opts array. For options of enum types, add the
28556 various enum values to the candidate strings.
28557 (driver::handle_unrecognized_options): Remove "const".
28558 * gcc.h (driver::handle_unrecognized_options): Likewise.
28559 (driver::build_option_suggestions): New decl.
28560 (driver::suggest_option): New decl.
28561 (driver::m_option_suggestions): New field.
28562 * opts-common.c (add_misspelling_candidates): New function.
28563 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
28564 and make non-static.
28565 * opts.h (sanitizer_opts): New array decl.
28566 (add_misspelling_candidates): New function decl.
28567 * spellcheck.c (find_closest_string): New function.
28568 * spellcheck.h (find_closest_string): New function decl.
28569
28570 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28571
28572 PR rtl-optimization/69764
28573 PR rtl-optimization/69771
28574 * optabs.c (expand_binop_directly): For shift_optab_p, force
28575 convert_modes with VOIDmode if xop1 has VOIDmode.
28576
28577 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
28578
28579 PR target/69729
28580 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
28581 to correctly determine instrumentation thunks.
28582
28583 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28584
28585 PR ipa/69241
28586 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
28587 type by reference, force lhs on the call.
28588
28589 PR ipa/68672
28590 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
28591 Compute retval and retbnd early in all cases if split_part_return_p
28592 and return_bb is not EXIT. Remove all clobber stmts and reset
28593 all debug stmts that refer to SSA_NAMEs defined in split part,
28594 except if it is retval, in that case replace the old retval with the
28595 lhs of the call to the split part.
28596
28597 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28598
28599 revert:
28600 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28601
28602 PR middle-end/66726
28603 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28604 whose result is used in PHI.
28605 (maybe_optimize_range_tests): Likewise.
28606 (final_range_test_p): Likweise.
28607
28608 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28609
28610 PR middle-end/66726
28611 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28612 whose result is used in PHI.
28613 (maybe_optimize_range_tests): Likewise.
28614 (final_range_test_p): Likweise.
28615
28616 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28617
28618 * cgraph.c: Spelling fixes - behaviour -> behavior and
28619 neighbour -> neighbor.
28620 * target.def: Likewise.
28621 * sel-sched.c: Likewise.
28622 * config/mips/mips.c: Likewise.
28623 * config/arc/arc.md: Likewise.
28624 * config/arm/cortex-a57.md: Likewise.
28625 * config/arm/arm.c: Likewise.
28626 * config/arm/neon.md: Likewise.
28627 * config/arm/arm-c.c: Likewise.
28628 * config/vms/vms-c.c: Likewise.
28629 * config/s390/s390.c: Likewise.
28630 * config/i386/znver1.md: Likewise.
28631 * config/i386/i386.c: Likewise.
28632 * config/ia64/hpux-unix2003.h: Likewise.
28633 * config/msp430/msp430.md: Likewise.
28634 * config/rx/rx.c: Likewise.
28635 * config/rx/rx.md: Likewise.
28636 * config/aarch64/aarch64-simd.md: Likewise.
28637 * config/aarch64/aarch64.c: Likewise.
28638 * config/nvptx/nvptx.c: Likewise.
28639 * config/bfin/bfin.c: Likewise.
28640 * config/cris/cris.opt: Likewise.
28641 * config/rs6000/rs6000.c: Likewise.
28642 * target.h: Likewise.
28643 * spellcheck.c: Likewise.
28644 * ira-build.c: Likewise.
28645 * tree-inline.c: Likewise.
28646 * builtins.c: Likewise.
28647 * lra-constraints.c: Likewise.
28648 * explow.c: Likewise.
28649 * hwint.h: Likewise.
28650 * targhooks.c: Likewise.
28651 * tree-vect-data-refs.c: Likewise.
28652 * expr.c: Likewise.
28653 * doc/tm.texi: Likewise.
28654 * doc/extend.texi: Likewise.
28655 * doc/install.texi: Likewise.
28656 * doc/md.texi: Likewise.
28657 * tree-ssa-tail-merge.c: Likewise.
28658 * sched-int.h: Likewise.
28659 * match.pd: Likewise.
28660 * sched-ebb.c: Likewise.
28661 * target.def (omit_struct_return_reg): Likewise.
28662 * gimple-ssa-isolate-paths.c: Likewise.
28663 (find_implicit_erroneous_behaviour): Renamed to...
28664 (find_implicit_erroneous_behavior): ... this.
28665 (find_explicit_erroneous_behaviour): Renamed to...
28666 (find_explicit_erroneous_behavior): ... this.
28667 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28668
28669 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
28670
28671 PR rtl-optimization/64682
28672 PR rtl-optimization/69567
28673 PR rtl-optimization/69737
28674 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28675 in I2 as well, just lose it.
28676
28677 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28678
28679 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28680 New variable.
28681 (aarch64_last_printed_tune_string): Likewise.
28682 (aarch64_declare_function_name): Only output .arch assembler
28683 directive if it will be different from the previously output
28684 directive. Same for .tune comment but only if -dA is set.
28685 (aarch64_start_file): New function.
28686 (TARGET_ASM_FILE_START): Define.
28687
28688 2016-02-11 David Malcolm <dmalcolm@redhat.com>
28689
28690 PR plugins/69758
28691 * Makefile.in (PLUGIN_HEADERS): Add params.list.
28692
28693 2016-02-11 Jakub Jelinek <jakub@redhat.com>
28694
28695 PR target/65313
28696 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28697 -Wmaybe-uninitialized warning.
28698
28699 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
28700
28701 PR target/69713
28702 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28703
28704 2016-02-11 Richard Biener <rguenther@suse.de>
28705
28706 PR rtl-optimization/69291
28707 * ifcvt.c (noce_try_store_flag_constants): Do not allow
28708 subexpressions affected by changing the result.
28709
28710 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
28711
28712 PR target/69148
28713 * lra-constraints.c (curr_insn_transform): Find in/out operands
28714 for secondary memory moves. Update dups.
28715
28716 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
28717
28718 PR tree-optimization/69652
28719 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28720 to nested loop, did source re-formatting, skip debug statements,
28721 add check on statement with volatile operand, remove dead scalar
28722 statements.
28723
28724 2016-02-10 Jakub Jelinek <jakub@redhat.com>
28725 Patrick Palka <ppalka@gcc.gnu.org>
28726
28727 PR ipa/69241
28728 PR c++/69649
28729 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28730 calls if the return type is TREE_ADDRESSABLE.
28731 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28732 * ipa-split.c (split_function): Fix doubled "we" in comment.
28733 Use void return type for the split part even if
28734 !split_point->split_part_set_retval.
28735
28736 2016-02-10 Bin Cheng <bin.cheng@arm.com>
28737
28738 PR tree-optimization/68021
28739 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28740 when computing the value of biv cand by itself.
28741
28742 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28743
28744 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28745 (cortexa57_tunings): Likewise.
28746 (cortexa72_tunings): Likewise.
28747 (arch_macro_fusion_pair_p): Add support for AES fusion.
28748 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28749 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28750 Allow virtual registers before reload so early scheduling works.
28751 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28752 correct latency and pipeline.
28753 (cortex_a57_crypto_complex): Likewise.
28754 (cortex_a57_crypto_xor): Likewise.
28755 (define_bypass): Add AES bypass.
28756
28757 2016-02-10 Richard Biener <rguenther@suse.de>
28758
28759 PR tree-optimization/69726
28760 * passes.def: Add DCE pass before late uninit.
28761 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28762 really fixup if-conversions job.
28763
28764 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28765
28766 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28767 (arm_cortex_a57_tune): Likewise.
28768 (aarch_macro_fusion_pair_p): Add support for AES fusion.
28769 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28770
28771 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
28772
28773 * timevar.def (TV_PHASE_DBGINFO): Delete.
28774 (TV_PHASE_CHECK_DBGINFO): Likewise.
28775 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28776
28777 2016-02-10 Richard Biener <rguenther@suse.de>
28778
28779 PR tree-optimization/69719
28780 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28781 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28782
28783 2016-02-09 Andrew Pinski <apinski@cavium.com>
28784
28785 PR tree-opt/69282
28786 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28787 get_vcond_mask_icode returns false.
28788
28789 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28790
28791 PR target/68404
28792 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28793 an ADDIS that adds a pointer to a large constant that sets the
28794 upper16 bits with a load operation.
28795
28796 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28797
28798 PR target/68532
28799 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28800 order.
28801 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28802 endian.
28803 (vzipq_s16): Likewise.
28804 (vzipq_s32): Likewise.
28805 (vzipq_f32): Likewise.
28806 (vzipq_u8): Likewise.
28807 (vzipq_u16): Likewise.
28808 (vzipq_u32): Likewise.
28809 (vzipq_p8): Likewise.
28810 (vzipq_p16): Likewise.
28811
28812 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28813
28814 PR target/68532
28815 * config/arm/arm.c (neon_endian_lane_map): New function.
28816 (neon_vector_pair_endian_lane_map): New function.
28817 (arm_evpc_neon_vuzp): Allow for big endian lane order.
28818 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28819 endian.
28820 (vuzpq_s16): Likewise.
28821 (vuzpq_s32): Likewise.
28822 (vuzpq_f32): Likewise.
28823 (vuzpq_u8): Likewise.
28824 (vuzpq_u16): Likewise.
28825 (vuzpq_u32): Likewise.
28826 (vuzpq_p8): Likewise.
28827 (vuzpq_p16): Likewise.
28828
28829 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
28830
28831 PR target/69634
28832 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28833 debug insns.
28834
28835 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
28836
28837 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28838 truncate const_int operand 1 to QImode.
28839
28840 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
28841
28842 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28843 corresponding to an abnormal edge.
28844
28845 2016-02-09 Tom de Vries <tom@codesourcery.com>
28846
28847 PR tree-optimization/69599
28848 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28849 function.
28850 (find_func_aliases_for_builtin_call, find_func_clobbers)
28851 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
28852 partition.
28853
28854 2016-02-09 Richard Biener <rguenther@suse.de>
28855
28856 PR tree-optimization/69715
28857 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28858 LHS on calls as non-rewritable.
28859
28860 2016-02-09 Tom de Vries <tom@codesourcery.com>
28861
28862 PR lto/69707
28863 * lto-wrapper.c (append_diag_options): New function.
28864 (compile_offload_image): Call append_diag_options.
28865
28866 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
28867
28868 PR other/69722
28869 * doc/extend.texi (Flag Output Operands): Correct sectioning.
28870 Minor copy-edit to fix verb tenses.
28871
28872 2016-02-08 Jakub Jelinek <jakub@redhat.com>
28873
28874 PR tree-optimization/69209
28875 * ipa-split.c (split_function): If split part is not
28876 returning retval, retval has gimple type but is not
28877 gimple value, force it into a SSA_NAME first.
28878
28879 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
28880
28881 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28882 outdated section.
28883
28884 2016-02-08 Jason Merrill <jason@redhat.com>
28885
28886 PR c++/69631
28887 * convert.c (convert_to_integer_1): Check dofold on truncation
28888 distribution.
28889 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28890 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28891 Rename from *_nofold.
28892 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28893 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28894
28895 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
28896
28897 PR target/60410
28898 * tree.c (build_common_tree_nodes): Remove short_double argument.
28899 All callers changed.
28900 * tree.h (build_common_tree_nodes): Adjust declaration.
28901 * doc/invoke.texi (-fshort-double): Remove documentation.
28902 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28903 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28904 * lto-wrapper.c (merge_and_complain, append_compiler_options)
28905 (append_linker_options): Don't handle OPT_fshort_double.
28906
28907 PR rtl-optimization/68730
28908 * lra-remat.c (insn_to_cand_activation): New static variable.
28909 (lra_remat): Allocate and free it.
28910 (create_cand): New arg activation. Initialize a field in
28911 insn_to_cand_activation if it is nonnull.
28912 (create_cands): Pass the activation insn to create_cand when making
28913 a candidate involving an output reload. Reorganize code a little.
28914 (do_remat): Keep track of active status of candidates in a separate
28915 bitmap.
28916
28917 2016-02-08 Richard Biener <rguenther@suse.de>
28918
28919 PR tree-optimization/69719
28920 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28921 Properly use absolute of the difference of the two offsets to
28922 compare or adjust the segment length.
28923
28924 2016-02-08 Richard Biener <rguenther@suse.de>
28925 Jeff Law <law@redhat.com>
28926
28927 PR target/68273
28928 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28929 types for anonymous SSA names.
28930
28931 2016-02-08 Richard Biener <rguenther@suse.de>
28932
28933 PR rtl-optimization/69274
28934 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28935
28936 2016-02-08 Jeff Law <law@redhat.com>
28937
28938 PR tree-optimization/65917
28939 * tree-ssa-dom.c (record_temporary_equivalences): Record both
28940 equivalences from if (x == y) style conditionals.
28941 (loop_depth_of_name): Remove.
28942 (record_equality): Remove loop depth check.
28943 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28944 (const_and_copies::record_const_or_copy_raw): New member function.
28945 * tree-ssa-scopedtables.c
28946 (const_and_copies::record_const_or_copy_raw): New, factored out of
28947 (const_and_copies::record_const_or_copy): Call new member function.
28948
28949 2016-02-05 Jeff Law <law@redhat.com>
28950
28951 PR tree-optimization/68541
28952 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28953 (count_stmts_in_block): New function.
28954 (poor_ifcvt_candidate_code): Likewise.
28955 (is_feasible_trace): Add some heuristics to determine when path
28956 splitting is profitable.
28957 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28958 is a diamond with a single exit.
28959
28960 2016-02-05 Martin Sebor <msebor@redhat.com>
28961
28962 PR c++/69662
28963 * doc/invoke.texi: Update -Wplacement-new to take an optional
28964 argument.
28965
28966 2016-02-06 Richard Henderson <rth@redhat.com>
28967
28968 PR c/69643
28969 * tree.c (tree_nop_conversion_p): Do not strip casts into or
28970 out of non-standard address spaces.
28971
28972 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28973
28974 PR rtl-optimization/69691
28975 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
28976
28977 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
28978
28979 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
28980 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
28981 (*ieee128_mfvsrd_64bit): Likewise.
28982 (*ieee128_mfvsrd_32bit): Likewise.
28983
28984 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
28985
28986 PR target/69369
28987 Revert r232560:
28988 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28989
28990 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28991 instrumented_version.
28992
28993 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
28994
28995 * doc/invoke.texi (Optimize Options): In table of --param options
28996 rename second occurrence of tracer-min-branch-ratio to
28997 tracer-min-branch-probability, rename
28998 tracer-min-branch-ratio-feedback to
28999 tracer-min-branch-probability-feedback and clarify description,
29000 rename sched-spec-state-edge-prob-cutoff to
29001 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
29002 to selsched-insns-to-rename, rename lto-minpartition to
29003 lto-min-partition, delete reorder-blocks-duplicate and
29004 reorder-blocks-duplicate-feedback.
29005
29006 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29007
29008 * config/s390/s390.c (s390_register_info_set_ranges): Remove
29009 superfluous loops.
29010
29011 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
29012
29013 * doc/extend.texi: S/390: Correct some typos.
29014
29015 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29016
29017 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
29018
29019 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29020
29021 PR target/69625
29022 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
29023 (s390_register_info_gprtofpr): Use new macros above.
29024 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
29025 its name.
29026 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
29027 its name. Adjust restore and save gpr ranges.
29028 (s390_register_info_set_ranges): New function.
29029 (s390_register_info): Use new macros above. Call
29030 s390_register_info_set_ranges.
29031 (s390_optimize_register_info): Likewise.
29032 (s390_hard_regno_rename_ok): Use new macros.
29033 (s390_hard_regno_scratch_ok): Likewise.
29034 (s390_emit_epilogue): Likewise.
29035 (s390_can_use_return_insn): Likewise.
29036 (s390_optimize_prologue): Likewise.
29037 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
29038
29039 2016-02-05 Jakub Jelinek <jakub@redhat.com>
29040
29041 PR bootstrap/69677
29042 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
29043 alignment fixes.
29044 (ix86_option_override_internal): Disable TARGET_STV even for
29045 -m{incoming,preferred}-stack-boundary=3.
29046
29047 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29048
29049 * config.gcc: Mark deprecated rtems targets as obsolete.
29050
29051 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
29052
29053 PR rtl-optimization/64682
29054 PR rtl-optimization/69567
29055 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
29056 before I2 only if the register is both used and set in I2.
29057
29058 2016-02-04 DJ Delorie <dj@redhat.com>
29059
29060 * config/msp430/msp430.c (msp430_start_function): Add function type.
29061
29062 2016-02-04 Jakub Jelinek <jakub@redhat.com>
29063
29064 PR fortran/69368
29065 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
29066
29067 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
29068
29069 PR rtl-optimization/69577
29070 Revert:
29071 2015-10-29 Richard Henderson <rth@redhat.com>
29072
29073 PR target/68124
29074 PR rtl-opt/67609
29075 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
29076 sse check to the exact conditions of PR 67609.
29077
29078 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
29079
29080 PR target/69667
29081 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
29082 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
29083 not allowed into the traditional Altivec registers.
29084 (movtd_64bit_nodm): Likewise.
29085 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
29086
29087 2016-02-04 David Malcolm <dmalcolm@redhat.com>
29088
29089 * config/aarch64/cortex-a57-fma-steering.c
29090 (aarch64_register_fma_steering): Remove "static" from arguments
29091 to register_pass.
29092
29093 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
29094
29095 PR target/69619
29096 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
29097 twice when complex.
29098
29099 2016-02-04 Mike Frysinger <vapier@gentoo.org>
29100
29101 * doc/invoke.texi: Delete -mno-fma4.
29102
29103 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
29104
29105 PR rtl-optimization/69577
29106 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
29107 (find_subregs_of_mode): Update accordingly. Iterate over partial
29108 definitions.
29109
29110 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
29111
29112 * config/arm/arm-protos.h (neon_reinterpret): Remove.
29113 * config/arm/arm.c (neon_reinterpret): Remove.
29114 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
29115 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
29116 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
29117 vreinterpretti): Remove.
29118 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
29119 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
29120 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
29121 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
29122 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
29123 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
29124 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
29125 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
29126 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
29127 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
29128 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
29129 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
29130 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
29131 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
29132 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
29133 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
29134 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
29135 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
29136 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
29137 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
29138 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
29139 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
29140 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
29141 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
29142 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
29143 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
29144 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
29145 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
29146 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
29147 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
29148 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
29149 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
29150 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
29151 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
29152 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
29153 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
29154 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
29155 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
29156 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
29157 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
29158 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
29159 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
29160 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
29161 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
29162 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
29163 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
29164 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
29165 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
29166 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
29167 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
29168 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
29169 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
29170 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
29171 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
29172 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
29173 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
29174 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
29175 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
29176 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
29177 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
29178 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
29179 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
29180 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
29181 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
29182 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
29183 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
29184 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
29185 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
29186 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
29187 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
29188 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
29189 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
29190 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
29191 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
29192 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
29193 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
29194 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
29195 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
29196 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
29197 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
29198 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
29199 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
29200 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
29201 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
29202 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
29203 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
29204 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
29205 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
29206 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
29207 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
29208 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
29209 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
29210 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
29211 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
29212 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
29213 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
29214 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
29215 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
29216 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
29217 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
29218 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
29219 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
29220 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
29221
29222 2016-02-04 Martin Liska <mliska@suse.cz>
29223
29224 PR sanitizer/69276
29225 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
29226 that are gimple_store_p.
29227 (maybe_instrument_call): Likewise.
29228
29229 2016-02-04 Bin Cheng <bin.cheng@arm.com>
29230
29231 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
29232 register scaling out of memory reference and comment why.
29233
29234 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29235
29236 PR target/65932
29237 PR target/67714
29238 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
29239 folding the source of a SET.
29240
29241 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29242
29243 PR target/65932
29244 PR target/67714
29245 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
29246 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
29247
29248 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
29249
29250 PR target/65932
29251 PR target/67714
29252 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
29253 HImode.
29254
29255 2016-02-04 Christian Bruel <christian.bruel@st.com>
29256
29257 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
29258 * config/arm/arm.c (arm_set_current_function): Likewise.
29259
29260 2016-02-04 Jakub Jelinek <jakub@redhat.com>
29261 Ilya Enkovich <enkovich.gnu@gmail.com>
29262 H.J. Lu <hongjiu.lu@intel.com>
29263
29264 PR target/69454
29265 * config/i386/i386.c (convert_scalars_to_vector): Remove
29266 stack alignment fixes.
29267 (ix86_option_override_internal): Disable TARGET_STV if stack
29268 might not be aligned enough.
29269 (ix86_minimum_alignment): Assert that TARGET_STV is false.
29270
29271 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
29272
29273 * config/i386/x86-tune.def: Disable default prefetching
29274 for -march=znver1.
29275
29276 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29277 Vladimir Makarov <vmakarov@redhat.com>
29278
29279 PR target/69461
29280 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
29281 in validating fused toc addresses.
29282
29283 2016-02-03 Jakub Jelinek <jakub@redhat.com>
29284
29285 PR c/69627
29286 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
29287 range->m_caret fields if range->m_show_caret_p is false.
29288
29289 PR target/69644
29290 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29291 Force oldval into register if it does not satisfy reg_or_short_operand
29292 predicate. Fix up formatting.
29293
29294 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
29295 Alexandre Oliva <aoliva@redhat.com>
29296
29297 PR target/69461
29298 * lra-constraints.c (simplify_operand_subreg): Check additionally
29299 address validity after potential reloading.
29300 (process_address_1): Check insns validity. In case of failure do
29301 nothing.
29302
29303 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
29304
29305 PR target/69118
29306 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
29307 Fix target.
29308
29309 2016-02-02 Jakub Jelinek <jakub@redhat.com>
29310
29311 * wide-int.cc (canonize_uhwi): New function.
29312 (wi::divmod_internal): Use it.
29313
29314 2016-02-02 James Norris <jnorris@codesourcery.com>
29315
29316 * gimplify.c (omp_notice_variable): Add usage check.
29317
29318 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
29319
29320 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
29321 like LE, GE, LT, GT when emitting relational operator.
29322
29323 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29324
29325 * ira-costs.c (find_costs_and_classes): Add extra argument.
29326 * target.def (ira_change_pseudo_allocno_class): Add parameter.
29327 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
29328 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
29329 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
29330 Add best_class parameter, and return it if not ALL_REGS.
29331 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
29332 Add parameter.
29333 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
29334 Update target hook.
29335
29336 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29337
29338 * config/aarch64/aarch64.c
29339 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
29340 (aarch64_ira_change_pseudo_allocno_class): New function.
29341
29342 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
29343
29344 PR target/67032
29345 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
29346
29347 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29348
29349 * config/avr/avr.c (avr_option_override): Set
29350 PARAM_ALLOW_STORE_DATA_RACES to 1.
29351
29352 2016-02-02 Richard Biener <rguenther@suse.de>
29353
29354 PR tree-optimization/69595
29355 * match.pd: Add range test simplifications to true/false.
29356
29357 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
29358
29359 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
29360 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
29361 instead.
29362
29363 2016-02-02 Richard Biener <rguenther@suse.de>
29364
29365 PR tree-optimization/69606
29366 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
29367 info on the result before moving a stmt.
29368
29369 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
29370
29371 PR middle-end/68542
29372 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
29373 branch with vector comparison.
29374 * config/i386/sse.md (VI48_AVX): New mode iterator.
29375 (define_expand "cbranch<mode>4): Add support for conditional branch
29376 with vector comparison.
29377 * tree-vect-loop.c (optimize_mask_stores): New function.
29378 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
29379 has_mask_store field of vect_info.
29380 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
29381 vectorized loops having masked stores after vec_info destroy.
29382 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
29383 correspondent macros.
29384 (optimize_mask_stores): Add prototype.
29385
29386 2016-02-02 Alan Modra <amodra@gmail.com>
29387
29388 PR target/69548
29389 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
29390 allow subregs.
29391
29392 2016-02-02 Alan Modra <amodra@gmail.com>
29393
29394 PR target/68662
29395 * config/rs6000/rs6000.c (need_toc_init): New var, set it
29396 whenever toc_label_name used.
29397 (rs6000_file_start): Don't set up toc section here,
29398 (rs6000_output_function_epilogue): do so here instead,
29399 (rs6000_xcoff_file_start): and here.
29400 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
29401 (load_toc_aix_di): Likewise.
29402
29403 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29404
29405 PR rtl-optimization/69592
29406 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
29407 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
29408 (num_sign_bit_copies_binary_arith_p): New inline function.
29409 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
29410
29411 2016-02-01 Jeff Law <law@redhat.com>
29412
29413 PR tree-optimization/69580
29414 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
29415 * tree-ssa-threadbackward.c
29416 (fsm_find_control_statement_thread_paths): Do not try to walk
29417 through large PHI nodes.
29418
29419 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29420
29421 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
29422 when count is incremented above limit, don't analyze further
29423 insns afterwards.
29424
29425 * omp-low.c (oacc_parse_default_dims): Avoid
29426 -Wsign-compare warning, make sure value fits into int
29427 rather than just unsigned int.
29428
29429 2016-02-01 Bin Cheng <bin.cheng@arm.com>
29430
29431 PR tree-optimization/67921
29432 * fold-const.c (split_tree): New parameters. Convert pointer
29433 type variable part to proper type before negating.
29434 (fold_binary_loc): Pass new arguments to split_tree.
29435
29436 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
29437
29438 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
29439 (nvptx_goacc_validate_dims): Extend to handle global defaults.
29440 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
29441 * doc/tm.texti: Rebuilt.
29442 * doc/invoke.texi (fopenacc-dim): Document.
29443 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
29444 (append_compiler_options): Likewise.
29445 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
29446 (oacc_parse_default_dims): New.
29447 (oacc_validate_dims): Add USED arg. Select non-unity default when
29448 possible.
29449 (oacc_loop_fixed_partitions): Return mask of used partitions.
29450 (oacc_loop_auto_partitions): Emit dump info.
29451 (oacc_loop_partition): Return mask of used partitions.
29452 (execute_oacc_device_lower): Parse default dimension arg. Adjust
29453 loop partitioning and validation calls.
29454
29455 2016-02-01 Richard Biener <rguenther@suse.de>
29456
29457 PR middle-end/69556
29458 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
29459
29460 2016-02-01 Richard Biener <rguenther@suse.de>
29461
29462 PR tree-optimization/69574
29463 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
29464 of asserting return chrec_dont_know.
29465
29466 2016-02-01 Martin Liska <mliska@suse.cz>
29467
29468 * mem-stats-traits.h: Add copyright header.
29469 * mem-stats.h: Likewise.
29470
29471 2016-02-01 Richard Biener <rguenther@suse.de>
29472
29473 PR tree-optimization/69579
29474 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
29475 Do not propagate through abnormal PHI results.
29476
29477 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
29478
29479 * postreload.c (reload_cse_simplify): Remove dead code.
29480
29481 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29482
29483 PR rtl-optimization/69570
29484 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
29485 if there is more than one set, not if there is a single set.
29486
29487 2016-02-01 Richard Henderson <rth@redhat.com>
29488
29489 PR rtl-opt/69535
29490 * combine.c (make_compound_operation): When looking through a
29491 subreg, make sure to re-extend to the width of the outer mode.
29492
29493 2016-01-30 Jakub Jelinek <jakub@redhat.com>
29494
29495 PR tree-optimization/69546
29496 * wide-int.cc (wi::divmod_internal): For unsigned division
29497 where both operands fit into uhwi, if o1 is 1 and o0 has
29498 msb set, if divident_prec is larger than bits per hwi,
29499 clear another quotient word and return 2 instead of 1.
29500 Similarly for remainder with msb in HWI set, if dividend_prec
29501 is larger than bits per hwi.
29502
29503 2016-01-29 Martin Jambor <mjambor@suse.cz>
29504
29505 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
29506 Use short lowercase names.
29507 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
29508 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
29509 acq_rel one. Protect warning agains segfaults if
29510 get_memory_order_name returns NULL.
29511 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
29512 with release semantics. Do not warn if get_memory_order already did.
29513 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
29514 semantics. Fix check for relaxed or acquire semantics. Do not warn
29515 if get_memory_order already did.
29516
29517 2016-01-29 Sebastian Pop <s.pop@samsung.com>
29518
29519 * doc/install.texi: Document that isl-0.16 is supported.
29520
29521 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
29522
29523 PR target/69299
29524 * config/i386/constraints.md (Bm): Describe as special memory
29525 constraint.
29526 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
29527 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29528 * genpreds.c (struct constraint_data): Add is_special_memory.
29529 (have_special_memory_constraints, special_memory_start): New
29530 static vars.
29531 (special_memory_end): Ditto.
29532 (add_constraint): Add new arg is_special_memory. Add code to
29533 process its true value. Update have_special_memory_constraints.
29534 (process_define_constraint): Pass the new arg.
29535 (process_define_register_constraint): Ditto.
29536 (choose_enum_order): Process special memory.
29537 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
29538 function insn_extra_special_memory_constraint.
29539 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29540 * gensupport.c (process_rtx): Process
29541 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29542 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
29543 * ira-lives.c (single_reg_class): Use
29544 insn_extra_special_memory_constraint.
29545 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
29546 * lra-constraints.c (process_alt_operands): Ditto.
29547 (curr_insn_transform): Use insn_extra_special_memory_constraint.
29548 * recog.c (asm_operand_ok, preprocess_constraints): Process
29549 CT_SPECIAL_MEMORY.
29550 * reload.c (find_reloads): Ditto.
29551 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
29552 * stmt.c (parse_input_constraint): Use
29553 insn_extra_special_memory_constraint.
29554
29555 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29556
29557 PR target/69530
29558 * lra-splill.c (lra_final_code_change): Revert r229087 by
29559 removing all sub-registers.
29560
29561 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
29562
29563 PR target/65604
29564 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
29565
29566 2016-01-29 Jakub Jelinek <jakub@redhat.com>
29567
29568 PR target/69551
29569 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
29570 SSE1, copy target into the temporary reg first before recursing
29571 on it.
29572
29573 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29574
29575 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
29576 with vm.
29577
29578 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29579
29580 * ginclude/stdarg.h: Test __cplusplus instead of
29581 __GXX_EXPERIMENTAL_CXX0X__.
29582
29583 2016-01-29 Richard Biener <rguenther@suse.de>
29584
29585 PR tree-optimization/69547
29586 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
29587 Do not mark clobbers necessary.
29588 (mark_all_reaching_defs_necessary_1): Likewise.
29589
29590 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29591
29592 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
29593 declaration name with %qs and print it in both error messages.
29594 Also fix indentation.
29595
29596 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29597
29598 PR other/69006
29599 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
29600 trailing blank line from error message.
29601
29602 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29603
29604 PR c++/69462
29605 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
29606 for C++-11.
29607
29608 2016-01-29 Richard Biener <rguenther@suse.de>
29609
29610 PR middle-end/69537
29611 * match.pd: Allow all integral types when simplifying a
29612 widening or sign-changing conversion.
29613
29614 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29615
29616 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
29617 back to setting codegen_error to fail codegen.
29618
29619 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
29620
29621 PR target/69459
29622 * config/i386/constraints.md (C): Only accept constant zero operand.
29623 (BC): New constraint.
29624 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
29625 instead of C constraint.
29626 * doc/md.texi (Machine Constraints): Update description
29627 of C constraint.
29628
29629 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
29630
29631 PR target/68400
29632 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
29633
29634 2016-01-28 Jakub Jelinek <jakub@redhat.com>
29635
29636 PR middle-end/69542
29637 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
29638 non-debug insns.
29639
29640 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
29641
29642 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
29643 branches if using guessed profile.
29644
29645 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
29646
29647 * graphite-optimize-isl.c (optimize_isl): Fix dump.
29648
29649 2016-01-28 Richard Henderson <rth@redhat.com>
29650
29651 PR target/69305
29652 * config/aarch64/aarch64-modes.def (CC_Cmode): New
29653 * config/aarch64/aarch64-protos.h: Update.
29654 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
29655 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
29656 (aarch64_get_condition_code_1): Handle CC_Cmode.
29657 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
29658 (*add<mode>3_compareC_cconly_imm): New.
29659 (*add<mode>3_compareC_cconly): New.
29660 (*add<mode>3_compareC_imm): New.
29661 (add<mode>3_compareC): New.
29662 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
29663 to be first. Use aarch64_carry_operation.
29664 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
29665 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29666 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29667 (subti3): Use subdi3_compare1.
29668 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29669 (sub<mode>3_compare1): New.
29670 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29671 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29672 (*subsi3_carryin_uxtw): Likewise.
29673 (*ngc<mode>, *ngcsi_uxtw): Likewise.
29674 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29675 * config/aarch64/iterators.md (DWI): New.
29676 * config/aarch64/predicates.md (aarch64_carry_operation): New.
29677 (aarch64_borrow_operation): New.
29678
29679 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29680
29681 * graphite-optimize-isl.c (optimize_isl): Print a different debug
29682 message when isl does not return a valid schedule.
29683
29684 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29685
29686 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29687 Remove comments from class declarations: they are already in the code
29688 close by the defs.
29689
29690 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29691
29692 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29693 codegen_error_p.
29694 (ternary_op_to_tree): Same.
29695 (unary_op_to_tree): Same.
29696 (nary_op_to_tree): Same.
29697 (gcc_expression_from_isl_expr_op): Same.
29698 (gcc_expression_from_isl_expression): Same.
29699 (graphite_create_new_loop): Same.
29700 (graphite_create_new_loop_guard): Same.
29701 (build_iv_mapping): Same.
29702 (graphite_create_new_guard): Same.
29703 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29704 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29705
29706 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29707
29708 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29709 instead of setting codegen_error to fail codegen.
29710
29711 2016-01-28 Jason Merrill <jason@redhat.com>
29712
29713 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29714
29715 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29716
29717 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29718 Remove CONST_INT_P check in CCMP cost calculation.
29719
29720 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29721
29722 * config/aarch64/aarch64.c (generic_vector_cost):
29723 Set vec_permute_cost.
29724 (cortexa57_vector_cost): Likewise.
29725 (exynosm1_vector_cost): Likewise.
29726 (xgene1_vector_cost): Likewise.
29727 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29728 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29729 Add vec_permute_cost entry.
29730
29731 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29732
29733 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29734 immediate as %1.
29735 (add<mode>3_compare0): Likewise.
29736 (addsi3_compare0_uxtw): Likewise.
29737 (add<mode>3nr_compare0): Likewise.
29738 (compare_neg<mode>): Likewise.
29739 (<optab><mode>3): Likewise.
29740
29741 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
29742
29743 * tree-vect-stmts.c (vectorizable_comparison): Add
29744 NULL check for vectype.
29745
29746 2016-01-28 Richard Biener <rguenther@suse.de>
29747
29748 PR tree-optimization/69466
29749 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29750 Account for PHIs we couldn't duplicate.
29751
29752 2016-01-28 Martin Liska <mliska@suse.cz>
29753
29754 PR pch/68758
29755 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29756 instead of ENABLE_VALGRIND_CHECKING.
29757
29758 2016-01-27 Richard Henderson <rth@redhat.com>
29759
29760 PR rtl-opt/69447
29761 * lra-remat.c (subreg_regs): New.
29762 (dump_candidates_and_remat_bb_data): Dump it.
29763 (operand_to_remat): Reject if operand in subreg_regs.
29764 (set_bb_regs): Collect subreg_regs.
29765 (lra_remat): Init and free subreg_regs. Compute
29766 calculate_local_reg_remat_bb_data before create_cands.
29767
29768 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
29769
29770 PR target/68986
29771 * config/i386/i386.c (ix86_update_stack_boundary): Don't
29772 change stack_alignment_needed for __tls_get_addr call.
29773
29774 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
29775
29776 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29777
29778 2016-01-27 Jeff Law <law@redhat.com>
29779
29780 PR tree-optimization/68398
29781 PR tree-optimization/69196
29782 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29783 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29784 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29785 Only count PHIs in the last block in the path. The others will
29786 const/copy propagate away. Add heuristic to allow more irreducible
29787 subloops to be created when it is likely profitable to do so.
29788
29789 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29790 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
29791 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
29792
29793 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29794
29795 PR lto/69254
29796 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29797 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29798 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29799 * tree-streamer-in.c: Include asan.h.
29800 (streamer_get_builtin_tree): For builtins in sanitizer
29801 range call initialize_sanitizer_builtins and retry.
29802
29803 2016-01-27 Ian Lance Taylor <iant@google.com>
29804
29805 * common.opt (fkeep-gc-roots-live): New undocumented option.
29806 * tree-ssa-loop-ivopts.c (add_candidate_1): If
29807 -fkeep-gc-roots-live, skip pointers.
29808 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29809 NULL.
29810
29811 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
29812
29813 PR target/69512
29814 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29815 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29816
29817 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
29818
29819 PR target/68380
29820 * configure.ac: NetBSD provides SSP in its C library.
29821 * configure: Updated.
29822
29823 2016-01-27 Richard Biener <rguenther@suse.de>
29824
29825 PR tree-optimization/69166
29826 * tree-vect-loop.c (vect_is_simple_reduction): Always check
29827 reduction code for commutativity / associativity.
29828
29829 2016-01-27 Martin Jambor <mjambor@suse.cz>
29830
29831 PR tree-optimization/69355
29832 * tree-sra.c (analyze_access_subtree): Correct hole detection when
29833 total_scalarization fails.
29834
29835 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
29836
29837 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29838 power9.
29839
29840 2016-01-27 Christian Bruel <christian.bruel@st.com>
29841
29842 PR target/69245
29843 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29844 Move arm_reset_previous_fndecl and set_target_option_current_node in
29845 the conditional part. Call save_restore_target_globals.
29846 * config/arm/arm.c (arm_set_current_function):
29847 Refactor to better support #pragma target and attribute mix.
29848 Call save_restore_target_globals.
29849 * config/arm/arm-protos.h (save_restore_target_globals): New function.
29850
29851 2016-01-27 Martin Liska <mliska@suse.cz>
29852
29853 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29854 reference for an HSA kernel and its host function.
29855
29856 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29857
29858 PR tree-optimization/69399
29859 * wide-int.h (wi::lrshift): For larger precisions, only
29860 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29861
29862 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
29863
29864 * config/arc/predicates.md (proper_comparison_operator): Reject
29865 constant-constant comparison.
29866
29867 2016-01-26 Tom de Vries <tom@codesourcery.com>
29868
29869 PR tree-optimization/69110
29870 * tree-data-ref.c (initialize_data_dependence_relation): Handle
29871 DR_NUM_DIMENSIONS == 0.
29872
29873 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29874 Sebastian Pop <s.pop@samsung.com>
29875
29876 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29877 isl_ast_op_cond and isl_ast_op_select.
29878 (gcc_expression_from_isl_expr_op): Same.
29879
29880 2016-01-26 Jason Merrill <jason@redhat.com>
29881
29882 PR c++/68782
29883 * tree.c (recompute_constructor_flags): Split out from
29884 build_constructor.
29885 (verify_constructor_flags): New.
29886 * tree.h: Declare them.
29887
29888 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
29889
29890 PR rtl-optimization/69217
29891 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29892 are no TYPE_FIELDS set for the record type.
29893
29894 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29895
29896 PR target/68662
29897 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29898 toc_label_name unconditionally.
29899 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29900 SYMBOL_REF string. Use toc_label_name instead of constructing
29901 LCTOC1.
29902 (rs6000_elf_declare_function_name): Use toc_label_name instead of
29903 constructing LCTOC1.
29904
29905 2016-01-26 Martin Sebor <msebor@redhat.com>
29906
29907 PR other/69477
29908 * doc/extend.texi (Common Type Attributes): Move text that talks about
29909 attribute packed from attribute aligned to the section discussing
29910 the former attribute for clarity.
29911
29912 2016-01-26 Richard Henderson <rth@redhat.com>
29913
29914 PR middle-end/60908
29915 * trans-mem.c (tm_region_init): Mark entry block as visited.
29916
29917 2016-01-26 David Malcolm <dmalcolm@redhat.com>
29918
29919 PR other/69006
29920 * diagnostic-show-locus.c (layout::print_source_line): Replace
29921 call to pp_newline with call to layout::print_newline.
29922 (layout::print_annotation_line): Likewise.
29923 (layout::move_to_column): Likewise.
29924 (layout::print_any_fixits): After printing any fixits, print a
29925 trailing newline, if necessary.
29926 (layout::print_newline): New method, resetting any colorization
29927 before a newline.
29928 (diagnostic_show_locus): Move the pp_newline to before the
29929 early bailout. Remove dummy block enclosing the layout instance.
29930 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29931 of pp_newline_and_flush with pp_flush.
29932 (diagnostic_append_note): Delete use of pp_newline.
29933 (diagnostic_append_note_at_rich_loc): Delete.
29934 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29935 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29936 when newline characters are added to the buffer.
29937
29938 2016-01-26 Michael Matz <matz@suse.de>
29939
29940 * configure.ac (ac_cv_std_swap_in_utility): New test.
29941 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29942 * configure: Regenerate.
29943 * config.in: Regenerate.
29944
29945 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
29946
29947 * config/arc/arc.md (cstoresi4): Force operand into register.
29948 (arcset<code>): Fix predicate.
29949 (arcsetltu): Likewise.
29950 (arcsetgeu): Likewise.
29951 (arcsethi): Likewise.
29952 (arcsetls): Likewise.
29953
29954 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29955
29956 PR tree-optimization/69483
29957 * gimple-fold.c (canonicalize_constructor_val): Return NULL
29958 if base has error_mark_node type.
29959
29960 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
29961
29962 PR target/68620
29963 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29964 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29965 New helper macros.
29966 (vget_lane_f16): Handle big-endian.
29967 (vgetq_lane_f16): Likewise.
29968 (vset_lane_f16): Likewise.
29969 (vsetq_lane_f16): Likewise.
29970 * config/arm/iterators.md (VQXMOV): Add V8HF.
29971 (VDQ): Add V4HF and V8HF.
29972 (V_reg): Handle V4HF and V8HF.
29973 (Is_float_mode): Likewise.
29974 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
29975 neon_vdup_nv8hf): New patterns.
29976 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
29977 Use VD_LANE iterator.
29978 (neon_vld1_dup<mode>): Use VQ2 iterator.
29979
29980 2016-01-26 Nathan Sidwell <nathan@acm.org>
29981
29982 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
29983 (set_oacc_fn_attrib): Add IS_KERNEL arg.
29984 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
29985 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
29986 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
29987 (oacc_validate_dims): Add LEVEL arg, don't return level.
29988 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
29989 oacc_validate_dims.
29990 (execute_oacc_device_lower): Adjust, add more dump output.
29991 * tree-ssa-loop.c (gate_oacc_kernels): Use
29992 oacc_fn_attrib_kernels_p.
29993 * tree-parloops.c (create_parallel_loop): Adjust
29994 set_oacc_fn_attrib call.
29995
29996 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29997
29998 PR lto/69254
29999 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
30000 (append_compiler_options): Handle -fcilkplus.
30001 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
30002
30003 2016-01-26 Nick Clifton <nickc@redhat.com>
30004
30005 PR target/66655
30006 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
30007 been marked as DECL_ONE_ONLY but we do not the means to make it
30008 so, then do not allow it to bind locally.
30009
30010 2016-01-26 Jakub Jelinek <jakub@redhat.com>
30011
30012 PR lto/69254
30013 * opts.h (parse_sanitizer_options): New prototype.
30014 * opts.c (sanitizer_opts): New array.
30015 (parse_sanitizer_options): New function.
30016 (common_handle_option): Use parse_sanitizer_options.
30017
30018 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
30019
30020 PR target/68986
30021 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
30022 alignment adjustment to ...
30023 (ix86_update_stack_boundary): Here. Don't over-align stack for
30024 __tls_get_addr.
30025 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
30026 if __tls_get_addr is called.
30027
30028 2016-01-26 Christian Bruel <christian.bruel@st.com>
30029
30030 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
30031
30032 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
30033
30034 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
30035
30036 2016-01-26 Richard Biener <rguenther@suse.de>
30037
30038 PR middle-end/69467
30039 * match.pd: Guard X * CST CMP 0 pattern with single_use.
30040
30041 2016-01-26 Richard Biener <rguenther@suse.de>
30042
30043 PR tree-optimization/69452
30044 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
30045 (move_computations_dom_walker::before_dom_children): Rename
30046 to ...
30047 (move_computations_worker): This.
30048 (move_computations): Perform an RPO rather than a DOM walk.
30049
30050 2016-01-26 Jakub Jelinek <jakub@redhat.com>
30051
30052 PR target/69442
30053 * combine.c (combine_instructions): For REG_EQUAL note with
30054 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
30055 to the underlying register.
30056 * doc/rtl.texi (REG_EQUAL): Document the behavior of
30057 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
30058
30059 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
30060
30061 PR target/67896
30062 * config/aarch64/aarch64-builtins.c
30063 (aarch64_init_simd_builtin_types): Do not set structural
30064 equality to __Poly{8,16,64,128}_t types.
30065
30066 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
30067
30068 PR tree-optimization/69400
30069 * wide-int.cc (wi_pack): Take the precision as argument and
30070 perform canonicalization here rather than in the callers.
30071 Use the main loop to handle all full-width HWIs. Add a
30072 zero HWI if in_len isn't a full result.
30073 (wi::divmod_internal): Update accordingly.
30074 (wi::mul_internal): Likewise. Simplify.
30075
30076 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
30077 Sebastian Pop <s.pop@samsung.com>
30078
30079 * graphite-poly.c (apply_poly_transforms): Simplify.
30080 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
30081 (print_isl_map): Same.
30082 (print_isl_union_map): Same.
30083 (print_isl_schedule): New.
30084 (debug_isl_schedule): New.
30085 * graphite-dependences.c (scop_get_reads): Do not call
30086 isl_union_map_add_map that is undocumented isl functionality.
30087 (scop_get_must_writes): Same.
30088 (scop_get_may_writes): Same.
30089 (scop_get_original_schedule): Remove.
30090 (scop_get_dependences): Do not call isl_union_map_compute_flow that
30091 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
30092 (compute_deps): Remove.
30093 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
30094 (debug_schedule_ast): New.
30095 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
30096 set_separate_option.
30097 (graphite_regenerate_ast_isl): Add dump.
30098 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
30099 from scop->transformed_schedule.
30100 (graphite_regenerate_ast_isl): Add more dump.
30101 * graphite-optimize-isl.c (optimize_isl): Set
30102 scop->transformed_schedule. Check whether schedules are equal.
30103 (apply_poly_transforms): Move here.
30104 * graphite-poly.c (apply_poly_transforms): ... from here.
30105 (free_poly_bb): Static.
30106 (free_scop): Static.
30107 (pbb_number_of_iterations_at_time): Remove.
30108 (print_isl_ast): New.
30109 (debug_isl_ast): New.
30110 (debug_scop_pbb): New.
30111 * graphite-scop-detection.c (print_edge): Move.
30112 (print_sese): Move.
30113 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
30114 (build_scop_scattering): Remove.
30115 (create_pw_aff_from_tree): Assert instead of bailing out.
30116 (add_condition_to_pbb): Remove unused code, do not fail.
30117 (add_conditions_to_domain): Same.
30118 (add_conditions_to_constraints): Remove.
30119 (build_scop_context): New.
30120 (add_iter_domain_dimension): New.
30121 (build_iteration_domains): Initialize pbb->iterators.
30122 Call add_conditions_to_domain.
30123 (nested_in): New.
30124 (loop_at): New.
30125 (index_outermost_in_loop): New.
30126 (index_pbb_in_loop): New.
30127 (outermost_pbb_in): New.
30128 (add_in_sequence): New.
30129 (add_outer_projection): New.
30130 (outer_projection_mupa): New.
30131 (add_loop_schedule): New.
30132 (build_schedule_pbb): New.
30133 (build_schedule_loop): New.
30134 (embed_in_surrounding_loops): New.
30135 (build_schedule_loop_nest): New.
30136 (build_original_schedule): New.
30137 (build_poly_scop): Call build_original_schedule.
30138 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
30139 (free_poly_dr): Remove.
30140 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
30141 (free_poly_bb): Remove.
30142 (debug_loop_vec): Remove.
30143 (print_isl_ast): Declare.
30144 (debug_isl_ast): Declare.
30145 (scop_do_interchange): Remove.
30146 (scop_do_strip_mine): Remove.
30147 (scop_do_block): Remove.
30148 (flatten_all_loops): Remove.
30149 (optimize_isl): Remove.
30150 (pbb_number_of_iterations_at_time): Remove.
30151 (debug_scop_pbb): Declare.
30152 (print_schedule_ast): Declare.
30153 (debug_schedule_ast): Declare.
30154 (struct scop): Remove schedule. Add original_schedule,
30155 transformed_schedule.
30156 (free_gimple_poly_bb): Remove.
30157 (print_generated_program): Remove.
30158 (debug_generated_program): Remove.
30159 (unify_scattering_dimensions): Remove.
30160 * sese.c (print_edge): ... here.
30161 (print_sese): ... here.
30162 (debug_edge): ... here.
30163 (debug_sese): ... here.
30164 * sese.h (print_edge): Declare.
30165 (print_sese): Declare.
30166 (dump_edge): Declare.
30167 (dump_sese): Declare.
30168
30169 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
30170 Sebastian Pop <s.pop@samsung.com>
30171
30172 * Makefile.in: Set ISLVER in site.exp.
30173
30174 2016-01-25 Jakub Jelinek <jakub@redhat.com>
30175
30176 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
30177 DECL_VALUE_EXPR of new_var even for the non-array case. Look
30178 through DECL_VALUE_EXPR for expansion.
30179
30180 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
30181
30182 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
30183 the frame info after reload completed.
30184
30185 2016-01-25 Jeff Law <law@redhat.com>
30186
30187 PR tree-optimization/69196
30188 PR tree-optimization/68398
30189 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
30190 tree-ssa-threadupdate.c.
30191 (determine_bb_domination_status): Prototype
30192 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
30193 (determine_bb_domination_status): No longer static.
30194 (valid_jump_thread_path): Remove code to detect characteristics
30195 of the jump thread path not associated with correctness.
30196 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
30197 Correct test for thread path length. Count PHIs for real operands as
30198 statements that need to be copied. Do not count ASSERT_EXPRs.
30199 Look at all the blocks in the thread path. Compute and selectively
30200 filter thread paths based on threading through the latch, threading
30201 a multiway branch or crossing a multiway branch.
30202
30203 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30204
30205 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
30206 decl with __attribute__ ((unused)) annotation.
30207
30208 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
30209
30210 PR target/69421
30211 * tree-vect-stmts.c (vectorizable_condition): Check vectype
30212 of operands is compatible with a statement vectype.
30213
30214 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
30215
30216 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
30217 improve wording for mixed storage order support.
30218
30219 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
30220
30221 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
30222 (vcvt_u64_f64): Likewise.
30223 (vcvta_s64_f64): Likewise.
30224 (vcvta_u64_f64): Likewise.
30225 (vcvtm_s64_f64): Likewise.
30226 (vcvtm_u64_f64): Likewise.
30227 (vcvtn_s64_f64): Likewise.
30228 (vcvtn_u64_f64): Likewise.
30229 (vcvtp_s64_f64): Likewise.
30230 (vcvtp_u64_f64): Likewise.
30231
30232 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
30233
30234 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
30235 (arc_init): Check validity mll64 option.
30236 (arc_save_restore): Use double load/store instruction.
30237 (arc_expand_movmem): Likewise.
30238 (arc_split_move): Don't split if we have double load/store
30239 instructions. Returns a boolean.
30240 (arc_process_double_reg_moves): Change function to return boolean
30241 instead of a sequence of instructions.
30242 (arc_dwarf_register_span): New function.
30243 * config/arc/arc-protos.h (arc_split_move): Change prototype.
30244 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
30245 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
30246 (*movdf_insn): Likewise.
30247 * config/arc/arc.opt (mll64): New option.
30248 * config/arc/predicates.md (even_register_operand): New predicate.
30249 * doc/invoke.texi (ARC Options): Add mll64 documentation.
30250
30251 2016-01-25 Richard Biener <rguenther@suse.de>
30252
30253 PR lto/69393
30254 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
30255 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
30256 DECL_NAMELESS.
30257 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
30258
30259 2016-01-25 Richard Biener <rguenther@suse.de>
30260
30261 PR tree-optimization/69376
30262 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
30263 flag.
30264 (VN_INFO_ANTI_RANGE_P): New inline.
30265 (VN_INFO_RANGE_TYPE): Likewise.
30266 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
30267 SSA_NAME_ANTI_RANGE_P.
30268 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
30269 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30270 Properly query VN_INFO_RANGE_TYPE.
30271
30272 2016-01-25 Nick Clifton <nickc@redhat.com>
30273
30274 PR target/66655
30275 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
30276
30277 2016-01-23 Tom de Vries <tom@codesourcery.com>
30278
30279 PR tree-optimization/69426
30280 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
30281 removed clobber.
30282
30283 2016-01-23 Jakub Jelinek <jakub@redhat.com>
30284
30285 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
30286 "the the" with "the" in the comments.
30287 * ipa-devirt.c (build_type_inheritance_graph,
30288 update_type_inheritance_graph): Likewise.
30289 * tree.c (build_function_type_list_1): Likewise.
30290 * cfgloopmanip.c (scale_loop_profile): Likewise.
30291 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
30292 * gimple-ssa-split-paths.c
30293 (find_block_to_duplicate_for_splitting_paths): Likewise.
30294 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
30295 * expr.c (convert_move): Likewise.
30296 * var-tracking.c (vt_stack_adjustments): Likewise.
30297 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
30298 * tree-vrp.c (test_for_singularity): Likewise.
30299
30300 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
30301 directly instead of building a temporary tree.
30302
30303 PR bootstrap/69434
30304 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
30305 remove <algorithm> include.
30306
30307 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30308
30309 PR target/69432
30310 * config/i386/i386.c: Include dojump.h.
30311 (expand_small_movmem_or_setmem,
30312 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
30313 fixes.
30314 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
30315 if dynamic_check != -1.
30316
30317 2016-01-21 Jeff Law <law@redhat.com>
30318
30319 PR middle-end/69347
30320 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
30321 record_temporary_equivalences. Rewritten to avoid unnecessary calls
30322 into dominated_by_p.
30323 (cprop_into_successor_phis): Avoid unnecessary tests.
30324
30325 2016-01-22 Richard Henderson <rth@redhat.com>
30326
30327 PR target/69416
30328 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
30329 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
30330
30331 2016-01-22 Michael Matz <matz@suse.de>
30332
30333 * system.h (string, algorithm): Include only conditionally.
30334 (new): Include always under C++.
30335 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
30336 * final.c (toplevel): Ditto.
30337 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
30338 * genconditions.c (write_header): Make gencondmd.c define
30339 INCLUDE_STRING.
30340 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
30341
30342 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
30343 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
30344
30345 2016-01-22 Christian Bruel <christian.bruel@st.com>
30346
30347 PR target/68674
30348 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
30349
30350 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30351
30352 PR target/69403
30353 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
30354 define_insn_and_split. Ensure operands[1] and operands[0] do not
30355 get assigned the same register.
30356
30357 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
30358
30359 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
30360
30361 2016-01-22 Christian Bruel <christian.bruel@st.com>
30362
30363 * config/arm/arm-c.c (arm_pragma_target_parse):
30364 Remove warn_builtin_macro_redefined overwrite.
30365
30366 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30367
30368 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
30369 flag_non_call_exceptions compatibility.
30370
30371 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30372
30373 PR debug/66668
30374 * dwarf2out.c (add_child_die_after): New function.
30375 (dwarf_qual_info_t): New type.
30376 (dwarf_qual_info): New variable.
30377 (qualified_die_p): New function.
30378 (modified_type_die): For -fdebug-types-section, ensure
30379 canonical order of qualifiers. Put qualified DIEs adjacent
30380 to the corresponding non-qualified type DIE and search there
30381 for existing qualified DIEs.
30382
30383 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30384
30385 * doc/extend.texi (scalar_storage_order type attribute): Document
30386 restriction on type punning and aliasing, and remove future tense.
30387
30388 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
30389
30390 PR target/69252
30391 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
30392 first stage.
30393
30394 2016-01-21 Jeff Law <law@redhat.com>
30395
30396 PR middle-end/69347
30397 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
30398 useless call to record_temporary_equivalences.
30399 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
30400 allocate 10 slots in the bb_path vector and let it grow as needed.
30401 (fsm_find_control_statement_thread_paths): Similarly for the next_path
30402 vector.
30403
30404 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30405
30406 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
30407 Detangle.
30408 * configure: Regenerate.
30409
30410 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
30411
30412 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
30413 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
30414
30415 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
30416
30417 PR middle-end/66178
30418 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
30419 drop EXPAND_INITIALIZER.
30420 * rtl.h (contains_symbolic_reference_p): Declare.
30421 * rtlanal.c (contains_symbolic_reference_p): New function.
30422 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
30423 a subtraction into a NOT if symbolic constants are involved.
30424
30425 2016-01-21 Anton Blanchard <anton@samba.org>
30426 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30427
30428 PR target/63354
30429 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
30430 #define.
30431 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30432 function.
30433
30434 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30435
30436 * config/microblaze/microblaze.c
30437 (get_branch_target): New.
30438 (insert_wic_for_ilb_runout): New.
30439 (insert_wic): New.
30440 (microblaze_machine_dependent_reorg): New.
30441 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
30442 * config/microblaze/microblaze.md
30443 (UNSPEC_IPREFETCH): Define.
30444 (iprefetch): New pattern
30445 * config/microblaze/microblaze.opt
30446 (mxl-prefetch): New flag.
30447
30448 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30449
30450 * config/microblaze/microblaze.h
30451 (FIXED_REGISTERS): Update in macro.
30452 (CALL_USED_REGISTERS): Update in macro.
30453
30454 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
30455
30456 PR rtl-optimization/68920
30457 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
30458 moves.
30459
30460 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
30461
30462 PR rtl-optimization/68990
30463 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
30464 pseudo instead of inheritance ones.
30465
30466 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30467 Nick Clifton <nickc@redhat.com>
30468
30469 PR target/69129
30470 PR target/69012
30471 * config/mips/mips.c (mips_compute_frame_info): Initialise
30472 args_size and hard_frame_pointer_offset fields of the frame
30473 structure before calling mips_global_pointer.
30474
30475 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30476
30477 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
30478 label reference.
30479 * configure: Regenerate.
30480
30481 2016-01-21 Richard Biener <rguenther@suse.de>
30482
30483 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
30484
30485 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30486
30487 * config/s390/s390.c (s390_asm_declare_function_size): Add code
30488 to actually emit the .size directive.
30489
30490 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
30491 Jakub Jelinek <jakub@redhat.com>
30492
30493 PR target/69187
30494 PR target/65624
30495 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
30496 args array size by one to avoid buffer overflow.
30497
30498 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30499
30500 * config/s390/s390.md (pool_section_start): Use switch_to_section
30501 to select proper read-only data section instead of hardcoding
30502 .rodata.
30503 (pool_section_end): Use switch_to_section to match the above.
30504
30505 2016-01-21 Richard Biener <rguenther@suse.de>
30506
30507 PR tree-optimization/69378
30508 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
30509 (set_ssa_val_to): Use it for dominance checks taking into
30510 account not executable edges.
30511
30512 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30513
30514 PR c++/69355
30515 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
30516 for bitsize instead of GET_MODE_PRECISION (mode).
30517
30518 2016-01-20 Martin Sebor <msebor@redhat.com>
30519
30520 PR c/52291
30521 * extend.texi (__sync Builtins): Clarify the semantics of
30522 __sync_fetch_and_OP built-ins on pointers.
30523 (__atomic Builtins): Same.
30524
30525 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30526 Sebastian Pop <s.pop@samsung.com>
30527
30528 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
30529 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
30530 (is_valid_rename): Same.
30531 (translate_isl_ast_to_gimple::get_rename): Same.
30532 (translate_isl_ast_to_gimple::rename_all_uses): Same.
30533 (translate_isl_ast_to_gimple::rename_uses): Same.
30534 (get_new_name): Check for close_phi nodes.
30535 (copy_loop_phi_args): Use phi_node_kind.
30536 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
30537 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
30538
30539 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30540 Sebastian Pop <s.pop@samsung.com>
30541
30542 Revert commit r229783.
30543 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
30544 Remove use of parameter_rename_map.
30545 (copy_def): Remove.
30546 (copy_internal_parameters): Remove.
30547 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
30548 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
30549 (free_sese_info): Do not free parameter_rename_map.
30550 (set_rename): Do not use parameter_rename_map.
30551 (rename_uses): Update call to set_rename.
30552 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
30553 * sese.h (parameter_rename_map_t): Remove.
30554 (struct sese_info_t): Remove field parameter_rename_map.
30555
30556 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30557 Sebastian Pop <s.pop@samsung.com>
30558
30559 * graphite-isl-ast-to-gimple.c: Fix comment.
30560 * graphite-scop-detection.c (defined_in_loop_p): New.
30561 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
30562 names defined in loop.
30563
30564 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30565 Sebastian Pop <s.pop@samsung.com>
30566
30567 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
30568 Discard unstructured if-then-else regions.
30569
30570 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30571 Sebastian Pop <s.pop@samsung.com>
30572
30573 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
30574 (cleanup_loop_iter_dom): Remove.
30575 (build_loop_iteration_domains): Remove.
30576 (build_scop_context): Remove.
30577 (build_scop_iteration_domain): Remove.
30578 (add_loop_constraints): New.
30579 (build_iteration_domains): New.
30580 (build_poly_scop): Call build_iteration_domains.
30581
30582 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30583 Sebastian Pop <s.pop@samsung.com>
30584
30585 * graphite-scop-detection.c
30586 (scop_detection::harmful_loop_in_region): Free dom and loops.
30587 (scop_detection::loop_body_is_valid_scop): Free bbs.
30588
30589 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30590 Sebastian Pop <s.pop@samsung.com>
30591
30592 * graphite-scop-detection.c (record_loop_in_sese): New.
30593 (gather_bbs::before_dom_children): Call record_loop_in_sese.
30594 (build_scops): Remove call to build_sese_loop_nests.
30595 * sese.c (sese_record_loop): Remove.
30596 (build_sese_loop_nests): Remove.
30597 (new_sese_info): Remove region->loops.
30598 (free_sese_info): Same.
30599 * sese.h (sese_contains_loop): Same.
30600 (build_sese_loop_nests): Remove.
30601 (sese_contains_loop): Remove.
30602
30603 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30604 Sebastian Pop <s.pop@samsung.com>
30605
30606 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
30607 loop_is_valid_in_scop.
30608 (scop_detection::harmful_stmt_in_region): Renamed
30609 harmful_loop_in_region.
30610 Call loop_is_valid_in_scop.
30611
30612 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30613 Sebastian Pop <s.pop@samsung.com>
30614
30615 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
30616 isl_ast_node_mark.
30617
30618 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30619 Sebastian Pop <s.pop@samsung.com>
30620
30621 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
30622 * graphite.h (struct poly_bb): Remove field is_reduction.
30623 (PBB_IS_REDUCTION): Remove.
30624
30625 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30626 Sebastian Pop <s.pop@samsung.com>
30627
30628 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
30629 (add_pdr_constraints): Same.
30630 (scop_get_reads): Same.
30631 (scop_get_must_writes): Same.
30632 (scop_get_may_writes): Same.
30633 (scop_get_original_schedule): Same.
30634 (extend_schedule): Same.
30635 (apply_schedule_on_deps): Same.
30636 (carries_deps): Same.
30637 (compute_deps): Same.
30638 (scop_get_dependences): Same.
30639 * graphite-isl-ast-to-gimple.c
30640 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
30641 * graphite-optimize-isl.c (get_schedule_for_band): Same.
30642 (get_schedule_for_band_list): Same.
30643 (get_schedule_map): Same.
30644 (apply_schedule_map_to_scop): Same.
30645 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30646 (build_loop_iteration_domains): Same.
30647 (add_condition_to_pbb): Same.
30648 (add_param_constraints): Same.
30649 (pdr_add_memory_accesses): Same.
30650 (pdr_add_data_dimensions): Same.
30651
30652 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30653
30654 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
30655 requirements.
30656
30657 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30658
30659 * common.opt (feliminate-dwarf2-dups): Replace references to
30660 "DWARF 2" with just "DWARF".
30661 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
30662 * doc/extend.texi: Likewise.
30663 * doc/cpp.texi: Likewise.
30664 * doc/invoke.texi: Likewise.
30665 (Option Summary): Add -gdwarf to list of Debugging Options.
30666 (Debugging Options): Document -gdwarf.
30667 * doc/contrib.texi: Spell "DWARF" like that.
30668
30669 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30670
30671 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30672 warning. Fix up formatting.
30673
30674 PR middle-end/67653
30675 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30676 attempt to mark memory input operand addressable and
30677 call prepare_gimple_addressable in that case. Don't adjust
30678 input_location for diagnostics, use error_at instead.
30679
30680 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
30681
30682 * config/rs6000/ppc-auxv.h: New file.
30683 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30684 (cpu_is): Likewise.
30685 (cpu_supports): Likewise.
30686 * config/rs6000/rs6000.c: include "ppc-auxv.h".
30687 (cpu_is_info): New variable.
30688 (cpu_supports_info): Likewise.
30689 (tcb_verification_symbol): Likewise.
30690 (cpu_builtin_p): Likewise.
30691 (cpu_expand_builtin): New function.
30692 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30693 (rs6000_init_builtins): Likewise.
30694 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30695 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30696 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30697 * configure: Regenerate.
30698 * config.in: Likewise.
30699 * doc/extend.texi (PowerPC Built-in Functions): Document
30700 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30701
30702 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
30703
30704 PR target/68609
30705 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30706 domain check.
30707 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30708 for V4SFmode.
30709
30710 2016-01-20 Richard Henderson <rth@redhat.com>
30711
30712 PR bootstrap/69343
30713 PR bootstrap/69339
30714 PR tree-opt/68964
30715 Revert:
30716 * tree.c (tm_define_builtin): New.
30717 (find_tm_vector_type): New.
30718 (build_tm_vector_builtins): New.
30719 (build_common_builtin_nodes): Call it.
30720
30721 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
30722
30723 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30724 (arm_fp_ok): Likewise.
30725 (arm_fp): Likewise.
30726 (arm_crypto): Likewise.
30727
30728 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30729 Richard Biener <rguenther@suse.de>
30730
30731 PR tree-optimization/69328
30732 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30733 vectors have same number of elements.
30734 (vectorizable_condition): Fix masked version recognition.
30735
30736 2016-01-20 Richard Biener <rguenther@suse.de>
30737
30738 PR tree-optimization/69345
30739 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30740 (VN_INFO_PTR_INFO): Likewise.
30741 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30742 info when it is equal between non-dominating SSA names.
30743 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30744 Make sure to look at original SSA infos.
30745
30746 2016-01-20 Jeff Law <law@redhat.com>
30747
30748 PR target/25114
30749 * config/m68k/predicates.md (pow2_m1_operand): New predicate
30750 extracted from ...
30751 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30752 (pc_or_label_operand): New predicate.
30753 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30754 tests for small integers that are 2^n - 1.
30755
30756 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
30757
30758 * doc/invoke.texi (Options Summary): Add '.' after @xref.
30759
30760 2016-01-19 Jeff Law <law@redhat.com>
30761
30762 PR middle-end/69347
30763 * tree-ssa-threadbackwards.c
30764 (fsm_find_control_statement_thread_paths): Do not try to lookup
30765 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30766
30767 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30768
30769 * doc/lto.texi: Remove text that says only Gold has linker plugin
30770 support.
30771
30772 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
30773
30774 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30775 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30776 the DIE accordingly.
30777 (modified_type_die): Add REVERSE parameter and pass it recursively,
30778 as well as to base_type_die. Adjust presence check accordingly.
30779 (base_type_for_mode): Adjust call to modified_type_die.
30780 (add_type_attribute): Add REVERSE parameter and pass it to
30781 modified_type_die.
30782 (generic_parameter_die): Adjust call to add_type_attribute.
30783 (add_scalar_info): Likewise.
30784 (add_subscript_info): Likewise.
30785 (gen_array_type_die): Likewise.
30786 (gen_descr_array_type_die): Likewise.
30787 (gen_entry_point_die): Likewise.
30788 (gen_enumeration_type_die): Likewise.
30789 (gen_formal_parameter_die): Likewise.
30790 (gen_subprogram_die): Likewise.
30791 (gen_variable_die ): Likewise.
30792 (gen_const_die): Likewise.
30793 (gen_field_die): Likewise.
30794 (gen_pointer_type_die): Likewise.
30795 (gen_reference_type_die): Likewise.
30796 (gen_ptr_to_mbr_type_die): Likewise.
30797 (gen_inheritance_die): Likewise.
30798 (gen_subroutine_type_die): Likewise.
30799 (gen_typedef_die): Likewise.
30800 (force_type_die): Adjust call to modified_type_die.
30801
30802 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
30803
30804 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30805 flow throughout the file. Fix broken link to Objective-C 2.0
30806 documentation.
30807 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30808 errors.
30809
30810 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30811
30812 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30813
30814 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30815
30816 PR ipa/66223
30817 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30818 (maybe_record_node): Record cxa_pure_virtual as the only possible
30819 target if there are not ohter candidates.
30820 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30821
30822 2016-01-19 Richard Biener <rguenther@suse.de>
30823
30824 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30825 (get_memory_order): Likewise.
30826
30827 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
30828
30829 * tree-vect-stmts.c (vectorizable_store): Check
30830 rhs vectype.
30831
30832 2016-01-19 David Malcolm <dmalcolm@redhat.com>
30833
30834 PR jit/68446
30835 * gcc.c (driver::decode_argv): Add call to
30836 init_opts_obstack before init_options_struct.
30837 * opts.c (init_opts_obstack): Remove idempotency.
30838 (init_options_struct): Replace call to init_opts_obstack
30839 with a gcc_assert to verify that it has already been called.
30840 * toplev.c (toplev::main): Add call to init_opts_obstack before
30841 calls to init_options_struct.
30842 (toplev::finalize): Move cleanup of opts_obstack next to
30843 cleanup of save_decoded_options, clearing the latter, and
30844 save_decoded_options_count.
30845
30846 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30847
30848 PR target/69135
30849 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30850 attribute to unconditional. Remove %? from output template.
30851
30852 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30853 Jiong Wang <jiong.wang@arm.com>
30854
30855 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30856 generated from different expand order.
30857
30858 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30859
30860 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30861 Add support for CCMP costing.
30862
30863 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30864
30865 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30866 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30867 (fccmpe<mode>): Likewise.
30868 (fcmp): Rename to fcmp and globalize pattern.
30869 (fcmpe): Likewise.
30870 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30871 (aarch64_gen_ccmp_next): Add FP support.
30872
30873 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30874
30875 * target.def (gen_ccmp_first): Update documentation.
30876 (gen_ccmp_next): Likewise.
30877 * doc/tm.texi (gen_ccmp_first): Update documentation.
30878 (gen_ccmp_next): Likewise.
30879 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30880 expand_ccmp_expr_1. Improve comments.
30881 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30882 (ccmp_ior<mode>): Remove pattern.
30883 (cmp<mode>): Remove expand.
30884 (cmp): Globalize pattern.
30885 (cstorecc4): Use cc_register.
30886 (mov<mode>cc): Remove ccmp_cc_register check.
30887 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30888 Simplify after removal of CC_DNE/* modes.
30889 (aarch64_ccmp_mode_to_code): Remove.
30890 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
30891 In 'k' case use integer as condition.
30892 (aarch64_nzcv_codes): Remove inverted cases.
30893 (aarch64_code_to_ccmode): Remove.
30894 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
30895 comparison with CC register to be used in folowing CCMP/branch/CSEL.
30896 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30897 pattern. Return the comparison with CC register. Invert conditions
30898 when bitcode is OR.
30899 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30900 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30901
30902 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30903
30904 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30905 instrumented_version.
30906
30907 2016-01-19 Richard Biener <rguenther@suse.de>
30908
30909 PR tree-optimization/69336
30910 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30911 handled components with get_ref_base_and_extent.
30912 (equal_mem_array_ref_p): Adjust.
30913
30914 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30915
30916 PR debug/65779
30917 * shrink-wrap.c: Include valtrack.h.
30918 (move_insn_for_shrink_wrap): Add DEBUG argument. If
30919 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30920 in between insn and where it will be moved to. Call
30921 dead_debug_insert_temp.
30922 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
30923 first and dead_debug_local_finish at the end.
30924 For uses and defs bitmap, handle all regs in between REGNO and
30925 END_REGNO, not just the first one.
30926
30927 2016-01-19 Richard Biener <rguenther@suse.de>
30928
30929 PR tree-optimization/69352
30930 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30931 (equal_mem_array_ref_p): Constrain size and max size properly.
30932 Compare the reverse flag.
30933
30934 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
30935
30936 * ira.c (ira): Update regstat data if we deleted insns.
30937
30938 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30939
30940 PR rtl-optimization/68955
30941 PR rtl-optimization/64557
30942 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30943 here. Fix up formatting.
30944 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30945
30946 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30947
30948 PR lto/69133
30949 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30950 assume that the node has body.
30951 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30952 check.
30953
30954 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30955
30956 * lto-streamer-out.c (lto_output): Do not stream instrumentation
30957 thunks.
30958
30959 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30960
30961 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30962 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30963
30964 2016-01-19 Martin Jambor <mjambor@suse.cz>
30965 Martin Liska <mliska@suse.cz>
30966 Michael Matz <matz@suse.de>
30967
30968 * Makefile.in (OBJS): Add new source files.
30969 (GTFILES): Add hsa.c.
30970 * common.opt (disable_hsa): New variable.
30971 (-Whsa): New warning.
30972 * config.in (ENABLE_HSA): New.
30973 * configure.ac: Treat hsa differently from other accelerators.
30974 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
30975 $enable_offloading.
30976 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
30977 * doc/install.texi (Configuration): Document --with-hsa-runtime,
30978 --with-hsa-runtime-include, --with-hsa-runtime-lib and
30979 --with-hsa-kmt-lib.
30980 * doc/invoke.texi (-Whsa): Document.
30981 (hsa-gen-debug-stores): Likewise.
30982 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
30983 to invoke offload compiler for hsa acclerator.
30984 * opts.c (common_handle_option): Determine whether HSA offloading
30985 should be performed.
30986 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
30987 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
30988 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
30989 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
30990 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
30991 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
30992 GF_OMP_FOR_KIND_GRID_LOOP.
30993 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
30994 (pp_gimple_stmt_1): Likewise.
30995 * gimple-walk.c (walk_gimple_stmt): Likewise.
30996 * gimple.c (gimple_build_omp_grid_body): New function.
30997 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
30998 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
30999 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
31000 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
31001 GF_OMP_TEAMS_GRID_PHONY.
31002 (gimple_statement_omp_single_layout): Updated comments.
31003 (gimple_build_omp_grid_body): New function.
31004 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
31005 (gimple_omp_for_grid_phony): New function.
31006 (gimple_omp_for_set_grid_phony): Likewise.
31007 (gimple_omp_parallel_grid_phony): Likewise.
31008 (gimple_omp_parallel_set_grid_phony): Likewise.
31009 (gimple_omp_teams_grid_phony): Likewise.
31010 (gimple_omp_teams_set_grid_phony): Likewise.
31011 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
31012 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
31013 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
31014 (BUILT_IN_GOMP_TARGET): Updated type.
31015 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
31016 (adjust_for_condition): New function.
31017 (get_omp_for_step_from_incr): Likewise.
31018 (extract_omp_for_data): Moved parts to adjust_for_condition and
31019 get_omp_for_step_from_incr.
31020 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
31021 (fixup_child_record_type): Bail out if receiver_decl is NULL.
31022 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
31023 (scan_omp_parallel): Do not create child functions for phony
31024 constructs.
31025 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
31026 (scan_omp_1_op): Checking assert we are not remapping to
31027 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
31028 (parallel_needs_hsa_kernel_p): New function.
31029 (expand_parallel_call): Register apprpriate parallel child
31030 functions as HSA kernels.
31031 (grid_launch_attributes_trees): New type.
31032 (grid_attr_trees): New variable.
31033 (grid_create_kernel_launch_attr_types): New function.
31034 (grid_insert_store_range_dim): Likewise.
31035 (grid_get_kernel_launch_attributes): Likewise.
31036 (get_target_argument_identifier_1): Likewise.
31037 (get_target_argument_identifier): Likewise.
31038 (get_target_argument_value): Likewise.
31039 (push_target_argument_according_to_value): Likewise.
31040 (get_target_arguments): Likewise.
31041 (expand_omp_target): Call get_target_arguments instead of looking
31042 up for teams and thread limit.
31043 (grid_expand_omp_for_loop): New function.
31044 (grid_arg_decl_map): New type.
31045 (grid_remap_kernel_arg_accesses): New function.
31046 (grid_expand_target_kernel_body): New function.
31047 (expand_omp): Call it.
31048 (lower_omp_for): Do not emit phony constructs.
31049 (lower_omp_taskreg): Do not emit phony constructs but create for them
31050 a temporary variable receiver_decl.
31051 (lower_omp_taskreg): Do not emit phony constructs.
31052 (lower_omp_teams): Likewise.
31053 (lower_omp_grid_body): New function.
31054 (lower_omp_1): Call it.
31055 (grid_reg_assignment_to_local_var_p): New function.
31056 (grid_seq_only_contains_local_assignments): Likewise.
31057 (grid_find_single_omp_among_assignments_1): Likewise.
31058 (grid_find_single_omp_among_assignments): Likewise.
31059 (grid_find_ungridifiable_statement): Likewise.
31060 (grid_target_follows_gridifiable_pattern): Likewise.
31061 (grid_remap_prebody_decls): Likewise.
31062 (grid_copy_leading_local_assignments): Likewise.
31063 (grid_process_kernel_body_copy): Likewise.
31064 (grid_attempt_target_gridification): Likewise.
31065 (grid_gridify_all_targets_stmt): Likewise.
31066 (grid_gridify_all_targets): Likewise.
31067 (execute_lower_omp): Call grid_gridify_all_targets.
31068 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
31069 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
31070 (tree_omp_clause): Added union field dimension.
31071 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
31072 * tree.c (omp_clause_num_ops): Added number of arguments of
31073 OMP_CLAUSE__GRIDDIM_.
31074 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
31075 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
31076 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
31077 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
31078 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
31079 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
31080 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
31081 * tree-pass.h (make_pass_gen_hsail): Declare.
31082 (make_pass_ipa_hsa): Likewise.
31083 * ipa-hsa.c: New file.
31084 * lto-section-in.c (lto_section_name): Add hsa section name.
31085 * lto-streamer.h (lto_section_type): Add hsa section.
31086 * timevar.def (TV_IPA_HSA): New.
31087 * hsa-brig-format.h: New file.
31088 * hsa-brig.c: New file.
31089 * hsa-dump.c: Likewise.
31090 * hsa-gen.c: Likewise.
31091 * hsa.c: Likewise.
31092 * hsa.h: Likewise.
31093 * toplev.c (compile_file): Call hsa_output_brig.
31094 * hsa-regalloc.c: New file.
31095
31096 2016-01-18 Jeff Law <law@redhat.com>
31097
31098 PR tree-optimization/69320
31099 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
31100 ranged object, do nothing if the RHS constant is not [0..1].
31101 (optimize_stmt): Comparing a boolean ranged object against a
31102 constant outside [0..1] results in a compile-time constant.
31103
31104 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
31105 test.
31106
31107 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
31108
31109 * doc/invoke.texi (Invoking GCC): Add new section to menu.
31110 (Option Summary): Update to reflect new section and moved options.
31111 (C++ Dialect Options): Move -fstats to new section.
31112 (Debugging Options): Move all dump, statistics, and other GCC
31113 developer options to new section. Rewrite section introduction
31114 and re-order remaining options to put the more basic ones first.
31115 (Optimization Options): Move -fira-verbose and -flto-report* to
31116 new section.
31117 (Developer Options): New section incorporating moved options.
31118 * doc/cppopts.texi (-dM): Update cross-reference.
31119
31120 2016-01-18 Richard Henderson <rth@redhat.com>
31121
31122 PR target/69176
31123 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
31124 operands to pseudo only if CSE is expected. Split long immediate
31125 operands only after reload, and for the stack pointer.
31126 (*add<GPI>3_pluslong): Remove.
31127 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
31128 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
31129 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
31130 (*add<GPI>3 peepholes): New.
31131 (*add<GPI>3 splitters): New.
31132 * config/aarch64/constraints.md (Upl): New.
31133 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
31134
31135 2016-01-18 Richard Biener <rguenther@suse.de>
31136
31137 PR tree-optimization/69297
31138 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
31139 stmt at most once.
31140 (vect_bb_vectorization_profitable_p): Clear visited flag again.
31141
31142 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
31143
31144 PR middle-end/68542
31145 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
31146 of mixind vector and scalar types.
31147 (fold_relational_const): Add handling of vector
31148 comparison with boolean result.
31149 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
31150 comparison of vector operands with boolean result for EQ/NE only.
31151 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
31152 (verify_gimple_cond): Likewise.
31153 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
31154 valid type of VAL.
31155
31156 2016-01-18 Joseph Myers <joseph@codesourcery.com>
31157
31158 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
31159 !TARGET_OCTEON.
31160
31161 2016-01-18 Richard Biener <rguenther@suse.de>
31162
31163 PR middle-end/69308
31164 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
31165
31166 2016-01-18 Tom de Vries <tom@codesourcery.com>
31167
31168 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
31169
31170 2016-01-18 Tom de Vries <tom@codesourcery.com>
31171
31172 * omp-low.c (set_oacc_fn_attrib): Make extern.
31173 * omp-low.h (set_oacc_fn_attrib): Declare.
31174 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
31175 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
31176 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
31177 Add and handle function parameter oacc_kernels_p.
31178 (find_reduc_addr, get_omp_data_i_param): New function.
31179 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
31180 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
31181 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
31182 Calculate dominance info. Skip loops that are not in a kernels region
31183 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
31184 (pass_parallelize_loops::execute): Call parallelize_loops with
31185 oacc_kernels_p argument.
31186 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
31187 New member function.
31188 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
31189 * passes.def: Add argument to pass_parallelize_loops instantation.
31190
31191 2016-01-18 Tom de Vries <tom@codesourcery.com>
31192
31193 * tree-parloops.c (pass_parallelize_loops::execute): Allow
31194 pass_parallelize_loops to be run outside the loop pipeline.
31195
31196 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31197
31198 * tree-scalar-evolution.c (follow_copies_to_constant): New.
31199 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
31200
31201 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31202
31203 PR target/63679
31204 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
31205 using get_ref_base_and_extent.
31206 (equal_mem_array_ref_p): New.
31207 (hashable_expr_equal_p): Add call to previous.
31208
31209 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31210
31211 PR target/63679
31212 * tree-sra.c (disqualified_constants, constant_decl_p): New.
31213 (sra_initialize): Allocate disqualified_constants.
31214 (sra_deinitialize): Free disqualified_constants.
31215 (disqualify_candidate): Update disqualified_constants when appropriate.
31216 (create_access): Scan for constant-pool entries as we go along.
31217 (scalarizable_type_p): Add check against type_contains_placeholder_p.
31218 (maybe_add_sra_candidate): Allow constant-pool entries.
31219 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
31220 (initialize_constant_pool_replacements): New.
31221 (sra_modify_assign): Avoid mangling assignments created by previous,
31222 and don't generate writes into constant pool.
31223 (sra_modify_function_body): Call initialize_constant_pool_replacements.
31224
31225 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
31226
31227 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
31228 andnot instruction.
31229 (scalar_chain::convert_op): Likewise.
31230 * config/i386/i386.md (*andndi3_doubleword): New.
31231
31232 2016-01-18 Richard Biener <rguenther@suse.de>
31233
31234 PR tree-optimization/69170
31235 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
31236 building a vector from scalar results of a pattern stmt.
31237
31238 2016-01-18 Jakub Jelinek <jakub@redhat.com>
31239
31240 * haifa-sched.c (autopref_multipass_init): Work around
31241 -Wmaybe-uninitialized warning.
31242
31243 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
31244
31245 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
31246 against the constant 0.
31247
31248 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31249
31250 PR tree-optimization/68799
31251 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
31252 look up phi candidates in the statement-candidate map.
31253 (phi_add_costs): Likewise.
31254 (record_phi_increments): Likewise.
31255 (phi_incr_cost): Likewise.
31256 (ncd_with_phi): Likewise.
31257 (all_phi_incrs_profitable): Likewise.
31258
31259 2016-01-17 Jakub Jelinek <jakub@redhat.com>
31260
31261 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
31262 -Wmaybe-uninitialized warning.
31263
31264 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
31265
31266 * doc/invoke.texi (Invoking GCC): Add new section to menu.
31267 (Option Summary): Update to reflect new section and moved options.
31268 (C++ Dialect Options): Move -fvtable-verify and related options.
31269 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
31270 and profiling-related options.
31271 (Optimization Options): Move profile generation options and
31272 -fstack-protector and related options.
31273 (Instrumentation Options): New section incorporating moved options.
31274 (Code Generation Options): Move -finstrument-functions and
31275 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
31276
31277 2016-01-16 Tom de Vries <tom@codesourcery.com>
31278
31279 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
31280
31281 2016-01-16 Tom de Vries <tom@codesourcery.com>
31282
31283 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
31284
31285 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
31286
31287 * hash-table.h (hash_table::empty): Turn into an inline wrapper
31288 that checks whether the table is already empty. Rename the
31289 original implementation to...
31290 (hash_table::empty_slot): ...this new private function.
31291
31292 2016-01-15 David Malcolm <dmalcolm@redhat.com>
31293
31294 PR diagnostic/68899
31295 * diagnostic-show-locus.c (layout::print_source_line): Move x
31296 offset of line until after call to
31297 get_line_width_without_trailing_whitespace.
31298
31299 2016-01-15 Jeff Law <law@redhat.com>
31300
31301 PR tree-optimization/69270
31302 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
31303 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
31304 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
31305 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
31306 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
31307 ssa_name_has_boolean_range and constant_boolean_node.
31308
31309 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
31310
31311 PR rtl-optimization/69030
31312 * lra-spills.c (remove_pseudos): Check nrefs and make the function
31313 returning bool.
31314 (spill_pseudos): Delete debug insn for dead pseudo.
31315 (lra_spill): Initiate spill_hard_reg and slots memory separately.
31316
31317 2016-01-15 Jiong Wang <jiong.wang@arm.com>
31318
31319 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
31320 New.
31321 (TYPES_UNOPUS): Likewise.
31322 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
31323 builtin type, from UNOP to UNOPUS.
31324 (lbtruncuv4sf): Likewise.
31325 (lbtruncuv2df): Likewise.
31326 (lrounduv2sf): Likewise.
31327 (lrounduv4sf): Likewise.
31328 (lrounduv2df): Likewise.
31329 (lroundusf): Likewise.
31330 (lroundusf): Likewise.
31331 (lceiluv2sf): Likewise.
31332 (lceiluv4sf): Likewise.
31333 (lceiluv2df): Likewise.
31334 (lceilusf): Likewise.
31335 (lceiludf): Likewise.
31336 (lflooruv2sf): Likewise.
31337 (lflooruv4sf): Likewise.
31338 (lflooruv2df): Likewise.
31339 (lfloorusf): Likewise.
31340 (lfloorudf): Likewise.
31341 (lfrintnuv2sf): Likewise.
31342 (lfrintnuv4sf): Likewise.
31343 (lfrintnuv2df): Likewise.
31344 (lfrintnusf): Likewise.
31345 (lfrintnudf): Likewise.
31346 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
31347 conversion.
31348 (vcvtq_u32_f32): Likewise.
31349 (vcvtq_u64_f64): Likewise.
31350 (vcvta_u32_f32): Likewise.
31351 (vcvtaq_u32_f32): Likewise.
31352 (vcvtaq_u64_f64): Likewise.
31353 (vcvtm_u32_f32): Likewise.
31354 (vcvtmq_u32_f32): Likewise.
31355 (vcvtmq_u64_f64): Likewise.
31356 (vcvtn_u32_f32): Likwise.
31357 (vcvtnq_u32_f32): Likewise.
31358 (vcvtnq_u64_f64): Likewise.
31359 (vcvtp_u32_f32): Likewise.
31360 (vcvtpq_u32_f32): Likewise.
31361 (vcvtpq_u64_f64): Likewise.
31362 (vcvtmd_u64_f64): Likewise.
31363 (vcvtms_u32_f32): Likewise.
31364 (vcvtad_u64_f64): Likewise.
31365 (vcvtas_u32_f32): Likewise.
31366 (vcvtnd_u64_f64): Likewise.
31367 (vcvtns_u32_f32): Likewise.
31368 (vcvtpd_u64_f64): Likewise.
31369 (vcvtps_u32_f32): Likewise.
31370
31371 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31372
31373 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
31374 CSEL of zero_extended registers.
31375
31376 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31377
31378 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31379 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
31380
31381 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31382
31383 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
31384 false when argument string is not found in the attributes table
31385 at all.
31386
31387 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
31388
31389 PR target/68609
31390 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
31391 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
31392 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
31393 precision estimate.
31394
31395 2016-01-15 Richard Biener <rguenther@suse.de>
31396
31397 PR tree-optimization/66856
31398 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
31399 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
31400 (vect_create_new_slp_node): Increment stmt reference count.
31401 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
31402 an SLP tree before swapping operands.
31403 (vect_build_slp_tree): Likewise.
31404 (destroy_bb_vec_info): Free stmt info after SLP instances.
31405 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
31406 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
31407 (STMT_VINFO_NUM_SLP_USES): New macro.
31408
31409 2016-01-15 Richard Biener <rguenther@suse.de>
31410
31411 PR debug/69137
31412 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
31413 (add_linkage_name): ... here.
31414 (gen_typedef_die): Use add_linkage_name_raw instead of
31415 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
31416 if necessary.
31417
31418 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
31419
31420 * gimplify.c (oacc_default_clause): Decode reference and pointer
31421 types for both kernels and parallel regions.
31422
31423 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
31424
31425 PR middle-end/69246
31426 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
31427
31428 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31429
31430 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
31431 (convert_scalars_to_vector): Likewise.
31432
31433 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
31434
31435 * doc/extend.texi (Type Traits): Fix grammar.
31436
31437 2016-01-15 Martin Jambor <mjambor@suse.cz>
31438
31439 * tree-inline.c (remap_decl): Use existing dclarations if
31440 remapping a type and prevent_decl_creation_for_types.
31441 (replace_locals_stmt): Do an initial remapping of non-VLA typed
31442 decls first. Do real remapping with
31443 prevent_decl_creation_for_types set.
31444 * tree-inline.h (copy_body_data): New field
31445 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
31446 padding.
31447
31448 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31449
31450 * config/s390/s390.opt (mmvcle): More verbose help text.
31451
31452 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31453
31454 * config/s390/s390.opt: Add period to -mzvector option text.
31455
31456 2016-01-15 Richard Biener <rguenther@suse.de>
31457
31458 PR tree-optimization/68961
31459 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
31460 of invariants in stores again.
31461
31462 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31463
31464 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
31465
31466 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31467
31468 * config/i386/i386.c (ix86_expand_branch): Don't split
31469 DI mode xor instruction to SI mode.
31470
31471 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31472
31473 PR ipa/68148
31474 * ipa-icf.c (sem_function::merge): Virtual functions may become
31475 reachable even if they address is not taken and there are no
31476 idrect calls.
31477
31478 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31479
31480 * lto-streamer-out.c (subtract_estimated_size): New function.
31481 (get_symbol_initial_value): Use it.
31482
31483 2016-01-15 Christian Bruel <christian.bruel@st.com>
31484
31485 PR target/65837
31486 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
31487 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
31488 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
31489 use add_builtin_function_ext_scope instead of add_builtin_function.
31490 (neon_set_p, neon_crypto_set_p): Remove.
31491 (arm_init_builtins): Always call arm_init_neon_builtins and
31492 arm_init_crypto_builtins.
31493 (arm_expand_builtin): Check that builtins are allowed for the arch.
31494 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
31495 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
31496 arm_init_neon_builtins call.
31497
31498 2016-01-15 Richard Biener <rguenther@suse.de>
31499
31500 PR tree-optimization/69117
31501 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
31502 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
31503 of the leader conservatively.
31504 (free_scc_vn): Restore original SSA name infos.
31505
31506 2016-01-14 Jeff Law <law@redhat.com>
31507
31508 PR tree-optimization/69270
31509 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
31510 single bit of precision, verify it's also unsigned.
31511 (record_edge_info): Use constant_boolean_node rather than fold_convert
31512 to convert boolean_true/boolean_false to the right type.
31513
31514 2016-01-14 Richard Henderson <rth@redhat.com>
31515
31516 PR rtl-opt/69014
31517 * loop-doloop.c (record_reg_sets): New.
31518 (doloop_optimize): Reject the transform if the sequence
31519 clobbers registers live at the end of the loop block.
31520 (doloop_optimize_loops): Enable df_live if needed.
31521
31522 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31523
31524 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
31525 * config/rs6000/rs6000.c: Likewise.
31526 * config/rs6000/rs6000.h: Likewise.
31527 * config/rs6000/rs6000.md: Likewise.
31528 * doc/extend.texi: Likewsie.
31529
31530 2016-01-14 Jeff Law <law@redhat.com>
31531
31532 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
31533 typo.
31534
31535 2016-01-14 Richard Henderson <rth@redhat.com>
31536
31537 PR c/69272
31538 PR tree-opt/68964
31539 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
31540 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
31541 instead of builtin_decl_declared_p to test for declaration.
31542
31543 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
31544
31545 * doc/loop.texi (Loop Analysis and Representation): Document
31546 loop_depth function.
31547
31548 2016-01-14 Tom de Vries <tom@codesourcery.com>
31549
31550 PR tree-optimization/68773
31551 * omp-low.c (expand_omp_target): Don't set force_output.
31552 * varpool.c (varpool_node::get_create): Same.
31553 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
31554 offload_funcs with force_output.
31555
31556 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31557
31558 PR debug/69244
31559 * lra-eliminations.c (move_plus_up): Don't change anything if either
31560 the outer or inner subreg mode is not MODE_INT.
31561 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
31562 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
31563
31564 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31565
31566 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
31567 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
31568 reduc_uplus_@var{m}): Remove.
31569 * expr.c (expand_expr_real_2): Remove expansion path for
31570 reduc_[us](min|max|plus) optabs.
31571 * optabs-tree.c (scalar_reduc_to_vector): Remove.
31572 * optabs-tree.h (scalar_reduc_to_vector): Remove.
31573 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
31574 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
31575 * tree-vect-loop.c (vectorizable_reduction): Remove test for
31576 reduc_[us](min|max|plus) optabs.
31577
31578 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31579
31580 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
31581 (reduc_plus_scal_v2sf): New.
31582 (reduc_smax_v2sf): Rename to...
31583 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
31584 (reduc_smin_v2sf): Rename to...
31585 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
31586
31587 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
31588
31589 * alias.c (compare_base_symbol_refs): New function.
31590 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
31591 it.
31592
31593 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31594
31595 PR middle-end/68146
31596 PR tree-optimization/69155
31597 * tree-complex.c: Include cfganal.h.
31598 (phis_to_revisit): New variable.
31599 (extract_component): Add phiarg_p argument. Assert that returned
31600 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
31601 (update_phi_components): Partly rewrite to use loop over real/imag
31602 components instead of code duplication. If extract_component returns
31603 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
31604 create_tmp_reg into the PHI node instead, and mention the phi triplet
31605 in phis_to_revisit.
31606 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
31607 in phis_to_revisit at the end.
31608
31609 2016-01-14 Richard Biener <rguenther@suse.de>
31610
31611 PR tree-optimization/68060
31612 * tree-vect-loop.c (vect_is_simple_reduction): Check the
31613 outer loop reduction is only used in the inner loop before
31614 detecting a double reduction.
31615
31616 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31617
31618 PR target/68269
31619 * combine.c (expand_field_assignment): Punt if compute_mode is
31620 unsupported scalar mode.
31621
31622 2016-01-14 Richard Biener <rguenther@suse.de>
31623
31624 PR tree-optimization/66856
31625 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
31626 SLP node only if it built successfully.
31627 (vect_analyze_slp_instance): Adjust.
31628
31629 2016-01-14 Jeff Law <law@redhat.com>
31630
31631 PR tree-optimization/69270
31632 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
31633 (record_edge_info): Use it. Convert boolean_{true,false}_node
31634 to the type of op0.
31635
31636 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
31637
31638 PR ipa/66487
31639 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
31640 use block_ultimate_origin
31641 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
31642
31643 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31644
31645 * doc/invoke.texi (Submodel Options): Rename section to
31646 "Machine-Dependent Options" to better reflect its content.
31647 Rewrite introductory text to remove archaic CPU names.
31648 Update references.
31649
31650 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31651
31652 * doc/invoke.texi (Code Gen Options): Move section up in file,
31653 before target-specific options. Update menu and option summary
31654 to reflect the new section ordering.
31655
31656 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31657
31658 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
31659 (C++ Dialect Options): Add cross-reference to -std option.
31660 * doc/standards.texi (C++ Language): Document C++14 support.
31661
31662 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31663
31664 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
31665 for pack/unpack functions for __ibm128.
31666 (PACK_IF): Likewise.
31667 (UNPACK_IF): Likewise.
31668
31669 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31670 support for __ibm128 pack/unpack functions.
31671 (rs6000_invalid_builtin): Likewise.
31672 (rs6000_init_builtins): Likewise.
31673 (rs6000_opt_masks): Likewise.
31674
31675 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31676 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31677 functions
31678 (RS6000_BTM_COMMON): Likewise.
31679
31680 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31681 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31682 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31683 128-bit floating point. Add support for the double values to be
31684 in Altivec registers for TF/IF packing and unpacking, but restrict
31685 TD packing sub-fields to be FPR registers. Don't allow overlapped
31686 register support for packing. Allow pack inputs to be memory
31687 locations. Don't build generator functions for unpack<mode>_dm
31688 and unpack<mode>_nodm.
31689 (unpack<mode>_dm): Likewise.
31690 (unpack<mode>_nodm): Likewise.
31691 (pack<mode>): Likewise.
31692
31693 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31694 built-in functions to pack/unpack explicit __ibm128 values.
31695 (__builtin_unpack_ibm128): Likewise.
31696
31697 * doc/extend.texi (PowerPC Built-in Functions): Document
31698 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31699
31700 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
31701
31702 PR c/66208
31703 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31704 Add new arg loc and pass it down as context.
31705 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31706 to the location to use for the warning.
31707 (check_function_arguments): New arg loc. All callers changed. Pass
31708 it to check_function_nonnull.
31709 * c-common.h (check_function_arguments): Adjust declaration.
31710
31711 2016-01-13 Jakub Jelinek <jakub@redhat.com>
31712
31713 PR tree-optimization/69156
31714 * gimple.c (validate_type): Removed.
31715 (gimple_builtin_call_types_compatible_p): Use
31716 useless_type_conversion_p instead of validate_type.
31717 * value-prof.c (gimple_stringop_fixed_value): Fold
31718 icall_size to correct type.
31719
31720 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31721
31722 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31723 effects.
31724
31725 2016-01-13 Richard Henderson <rth@redhat.com>
31726
31727 PR tree-opt/68964
31728 * target.def (builtin_tm_load, builtin_tm_store): Remove.
31729 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31730 (ix86_builtin_tm_store): Remove.
31731 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31732 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31733 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31734 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31735 * doc/tm.texi: Rebuild.
31736
31737 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31738 (BUILT_IN_TM_MEMCPY_RTWN): New.
31739 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31740 fallback from vector to integer helpers.
31741 (build_tm_load): Handle vector types directly, instead of
31742 via target hook.
31743 (build_tm_store): Likewise.
31744 (expand_assign_tm): Prepare for register types not handled by
31745 the above. Copy them to memory and use memcpy.
31746 * tree.c (tm_define_builtin): New.
31747 (find_tm_vector_type): New.
31748 (build_tm_vector_builtins): New.
31749 (build_common_builtin_nodes): Call it.
31750
31751 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
31752
31753 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31754 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
31755
31756 2016-01-13 Tom de Vries <tom@codesourcery.com>
31757
31758 PR tree-optimization/69169
31759 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31760 handled_struct_type param.
31761 (create_variable_info_for, intra_create_variable_infos): Call
31762 create_variable_info_for_1 with extra arg.
31763
31764 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
31765
31766 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31767 and "armv8.1-a+crc" entries.
31768
31769 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
31770
31771 PR target/69228
31772 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31773 Change first operand predicate from register_or_constm1_operand
31774 to register_operand.
31775 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31776 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31777 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31778 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31779 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31780 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31781 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31782 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31783 comparison with constm1_rtx from vec_prefetch_gen part.
31784
31785 2016-01-13 Richard Biener <rguenther@suse.de>
31786
31787 PR tree-optimization/69013
31788 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31789 Exchange assert for a test.
31790
31791 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31792
31793 PR target/69247
31794 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31795
31796 2016-01-13 Richard Biener <rguenther@suse.de>
31797
31798 PR tree-optimization/69242
31799 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31800 assert with a check.
31801
31802 2016-01-13 Richard Biener <rguenther@suse.de>
31803
31804 PR tree-optimization/69186
31805 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31806 Properly guard vect_update_misalignment_for_peel call.
31807
31808 2016-01-12 Jeff Law <law@redhat.com>
31809
31810 PR tree-optimization/pr67755
31811 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31812 "need_profile_correction".
31813 (thread_block_1): Initialize new field to false by default. If we
31814 have multiple thread paths through a common joiner to different
31815 final targets, then set new field to true.
31816 (compute_path_counts): Only do count adjustment when it's really
31817 needed.
31818
31819 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31820
31821 * doc/invoke.texi (Spec Files): Move section down in file, past
31822 all command-line option descriptions.
31823
31824 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31825
31826 PR middle-end/54809
31827 * doc/gty.texi: Remove documentation of mark_hook.
31828 * gengtype.c (struct write_types_data): Remove code to support
31829 mark_hook attribute.
31830 (walk_type): Likewise.
31831 (write_func_for_structure): Likewise.
31832
31833 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31834
31835 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31836 Directory Options, and -specs= to Overall Options.
31837 (Overall Options): Adjust similarly. Reorder to group related
31838 options together. Make -specs= cross-reference the spec file details.
31839 (Directory Options): Adjust similarly.
31840
31841 2016-01-12 Jeff Law <law@redhat.com>
31842
31843 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31844
31845 2016-01-12 Olivier Hainque <hainque@adacore.com>
31846
31847 * gcc.c (spec_undefvar_allowed): New global.
31848 (process_command): Set to true when running for --version or --help,
31849 alone or together.
31850 (getenv_spec_function): When the variable is not defined, use the
31851 variable name as the variable value if we're allowed not to issue
31852 a fatal error.
31853
31854 2016-01-12 Bin Cheng <bin.cheng@arm.com>
31855
31856 PR tree-optimization/68911
31857 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31858 information computed for expression "init + nit * step".
31859
31860 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31861
31862 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
31863 about name of GCC executable. Remove deleted node from menu.
31864 (Directory Options) <-B>: Remove cross-reference to deleted node.
31865 (Target Options): Delete section.
31866
31867 2016-01-12 Christian Bruel <christian.bruel@st.com>
31868
31869 PR target/69180
31870 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31871 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31872
31873 2016-01-12 Jakub Jelinek <jakub@redhat.com>
31874
31875 PR target/69198
31876 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31877 aligned_mem is properly set for AVX512-VL floating point masked
31878 stores.
31879
31880 PR target/69175
31881 * ifcvt.c (cond_exec_process_if_block): When removing the last
31882 insn from then_bb, remove also any possible barriers that follow it.
31883
31884 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
31885
31886 PR target/68456
31887 PR target/69226
31888 * config/i386/iamcu.h (SIZE_TYPE): New macro.
31889 (PTRDIFF_TYPE): Likewise.
31890 (WCHAR_TYPE): Likewise.
31891 (WCHAR_TYPE_SIZE): Likewise.
31892 (STDINT_LONG32): Likewise.
31893
31894 2016-01-12 Richard Biener <rguenther@suse.de>
31895
31896 PR tree-optimization/69053
31897 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31898 convert initial value for cond reductions.
31899
31900 2016-01-12 Richard Biener <rguenther@suse.de>
31901
31902 PR tree-optimization/69007
31903 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31904 widen_sum after dot_prod and sad.
31905
31906 2016-01-12 Richard Biener <rguenther@suse.de>
31907
31908 PR tree-optimization/69168
31909 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31910 pattern stmt SLP type.
31911 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31912 end up unused so cope with that case.
31913
31914 2016-01-12 Richard Biener <rguenther@suse.de>
31915
31916 PR tree-optimization/69157
31917 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31918 stmts def type only during analyze phase.
31919 (vectorizable_call): Likewise.
31920 (vectorizable_simd_clone_call): Likewise.
31921 (vectorizable_conversion): Likewise.
31922 (vectorizable_assignment): Likewise.
31923 (vectorizable_shift): Likewise.
31924 (vectorizable_operation): Likewise.
31925 (vectorizable_store): Likewise.
31926 (vectorizable_load): Likewise.
31927
31928 2016-01-12 Richard Biener <rguenther@suse.de>
31929
31930 PR tree-optimization/69174
31931 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31932 space.
31933 (vectorizable_load): Properly compute the number of loads needed
31934 for permuted strided SLP loads and do not spuriously assign
31935 to SLP_TREE_VEC_STMTS.
31936
31937 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
31938
31939 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31940 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31941 (MD_EXEC_PREFIX): Remove.
31942 (MD_STARTFILE_PREFIX) Removee.
31943 (FILE_NAME_ABSOLUTE_P): Remove.
31944 (CPP_SPEC): Do not read macros from sys/version.h.
31945 (LINK_COMMAND_SPEC): Remove.
31946 (LOCAL_INCLUDE_DIR): Remove.
31947 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31948 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31949 (POST_LINK_SPEC): Define to invoke stubify after linker
31950 (LIBSTDCXX): Remove define
31951 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31952 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31953 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31954 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31955 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31956 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31957 (i386_djgpp_asm_named_section): Add propotype of new procedure
31958
31959 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31960 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31961 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31962 in config/i386/djgpp.h).
31963 (STANDARD_STARTFILE_PREFIX_2): Define identical to
31964 STANDARD_STARTFILE_PREFIX_1.
31965 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31966 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31967 installation errors.
31968 (MAX_OFILE_ALIGNMENT): Define to 128.
31969 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
31970
31971 * config/i386/djgpp.c: New file. Add implementation of
31972 i386_djgpp_asm_named_section.
31973
31974 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
31975
31976 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
31977 Add rule for building djgpp.o.
31978
31979 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31980
31981 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
31982 (rtx_is_swappable_p): Reductions are swappable.
31983 (insn_is_swappable_p): V2DF reductions are swappable.
31984
31985 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
31986
31987 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
31988 reloads for other unsupported memory operands.
31989
31990 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31991 Jim Wilson <jim.wilson@linaro.org>
31992
31993 PR target/69194
31994 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
31995 copy_to_mode_reg instead of force_reg.
31996
31997 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31998
31999 PR target/69225
32000 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
32001 TARGET_80387 is true.
32002
32003 2016-01-11 Jakub Jelinek <jakub@redhat.com>
32004
32005 PR target/69071
32006 * lra-eliminations.c (move_plus_up): Only move plus up
32007 if subreg of the constant can be simplified into constant
32008 and use the simplified subreg of the constant instead of
32009 the original constant.
32010
32011 * fold-const.c (fold_convertible_p): Don't return true
32012 for conversion of VECTOR_TYPE to same sized integral type.
32013 (fold_convert_loc): Fix up formatting. Fold conversion of
32014 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
32015 instead of NOP_EXPR.
32016
32017 PR tree-optimization/69214
32018 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
32019 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
32020 Formatting fix.
32021
32022 PR tree-optimization/69207
32023 * tree-vect-slp.c (vect_get_constant_vectors): For
32024 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
32025 fold_convertible_p to vector_type's element type, and always
32026 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
32027
32028 2016-01-11 Richard Biener <rguenther@suse.de>
32029
32030 PR tree-optimization/69173
32031 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
32032 fixup the cycle if all stmts are in a pattern.
32033
32034 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
32035
32036 PR middle-end/68999
32037 * alias.c (base_alias_check): Move check for addresses with
32038 alignment ANDs before the call for compare_base_decls.
32039 (memrefs_conflict_p): Return -1 for different decls
32040 that went through alignment adjustments.
32041
32042 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32043
32044 PR rtl-optimization/68796
32045 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
32046 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
32047 and QImode comparisons against zero with CC_NZmode.
32048 * config/aarch64/iterators.md (short_mask): New mode_attr.
32049
32050 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
32051
32052 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
32053 (<avx512>_store<mode>_mask): Likewise.
32054
32055 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
32056 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32057
32058 PR rtl-optimization/68841
32059 * ifcvt.c (struct noce_if_info): Add orig_x field.
32060 (bbs_ok_for_cmove_arith): Add to_rename parameter.
32061 Don't record conflicts on to_rename if it's present.
32062 Allow memory destinations in sets.
32063 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
32064 blocks, passing orig_x to the checks.
32065 (noce_process_if_block): Set if_info->orig_x appropriately.
32066
32067 2016-01-11 Tom de Vries <tom@codesourcery.com>
32068
32069 PR tree-optimization/69069
32070 * tree-parloops.c (create_parallel_loop): Add missing phi args.
32071
32072 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
32073
32074 PR rtl-optimization/68920
32075 * config/i386/i386.c (ix86_option_override_internal): Restrict number
32076 of conditional moves for RTL if-conversion to 1 for
32077 TARGET_ONE_IF_CONV_INSN.
32078 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
32079 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
32080 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
32081 parameter to restirct number of conditional moves for
32082 RTL if-conversion.
32083 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
32084 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
32085 conditionl moves.
32086
32087 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
32088
32089 PR bootstrap/69123
32090 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
32091 onepart vars. Fix typo in comment. Fix reversed condition in
32092 unshare test.
32093 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
32094
32095 PR bootstrap/69123
32096 * var-tracking.c (dump_onepart_variable_differences): New.
32097 (dataflow_set_different): If a detailed dump is requested,
32098 delay early returns and dump differences between onepart
32099 variables present before and after, and added variables.
32100
32101 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
32102
32103 PR target/69010
32104 * expr.c (expand_expr_real_1): For boolean vector constants
32105 with a scalar mode use const_scalar_mask_from_tree.
32106 (const_scalar_mask_from_tree): New.
32107 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
32108 assigned to a mask type to handle constants.
32109
32110 2016-01-11 Martin Jambor <mjambor@suse.cz>
32111
32112 PR ipa/69044
32113 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
32114 useless parameters if we cannot change function signature.
32115
32116 2016-01-11 Martin Jambor <mjambor@suse.cz>
32117
32118 PR ipa/66616
32119 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
32120 flag.
32121
32122 2016-01-11 Tom de Vries <tom@codesourcery.com>
32123
32124 PR tree-optimization/69109
32125 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
32126 latch with phi.
32127
32128 2016-01-11 Tom de Vries <tom@codesourcery.com>
32129
32130 PR tree-optimization/69108
32131 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
32132 res is not used in a phi.
32133
32134 2016-01-11 Yury Gribov <y.gribov@samsung.com>
32135
32136 PR 67425
32137 * common.opt (frandom-seed): Fix parameter name.
32138 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
32139
32140 2016-01-11 Tom de Vries <tom@codesourcery.com>
32141
32142 PR tree-optimization/69058
32143 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
32144 not supported.
32145
32146 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
32147
32148 * config/arc/arc.opt (mdiv-rem): Add period to the end.
32149 (mcode-density): Likewise.
32150
32151 2016-01-10 Tom de Vries <tom@codesourcery.com>
32152
32153 PR tree-optimization/69062
32154 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
32155 (parallelize_loops): Don't paralelize loop that has phi with address
32156 arg.
32157
32158 2016-01-10 Tom de Vries <tom@codesourcery.com>
32159
32160 PR tree-optimization/69039
32161 * tree-parloops.c (try_create_reduction_list): Only allow single exit
32162 phi for reduction.
32163
32164 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
32165
32166 PR middle-end/68743
32167 * match.pd: Require target has function_c99_misc before doing
32168 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
32169
32170 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
32171
32172 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
32173 use GMPINC.
32174 * configure: Regenerate.
32175
32176 2016-01-09 Jakub Jelinek <jakub@redhat.com>
32177
32178 PR middle-end/50865
32179 PR tree-optimization/69097
32180 * fold-const.h (expr_not_equal_to): New prototype.
32181 * fold-const.c: Include stringpool.h and tree-ssanames.h.
32182 (expr_not_equal_to): New function.
32183 * match.pd (X % -Y is the same as X % Y): Don't optimize
32184 unless X is known not to be equal to minimum or Y is known
32185 not to be equal to -1.
32186 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
32187 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
32188 (simplify_stmt_using_ranges): Adjust caller.
32189 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
32190 substitute_and_fold.
32191
32192 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
32193
32194 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
32195 w/o DECL_NAME.
32196
32197 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32198
32199 PR tree-optimization/69167
32200 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
32201 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
32202 ops[0] comparison.
32203 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
32204
32205 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
32206 Richard Biener <rguenther@suse.de>
32207
32208 PR tree-optimization/68707
32209 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
32210 instances that can be handled via vect_load_lanes.
32211
32212 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
32213
32214 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
32215 if we can't determine address equivalence.
32216 * alias.c (compare_base_decl): Update for changed return value of
32217 symtab_node::equal_address_to.
32218
32219 2016-01-08 Jason Merrill <jason@redhat.com>
32220
32221 PR c++/68983
32222 PR c++/67557
32223 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
32224 * expr.c (store_field): Not here.
32225 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
32226 call with TREE_ADDRESSABLE type.
32227 * tree-cfg.c (verify_gimple_call): Adjust.
32228
32229 2016-01-08 Olivier Hainque <hainque@adacore.com>
32230
32231 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
32232 libc_internal.
32233
32234 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
32235
32236 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
32237 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
32238 (reduc_smin_v2sf): Rename to...
32239 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
32240 (reduc_splus_v2sf): Rename to...
32241 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
32242
32243 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32244
32245 PR tree-optimization/69162
32246 * gimplify.c (gimplify_va_arg_expr): Encode original type of
32247 valist argument in another argument.
32248 (gimplify_modify_expr): Adjust for the above change. Cleanup.
32249 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
32250 to determine the va_list type, build a MEM_REF instead of
32251 build_fold_indirect_ref.
32252
32253 PR tree-optimization/69172
32254 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
32255 gimple_build.
32256
32257 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
32258
32259 PR tree-optimization/67781
32260 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
32261 and cmpnop in two steps: first the ones not accessed in original
32262 gimple expression in a endian independent way and then the ones not
32263 accessed in the final result in an endian-specific way.
32264
32265 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32266
32267 PR tree-optimization/69083
32268 * tree-vect-slp.c (vect_get_constant_vectors): For
32269 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
32270 element type. If op is fold_convertible_p to vector_type's element
32271 type, use NOP_EXPR instead of VCE.
32272
32273 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
32274
32275 PR rtl-optimization/67778
32276 PR rtl-optimization/68634
32277 PR rtl-optimization/68909
32278 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
32279 block from the stack until done with it. Remove a superfluous
32280 bitmap set. Remove a superfluous bitmap test.
32281
32282 2016-01-07 Martin Sebor <msebor@redhat.com>
32283
32284 PR c/68966
32285 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
32286 constraint on the type of arguments.
32287
32288 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
32289
32290 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
32291 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
32292 unaligned_access on the gcc_options set.
32293 * config/arm/arm.c (arm_option_override_internal): Use
32294 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
32295
32296 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
32297
32298 PR target/69140
32299 * config/i386/i386.c (ix86_frame_pointer_required): Enable
32300 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
32301
32302 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
32303
32304 Revert
32305 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32306
32307 PR target/69140
32308 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32309 depending on frame_pointer_needed before remaining integer and SSE
32310 registers are saved.
32311
32312 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
32313
32314 PR 1078
32315 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
32316
32317 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
32318
32319 PR target/69171
32320 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
32321 Use the "xBm" constraint.
32322 (float<sseintvecmodelower><mode>2<mask_name><round_name):
32323 Likewise.
32324 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
32325 (sse_cvtsi2ssq<round_name>): Likewise.
32326 (sse_cvtss2si<round_name>): Likewise.
32327 (sse_cvtss2siq<round_name>): Likewise.
32328 (sse2_cvtsi2sdq<round_name>): Likewise.
32329 (sse2_cvtsd2si<round_name>): Likewise.
32330 (sse2_cvtsd2siq<round_name>): Likewise.
32331 * config/i386/subst.md (round_nimm_scalar_predicate): New
32332 predicate.
32333
32334 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
32335
32336 PR middle-end/67639
32337 * varasm.c (make_decl_rtl): Mark invalid register vars as
32338 DECL_EXTERNAL.
32339
32340 PR rtl-optimization/66206
32341 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
32342 All callers changed.
32343
32344 2016-01-07 Jakub Jelinek <jakub@redhat.com>
32345
32346 PR tree-optimization/69141
32347 * tree-ssa-pre.c: Include langhooks.h.
32348 (eliminate_dom_walker::before_dom_children): Use
32349 lang_hooks.decl_printable_name instead of
32350 cgraph_node::get ()->name ().
32351
32352 PR middle-end/68960
32353 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
32354 it and DECL_ALIGN too.
32355
32356 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
32357
32358 * config/mips/mips-ftypes.def: Sort to lexicographical order.
32359
32360 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32361
32362 PR target/69140
32363 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32364 depending on frame_pointer_needed before remaining integer and SSE
32365 registers are saved.
32366
32367 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32368
32369 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
32370 mode iterator with VSX_M2.
32371 (*p9_vecstore_<mode>): Likewise.
32372 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
32373 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
32374 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
32375 (define_split for VSX_LE128 stores): Likewise.
32376 (define_peephole2 for TImode LE swaps): Likewise.
32377 (define_split for VSX_LE128 post-reload stores): Likewise.
32378
32379 2016-01-06 Marek Polacek <polacek@redhat.com>
32380
32381 PR sanitizer/69099
32382 * convert.c (convert_to_integer_1): Adjust call to
32383 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
32384 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
32385 EXPR instead of ARG.
32386 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
32387
32388 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32389
32390 PR 1078
32391 * doc/extend.texi (RL78 Variable Attributes): New section.
32392
32393 2016-01-05 Marek Polacek <polacek@redhat.com>
32394
32395 PR c/69104
32396 * builtins.c (get_memmodel): Use expansion point location rather than
32397 the input location. Call warning_at rather than warning.
32398 (expand_builtin_atomic_compare_exchange): Likewise.
32399 (expand_builtin_atomic_load): Likewise.
32400 (expand_builtin_atomic_store): Likewise.
32401 (expand_builtin_atomic_clear): Likewise.
32402
32403 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32404
32405 PR target/68991
32406 * config/i386/i386.c (ix86_expand_vector_logical_operator):
32407 Replace nonimmediate_operand with vector_operand.
32408 * config/i386/predicates.md (vector_operand): New predicate.
32409 (general_vector_operand): Replace nonimmediate_operand with
32410 vector_operand.
32411 * config/i386/sse.md: Replace nonimmediate_operand with
32412 vector_operand and m constraint with Bm constraint on SSE
32413 patterns with 16-byte memory operand.
32414 * config/i386/subst.md (round_nimm_predicate): Replace
32415 nonimmediate_operand with vector_operand.
32416 (round_saeonly_nimm_predicate): Likewise.
32417 (round_saeonly_nimm_scalar_predicate): New.
32418
32419 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32420
32421 PR target/68991
32422 * config/i386/constraints.md (Bm): New constraint.
32423 * config/i386/predicates.md (vector_memory_operand): New
32424 predicate.
32425 * config/i386/sse.md: Replace xm with xBm in plusminus and
32426 any_logic patterns.
32427
32428 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32429
32430 PR 1078
32431 * doc/extend.texi (V850 Function Attributes): New section.
32432 (V850 Variable Attributes): New section.
32433
32434 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32435
32436 PR 1078
32437 * doc/extend.texi (MicroBlaze Function Attributes): Document
32438 interrupt_handler and fast_interrupt attributes.
32439
32440 2016-01-05 Sergei Trofimovich <siarheit@google.com>
32441
32442 PR other/60465
32443 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
32444 for local symbolic operands.
32445 * config/ia64/predicates.md (local_symbolic_operand64): New
32446 predicate.
32447
32448 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32449
32450 PR rtl-optimization/68651
32451 * combine.c (combine_simplify_rtx): Canonicalize x + x into
32452 x << 1.
32453
32454 2016-01-05 Nathan Sidwell <nathan@acm.org>
32455
32456 * alias.c (compare_base_decls): Use symtab_node::get.
32457
32458 2016-01-05 Nick Clifton <nickc@redhat.com>
32459
32460 PR target/68770
32461 * ira-costs.c (copy_cost): Initialise the t_icode field of the
32462 secondary_reload_info structure.
32463
32464 PR target/66655
32465 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
32466 decls if weak support is available.
32467
32468 2016-01-04 Martin Sebor <msebor@redhat.com>
32469
32470 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
32471
32472 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32473
32474 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
32475 OPTION_MASK_P9_DFORM.
32476
32477 * config/rs6000/constraints.md (wo constraint): New constraint for
32478 ISA 3.0 (power9).
32479
32480 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
32481 for wo constraint.
32482 (rs6000_init_hard_regno_mode_ok): Likewise.
32483
32484 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
32485 wo constraint.
32486
32487 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
32488 expanders not to have constraints. Add support for ISA 3.0 xxperm
32489 instruction. Add support for fusing xxlor with xxperm.
32490 (altivec_vperm_<mode>_internal): Likewise.
32491 (altivec_vperm_v8hiv16qi): Likewise.
32492 (altivec_vperm_<mode>v16q): Likewise.
32493 (altivec_vperm_<mode>_uns): Likewise.
32494 (vperm_v8hiv4si): Likewise.
32495 (vperm_v16qiv8hi): Likewise.
32496
32497 * doc/md.texi (RS/6000 constraints): Document wo constraint.
32498
32499 2016-01-04 Jakub Jelinek <jakub@redhat.com>
32500
32501 Update copyright years.
32502
32503 * gcc.c (process_command): Update copyright notice dates.
32504 * gcov-dump.c (print_version): Ditto.
32505 * gcov.c (print_version): Ditto.
32506 * gcov-tool.c (print_version): Ditto.
32507 * gengtype.c (create_file): Ditto.
32508 * doc/cpp.texi: Bump @copying's copyright year.
32509 * doc/cppinternals.texi: Ditto.
32510 * doc/gcc.texi: Ditto.
32511 * doc/gccint.texi: Ditto.
32512 * doc/gcov.texi: Ditto.
32513 * doc/install.texi: Ditto.
32514 * doc/invoke.texi: Ditto.
32515
32516 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32517
32518 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
32519 modes larger than TImode as TImode if NEON is not enabled.
32520
32521 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32522
32523 PR target/69100
32524 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
32525 mode for %f0-%f31 only if TARGET_FPU.
32526
32527 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32528
32529 PR target/69072
32530 * config/sparc/sparc.c (scan_record_type): Take into account subfields
32531 to compute the PACKED_P predicate.
32532 (function_arg_record_value): Minor tweaks.
32533
32534 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32535
32536 * doc/install.texi (--with-multilib-list): Describe the meaning of the
32537 option for arm*-*-* targets.
32538
32539 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
32540
32541 * doc/extend.texi (Common Function Attributes): Move docs for
32542 MSP430-specific attributes to....
32543 (MSP430 Function Attributes): ...here. Delete the redundant
32544 entries and copy-edit the remaining text.
32545 (MSP430 Variable Attributes): Use uniform format for index
32546 entries and add a cross-reference to the corresponding function
32547 attribute docs.
32548
32549 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
32550
32551 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
32552 -finite-math typo.
32553 (x86 Options): Likewise.
32554
32555 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32556
32557 PR 1078
32558
32559 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
32560 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
32561 to corresponding attribute.
32562
32563 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32564
32565 * doc/extend.texi (Common Function Attributes) <noplt>: Move
32566 to correct alphabetization of table. Copy-edit and correct
32567 markup.
32568 <stack_protect>: Likewise.
32569 <target_clones>: Likewise.
32570 <simd>: Likewise.
32571 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
32572 Correct punctuation.
32573 (Code Gen Options) <-fno-plt>: Copy-edit.
32574
32575 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32576
32577 PR target/68917
32578 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
32579 SI values. Explicitly convert SI to DI and vice-versa.
32580
32581 2016-01-01 Jakub Jelinek <jakub@redhat.com>
32582
32583 PR tree-optimization/69070
32584 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
32585 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
32586
32587 PR sanitizer/69055
32588 * ubsan.c (ubsan_instrument_float_cast): Call
32589 initialize_sanitizer_builtins.
32590
32591 PR target/69015
32592 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
32593 \f
32594 Copyright (C) 2016 Free Software Foundation, Inc.
32595
32596 Copying and distribution of this file, with or without modification,
32597 are permitted in any medium without royalty provided the copyright
32598 notice and this notice are preserved.