1 2016-11-24 Martin Liska <mliska@suse.cz>
3 * print-tree.c (struct bucket): Remove.
4 (print_node): Add new argument which drives whether a tree node
5 is printed briefly or not.
6 (debug_tree): Replace a custom hash table with hash_set<T>.
7 * print-tree.h (print_node): Add the argument.
9 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
11 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
13 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
16 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
17 if it is at least NREGS wide.
19 2016-11-23 Joseph Myers <joseph@codesourcery.com>
21 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
22 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
23 TFmode, IFmode and KFmode.
25 2016-11-23 Joseph Myers <joseph@codesourcery.com>
27 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
30 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
32 * combine.c (change_zero_ext): Only change the mode of a hard register
33 destination if can_change_dest_mode holds for that.
35 2016-11-23 Jeff Law <law@redhat.com>
37 * varasm.c (assemble_name): Increase buffer size for name.
39 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
41 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
43 * doc/extend.texi: Constify first argument to __builtin_object_size.
45 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
47 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
48 to be used. Add brackets around macro argument.
50 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
52 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
54 2016-11-23 Jakub Jelinek <jakub@redhat.com>
57 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
58 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
60 2016-11-23 Jakub Jelinek <jakub@redhat.com>
63 * omp-low.c (build_outer_var_ref): Change lastprivate argument
64 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
65 on worksharing constructs, treat it like clauses on simd construct.
67 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
68 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
69 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
70 of true as last argument to build_outer_var_ref.
72 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
74 * config/i386/i386.md (*movqi_internal): Calculate mode
75 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
76 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
77 (*k<logic><mode>): Calculate mode attribute depending on
78 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
79 (*andqi_1): Calculate mode attribute of alternative 3 depending
80 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
81 (kandn<mode>): Calculate mode attribute of alternative 2 depending
82 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
83 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
84 iterator. Calculate mode attribute of alternative 1 depending
85 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
86 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
87 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
89 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
92 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
93 * tree-vrp.c (extract_range_basic): Handle case for
96 2016-11-23 Jeff Law <law@redhat.com>
98 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
100 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
101 in boolean context warning.
103 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
105 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
108 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
109 (arm_fp16_type_node): ...This, make visibile.
110 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
112 (arm_init_simd_builtin_types): Likewise.
113 (arm_init_fp16_builtins): Likewise.
114 * config/arm/arm.c (arm_excess_precision): New.
115 (arm_floatn_mode): Likewise.
116 (TARGET_C_EXCESS_PRECISION): Likewise.
117 (TARGET_FLOATN_MODE): Likewise.
118 (arm_promoted_type): Only promote arm_fp16_type_node.
119 * config/arm/arm.h (arm_fp16_type_node): Declare.
121 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
123 * config/arm/arm.c (arm_convert_to_type): Delete.
124 (TARGET_CONVERT_TO_TYPE): Delete.
125 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
126 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
127 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
128 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
129 are in fast math mode, and have no single step hardware instruction.
130 (extendhfdf2): Only expand through SFmode if we don't have a
131 single-step hardware instruction.
132 * config/arm/vfp.md (*truncdfhf2): New.
133 (extendhfdf2): Likewise.
135 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
137 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
140 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
142 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
143 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
144 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
145 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
146 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
147 * doc/tm.texi: Regenerate.
148 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
150 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
152 * toplev.c (init_excess_precision): Delete most logic.
153 * tree.c (excess_precision_type): Rewrite to use
154 TARGET_EXCESS_PRECISION.
155 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
156 more generic fashion.
157 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
158 __STDC_WANT_IEC_60559_TYPES_EXT__.
160 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
162 * common.opt (fpermitted-flt-eval-methods): New.
163 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
164 * flag_types.h (permitted_flt_eval_methods): New.
166 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
168 * config/m68k/m68k.c (m68k_excess_precision): New.
169 (TARGET_C_EXCESS_PRECISION): Define.
171 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
173 * config/s390/s390.c (s390_excess_precision): New.
174 (TARGET_C_EXCESS_PRECISION): Define.
176 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
178 * config/i386/i386.c (ix86_excess_precision): New.
179 (TARGET_C_EXCESS_PRECISION): Define.
181 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
183 * target.def (excess_precision): New hook.
184 * target.h (flt_eval_method): New.
185 (excess_precision_type): Likewise.
186 * targhooks.c (default_excess_precision): New.
187 * targhooks.h (default_excess_precision): New.
188 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
189 * doc/tm.texi: Regenerate.
191 2016-11-23 Martin Sebor <msebor@redhat.com>
194 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
195 set the minimum number of bytes for an unknown string to zero.
197 2016-11-23 Martin Jambor <mjambor@suse.cz>
198 Martin Liska <mliska@suse.cz>
200 * hsa-builtins.def: New file.
201 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
202 * builtins.def: Include hsa-builtins.def.
203 (DEF_HSA_BUILTIN): New macro.
204 * dumpfile.h (OPTGROUP_OPENMP): Define.
205 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
206 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
207 GF_OMP_FOR_GRID_GROUP_ITER.
208 (gimple_omp_for_grid_phony): Added checking assert.
209 (gimple_omp_for_set_grid_phony): Likewise.
210 (gimple_omp_for_grid_intra_group): New function.
211 (gimple_omp_for_set_grid_intra_group): Likewise.
212 (gimple_omp_for_grid_group_iter): Likewise.
213 (gimple_omp_for_set_grid_group_iter): Likewise.
214 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
215 previosuly only distribute loop was permitted.
216 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
217 (grid_get_kernel_launch_attributes): Support multiple HSA grid
219 (grid_expand_omp_for_loop): Likewise and also support standalone
220 distribute constructs. New parameter INTRA_GROUP, updated both users.
221 (grid_expand_target_grid_body): Support standalone distribute
223 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
224 (pass_data_expand_omp_ssa): Likewise.
225 (pass_data_omp_device_lower): Likewsie.
226 (pass_data_lower_omp): Likewise.
227 (pass_data_diagnose_omp_blocks): Likewise.
228 (pass_data_oacc_device_lower): Likewise.
229 (pass_data_omp_target_link): Likewise.
230 (grid_lastprivate_predicate): New function.
231 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
233 (lower_omp_for): Support standalone distribute constructs.
234 (grid_prop): New type.
235 (grid_safe_assignment_p): Check for assignments to group_sizes, new
237 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
239 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
240 optimization info messages.
241 (grid_find_single_omp_among_assignments): Likewise.
242 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
243 (grid_parallel_clauses_gridifiable): New function.
244 (grid_inner_loop_gridifiable_p): Likewise.
245 (grid_dist_follows_simple_pattern): Likewise.
246 (grid_gfor_follows_tiling_pattern): Likewise.
247 (grid_call_permissible_in_distribute_p): Likewise.
248 (grid_handle_call_in_distribute): Likewise.
249 (grid_dist_follows_tiling_pattern): Likewise.
250 (grid_target_follows_gridifiable_pattern): Support standalone
251 distribute constructs.
252 (grid_var_segment): New enum.
253 (grid_mark_variable_segment): New function.
254 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
255 if a new argument says so.
256 (grid_process_grid_body): New function.
257 (grid_eliminate_combined_simd_part): Likewise.
258 (grid_mark_tiling_loops): Likewise.
259 (grid_mark_tiling_parallels_and_loops): Likewise.
260 (grid_process_kernel_body_copy): Support standalone distribute
262 (grid_attempt_target_gridification): New grid variable holding overall
263 gridification state. Support standalone distribute constructs and
265 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
266 * hsa.h (hsa_bb): Add method method append_phi.
267 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
268 occurences in all files too.
269 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
270 (is_a_helper <hsa_insn_br *>::test): New function.
271 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
273 (hsa_insn_signal): Make a direct descendant of
274 hsa_insn_basic. Add memorder constructor parameter and
275 m_memory_order and m_signalop member variables.
276 (hsa_insn_queue): Changed constructor parameters to common form.
277 Added m_segment and m_memory_order member variables.
278 (hsa_summary_t): Add private member function
279 process_gpu_implementation_attributes.
280 (hsa_function_summary): Rename m_binded_function to
282 (hsa_insn_basic_p): Remove typedef.
283 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
284 (hsa_op_reg_p): Remove typedef.
285 (hsa_function_representation): Change hsa_op_reg_p into plain
287 (hsa_insn_phi): Removed new and delete operators.
288 (hsa_insn_br): Likewise.
289 (hsa_insn_cbr): Likewise.
290 (hsa_insn_sbr): Likewise.
291 (hsa_insn_cmp): Likewise.
292 (hsa_insn_mem): Likewise.
293 (hsa_insn_atomic): Likewise.
294 (hsa_insn_signal): Likewise.
295 (hsa_insn_seg): Likewise.
296 (hsa_insn_call): Likewise.
297 (hsa_insn_arg_block): Likewise.
298 (hsa_insn_comment): Likewise.
299 (hsa_insn_srctype): Likewise.
300 (hsa_insn_packed): Likewise.
301 (hsa_insn_cvt): Likewise.
302 (hsa_insn_alloca): Likewise.
303 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
304 (process_gpu_implementation_attributes): New function.
305 (link_functions): Move some functionality into it. Adjust after
306 renaming m_binded_functions to m_bound_functions.
307 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
308 to the list of instructions with no output registers.
309 (get_in_type): Return this if it is a register of
311 (hsa_get_declaration_name): Moved to...
312 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
313 temporary string on an obstack instead from ggc.
314 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
315 down to two overloads.
316 (hsa_allocp_operand_address): Removed.
317 (hsa_allocp_operand_immed): Likewise.
318 (hsa_allocp_operand_reg): Likewise.
319 (hsa_allocp_operand_code_list): Likewise.
320 (hsa_allocp_operand_operand_list): Likewise.
321 (hsa_allocp_inst_basic): Likewise.
322 (hsa_allocp_inst_phi): Likewise.
323 (hsa_allocp_inst_mem): Likewise.
324 (hsa_allocp_inst_atomic): Likewise.
325 (hsa_allocp_inst_signal): Likewise.
326 (hsa_allocp_inst_seg): Likewise.
327 (hsa_allocp_inst_cmp): Likewise.
328 (hsa_allocp_inst_br): Likewise.
329 (hsa_allocp_inst_sbr): Likewise.
330 (hsa_allocp_inst_call): Likewise.
331 (hsa_allocp_inst_arg_block): Likewise.
332 (hsa_allocp_inst_comment): Likewise.
333 (hsa_allocp_inst_queue): Likewise.
334 (hsa_allocp_inst_srctype): Likewise.
335 (hsa_allocp_inst_packed): Likewise.
336 (hsa_allocp_inst_cvt): Likewise.
337 (hsa_allocp_inst_alloca): Likewise.
338 (hsa_allocp_bb): Likewise.
340 (hsa_init_data_for_cfun): Initialize obstack.
341 (hsa_deinit_data_for_cfun): Release memory of the obstack.
342 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
343 (hsa_op_reg::operator new): Likewise.
344 (hsa_op_address::operator new): Likewise.
345 (hsa_op_code_list::operator new): Likewise.
346 (hsa_op_operand_list::operator new): Likewise.
347 (hsa_insn_basic::operator new): Likewise.
348 (hsa_insn_phi::operator new): Likewise.
349 (hsa_insn_br::operator new): Likewise.
350 (hsa_insn_sbr::operator new): Likewise.
351 (hsa_insn_cmp::operator new): Likewise.
352 (hsa_insn_mem::operator new): Likewise.
353 (hsa_insn_atomic::operator new): Likewise.
354 (hsa_insn_signal::operator new): Likewise.
355 (hsa_insn_seg::operator new): Likewise.
356 (hsa_insn_call::operator new): Likewise.
357 (hsa_insn_arg_block::operator new): Likewise.
358 (hsa_insn_comment::operator new): Likewise.
359 (hsa_insn_srctype::operator new): Likewise.
360 (hsa_insn_packed::operator new): Likewise.
361 (hsa_insn_cvt::operator new): Likewise.
362 (hsa_insn_alloca::operator new): Likewise.
363 (hsa_init_new_bb): Likewise.
364 (hsa_bb::append_phi): New function.
365 (gen_hsa_phi_from_gimple_phi): Use it.
366 (get_symbol_for_decl): Fix dinstinguishing between
367 global and local functions. Put local variables into a segment
368 according to their attribute or static flag, if there is one.
369 (hsa_insn_br::hsa_insn_br): New.
370 (hsa_insn_br::operator new): Likewise.
371 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
372 (query_hsa_grid_nodim): New function.
373 (multiply_grid_dim_characteristics): Likewise.
374 (gen_get_num_threads): Likewise.
375 (gen_get_num_teams): Reimplemented.
376 (gen_get_team_num): Likewise.
377 (gen_hsa_insns_for_known_library_call): Updated calls to the above
379 (get_memory_order_name): Removed.
380 (get_memory_order): Likewise.
381 (hsa_memorder_from_tree): New function.
382 (gen_hsa_ternary_atomic_for_builtin): Renamed to
383 gen_hsa_atomic_for_builtin, can also create signals.
384 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
385 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
386 (hsa_insn_atomic): Fix function comment.
387 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
388 ancestor constructor and initialization of new member variables.
389 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
391 (hsa_get_host_function): Handle functions with no bound CPU
392 implementation. Fix binded to bound.
393 (get_brig_function_name): Likewise.
394 (HSA_SORRY_ATV): Remove semicolon after macro.
395 (HSA_SORRY_AT): Likewise.
396 (omp_simple_builtin::generate): Add missing semicolons.
397 (hsa_insn_phi::operator new): Removed.
398 (hsa_insn_br::operator new): Likewise.
399 (hsa_insn_cbr::operator new): Likewise.
400 (hsa_insn_sbr::operator new): Likewise.
401 (hsa_insn_cmp::operator new): Likewise.
402 (hsa_insn_mem::operator new): Likewise.
403 (hsa_insn_atomic::operator new): Likewise.
404 (hsa_insn_signal::operator new): Likewise.
405 (hsa_insn_seg::operator new): Likewise.
406 (hsa_insn_call::operator new): Likewise.
407 (hsa_insn_arg_block::operator new): Likewise.
408 (hsa_insn_comment::operator new): Likewise.
409 (hsa_insn_srctype::operator new): Likewise.
410 (hsa_insn_packed::operator new): Likewise.
411 (hsa_insn_cvt::operator new): Likewise.
412 (hsa_insn_alloca::operator new): Likewise.
413 (get_symbol_for_decl): Accept CONST_DECLs, put them to
415 (gen_hsa_addr): Also process CONST_DECLs.
416 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
418 (gen_hsa_unary_operation): Make sure the function does
419 not use bittype source type for firstbit and lastbit operations.
420 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
422 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
424 (emit_branch_insn): Renamed to emit_cond_branch_insn.
425 Emit the width stored in the class.
426 (emit_generic_branch_insn): New function.
427 (emit_insn): Call emit_generic_branch_insn.
428 (emit_signal_insn): Remove obsolete comment. Update
429 member variable name, pick a type according to profile.
430 (emit_alloca_insn): Remove obsolete comment.
431 (emit_atomic_insn): Likewise.
432 (emit_queue_insn): Get segment and memory order from the IR object.
433 (hsa_brig_section): Make allocate_new_chunk, chunks
434 and cur_chunk provate, add a default NULL parameter to add method.
435 (hsa_brig_section::add): Added a new parameter, store pointer to
436 output data there if it is non-NULL.
437 (emit_function_directives): Use this new parameter instead of
438 calculating the pointer itself, fix function comment.
439 (hsa_brig_emit_function): Add forgotten endian conversion.
440 (hsa_output_kernels): Remove unnecessary building of
441 kernel_dependencies_vector_type.
442 (emit_immediate_operand): Declare.
443 (emit_directive_variable): Also emit initializers of CONST_DECLs.
444 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
445 (verify_function_arguments): Properly detect variadic
447 * hsa-dump.c (hsa_width_specifier_name): New function.
448 (dump_hsa_insn_1): Dump generic branch instructions, update signal
449 member variable name. Special dumping for queue objects.
450 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
451 m_binded_functions to m_bound_functions. Copy externally visible flag
453 (ipa_hsa_write_summary): Likewise.
454 (ipa_hsa_read_section): Likewise.
456 2016-11-23 Richard Biener <rguenther@suse.de>
458 PR tree-optimization/78396
459 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
460 vectorize try vectorizing an if-converted body using BB vectorization.
462 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
463 Alan Hayward <alan.hayward@arm.com>
464 David Sherwood <david.sherwood@arm.com>
466 * rtlanal.c (subreg_get_info): Use more local variables.
467 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
468 occupies at least one register. Assume that full hard registers
469 have consistent endianness. Share previously-duplicated if block.
470 Rework the main handling so that it operates on independently-
471 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
472 to check lowpart offsets, without trying to find an equivalent
473 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
474 as a final register-endianness correction.
476 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
482 * combine.c (make_compound_operation_int): Do not convert a subreg of
483 a non-constant logical shift right to a zero_extract. Handle the case
484 where some zero bits have been shifted into the range covered by that
487 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
488 Alan Hayward <alan.hayward@arm.com>
489 David Sherwood <david.sherwood@arm.com>
491 * rtl.h (subreg_size_offset_from_lsb): Declare.
492 (subreg_offset_from_lsb): New function.
493 (subreg_size_lowpart_offset): Declare.
494 (subreg_lowpart_offset): Turn into an inline function.
495 (subreg_size_highpart_offset): Declare.
496 (subreg_highpart_offset): Turn into an inline function.
497 * emit-rtl.c (subreg_size_lowpart_offset): New function.
498 (subreg_size_highpart_offset): Likewise
499 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
501 2016-11-23 Richard Biener <rguenther@suse.de>
503 PR tree-optimization/78482
504 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
505 (remove_forwarder_block_with_phi): When merging with a loop
506 header creates a new latch reset number of iteration information
509 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
511 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
512 (*ashrsi3_extend0): ...this. Accept constant integers.
513 (*ashrsi3_extend2): Rename to...
514 (*ashrsi3_extend1): ...this.
515 (*ashrsi3_extend2): New pattern.
516 (*lshrsi3_extend1): Accept constant integers.
517 (*lshrsi3_extend2): Fix condition on operand 2.
519 2016-11-23 Martin Liska <mliska@suse.cz>
521 * config/i386/i386.c: Initialize function pointer to NULL.
523 2016-11-23 Bin Cheng <bin.cheng@arm.com>
525 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
526 for A == C1 ? A : C2 to below.
527 * match.pd: Move from above to here:
528 (cond (eq (convert1? x) c1) (convert2? x) c2)
529 -> (cond (eq x c1) c1 c2).
531 2016-11-23 Bin Cheng <bin.cheng@arm.com>
533 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
534 for A cmp C1 ? A : C2 to below, also simplify remaining code.
535 * match.pd: Move and extend simplification from above to here:
536 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
537 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
538 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
540 2016-11-23 Martin Liska <mliska@suse.cz>
541 Martin Jambor <mjambor@suse.cz>
543 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
545 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
548 * opts.c (finish_options): Set -fsyntax-only if running self tests.
550 2016-11-23 Richard Biener <rguenther@suse.de>
553 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
554 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
556 2016-11-23 Richard Biener <rguenther@suse.de>
559 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
562 2016-11-23 Richard Biener <rguenther@suse.de>
563 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
565 PR tree-optimization/78154
566 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
567 returns it's argument and the argument is nonnull.
568 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
569 ATT_RETNONNULL_NOTHROW_LEAF.
570 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
571 ATTR_RETNONNULL_NOTHROW_LEAF.
572 (BUILT_IN_STPCPY): Likewise.
573 (BUILT_IN_STPNCPY): Likewise.
574 (BUILT_IN_MEMPCPY_CHK): Likewise.
575 (BUILT_IN_STPCPY_CHK): Likewise.
576 (BUILT_IN_STPNCPY_CHK): Likewise.
577 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
578 (BUILT_IN_STRNCAT): Likewise.
579 (BUILT_IN_STRNCPY): Likewise.
580 (BUILT_IN_MEMSET_CHK): Likewise.
581 (BUILT_IN_STRCAT_CHK): Likewise.
582 (BUILT_IN_STRCPY_CHK): Likewise.
583 (BUILT_IN_STRNCAT_CHK): Likewise.
584 (BUILT_IN_STRNCPY_CHK): Likewise.
586 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
588 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
589 * fold-const.h (tree_expr_nonzero_p) : Declare.
590 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
592 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
594 * system.h (HAVE_DESIGNATED_INITIALIZERS,
595 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
597 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
598 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
599 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
601 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
604 * config/avr/constraints.md (Csp): Widen range to [-11..6].
605 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
606 of RCALLs in prologue to 3.
608 2016-11-22 Michael Collison <michael.collison@arm.com>
610 * config/aarch64/aarch64-protos.h
611 (aarch64_and_split_imm1, aarch64_and_split_imm2)
612 (aarch64_and_bitmask_imm): New prototypes
613 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
614 New overloaded function to create bit mask covering the
615 lowest to highest bits set.
616 (aarch64_and_split_imm2): New overloaded functions to create bit
617 mask of zeros between first and last bit set.
618 (aarch64_and_bitmask_imm): New function to determine if a integer
619 is a valid two instruction "and" operation.
620 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
621 allowing wider range of constants with "and" operations.
622 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
623 "and" operator from matching restricted constant range used for
624 ior and xor operators.
625 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
626 for constants in "and" operantions.
627 (UsP constraint): New DImode constraint for constants
629 * config/aarch64/iterators.md (lconst2): New mode iterator.
630 (LOGICAL2): New code iterator.
631 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
633 (aarch64_logical_and_operand): New predicate allowing extended
634 constants for "and" operations.
636 2016-11-22 Walter Lee <walt@tilera.com>
638 * config/tilegx/tilegx.md (trap): New pattern.
639 * config/tilepro/tilepro.md (trap): Likewise.
641 2016-11-22 Walter Lee <walt@tilera.com>
643 * config/tilegx/tilegx.md (*zero_extract): Use
644 define_insn_and_split instead of define_insn; Handle pos + size >
646 (*sign_extract): Likewise.
648 2016-11-22 Marek Polacek <polacek@redhat.com>
650 PR tree-optimization/78455
651 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
653 2016-11-22 Ian Lance Taylor <iant@golang.org>
657 * godump.c (go_format_type): Always pass alignment as 1 when
658 calling go_append_padding at end of struct/union.
660 2016-11-22 Jakub Jelinek <jakub@redhat.com>
663 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
664 _mm512_setzero_hi): Removed.
665 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
666 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
667 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
668 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
669 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
670 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
671 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
672 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
673 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
674 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
675 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
676 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
677 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
678 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
679 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
680 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
681 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
682 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
683 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
684 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
685 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
686 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
687 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
688 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
689 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
690 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
691 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
692 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
693 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
694 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
695 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
696 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
697 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
698 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
699 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
700 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
701 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
702 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
703 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
704 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
705 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
706 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
707 _mm512_setzero_qi or _mm512_setzero_hi.
708 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
709 _mm512_maskz_dbsad_epu8): Formatting fixes.
710 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
711 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
712 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
713 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
714 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
715 _mm512_setzero_qi or _mm512_setzero_hi.
717 2016-11-22 Nathan Sidwell <nathan@acm.org>
719 * gcc-ar.c (main): Fix indentation.
720 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
721 * ggc-page.c (move_ptes_to_front): Fix formatting.
722 * hsa-dump.c (dump_has_cfun): Fix indentation.
723 * sel-sched-ir.h: Remove trailing blank lines.
725 2016-11-22 Jakub Jelinek <jakub@redhat.com>
726 Alexander Monakov <amonakov@ispras.ru>
728 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
729 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
730 (omp_clause_code_name): Add _simt_ name.
731 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
732 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
733 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
734 (scan_omp_simd): New function.
735 (scan_omp_1_stmt): Use it in target regions if needed.
736 (omp_max_vf): Don't max with omp_max_simt_vf.
737 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
738 OMP_CLAUSE__SIMT_ is present.
739 (lower_rec_input_clauses): Compute maybe_simt from presence of
741 (lower_lastprivate_clauses): Likewise.
742 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
743 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
744 * internal-fn.def (GOMP_USE_SIMT): New internal function.
745 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
747 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
749 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
750 (expand_GOMP_SIMT_VF): New.
751 (expand_GOMP_SIMT_LAST_LANE): New.
752 (expand_GOMP_SIMT_ORDERED_PRED): New.
753 (expand_GOMP_SIMT_VOTE_ANY): New.
754 (expand_GOMP_SIMT_XCHG_BFLY): New.
755 (expand_GOMP_SIMT_XCHG_IDX): New.
756 * internal-fn.def (GOMP_SIMT_LANE): New.
758 (GOMP_SIMT_LAST_LANE): New.
759 (GOMP_SIMT_ORDERED_PRED): New.
760 (GOMP_SIMT_VOTE_ANY): New.
761 (GOMP_SIMT_XCHG_BFLY): New.
762 (GOMP_SIMT_XCHG_IDX): New.
763 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
764 (create_omp_child_function): ...here. Set "omp target entrypoint"
765 or "omp declare target" attribute based on is_gimple_omp_offloaded.
766 (omp_max_simt_vf): New. Use it...
767 (omp_max_vf): ...here.
768 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
769 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
770 (lower_omp_ordered): Likewise, for "ordered" lowering.
771 (expand_omp_simd): Add SIMT transforms.
772 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
773 (execute_omp_device_lower): New.
774 (pass_data_omp_device_lower): New.
775 (pass_omp_device_lower): New pass.
776 (make_pass_omp_device_lower): New.
777 * passes.def (pass_omp_device_lower): Position new pass.
778 * tree-pass.h (PROP_gimple_lomp_dev): Define.
779 (make_pass_omp_device_lower): Declare.
781 2016-11-22 Jakub Jelinek <jakub@redhat.com>
784 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
785 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
787 (_mm_maskz_load_epi64): Likewise.
788 (_mm_setzero_hi): Removed.
789 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
791 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
792 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
793 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
794 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
795 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
796 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
797 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
798 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
799 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
800 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
801 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
803 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
804 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
805 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
806 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
807 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
808 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
809 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
810 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
811 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
812 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
813 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
814 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
815 instead of _mm_setzero_hi.
816 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
817 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
818 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
819 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
820 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
821 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
822 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
823 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
824 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
825 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
826 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
827 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
828 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
829 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
830 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
831 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
832 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
833 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
834 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
835 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
836 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
837 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
838 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
839 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
840 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
841 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
843 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
844 instead of _mm_setzero_hi.
845 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
846 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
847 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
848 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
849 _mm_setzero_si128 instead of _mm_setzero_di.
850 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
851 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
852 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
853 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
854 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
855 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
856 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
857 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
858 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
859 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
860 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
861 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
862 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
863 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
864 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
865 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
866 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
867 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
868 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
869 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
870 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
871 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
872 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
873 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
874 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
875 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
876 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
877 _mm512_maskz_insertf32x8): Formatting fixes.
878 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
879 _mm_setzero_si128 instead of _mm_setzero_di.
880 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
881 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
882 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
883 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
884 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
885 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
886 _mm_setzero_si128 instead of _mm_setzero_di.
887 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
889 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
890 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
891 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
892 _mm_setzero_si128 instead of _mm_setzero_hi.
893 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
894 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
895 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
896 instead of _mm_setzero_di.
897 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
898 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
900 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
901 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
903 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
905 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
906 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
907 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
909 2016-11-22 Carl Love <cel@us.ibm.com>
911 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
912 equal and vector compare not equal. The vector compares take two
913 arguments of type vector bool char, vector bool short, vector bool int,
914 vector bool long long with the same return type.
915 * doc/extend.texi: Update built-in documentation file for the new
918 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
920 * Makefile.in ($(lang_checks_parallelized)): Fix detection
923 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
925 * config.gcc: Allow new rmprofile value for configure option
926 --with-multilib-list.
927 * config/arm/t-rmprofile: New file.
928 * doc/install.texi (--with-multilib-list): Document new rmprofile value
931 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
934 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
935 register operand in alternatives 4,5,6.
937 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
940 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
941 in save register mask if it is needed.
943 2016-11-22 Jakub Jelinek <jakub@redhat.com>
945 PR tree-optimization/78436
946 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
947 (shift_bytes_in_array, shift_bytes_in_array_right,
948 merged_store_group::apply_stores): Formatting fixes.
949 (clear_bit_region): Likewise. Use memset.
950 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
951 instead of EXPR and inerted instead of inserted. Use memset instead
952 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
956 * expmed.c (expand_divmod): Use wide_int for computation of
957 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
958 Use size <= HOST_BITS_PER_WIDE_INT instead of
959 HOST_BITS_PER_WIDE_INT >= size.
961 PR tree-optimization/78445
962 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
963 any_complicated_phi, version loop even if flag_tree_loop_if_convert
964 is 1. Formatting fix.
966 2016-11-22 Martin Liska <mliska@suse.cz>
969 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
970 (sem_function::get_hash): Use the new field.
971 (sem_function::parse): Remove an argument from ctor.
972 (sem_variable::parse): Likewise.
973 (sem_variable::get_hash): Use the new field.
974 (sem_item_optimizer::read_section): Use new ctor and set hash.
975 * ipa-icf.h: _hash is removed from sem_item::sem_item,
976 sem_variable::sem_variable, sem_function::sem_function.
978 2016-11-21 Jeff Law <law@redhat.com>
981 * config/cris/cris.md: Don't call copy_to_mode_reg unless
982 can_create_pseudo_p is true.
984 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
987 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
988 *rotldi3_insert_7): New define_insns.
990 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
992 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
993 so that DImode can be allocated to FP/vector registers in more
994 cases, and we can avoid direct move operations. If the register
995 needs reloading, prefer GPRs over FP/vector registers. In the
996 case of FPR vs. Altivec registers, prefer FPR registers unless we
997 have the ISA 3.0 reg+offset scalar instructions.
998 (movdi_internal64): Likewise.
1000 2016-11-21 Jakub Jelinek <jakub@redhat.com>
1003 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
1004 for tmp simd array if DECL_NAME (parm) is NULL.
1006 2016-11-20 Jeff Law <law@redhat.com>
1009 * config/m68k/predicates.md (swap_peephole_relational_operator): New
1011 * config/m68k/m68k.md (relational tests against 65535/65536): New
1014 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1016 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
1018 2016-11-21 Martin Sebor <msebor@redhat.com>
1020 * doc/invoke.texi (-fprintf-return-value): Document that option
1021 is enabled by default.
1023 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1025 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
1026 for-loop declaration of loop variable.
1027 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
1028 * config/avr/avr.c (avr_popcount_each_byte)
1029 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
1030 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
1031 (avr_expand_epilogue, avr_function_arg_advance)
1032 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
1033 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
1034 (avr_adjust_reg_alloc_order, output_reload_in_const)
1035 (avr_conditional_register_usage, avr_find_unused_d_reg)
1036 (avr_map_decompose, avr_fold_builtin): Same.
1038 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1040 * config/avr/avr.c (avr_popcount): Remove static function.
1041 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
1043 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
1045 * arm.opt (mapcs-float): Delete option.
1046 * arm.c (arm_option_override): Remove hunk relating to
1048 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
1050 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
1052 * tree-tailcall.c (process_assignment): Simplify the check for
1053 a valid copy, allowing the source to be a local variable as
1054 well as an SSA name.
1055 (find_tail_calls): Allow copies between local variables to follow
1056 the call. Allow the result to be stored in any local variable,
1057 even if it's an aggregate.
1058 (eliminate_tail_call): Check whether the result is an SSA name
1059 before updating its SSA_NAME_DEF_STMT.
1061 2016-11-21 David Malcolm <dmalcolm@redhat.com>
1063 PR preprocessor/78324
1064 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1065 -ftrack-macro-expansion has a value other than 2.
1067 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1069 PR rtl-optimization/78400
1070 * shrink-wrap.c (try_shrink_wrapping_separate): Call
1071 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
1072 and df_update_exit_block_uses.
1074 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1077 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
1078 new default-enabled warning..
1079 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
1080 (BT_PTR_CONST_STRING): Updated.
1081 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
1082 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
1083 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
1084 (strftime): Update builtin function.
1085 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
1086 * tree.h (const_tm_ptr_type_node): New type node.
1087 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
1088 const_tm_ptr_type_node.
1090 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1092 PR tree-optimization/78413
1093 * tree-if-conv.c (versionable_outer_loop_p): Require that both
1094 inner and outer loop latches have single predecessors.
1096 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
1099 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
1100 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
1102 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1104 * rtl.h: Adjust prototype.
1105 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
1106 (dead_or_set_regno_p): Likewise.
1108 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1110 * rtl.h: Adjust prototype.
1111 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
1113 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1115 * function.c (contains): Change argument type to rtx_insn *.
1116 (prologue_contains): Likewise.
1117 (epilogue_contains): Likewise.
1118 (prologue_epilogue_contains): Likewise.
1119 * function.h: Adjust prototype.
1121 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1123 * optabs.c (emit_libcall_block): Change argument type to
1125 * optabs.h: Adjust prototype.
1127 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1129 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
1130 (fixup_reorder_chain): Adjust.
1131 * cfgrtl.h: Adjust prototype.
1133 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1135 * rtl.h: Adjust prototype.
1136 * rtlanal.c (replace_label_in_insn): Change argument type to
1139 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1141 * config/v850/v850.c (expand_prologue): Adjust.
1142 (expand_epilogue): Likewise.
1143 * expr.c (init_expr_target): Likewise.
1144 * genrecog.c (print_subroutine): Always make the argument type
1146 * recog.h: Adjust prototype.
1148 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1150 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
1151 up variables to make some rtx_insn *.
1152 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1153 * config/arc/arc.c: Likewise.
1154 * config/arm/arm.c: Likewise.
1155 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
1156 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
1158 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1160 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1162 * config/arm/arm.c (legitimize_pic_address): Change to use
1163 rtx_insn * as the type of variables.
1164 (arm_pic_static_addr): Likewise.
1165 (arm_emit_movpair): Likewise.
1166 * config/c6x/c6x.c (reorg_split_calls): Likewise.
1167 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
1168 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
1169 * config/frv/frv.md: Likewise.
1170 * config/i386/i386-protos.h: Likewise.
1171 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1172 (ix86_split_fp_branch): Likewise.
1173 (predict_jump): Likewise.
1174 * config/ia64/ia64.c: Likewise.
1175 * config/mcore/mcore.c: Likewise.
1176 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1177 * config/s390/s390.c: Likewise.
1178 * config/s390/s390.md: Likewise.
1179 * config/spu/spu.md: Likewise.
1180 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
1181 * lower-subreg.c (resolve_simple_move): Likewise.
1183 2016-11-20 Jeff Law <law@redhat.com>
1186 * reload.h (struct target_reload): Make x_double_reg_address_ok
1188 * reload.c (find_reloads_address): Check if double_reg_address_ok
1189 is true for the mode of the memory reference.
1190 * reload1.c (init_reload): Initialize double_reg_address_ok for
1193 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
1196 * tree-ssa-uninit.c: Define new global max_phi_args.
1197 (compute_uninit_opnds_pos): Use max_phi_args.
1198 (prune_uninit_phi_opnds): Same.
1199 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
1200 missing NUM_PREDS in function comment.
1201 (can_one_predicate_be_invalidated_p): New.
1202 (can_chain_union_be_invalidated_p): New.
1203 (flatten_out_predicate_chains): New.
1204 (uninit_ops_invalidate_phi_use): New.
1205 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
1207 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1209 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
1210 * match.pd (A /[ex] B CMP C): New simplifications.
1212 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1214 * match.pd (0 / X, X / X, X % X): New simplifications.
1216 2016-11-19 Jakub Jelinek <jakub@redhat.com>
1218 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
1219 when checking if callee's isa flags are subset of caller's isa flags.
1220 Fix comment wording.
1222 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
1223 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
1224 instead and using = 0 instead of &= 0.
1226 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
1227 ix86_add_new_builtins): Formatting fixes.
1228 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
1229 (ix86_get_builtin): Likewise.
1231 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
1232 don't initialize it, don't use it for the case where it isn't
1233 provable %{z} nor using the same argument, instead move merge
1234 argument into a new pseudo and use that as target. Formatting fixes.
1236 2016-11-19 Jeff Law <law@redhat.com>
1239 * config/m68k/m68k.md (bsetdreg): New pattern.
1240 (bchgdreg, bclrdreg): Likewise.
1242 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
1245 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1246 instead of force_reg.
1247 (sh_expand_setmem): Likewise.
1249 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
1251 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
1253 2016-11-18 Walter Lee <walt@tilera.com>
1255 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1256 end-of-bundle marker for consecutive barriers.
1258 2016-11-18 Walter Lee <walt@tilera.com>
1260 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1262 2016-11-18 Jakub Jelinek <jakub@redhat.com>
1265 * multiple_target.c (get_attr_len): Start with argnum and increment
1266 argnum on every arg. Use strchr in a loop instead of counting commas
1268 (get_attr_str): Increment argnum for every comma in the string.
1269 (separate_attrs): Use for instead of while loop, simplify.
1270 (expand_target_clones): Rename defenition argument to definition.
1271 Free attrs and attr_str even when diagnosing errors. Temporarily
1272 change input_location around targetm.target_option.valid_attribute_p
1273 calls. Don't emit warning or errors if that function fails.
1275 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
1278 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
1279 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
1280 abbrev_opt_base_type_end only by increasing die_abbrev, before
1282 (optimize_abbrev_table): Don't change abbrev numbers of
1283 base types and CU or optimize implicit consts in them if
1284 calc_base_type_die_sizes has been called during build_abbrev_table.
1285 (calc_base_type_die_sizes): If abbrev_opt_start, set
1286 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
1288 2016-11-18 Jeff Law <law@redhat.com>
1291 * config/m68k/m68k.c (moveq feeding equality comparison): New
1293 * config/m68k/predicates.md (addq_subq_operand): New predicate.
1294 (equality_comparison_operator): Likewise.
1296 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1298 * rtlanal.c (load_extend_op): Move to...
1299 * rtl.h: ...here and make inline.
1301 2016-11-18 Terry Guo <terry.guo@arm.com>
1302 Thomas Preud'homme <thomas.preudhomme@arm.com>
1304 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
1305 * config/arm/arm-opts.h: Include arm-flags.h.
1306 (struct arm_arch_core_flag): Define.
1307 (arm_arch_core_flags): Define.
1308 * config/arm/arm-protos.h: Include arm-flags.h
1309 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
1310 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
1311 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
1312 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
1313 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
1314 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
1315 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
1316 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
1317 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
1318 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
1319 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
1320 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
1321 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
1322 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
1323 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
1324 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
1325 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
1326 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
1327 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
1328 ARM_FSET_CPU_SUBSET): Move to ...
1329 * config/arm/arm-flags.h: This new file.
1330 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
1331 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
1332 (TARGET_MODE_SPECS): Define.
1333 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
1335 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1337 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
1338 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
1339 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
1340 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
1341 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
1342 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
1343 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
1344 missing and make value unsigned.
1345 (arm_feature_set): Use unsigned entries instead of unsigned long.
1347 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1349 Re-apply after PR bootstrap/77359 is fixed:
1350 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1352 * explow.c (get_dynamic_stack_size): Take known alignment of stack
1353 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
1356 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1359 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
1360 variables in functions calling alloca. Also update the ASCII
1362 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
1363 (STACK_DYNAMIC_OFFSET): Likewise.
1364 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
1365 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
1368 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1369 Alan Hayward <alan.hayward@arm.com>
1370 David Sherwood <david.sherwood@arm.com>
1372 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
1373 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
1374 (add_const_value_attribute): Likewise.
1375 * explow.c (plus_constant): Likewise.
1376 * expmed.c (expand_mult, make_tree): Likewise.
1377 * expr.c (convert_modes): Likewise.
1378 * loop-doloop.c (doloop_optimize): Likewise.
1379 * postreload.c (reload_cse_simplify_set): Likewise.
1380 * simplify-rtx.c (simplify_const_unary_operation): Likewise
1381 (simplify_binary_operation_1, simplify_const_binary_operation):
1383 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
1384 * wide-int.h: Update documentation to recommend rtx_mode_t
1385 instead of std::make_pair.
1387 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1388 Alan Hayward <alan.hayward@arm.com>
1389 David Sherwood <david.sherwood@arm.com>
1391 * tree.h (SET_DECL_MODE): New macro.
1392 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
1393 (expand_gimple_basic_block): Likewise.
1394 * function.c (split_complex_args): Likeise.
1395 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1396 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
1397 * stor-layout.c (layout_decl, relayout_decl): Likewise.
1398 (finish_bitfield_representative): Likewise.
1399 * tree.c (make_node_stat): Likewise.
1400 * tree-inline.c (remap_ssa_name): Likewise.
1401 (tree_function_versioning): Likewise.
1402 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1403 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1404 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1405 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1406 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1407 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1408 * varasm.c (make_debug_expr_from_rtl): Likewise.
1410 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
1412 PR rtl-optimization/71785
1413 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
1414 (duplicate_computed_gotos): New function.
1415 (pass_duplicate_computed_gotos::execute): Rewrite.
1417 2016-11-17 Jeff Law <law@redhat.com>
1420 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
1421 barrier prior to deallocating the stack.
1423 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1425 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
1426 to make better use of cmem loads in the case where a single bit is
1428 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
1430 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
1432 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
1434 (isa_names_table): Handle new features.
1436 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
1437 Andrew Senkevich <andrew.senkevich@intel.com>
1439 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
1440 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
1441 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
1442 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
1443 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
1444 * config/i386/avx5124fmapsintrin.h: New file.
1445 * config/i386/avx5124vnniwintrin.h: Ditto.
1446 * config/i386/constraints.md (h): New constraint.
1447 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
1448 * config/i386/driver-i386.c (host_detect_local_cpu):
1449 Detect avx5124fmaps, avx5124vnniw.
1450 * config/i386/i386-builtin-types.def: Add types
1451 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
1452 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
1453 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
1454 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
1455 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
1456 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
1457 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
1458 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
1459 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
1460 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
1461 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
1462 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
1463 __builtin_ia32_vp4dpwssds_mask): New.
1464 * config/i386/i386-c.c (ix86_target_macros_internal):
1465 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
1466 * config/i386/i386-modes.def: Fixed comment typos, added new
1467 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
1468 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
1470 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
1471 (ix86_option_override_internal): Handle new options.
1472 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
1474 (ix86_expand_builtin): Handle new builtins.
1475 (ix86_additional_allocno_class_p): New.
1476 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
1477 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
1478 (reg_class): Add MOD4_SSE_REGS.
1479 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
1480 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
1481 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
1482 avx5124vnniwintrin.h.
1483 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
1484 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
1485 (define_mode_iterator IMOD4): New.
1486 (define_mode_attr imod4_narrow): Ditto.
1487 (define_insn "mov<mode>"): Ditto.
1488 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1489 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1490 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1491 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1492 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1493 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1494 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1495 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1496 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1497 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1498 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1499 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1500 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1501 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1502 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1503 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1504 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1505 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1506 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1507 * genmodes.c (mode_size_inline): Extend return type.
1508 * machmode.h (mode_size, mode_base_align): Extend type.
1510 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
1513 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1514 the appropriate checks for SFmode/DFmode load/stores in GPR
1516 (fusion_addis_mem_combo_store): Likewise.
1517 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1518 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1519 d-form instructions for traditional Altivec registers.
1520 (emit_fusion_p9_load): Likewise.
1521 (emit_fusion_p9_store): Likewise.
1522 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1523 early clobber from scratch register. Do not match if the register
1524 being stored is the scratch register.
1525 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1526 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1527 instructions for traditional Altivec registers.
1528 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1529 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1530 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1532 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1535 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1536 being live in the function and lr needing to be saved. Distinguish
1537 between already saved pushable registers and registers to push.
1538 Check for LR being an available pushable register.
1540 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1542 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1543 string input is a string constant.
1544 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1545 via cmpstrnsi even if neither string is constant.
1547 2016-11-17 Jakub Jelinek <jakub@redhat.com>
1550 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1551 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1552 instead, return false if it is NULL, or doesn't fit into uhwi, or
1553 is larger or equal to targetm.max_anchor_offset.
1555 2016-11-17 Pip Cet <pipcet@gmail.com>
1556 Eric Botcazou <ebotcazou@adacore.com>
1558 PR rtl-optimization/78355
1559 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1560 needs to deal with unaligned accesses.
1561 * doc/tm.texi: Regenerate.
1562 * lra-constraints.c (simplify_operand_subreg): Only invoke
1563 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1565 2016-11-17 David Malcolm <dmalcolm@redhat.com>
1567 * input.c (selftest::test_lexer_string_locations_long_line): New
1569 (selftest::test_lexer_string_locations_raw_string_multiline): New
1571 (selftest::input_c_tests): Call the new functions, via
1572 for_each_line_table_case.
1574 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1576 * config/aarch64/aarch64.md (mov<mode>): Call
1577 aarch64_split_dimode_const_store on DImode constant stores.
1578 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1580 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1583 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1584 Richard Biener <rguenther@suse.de>
1586 PR tree-optimization/77848
1587 * tree-if-conv.c (tree_if_conversion): Always version loops unless
1588 the user specified -ftree-loop-if-convert.
1590 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1593 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1594 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1595 *thumb2_strd_base_neg): Recognize insn regardless of
1596 current_tune->prefer_ldrd_strd.
1597 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1600 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1602 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1605 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1607 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1609 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1610 * config/arc/arc-cpus.def (quarkse_em): Add.
1611 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1612 * config/arc/arc-opts.h (FPX_QK): Define.
1613 * config/arc/arc-tables.opt: Regenerate.
1614 * config/arc/arc.c (gen_compare_reg): Change.
1615 (arc_register_move_cost): Avoid Dy,Dx moves.
1616 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1617 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1618 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1620 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1621 (fix_truncsfsi2_fpu): Rename.
1622 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1623 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1624 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1625 * config/arc/t-multilib: Regenerate.
1627 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
1629 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1631 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1632 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1633 (avr_rtx_costs_1, extra_constraint_Q): Same.
1634 (avr_address_cost): Use SUBREG_P if possible.
1636 2016-11-17 Richard Biener <rguenther@suse.de>
1639 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1640 non-local goto into CFG.
1642 2016-11-17 Richard Biener <rguenther@suse.de>
1644 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1645 backward compatibility.
1646 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1647 * tree-if-conv.c (pass_if_conversion::gate): Do not test
1648 flag_tree_loop_if_convert_stores.
1649 (pass_if_conversion::execute): Likewise.
1651 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1653 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1654 const_double code before calling aarch64_float_const_zero_rtx_p.
1656 2016-11-17 Richard Biener <rguenther@suse.de>
1658 PR tree-optimization/78306
1659 * ipa-inline-analysis.c (initialize_inline_failed): Do not
1660 inhibit inlining if function calls cilk_spawn.
1661 (can_inline_edge_p): Likewise.
1663 2016-11-17 Richard Biener <rguenther@suse.de>
1666 * fold-const.c (negate_expr_p): Fix multiplication case.
1668 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
1671 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1673 (TARGET_INIT_LIBFUNCS): Delete definition and...
1674 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1677 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
1679 * config/netbsd-stdint.h: New.
1680 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1681 (x86_64-*-netbsd*): Likewise.
1683 2016-11-16 Andrew PInski <apinski@cavium.com>
1685 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1686 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1687 flag_aarch64_verbose_cost instead of checking for details dump.
1688 (aarch64_rtx_costs_wrapper): Likewise.
1690 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1692 PR rtl-optimization/78378
1693 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1694 inner only if pos is 0. Fix up formatting.
1696 2016-11-17 Alan Modra <amodra@gmail.com>
1698 PR rtl-optimization/78325
1699 PR rtl-optimization/70890
1700 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1703 2016-11-16 Jason Merrill <jason@redhat.com>
1705 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1707 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1708 Richard Biener <rguenther@suse.de>
1710 PR tree-optimization/77848
1711 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1712 an outer loop, only save basic block aux information for the inner
1714 (versionable_outer_loop_p): New function.
1715 (tree_if_conversion): Version the outer loop instead of the inner
1716 one if the pattern will be recognized for outer-loop
1719 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1721 * gcc/bb-reorder.c: Remove 'toplev.h' include.
1722 (pass_partition_blocks::gate): No longer check
1723 user_defined_section_attribute, instead check the function decl
1724 for a section attribute.
1725 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1726 set user_defined_section_attribute.
1727 * gcc/final.c (rest_of_handle_final): Likewise.
1728 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1729 * gcc/toplev.h: Remove declaration of
1730 user_defined_section_attribute.
1732 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1734 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1735 Explicitly switch between JR and JRC for the table jump. Adjust
1738 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1740 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1741 `insn_count' to 11 rather than 16.
1743 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1745 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1746 `ltu' rather than `leu' operation in the RTL pattern
1748 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1750 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1751 missing <d> instruction prefixes throughout. Correct
1754 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1756 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1757 rather than R_MIPS_JALR relocation in microMIPS code. Do not
1758 cancel short delay slots in PIC call relaxation.
1760 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1762 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1763 general register with general register or ARM constant into SP
1766 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1769 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1770 that loop->header == body_bb if broken_loop.
1772 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
1774 * tree-ssa-math-opts.c (bswap_replace): Remove test
1775 of SLOW_UNALIGNED_ACCESS.
1777 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
1779 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1780 is selected. Pass -mgomp to offload compiler in OpenMP case.
1781 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1782 declaration from nvptx.c.
1783 (nvptx_gen_shuffle): Declare.
1784 (nvptx_output_set_softstack): Declare.
1785 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1786 (need_softstack_decl): New variable.
1787 (need_unisimt_decl): New variable.
1788 (diagnose_openacc_conflict): New. Use it...
1789 (nvptx_option_override): ...here. Handle TARGET_GOMP.
1790 (nvptx_encode_section_info): Handle "shared" attribute.
1791 (write_as_kernel): Restrict to OpenACC target regions.
1792 (init_softstack_frame): New.
1793 (nvptx_init_unisimt_predicate): New.
1794 (write_omp_entry): New. Use it...
1795 (nvptx_declare_function_name): ...here to emit OpenMP target region
1796 entrypoints. Handle TARGET_SOFT_STACK. Call
1797 nvptx_init_unisimt_predicate.
1798 (nvptx_output_set_softstack): New.
1799 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
1800 (nvptx_gen_shuffle): Export.
1801 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
1803 (nvptx_print_operand): Fix handling of instruction predicates.
1804 (nvptx_get_unisimt_master): New helper function.
1805 (nvptx_get_unisimt_predicate): Ditto.
1806 (nvptx_call_insn_is_syscall_p): Ditto.
1807 (nvptx_unisimt_handle_set): Ditto.
1808 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
1809 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
1810 (nvptx_handle_shared_attribute): New. Use it...
1811 (nvptx_attribute_table): ... here (new entry).
1812 (nvptx_record_offload_symbol): Handle NULL attributes.
1813 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
1814 (nvptx_simt_vf): New.
1815 (TARGET_SIMT_VF): Define.
1816 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
1817 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
1818 -muniform-simt option is active.
1819 (STACK_SIZE_MODE): Define.
1820 (FIXED_REGISTERS): Adjust.
1821 (SOFTSTACK_SLOT_REGNUM): New.
1822 (SOFTSTACK_PREV_REGNUM): New.
1823 (REGISTER_NAMES): Adjust.
1824 (struct machine_function): New fields.
1825 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
1826 (UNSPEC_VOTE_BALLOT): Ditto.
1827 (UNSPEC_LANEID): Ditto.
1828 (UNSPECV_NOUNROLL): Ditto.
1829 (atomic): New attribute.
1830 (predicable): New attribute. Generate predicated forms via
1832 (br_true): Mark as not predicable.
1834 (br_true_uni): Ditto.
1835 (br_false_uni): Ditto.
1837 (trap_if_true): Ditto.
1838 (trap_if_false): Ditto.
1839 (nvptx_fork): Ditto.
1840 (nvptx_forked): Ditto.
1841 (nvptx_joining): Ditto.
1842 (nvptx_join): Ditto.
1843 (nvptx_barsync): Ditto.
1844 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
1845 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
1846 (allocate_stack_<mode>): Remove unused pattern.
1847 (set_softstack_insn): New pattern.
1848 (restore_stack_block): Handle for TARGET_SOFT_STACK.
1849 (nvptx_vote_ballot): New pattern.
1850 (omp_simt_lane): Ditto.
1851 (omp_simt_last_lane): Ditto.
1852 (omp_simt_ordered): Ditto.
1853 (omp_simt_vote_any): Ditto.
1854 (omp_simt_xchg_bfly): Ditto.
1855 (omp_simt_xchg_idx): Ditto.
1856 (nvptx_nounroll): Ditto.
1857 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
1858 (atomic_exchange<mode>): Ditto.
1859 (atomic_fetch_add<mode>): Ditto.
1860 (atomic_fetch_addsf): Ditto.
1861 (atomic_fetch_<logic><mode>): Ditto.
1862 * config/nvptx/nvptx.opt (msoft-stack): New option.
1863 (muniform-simt): Ditto.
1865 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
1866 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
1867 * doc/invoke.texi (msoft-stack): Document.
1868 (muniform-simt): Document
1870 * doc/tm.texi: Regenerate.
1871 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
1872 * target.def: Define it.
1873 * target-insns.def (omp_simt_lane): New.
1874 (omp_simt_last_lane): New.
1875 (omp_simt_ordered): New.
1876 (omp_simt_vote_any): New.
1877 (omp_simt_xchg_bfly): New.
1878 (omp_simt_xchg_idx): New.
1880 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1882 * config/mips/mips-protos.h (mips_set_text_contents_type): New
1884 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
1885 (ASM_OUTPUT_CASE_END): Likewise.
1886 * config/mips/mips.c (mips_set_text_contents_type): New function.
1887 (mips16_emit_constants): Record the pool's initial label number
1888 with the `consttable' insn. Emit a `consttable_end' insn at the end.
1889 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
1890 for `consttable' insns.
1891 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
1892 for `consttable_end' insns.
1893 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
1894 (consttable): Add operand.
1895 (consttable_end): New insn.
1897 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
1899 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
1900 * tree-if-conv.c (tree_if_conversion): Make public.
1901 * * tree-if-conv.h: New file.
1902 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
1903 dynamic alias checks for epilogues.
1904 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
1905 * tree-vect-loop.c: include tree-if-conv.h.
1906 (new_loop_vec_info): Add zeroing orig_loop_info field.
1907 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
1908 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
1909 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
1910 using passed argument.
1911 (vect_transform_loop): Check if created epilogue should be returned
1912 for further vectorization with less vf. If-convert epilogue if
1913 required. Print vectorization success for epilogue.
1914 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
1915 if it is required, pass loop_vinfo produced during vectorization of
1916 loop body to vect_analyze_loop.
1917 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1919 (LOOP_VINFO_ORIG_LOOP_INFO): New.
1920 (LOOP_VINFO_EPILOGUE_P): New.
1921 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
1922 (vect_do_peeling): Change prototype to return epilogue.
1923 (vect_analyze_loop): Add argument of loop_vec_info type.
1924 (vect_transform_loop): Return created loop.
1926 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1928 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
1929 component as used also if LR_REGNO is a live input to the bb.
1930 * df-scan.c (df_get_entry_block_def_set): Return immediately after
1931 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
1932 (df_get_exit_block_use_set): Ditto.
1933 * df.h (df_scan_flags): New enum.
1934 * shrink-wrap.c (try_shrink_wrapping_separate): Set
1935 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
1936 df_update_entry_block_defs and df_update_exit_block_uses
1937 at the start; clear the flag and call those functions at the end.
1939 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1940 Alan Hayward <alan.hayward@arm.com>
1941 David Sherwood <david.sherwood@arm.com>
1943 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
1944 nb_iterations to the number of latch iterations rather than the
1945 number of loop iterations.
1947 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1948 Alan Hayward <alan.hayward@arm.com>
1949 David Sherwood <david.sherwood@arm.com>
1951 * combine.c (maybe_swap_commutative_operands): New function.
1952 (combine_simplify_rtx): Use it.
1953 (change_zero_ext): Likewise.
1954 (make_compound_operation_int): New function, split out of...
1955 (make_compound_operation): ...here. Use
1956 maybe_swap_commutative_operands for both.
1958 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
1960 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
1961 (neon-vfpv3): New FPU, currently an alias for 'neon'.
1962 * arm/arm-tables.opt: Regenerated.
1963 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
1965 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
1966 and 'neon' are aliases for specific implementations.
1968 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1969 Alan Hayward <alan.hayward@arm.com>
1970 David Sherwood <david.sherwood@arm.com>
1972 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
1973 and use it in the final call to gen_rtx_fmt_ee.
1974 (expand_vec_cond_expr): Update accordingly.
1975 (expand_vec_cmp_expr): Likewise.
1977 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1978 Alan Hayward <alan.hayward@arm.com>
1979 David Sherwood <david.sherwood@arm.com>
1981 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
1983 2016-11-16 Richard Biener <rguenther@suse.de>
1986 * gimplify.c (gimplify_function_tree): Do not instrument
1987 GNU extern inline functions.
1989 2016-11-16 Martin Liska <mliska@suse.cz>
1992 * gimplify.c (gimplify_switch_expr): Always save previous
1993 gimplify_ctxp->live_switch_vars.
1995 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1997 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
1998 zero_extract operations to allow a movb to occur.
1999 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
2000 * testsuite/gcc.target/arc/movb-2.c: Likewise.
2001 * testsuite/gcc.target/arc/movb-5.c: Likewise.
2002 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
2005 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2006 Alan Hayward <alan.hayward@arm.com>
2007 David Sherwood <david.sherwood@arm.com>
2009 * expr.c (emit_group_load_1): Tighten check for whether an
2010 access involves only one operand of a CONCAT. Use extract_bit_field
2011 for constants if the bit range does span the whole operand.
2013 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2014 Alan Hayward <alan.hayward@arm.com>
2015 David Sherwood <david.sherwood@arm.com>
2017 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
2019 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2020 Alan Hayward <alan.hayward@arm.com>
2021 David Sherwood <david.sherwood@arm.com>
2023 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
2024 all three iteration counts with an any_* test. Use a single update
2025 for each count. Fix the calculation of nb_iterations_estimate.
2027 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2029 * config/pdp11/pdp11.c: Include dbxout.h.
2031 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
2033 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
2035 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2038 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
2039 proper ranges for an SBFX instruction.
2040 (extzv_t2): Likewise for UBFX.
2042 2016-11-16 Richard Biener <rguenther@suse.de>
2044 PR tree-optimization/78348
2045 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
2046 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
2047 (classify_partition): Set PKIND_MEMCPY if dependence analysis
2048 revealed no dependency, PKIND_MEMMOVE otherwise.
2050 2016-11-16 Jakub Jelinek <jakub@redhat.com>
2053 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
2054 it points to non-NULL tree, use it instead of ubsan_create_data.
2055 (instrument_si_overflow): Handle vector signed integer overflow
2057 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
2058 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
2059 vector IFN_UBSAN_CHECK_*.
2060 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
2061 pass it through to ubsan_build_overflow_builtin.
2062 (expand_neg_overflow, expand_mul_overflow): Likewise.
2063 (expand_vector_ubsan_overflow): New function.
2064 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
2065 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
2066 (expand_arith_overflow): Adjust expand_*_overflow callers.
2068 2016-11-16 Matthias Klose <doko@ubuntu.com>
2070 * doc/install.texi: Remove references to java/libjava.
2072 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
2074 * tree-ssa-coalesce.c (register_default_def): Remove
2075 register_ssa_partition.
2076 (create_outofssa_var_map): Likewise.
2077 * tree-ssa-live.c (register_ssa_partition_check): Remove.
2078 * tree-ssa-live.h (register_ssa_partition): Likewise.
2080 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2082 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
2083 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
2084 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
2085 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
2086 rtx when all sub-rtx are also permanent.
2087 (attr_eq): Simplify.
2088 (attr_copy_rtx): Remove.
2089 (make_canonical, get_attr_value): Use attr_equal_p.
2090 (copy_boolean): Rehash NOT.
2091 (simplify_test_exp_in_temp,
2092 optimize_attrs): Remove call to attr_copy_rtx.
2093 (attr_alt_intersection, attr_alt_union,
2094 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
2095 (make_automaton_attrs): Use attr_eq.
2097 2016-11-15 Matthias Klose <doko@ubuntu.com>
2099 * doc/install.texi: Remove references to java/libjava.
2100 * doc/sourcebuild.texi: Likewise.
2101 * doc/invoke.texi: Likewise.
2102 * doc/standards.texi: Likewise.
2104 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2105 Alan Hayward <alan.hayward@arm.com>
2106 David Sherwood <david.sherwood@arm.com>
2108 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
2110 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2111 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2112 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2113 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2114 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2115 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2116 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2118 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2119 Alan Hayward <alan.hayward@arm.com>
2120 David Sherwood <david.sherwood@arm.com>
2122 * dce.c (check_argument_store): Pass the size instead of
2123 the memory reference.
2124 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
2126 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2127 Alan Hayward <alan.hayward@arm.com>
2128 David Sherwood <david.sherwood@arm.com>
2130 * alias.c (canon_rtx): Use simplify_gen_binary.
2132 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2133 Alan Hayward <alan.hayward@arm.com>
2134 David Sherwood <david.sherwood@arm.com>
2136 * rtl.h (load_extend_op): Declare.
2137 * rtlanal.c (load_extend_op): New function.
2138 (nonzero_bits1): Use it.
2139 (num_sign_bit_copies1): Likewise.
2140 * cse.c (cse_insn): Likewise.
2141 * fold-const.c (fold_single_bit_test): Likewise.
2142 (fold_unary_loc): Likewise.
2143 * fwprop.c (free_load_extend): Likewise.
2144 * postreload.c (reload_cse_simplify_set): Likewise.
2145 (reload_cse_simplify_operands): Likewise.
2146 * combine.c (try_combine): Likewise.
2147 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
2148 subreg_lowpart_p checks.
2150 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2151 Alan Hayward <alan.hayward@arm.com>
2152 David Sherwood <david.sherwood@arm.com>
2154 * combine.c (simplify_shift_const_1): Use the number of bits
2155 in the inner mode to determine the range of the shift.
2156 When handling shifts of vectors, skip any rules that apply
2159 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2160 Alan Hayward <alan.hayward@arm.com>
2161 David Sherwood <david.sherwood@arm.com>
2163 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
2166 2016-11-15 Matthias Klose <doko@ubuntu.com>
2168 * doc/install.texi: Remove references to gcj/libjava.
2169 * doc/invoke.texi: Likewise.
2171 2016-11-15 Jeff Law <law@redhat.com>
2173 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
2174 parameter. Callers changed.
2175 (check-subpath_and_update_thread_path): Extracted from
2176 fsm_find_control_statement_thread_paths.
2177 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
2178 (handle_phi, handle_assignment): Allow any constant node, not
2181 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
2183 * config/arc/arc-arch.h: New file.
2184 * config/arc/arc-arches.def: Likewise.
2185 * config/arc/arc-cpus.def: Likewise.
2186 * config/arc/arc-options.def: Likewise.
2187 * config/arc/t-multilib: Likewise.
2188 * config/arc/genmultilib.awk: Likewise.
2189 * config/arc/genoptions.awk: Likewise.
2190 * config/arc/arc-tables.opt: Likewise.
2191 * config/arc/driver-arc.c: Likewise.
2192 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
2193 * common/config/arc/arc-common.c (arc_handle_option): Trace
2195 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
2196 options; check for supported cpu against arc-cpus.def file.
2197 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
2198 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
2199 * config/arc/arc-c.def: Add emacs local variables.
2200 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
2201 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
2202 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
2203 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
2204 (DEFAULT_arc_fpu_build): Define.
2205 (DEFAULT_arc_mpy_option): Define.
2206 * config/arc/arc-protos.h (arc_init): Delete.
2207 * config/arc/arc.c (arc_cpu_name): New variable.
2208 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
2209 (arc_arc700, arc_arc600, arc_arc601): New variable.
2210 (arc_init): Add static; remove selection of default tune value,
2211 cleanup obsolete error messages.
2212 (arc_override_options): Make use of .def files for selecting the
2213 right cpu and option configurations.
2214 * config/arc/arc.h (stdbool.h): Include.
2215 (TARGET_CPU_DEFAULT): Define.
2216 (CPP_SPEC): Remove mcpu=NPS400 handling.
2217 (arc_cpu_to_as): Declare.
2218 (EXTRA_SPEC_FUNCTIONS): Define.
2219 (OPTION_DEFAULT_SPECS): Likewise.
2220 (ASM_DEFAULT): Remove.
2221 (ASM_SPEC): Use arc_cpu_to_as.
2222 (DRIVER_SELF_SPECS): Remove deprecated options.
2223 (arc_base_cpu): Declare.
2224 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
2225 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
2227 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
2228 * config/arc/arc.md (attr_cpu): Remove.
2229 * config/arc/arc.opt (mno-mpy): Deprecate.
2230 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
2231 (mcpu=ARCHS): Remove.
2232 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
2234 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
2235 (arc_fpu): Use new defines.
2236 (mpy-option): Change to use numeric or string like inputs.
2237 * config/arc/t-arc (driver-arc.o): New target.
2238 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
2239 * config/arc/t-arc-newlib: Delete.
2240 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
2241 * doc/invoke.texi (ARC): Update arc options.
2243 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
2245 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
2246 insn at the beginning of the constant pool.
2247 (mips_insert_insn_pseudos): New function.
2248 (mips_machine_reorg2): Call it.
2249 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
2250 UNSPEC_INSN_PSEUDO enum values.
2251 (insn_pseudo, consttable): New insns.
2253 2016-11-15 Michael Matz <matz@suse.de>
2255 PR missed-optimization/77881
2256 * combine.c (simplify_comparison): Remove useless subregs
2257 also inside the loop, not just after it.
2258 (make_compound_operation): Recognize some subregs as being
2261 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2262 Alan Hayward <alan.hayward@arm.com>
2263 David Sherwood <david.sherwood@arm.com>
2265 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
2268 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2270 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
2271 for using xxinsertw and vinsert{b,h} on ISA 3.0.
2273 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
2274 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
2275 vinsert{b,h} on ISA 3.0.
2277 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2279 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2280 and cmpnop in two steps: first the ones not accessed in original gimple
2281 expression in a endian independent way and then the ones not accessed
2282 in the final result in an endian-specific way.
2283 (bswap_replace): Stop doing big endian adjustment.
2285 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
2287 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
2288 (*ashl<mode>3_doubleword): Ditto.
2290 2016-11-14 Martin Liska <mliska@suse.cz>
2292 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
2294 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
2295 Richard Biener <rguenther@suse.de>
2297 * doc/invoke.texi (fgimple): Document.
2298 * dumpfile.h (TDF_GIMPLE): Add.
2299 * dumpfile.c (dump_options): Add gimple.
2300 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
2302 (dump_gimple_label): Likewise.
2303 (dump_gimple_phi): Likewise.
2304 (dump_gimple_bb_header): Likewise.
2305 (dump_phi_nodes): Likewise.
2306 (pp_cfg_jump): Likewise. Pass in dump flags.
2307 (dump_implicit_edges): Adjust.
2308 * passes.c (pass_init_dump_file): Do not dump function header
2310 * tree-cfg.c (dump_function_to_file): Dump function return type
2311 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
2313 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
2314 (dump_generic_node): Likewise.
2315 * function.h (struct function): Add pass_startwith member.
2316 * passes.c (execute_one_pass): Implement startwith.
2317 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
2318 and assign proper version for parsed ssa names.
2319 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
2320 * internal-fn.c (expand_PHI): New function.
2321 * internal-fn.h (expand_PHI): Declared here.
2322 * internal-fn.def: New defination for PHI.
2323 * tree-cfg.c (lower_phi_internal_fn): New function.
2324 (build_gimple_cfg): Call it.
2325 (verify_gimple_call): Condition for passing label as arg in internal
2327 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
2328 present PHIs with arguments.
2330 2016-11-14 Martin Liska <mliska@suse.cz>
2333 * common.opt: Add prefer-atomic as a new enum value for
2335 * coretypes.h: Likewise.
2336 * doc/invoke.texi: Document the new option value.
2337 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
2338 * tree-profile.c (tree_profiling): Select default value
2339 of -fprofile-update when 'prefer-atomic' is selected.
2341 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2343 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
2344 (cortex_a57_alu_shift): ...here.
2346 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2348 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
2350 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2351 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2352 (<optab>si3_insn_uxtw): Likewise.
2353 (<optab><mode>3_insn): Likewise.
2354 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
2355 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
2356 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
2357 (<optab><mode>): Likewise.
2358 (insv<mode>): Likewise.
2359 (andim_ashift<mode>_bfiz): Likewise.
2360 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
2361 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2362 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
2363 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
2364 (exynos_m1_alu_p): Likewise.
2365 * config/arm/types.md: Add bfx.
2366 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
2368 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2370 * config/aarch64/aarch64.c (cortexa57_vector_cost):
2371 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
2373 2016-11-14 Richard Biener <rguenther@suse.de>
2375 PR tree-optimization/78312
2376 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
2377 flow-sensitive info.
2379 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
2382 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
2383 * config/avr/avr.opt (-mabsdata): New option.
2384 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
2385 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
2386 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
2387 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
2388 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
2389 spec depending on AVR_ISA_LDS.
2390 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
2392 2016-11-13 Jakub Jelinek <jakub@redhat.com>
2394 * match.pd: Don't try to compare addresses of variables with
2397 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
2399 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
2400 (propagate_vr_accross_jump_function): Handle unary expressions.
2401 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2402 (load_from_param_1): New.
2403 (load_from_unmodified_param): Factor common part into load_from_param_1.
2404 (load_from_param): New.
2405 (compute_complex_assign_jump_func): Handle unary expressions.
2406 (update_jump_functions_after_inlining): Likewise.
2407 (ipa_write_jump_function): Likewise.
2408 (ipa_read_jump_function): Likewise.
2410 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2413 * doc/invoke.texi: Document Wrestrict.
2414 * pretty-print.c (pp_format): Add case for "Z" specifier.
2415 (test_pp_format): Test "Z" specifier.
2417 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2419 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
2420 original function needs a static chain.
2422 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
2425 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
2428 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2431 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2432 return early if !optional_tbtab.
2434 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
2436 PR rtl-optimization/59461
2437 * doc/rtl.texi (paradoxical subregs): Add missing word.
2438 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
2439 in modes with precision larger than that of last_set_mode.
2440 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
2441 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
2442 REGs to paradoxical SUBREGs.
2443 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
2444 larger than a word before invoking LOAD_EXTEND_OP on it.
2446 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2449 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
2450 element order for little endian ordering.
2452 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
2453 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
2456 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
2459 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
2460 when calculating operand 2.
2461 (rotate to rotatex zext splitter): Ditto.
2463 2016-11-11 Jeff Law <law@redhat.com>
2465 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
2467 (stmt_uses_name_in_undefined_way): New function, extracted from
2468 find_implicit_erroneous_behavior and extended for div/mod case.
2469 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
2470 find_explicit_erroneous_behavior and extended for div/mod case.
2471 (find_implicit_erroneous_behavior): Use new helper function.
2472 (find_explicit_erroneous_behavior): Use new helper function.
2474 2016-11-11 Richard Biener <rguenther@suse.de>
2476 PR tree-optimization/71575
2477 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2480 2016-11-11 Richard Biener <rguenther@suse.de>
2483 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2484 about uninitialized destination arg of BIT_INSERT_EXPR.
2486 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
2489 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2490 terminology. Expand to remove ambiguity.
2492 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2494 PR rtl-optimization/78232
2495 * combine.c (try_combine): Add a big comment about why reusing i2dest
2497 (change_zero_ext): Do not call simplify_gen_binary, do the
2498 simplifications manually.
2500 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2502 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2503 enable HImode and QImode to go in vector registers by default if
2504 the -mvsx-small-integer option is enabled.
2505 (rs6000_secondary_reload_simple_move): Likewise.
2506 (rs6000_preferred_reload_class): Don't force integer constants to
2507 be loaded into vector registers that we can easily make into
2508 memory (or being created in the GPRs and moved over with direct move).
2509 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2510 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2511 vector extraction on ISA 3.0 when the scalar integer can be
2512 allocated in vector registers. Generate the VEC_SELECT directy,
2513 and don't use UNSPEC's to avoid having the scalar type in a vector
2514 register. Make the expander target registers, and let the
2515 combiner fold in results storing to memory, if the machine
2517 (vsx_extract_<mode>_di): Likewise.
2518 (vsx_extract_<mode>_p9): Likewise.
2519 (vsx_extract_<mode>_di_p9): Likewise.
2520 (vsx_extract_<mode>_store_p9): Likewise.
2521 (vsx_extract_si): Likewise.
2522 (vsx_extract_<mode>_p8): Likewise.
2523 (p9_lxsi<wd>zx): Delete, no longer used.
2524 (p9_stxsi<wd>x): Likewise.
2525 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2526 integers in vector registers for ISA 3.0.
2527 (QHI): Update comment.
2528 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2529 vector extract instructions in sign/zero extend.
2530 (zero_extendhi<mode>): Likewise.
2531 (extendqi<mode>): Likewise.
2532 (extendhi<mode>2): Likewise.
2533 (HImode splitter for load/sign extend in vector register): Likewise.
2534 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2535 optimizing floating point conversions to/from small data types and
2536 rewrite it to support QImode/HImode being allowed in vector
2537 registers on ISA 3.0.
2538 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2539 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2540 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2541 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2542 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2543 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2544 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2545 VSPLITISW on ISA 2.07.
2546 (movhi_internal): Combine movhi_internal and movqi_internal into
2547 one mov<mode>_internal with an iterator. Add support for QImode
2548 and HImode being allowed in vector registers. Make large number
2549 of attributes and constraints easier to read.
2550 (movqi_internal): Likewise.
2551 (mov<mode>_internal): Likewise.
2552 (movdi_internal64): Fix constraint to allow loading -16..15 with
2553 VSPLITISW on ISA 2.07.
2554 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2557 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
2559 PR rtl-optimization/78241
2560 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2561 but emit initial peel copy if niter expr is not reliable.
2563 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2565 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2566 (maybe_record_trace_start): If the CFI is different on the new and
2567 old paths, print out both to the dump file before ICEing.
2569 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
2571 * target.def (additional_allocno_class_p): New.
2572 * hooks.h (hook_bool_reg_class_t_false): New prototype.
2573 * hooks.c (hook_bool_reg_class_t_false): New.
2574 * ira.c (setup_allocno_and_important_classes): Use the new hook.
2575 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2576 * doc/tm.texi: Update.
2578 2016-11-10 Jason Merrill <jason@redhat.com>
2580 * gengtype.c (new_structure): Append to structures list.
2581 (find_structure): Likewise.
2583 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
2585 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2586 this_dir is 2. Check for this_dir non-zero before dir != this_dir
2589 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2591 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2592 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2594 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
2595 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2596 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
2597 teams distribute parallel for simd even to distribute and teams
2598 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
2599 OMP_CLAUSE_DEPEND_SINK case.
2600 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2601 (omp_no_lastprivate): Removed.
2602 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2603 (gimplify_omp_for): Likewise.
2604 (computable_teams_clause): Fail for automatic vars from current
2605 function not yet seen in bind expr.
2606 * langhooks.c (lhd_omp_scalar_p): New function.
2607 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2608 * varpool.c (varpool_node::get_create): Set node->offloading
2609 even for DECL_EXTERNAL decls.
2610 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2611 (LANG_HOOKS_OMP_SCALAR_P): Define.
2612 (LANG_HOOKS_DECLS): Use it.
2614 2016-11-10 Martin Liska <mliska@suse.cz>
2617 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2618 only when SWITCH_BODY is a BIND_EXPR.
2620 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
2623 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2624 on the context only when it has no DIE yet.
2626 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
2628 * arm.h (target_cpus): Delete.
2629 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2630 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2631 (all_architectures): Likewise.
2632 (arm_option_override): Adjust use of CPU enums.
2633 (arm_sched_reorder): Likewise.
2634 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2635 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2636 * arm/genopt.sh (processor_type): Prefix enumeration entries with
2638 * arm-tables.opt: Regenerated.
2640 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
2642 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2644 * config/aarch64/aarch64-tune.md: Regenerated.
2645 * config/arm/arm-cores.def (falkor): New core.
2646 * config/arm/arm-tables.opt: Regenerated.
2647 * config/arm/arm-tune.md: Regenerated.
2648 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2649 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2650 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2651 (ARM Options/-mtune): Likewise.
2653 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2656 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2658 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2659 (propagate_vr_accross_jump_function): Likewise.
2660 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2661 (load_from_param_1): New.
2662 (load_from_unmodified_param): Factor common part into load_from_param_1.
2663 (load_from_param): New.
2664 (compute_complex_assign_jump_func): Handle unary expressions.
2665 (ipa_write_jump_function): Likewise.
2666 (ipa_read_jump_function): Likewise.
2668 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2670 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2671 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2672 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2675 2016-11-09 David Malcolm <dmalcolm@redhat.com>
2677 * print-rtl-function.c: Include varasm.h.
2678 (print_any_param_name): New function.
2679 (print_param): New function.
2680 (print_rtx_function): Call print_param for each argument.
2681 * print-rtl.c (rtx_writer::finish_directive): New function.
2682 * print-rtl.h (rtx_writer::finish_directive): New decl.
2684 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
2687 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2688 operand 0 as earlyclobber.
2689 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2691 2016-11-09 Martin Liska <mliska@suse.cz>
2693 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2695 2016-11-09 Jakub Jelinek <jakub@redhat.com>
2698 * builtins.c (expand_builtin_memcmp): Formatting fix.
2700 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2701 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2702 or of them, renumber other enumerators.
2703 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2704 * doc/invoke.texi: Document -fsanitize=shift-base and
2705 -fsanitize-shift-exponent, document -fsanitize=shift as
2706 having those 2 suboptions.
2708 2016-11-09 Richard Biener <rguenther@suse.de>
2710 * fold-const.c (tree_swap_operands_p): Remove unused arg.
2711 * fold-const.c (tree_swap_operands_p): Likewise.
2712 (fold_binary_loc): Adjust.
2713 (fold_ternary_loc): Likewise.
2714 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2715 * gimple-fold.c (fold_stmt_1): Likewise.
2716 * gimple-match-head.c (gimple_resimplify2): Likewise.
2717 (gimple_resimplify3): Likewise.
2718 (gimple_simplify): Likewise.
2719 * tree-ssa-dom.c (record_equality): Likewise.
2720 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2721 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2722 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2724 2016-11-09 Richard Biener <rguenther@suse.de>
2726 * tree-ssa-dom.c (canonicalize_comparison): Remove.
2727 (optimize_stmt): Remove redundant pre-propagation canonicalization
2728 of comparison operand order.
2730 2016-11-09 Martin Liska <mliska@suse.cz>
2732 * fold-const-call.c (fold_const_call): Fix the folding.
2734 2016-11-09 Richard Biener <rguenther@suse.de>
2736 * common.opt (flag_evaluation_order): Remove.
2737 * expr.c (expand_operands): Remove code guarded by
2738 flag_evaluation_order.
2739 * fold-const.c (reorder_operands_p): Remove, it always returns
2741 (negate_expr_p): Remove calls to reorder_operands_p.
2742 (fold_negate_expr): Likewise.
2743 (tree_swap_operands_p): Likewise.
2744 (fold_binary_loc): Likewise.
2746 2016-11-09 Andreas Schwab <schwab@suse.de>
2749 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2750 insns operating on a register.
2752 2016-11-09 Richard Biener <rguenther@suse.de>
2754 PR tree-optimization/78007
2755 * tree-vect-stmts.c (vectorizable_bswap): New function.
2756 (vectorizable_call): Call vectorizable_bswap for
2757 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2759 2016-11-09 Richard Biener <rguenther@suse.de>
2761 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2762 Look at the DR_BASE_ADDRESS object for forcing alignment.
2764 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2766 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2767 (propagate_vr_accross_jump_function): Likewise.
2768 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2769 (load_from_param_1): New.
2770 (load_from_unmodified_param): Factor common part into load_from_param_1.
2771 (load_from_param): New.
2772 (compute_complex_assign_jump_func): Handle unary expressions.
2773 (ipa_write_jump_function): Likewise.
2774 (ipa_read_jump_function): Likewise.
2776 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2779 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2780 Also fold constant passed as argument while computing value range.
2781 (propagate_constants_accross_call): Pass param type.
2782 * ipa-prop.c: export ipa_get_callee_param_type.
2783 * ipa-prop.h: export ipa_get_callee_param_type.
2785 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2787 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2788 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2790 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2792 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
2793 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
2794 ASAN_STACK_MAGIC_MIDDLE.
2795 (asan_global_struct): Increase the size of fields.
2796 (asan_add_global): Add new field constructor.
2797 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
2798 __asan_version_mismatch_check_v8.
2800 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
2802 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
2805 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
2808 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2809 Handle ASHIFT and LSHIFTRT.
2810 (dimode_scalar_chain::compute_convert_gain): Ditto.
2811 (dimode_scalar_chain::convert_insn): Ditto.
2813 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2815 * gimple-ssa-store-merging.c: Include selftest.h
2816 (verify_array_eq): New function.
2817 (verify_shift_bytes_in_array): Likewise.
2818 (verify_shift_bytes_in_array_right): Likewise.
2819 (verify_clear_bit_region): Likewise.
2820 (verify_clear_bit_region_be): Likewise.
2821 (store_merging_c_tests): Likewise.
2822 * selftest.h (store_merging_c_tests): Declare prototype.
2823 * selftest-run-tests.c (selftest::run_tests): Run
2824 store_merging_c_tests.
2826 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2828 * config/arm/arm.opt (mold-rtx-costs): Delete.
2829 (mnew-generic-costs): Delete.
2830 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
2831 * config/arm/arm.c (arm_rtx_costs_1): Delete.
2832 (arm_size_rtx_costs): Likewise.
2833 (arm_slowmul_rtx_costs): Likewise.
2834 (arm_fastmul_rtx_costs): Likewise.
2835 (arm_xscale_rtx_costs): Likewise.
2836 (arm_9e_rtx_costs): Likewise.
2837 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2838 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2839 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2840 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2841 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2842 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
2843 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
2844 arm_cortex_m7_tune):
2845 Delete rtx_costs field.
2846 (arm_new_rtx_costs): Rename to...
2847 (arm_rtx_costs_internal): ... This.
2848 (arm_rtx_costs): Remove old way of doing rtx costs.
2850 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2852 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
2853 (arm_fastmul_tune): Likewise.
2854 (arm_strongarm_tune): Likewise.
2855 (arm_xscale_tune): Likewise.
2856 (arm_9e_tune): Likewise.
2857 (arm_marvell_pj4_tune): Likewise.
2858 (arm_v6t2_tune): Likewise.
2859 (arm_v6m_tune): Likewise.
2860 (arm_fa726te_tune): Likewise.
2862 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2864 PR tree-optimization/78234
2865 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
2868 2016-11-08 Martin Liska <mliska@suse.cz>
2871 * dbgcnt.def: Add new debug counter asan_use_after_scope.
2872 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
2873 with a value expr. Do not add artificial variables to
2874 live_switch_vars. Use the debug counter.
2875 (gimplify_target_expr): Use the debug counter.
2876 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
2877 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
2878 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
2880 2016-11-08 Richard Biener <rguenther@suse.de>
2882 * tree-vect-stmts.c (get_group_load_store_type): If the
2883 access is aligned do not trigger peeling for gaps.
2884 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
2885 force alignment of vars with DECL_USER_ALIGN.
2887 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
2889 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
2891 2016-11-08 Richard Biener <rguenther@suse.de>
2893 PR tree-optimization/78205
2894 * tree-vect-stmts.c (vectorizable_load): Move check whether
2895 we may run into gaps when BB vectorizing SLP permutations ...
2896 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
2897 here where we can do a more precise check.
2899 2016-11-08 Richard Biener <rguenther@suse.de>
2901 PR tree-optimization/78224
2902 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2903 Split the fallthru edge in case its successor may have PHIs.
2904 Do not free dominance info.
2906 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2909 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2910 EH info even for bzhi and pdep/pext.
2912 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
2914 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
2915 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
2917 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2919 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
2921 * config/rs6000/vector.md (div<mode>3): Ditto.
2923 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
2925 * configure.ac (.hidden): Change to conftest_s string. Provide string
2927 (gcc_cv_ld_hidden): Yes for AIX.
2928 * configure: Regenerate.
2930 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
2932 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
2933 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
2934 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
2935 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2936 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
2937 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
2939 (rs6000_xcoff_visibility): New.
2940 (rs6000_xcoff_declare_function_name): Add visibility support.
2941 (rs6000_xcoff_asm_globalize_decl_name): New.
2942 (rs6000_xcoff_asm_output_aligned_decl_common): New.
2943 (rs6000_asm_weaken_decl): New.
2944 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
2945 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
2948 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
2951 * incpath.c (remove_dup): Also silently ignore EPERM.
2953 2016-11-07 Martin Jambor <mjambor@suse.cz>
2955 * tree.c (verify_type_variant): Use pointer comparison to check that
2956 TYPE_SIZE_UNIT match.
2958 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2961 * dse.c (dse_step5): Call scan_reads even if just
2962 insn_info->frame_read. Improve and fix dump file messages.
2965 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
2966 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
2968 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2971 * match.pd: Add following two patterns:
2972 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
2973 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
2975 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
2977 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
2978 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
2979 * rtl.h (duplicate_reg_notes): Declare.
2980 * rtlanal.c (duplicate_reg_note): New function.
2982 PR rtl-optimization/77309
2983 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
2984 don't assume an equality comparison for plain COMPARE.
2985 (simplify_comparison): Pass a more accurate code to
2986 make_compound_operation.
2988 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
2990 * target.def (compute_pressure_classes): New target hook.
2991 * doc/tm.texi.in: Document it.
2992 * doc/tm.texi: Regenerate.
2993 * ira.c (setup_pressure_classes): Call target hook if defined.
2995 2016-11-07 David Malcolm <dmalcolm@redhat.com>
2997 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
2999 (rtx_writer::print_rtx): In compact mode, omit trailing operands
3000 that have the default values.
3001 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
3003 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
3004 label string from expected dump.
3005 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
3008 2016-11-07 Jakub Jelinek <jakub@redhat.com>
3011 * alias.c (nonoverlapping_memrefs_p): If one decl is
3012 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
3014 2016-11-07 Richard Biener <rguenther@suse.de>
3017 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3020 2016-11-07 Richard Biener <rguenther@suse.de>
3022 PR tree-optimization/78218
3023 * gimple-ssa-store-merging.c
3024 (pass_store_merging::terminate_all_aliasing_chains):
3025 Drop unused argument, fix alias check to also consider uses.
3026 (pass_store_merging::execute): Adjust.
3028 2016-11-07 Richard Biener <rguenther@suse.de>
3030 PR tree-optimization/78228
3031 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
3034 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3037 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
3038 aarch64_simd_shift_imm_<mode> predicate for operand 1.
3039 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
3040 to restrict them to an appropriate range and add FAIL check if the
3041 region they specify is out of range. Delete useless constraint
3043 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
3044 2 and 3 to restrict their range and add pattern predicate.
3046 2016-11-07 Martin Liska <mliska@suse.cz>
3048 * asan.c (enum asan_check_flags): Move the enum to header file.
3049 (asan_init_shadow_ptr_types): Make type creation more generic.
3050 (shadow_mem_size): New function.
3051 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
3052 Rewritten stack unpoisoning code.
3053 (build_shadow_mem_access): Add new argument return_address.
3054 (instrument_derefs): Instrument local variables if use after scope
3055 sanitization is enabled.
3056 (asan_store_shadow_bytes): New function.
3057 (asan_expand_mark_ifn): Likewise.
3058 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
3059 * asan.h (enum asan_mark_flags): Moved here from asan.c
3060 (asan_protect_stack_decl): Protect all declaration that need
3062 (asan_sanitize_use_after_scope): New function.
3063 (asan_no_sanitize_address_p): Likewise.
3064 * cfgexpand.c (partition_stack_vars): Consider
3065 asan_sanitize_use_after_scope in condition.
3066 (expand_stack_vars): Likewise.
3067 * common.opt (-fsanitize-address-use-after-scope): New option.
3068 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3069 Explain the parameter.
3070 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
3071 * gimplify.c (build_asan_poison_call_expr): New function.
3072 (asan_poison_variable): Likewise.
3073 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
3074 variables that have address taken.
3075 (gimplify_decl_expr): Likewise.
3076 (gimplify_target_expr): Likewise for C++ temporaries.
3077 (sort_by_decl_uid): New function.
3078 (gimplify_expr): Unpoison all variables for a label we can jump
3079 from outside of a scope.
3080 (gimplify_switch_expr): Unpoison variables defined in the switch
3082 (gimplify_function_tree): Clear asan_poisoned_variables.
3083 (asan_poison_variables): New function.
3084 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
3085 * internal-fn.c (expand_ASAN_MARK): New function.
3086 * internal-fn.def (ASAN_MARK): Declare.
3087 * opts.c (finish_options): Handle -fstack-reuse if
3088 -fsanitize-address-use-after-scope is enabled.
3089 (common_handle_option): Enable address sanitization if
3090 -fsanitize-address-use-after-scope is enabled.
3091 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
3093 * params.h: Likewise.
3094 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
3095 * sanitizer.def: Define __asan_poison_stack_memory and
3096 __asan_unpoison_stack_memory functions.
3097 * asan.c (asan_mark_poison_p): New function.
3098 (transform_statements): Handle asan_mark_poison_p calls.
3099 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
3101 2016-11-07 Tamar Christina <tamar.christina@arm.com>
3104 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
3106 2016-11-07 Martin Liska <mliska@suse.cz>
3108 * tree-profile.c (gimple_gen_time_profiler): Set proper type
3109 to time_profiler_counter_ptr.
3111 2016-11-07 Richard Biener <rguenther@suse.de>
3113 PR tree-optimization/37150
3114 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
3116 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
3117 (vect_analyze_slp_cost_1): Account for the real number of
3118 permutations emitted and for dead loads.
3119 (vect_transform_slp_perm_load): Add n_perms parameter counting
3120 the number of emitted permutations.
3121 * tree-vect-stmts.c (vectorizable_load): Adjust.
3123 2016-11-07 Richard Biener <rguenther@suse.de>
3125 PR tree-optimization/78189
3126 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
3127 alignment computation.
3129 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
3131 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
3133 2016-11-05 Martin Sebor <msebor@redhat.com>
3135 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
3138 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
3142 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
3144 2016-11-04 Jakub Jelinek <jakub@redhat.com>
3147 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
3148 doesn't have rtl set.
3150 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3152 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
3153 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
3154 rs6000_gimple_fold_builtin.
3155 (rs6000_gimple_fold_builtin): New function. Add handling for
3156 early expansion of vector addition builtins.
3158 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3160 * expr.h (copy_blkmode_from_reg): Delete.
3161 * expr.c (copy_blkmode_from_reg): Make static.
3163 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3165 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
3166 * combine.c (LOAD_EXTEND_OP): Delete.
3167 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
3168 * cse.c (LOAD_EXTEND_OP): Delete.
3169 * fold-const.c (LOAD_EXTEND_OP): Likewise.
3170 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
3171 * postreload.c (LOAD_EXTEND_OP): Delete.
3172 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
3173 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
3174 (find_reloads): Likewise.
3175 * reload1.c (eliminate_regs_1): Likewise.
3176 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
3177 (num_sign_bit_copies1): Likewise.
3179 2016-11-04 David Malcolm <dmalcolm@redhat.com>
3181 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
3182 (selftest::ix86_test_dumping_hard_regs): New function.
3183 (selftest::ix86_run_selftests): New function.
3184 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
3185 selftest::ix86_run_selftests.
3186 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
3187 * doc/tm.texi: Regenerate
3188 * selftest-rtl.h: New file.
3189 * rtl-tests.c: Include "selftest-rtl.h".
3190 (selftest::assert_rtl_dump_eq): Make non-static.
3191 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
3192 (selftest::test_dumping_regs): Update comment.
3193 * selftest-run-tests.c: Include "target.h".
3194 (selftest::run_tests): If non-NULL, call
3195 targetm.run_target_selftests.
3196 * target.def (run_target_selftests): New hook.
3198 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3200 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
3201 representative core for this architecture.
3202 * config/arm/arm-cores.def (cortex-m33): Define new processor.
3203 * config/arm/arm-tables.opt: Regenerate.
3204 * config/arm/arm-tune.md: Likewise.
3205 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
3206 valid -mcpu options.
3207 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
3209 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3211 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
3212 representative core for this architecture.
3213 * config/arm/arm-cores.def (cortex-m23): Define new processor.
3214 * config/arm/arm-tables.opt: Regenerate.
3215 * config/arm/arm-tune.md: Likewise.
3216 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
3217 this tuning parameters apply to in the comment.
3218 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
3219 valid -mcpu options.
3220 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
3222 2016-11-04 Bin Cheng <bin.cheng@arm.com>
3224 * fold-const.c (fold_cond_expr_with_comparison): Remove call
3225 to pedantic_non_lvalue_loc. Remove useless code for lvalue
3226 where cond_expr can't be a lvalue.
3228 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
3230 * config/arc/arc.c (arc_process_double_reg_moves): Use
3232 * config/arc/arc.md (movsi_insn): Disable unsupported move
3233 instructions for ARCv2 cores.
3234 (movdi): Use prepare_move_operands.
3235 (movsf, movdf): Use move_dest_operand predicate.
3236 * config/arc/constraints.md (Chs): Enable when barrel shifter is
3238 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
3239 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
3241 (dexcl_3op_peep2_insn_nores): Likewise.
3242 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
3243 (LINK_COMMAND_SPEC): Remove.
3245 2016-11-04 Richard Biener <rguenther@suse.de>
3248 * loop-invariant.c (find_exits): Record entering inner
3249 loops as possibly exiting to handle infinite sub-loops.
3250 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
3251 (fill_always_executed_in_1): Honor infinite child loops.
3253 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3256 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
3257 has already been adjusted for endianness, so don't adjust it any
3261 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
3262 ICmode unless we have standard PowerPC floating point.
3263 * config/rs6000/rs6000.md (FP iterator): Likewise.
3264 (FMOVE128 iterator): Likewise.
3266 2016-11-03 Jakub Jelinek <jakub@redhat.com>
3267 Alexandre Oliva <aoliva@redhat.com>
3268 Jason Merrill <jason@redhat.com>
3272 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
3274 * langhooks.c (lhd_type_dwarf_attribute): New function.
3275 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
3276 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
3277 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
3278 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
3279 (check_qualified_type, check_aligned_type): Call it.
3280 * dwarf2out.c (modified_type_die): Don't use type_main_variant
3281 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3282 check_base_type and check_lang_type.
3283 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
3284 return early. For pointer-to-data-member add DW_AT_use_location
3286 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
3288 (gen_type_die_with_usage): Don't use type_main_variant
3289 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3290 check_base_type and check_lang_type. Formatting fixes. Call
3291 get_debug_type langhook.
3293 2016-11-03 Jason Merrill <jason@redhat.com>
3295 * tree.c (check_lang_type): New.
3296 (check_qualified_type): Use it.
3297 (check_aligned_type): Use it.
3298 * tree.h: Declare it.
3300 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
3302 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
3303 (arm*-freebsd*): Likewise.
3304 (arm*-*-netbsdelf*): Likewise.
3305 (arm*-*-linux*): Likewise.
3306 (arm*-*-uclinux*eabi*): Likewise.
3307 (arm*-*-phoenix*): Likewise.
3308 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
3309 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
3310 specified. Default to arm6 if target_cpu_cname is not set.
3311 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
3312 default cpu has been correctly configured.
3313 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
3314 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
3315 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
3316 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
3317 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3318 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
3319 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3321 2016-11-03 Jiong Wang <jiong.wang@arm.com>
3323 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
3324 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
3325 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
3326 (output_cfa_loc): Support DW_CFA_val_expression.
3327 (output_cfa_loc_raw): Likewise.
3328 (output_cfi): Likewise.
3329 (output_cfi_directive): Likewise.
3330 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
3331 (dw_cfi_oprnd2_desc): Likewise.
3332 (mem_loc_descriptor): Recognize new pattern generated for value
3335 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
3337 PR rtl-optimization/78186
3338 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
3339 well, when converting to IOR.
3341 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
3343 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
3344 (vec_interleave_highv8qi): Likewise.
3346 2016-11-03 Martin Liska <mliska@suse.cz>
3348 * profile.c (instrument_values): Fix coding style.
3349 (branch_prob): Use renamed function.
3350 * tree-profile.c (init_ic_make_global_vars): Likewise.
3351 (gimple_init_edge_profiler): Rename to
3352 gimple_init_gcov_profiler.
3353 tree_time_profiler_counter variable declaration.
3354 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
3356 * value-prof.h: Remove an argument.
3358 2016-11-03 Richard Biener <rguenther@suse.de>
3360 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
3361 symtab_node::get_create.
3363 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3365 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
3366 Move comments into more natural position.
3368 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
3370 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
3371 (PTRDIFF_TYPE): Define as int.
3373 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3375 * ccmp.c (expand_ccmp_expr_1): Adjust.
3376 (expand_ccmp_expr): Likewise.
3377 (expand_ccmp_next): Likewise.
3378 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
3379 (aarch64_gen_ccmp_first): Likewise.
3380 * doc/tm.texi: Regenerate.
3381 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
3382 (gen_ccmp_next): Likewise.
3384 2016-11-03 Bin Cheng <bin.cheng@arm.com>
3386 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
3387 (vect_is_simple_reduction): Swap cond_reduction by inversion.
3389 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
3391 * config/i386/i386.c (ix86_init_libfuncs): New. Call
3392 darwin_rename_builtins here.
3393 (ix86_expand_divmod_libfunc): New.
3394 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
3395 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
3397 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3398 Nathan Sidwell <nathan@acm.org>
3400 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
3402 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
3404 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
3406 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
3407 to format MODE_INT and MODE_PARTIAL_INT literals.
3409 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
3412 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
3413 NULL if TARGET_SPE_ABI.
3415 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3417 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
3418 clear padding bits even when they're less than a byte.
3420 2016-11-02 Richard Biener <rguenther@suse.de>
3422 * gimple-ssa-store-merging.c: Include gimplify-me.h.
3423 (imm_store_chain_info::output_merged_stores): Force base_addr
3424 to be proper GIMPLE for a MEM_REF address.
3425 (pass_store_merging::execute): Restrict negative bitpos
3426 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
3427 check. Take into account non-NULL_TREE offset if the base
3428 is already addressable.
3430 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3432 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
3434 (aarch64_be_crypto_sha1hv4si): New pattern.
3436 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
3438 * config/aarch64/aarch64.md (add<mode>3): Remove
3439 redundant code. Don't split frame based additions.
3441 2016-11-02 Richard Biener <rguenther@suse.de>
3443 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
3444 redundant val and dest members.
3445 (store_immediate_info::store_immediate_info): Adjust.
3446 (merged_store_group::merged_store_group): Adjust.
3447 (merged_store_group::apply_stores): Likewise.
3448 (struct imm_store_chain_info): Add base_addr field.
3449 (imm_store_chain_info::imm_store_chain_info): New constructor.
3450 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
3451 (imm_store_chain_info::output_merged_store): Likewise. Use
3452 addr_base which is already the address.
3453 (imm_store_chain_info::output_merged_stores): Likewise.
3454 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
3455 imm_store_chain_info instead of base. Fix alias check.
3456 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
3457 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
3458 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
3459 use the address of the base and adjust for other changes.
3461 2016-11-02 Martin Liska <mliska@suse.cz>
3463 * fold-const-call.c (host_size_t_cst_p): Test whether
3464 t is convertible to size_t.
3466 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3468 PR tree-optimization/78170
3469 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
3470 introduced by native_encode_expr on little-endian as well.
3472 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3474 PR tree-optimization/78162
3475 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
3478 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3480 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
3482 (aarch64_next_callee_save): Likewise.
3483 (aarch64_pushwb_single_reg): Likewise.
3484 (aarch64_gen_storewb_pair): Likewise.
3485 (aarch64_push_regs): Likewise.
3486 (aarch64_gen_loadwb_pair): Likewise.
3487 (aarch64_pop_regs): Likewise.
3488 (aarch64_gen_store_pair): Likewise.
3489 (aarch64_gen_load_pair): Likewise.
3490 (aarch64_save_callee_saves): Likewise.
3491 (aarch64_restore_callee_saves): Likewise.
3493 2016-11-02 Richard Biener <rguenther@suse.de>
3495 PR tree-optimization/78035
3496 PR tree-optimization/77964
3497 * gimple-pretty-print.c (pp_points_to_solution): Print
3498 vars_contains_interposable.
3499 * tree-ssa-alias.c: Include varasm.h.
3500 (ptrs_compare_unequal): Check vars_contains_interposable and
3501 decl_binds_to_current_def_p.
3502 (dump_points_to_solution): Dump vars_contains_interposable.
3503 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3505 * tree-ssa-structalias.c: Include varasm.h.
3506 (set_uids_in_ptset): Record whether vars contains a
3507 not decl_binds_to_current_def_p variable in vars_contains_interposable.
3508 (ipa_escaped_pt): Update initializer.
3510 2016-11-02 Richard Biener <rguenther@suse.de>
3512 PR tree-optimization/78047
3513 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3514 fake field at offset zero conservatively regarding to may_have_pointers.
3516 2016-11-02 Richard Biener <rguenther@suse.de>
3518 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3519 infer_value_range on stmt ops and update value-ranges.
3520 Dump visited stmts and blocks.
3521 (evrp_dom_walker::push_value_range): Dump changes.
3522 (evrp_dom_walker::pop_value_range): Likewise.
3523 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3525 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3527 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3529 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3531 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3533 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3534 and adjust for that.
3535 * cfgrtl.h (delete_insn_chain): Adjust prototype.
3537 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3539 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3541 (transcode_memory_rtx): Likewise.
3542 (move_to_acc): Likewise.
3543 (move_from_acc): Likewise.
3544 (move_acc_to_reg): Likewise.
3545 (move_to_x): Likewise.
3546 (move_to_hl): Likewise.
3547 (move_to_de): Likewise.
3548 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3549 (rs6000_emit_savres_rtx): Likewise.
3550 (rs6000_emit_prologue): Likewise.
3551 * reorg.c (update_reg_unused_notes): Likewise.
3552 * rtl.h (remove_note): Adjust prototype.
3553 * rtlanal.c (remove_note): Make argument type rtx_insn *.
3555 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3557 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3558 variables so some can be rtx_insn *.
3559 (alpha_emit_xfloating_libcall): Likewise.
3560 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3561 (mips_legitimize_tls_address): Likewise.
3562 * optabs.c (expand_binop): Likewise.
3563 * reload1.c (gen_reload): Likewise.
3565 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3567 * reorg.c (relax_delay_slots): Split up the trial variable.
3569 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3571 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3572 of variables rtx_insn *.
3573 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3574 (legitimize_tls_address): Likewise.
3575 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3576 (bfin_gen_bundles): Likewise.
3577 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3578 (c6x_reorg): Likewise.
3579 * config/frv/frv.c (frv_reorder_packet): Likewise.
3580 * config/i386/i386.c (ix86_split_idivmod): Likewise.
3581 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3582 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3583 * config/mn10300/mn10300.c: Likewise.
3584 * config/rl78/rl78.c: Likewise.
3585 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3586 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3587 (sh_expand_cmpnstr): Likewise.
3588 (sh_expand_strlen): Likewise.
3589 (sh_expand_setmem): Likewise.
3590 * config/sh/sh.md: Likewise.
3591 * emit-rtl.c (emit_pattern_before): Likewise.
3592 * except.c: Likewise.
3593 * final.c: Likewise.
3596 2016-11-01 Jason Merrill <jason@redhat.com>
3598 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3599 a COND_EXPR with constant condition.
3601 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3603 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3604 and its initialization.
3606 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3608 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3611 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3613 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3614 argument, don't call add_linkage_name if it is true.
3615 (gen_variable_die): For C++ inline static data members, consider the
3616 initial call when old_die is NULL to be declaration and call
3617 add_name_and_src_coords_attributes in that case with true as
3618 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
3619 (gen_member_die): For C++ inline static data members, emit a
3620 definition DIE right away in DW_TAG_compile_unit context.
3622 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3625 * config/pa/pa.md: Add new shift/add patterns to handle
3626 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3628 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
3630 * config/xtensa/xtensa-protos.h
3631 (xtensa_use_return_instruction_p): New prototype.
3632 * config/xtensa/xtensa.c (xtensa_current_frame_size,
3633 xtensa_callee_save_size): Remove.
3634 (struct machine_function): Add new fields: current_frame_size,
3635 callee_save_size, frame_laid_out and epilogue_done.
3636 (compute_frame_size, xtensa_expand_prologue,
3637 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3638 cfun->machine->callee_save_size and xtensa_current_frame_size
3639 with cfun->machine->current_frame_size.
3640 (compute_frame_size): Update cfun->machine->frame_laid_out and
3641 don't update frame layout after reload completion.
3642 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3643 instead of zeroing xtensa_current_frame_size.
3644 (xtensa_use_return_instruction_p): New function.
3645 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3647 (INITIAL_ELIMINATION_OFFSET): Use return value of
3648 compute_frame_size instead of xtensa_current_frame_size value.
3649 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3650 function xtensa_use_return_instruction_p instead of inline code.
3652 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3654 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3655 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3656 * dwarf2out.c (rnglist_idx): New variable.
3657 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3658 (DEBUG_RNGLISTS_SECTION): Define.
3659 (ranges_base_label): New variable.
3660 (size_of_die) <case dw_val_class_range_list>: If using
3661 DW_FORM_rnglistx, count size of uleb128 of range list index.
3662 (value_format) <case dw_val_class_range_list>: For
3663 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3664 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3665 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3666 (add_ranges_num): Remove useless prototype. Don't multiply
3667 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
3668 for new fields added to dw_ranges struct.
3669 (add_ranges): Add maybe_new_sec argument and pass it
3670 through to add_ranges_num.
3671 (note_rnglist_head): New function.
3672 (add_ranges_by_labels): Pass true as maybe_new_sec to
3673 add_ranges_num, call note_rnglist_head on the head of the list.
3674 (output_ranges): Add function comment. Switch to
3675 .debug_ranges section here and emit .Ldebug_ranges0 label.
3676 (index_rnglists, output_rnglists): New functions.
3677 (gen_subprogram_die): Formatting fixes.
3678 (add_high_low_attributes): Don't divide offsets
3679 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
3680 first list element or when pointing into the middle of
3681 a list. Pass true as second argument to add_ranges on the
3682 first block fragment after cold/hot section switch.
3683 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3684 section instead of .debug_ranges. Initialize
3685 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3686 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3687 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
3688 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3689 Call output_rnglists for -gdwarf-5.
3690 (dwarf2out_c_finalize): Clear rnglist_idx.
3692 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
3694 * combine.c (simplify_compare_const): Add gcc_fallthrough.
3696 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
3697 Tamar Christina <tamar.christina@arm.com>
3699 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3700 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3701 (vmaxnmq_f32): Likewise.
3702 (vminnm_f32): Likewise.
3703 (vminnmq_f32): Likewise.
3704 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3706 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3709 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3711 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3712 binary floating point types supported by the hardware except for
3714 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3715 vector instruction for optimizing extracting a SImode from a
3716 V4SImode vector and converting it to floating point.
3717 (vsx_xvcvuxwdp_df): Likewise.
3718 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3719 registers to be any VSX register. Move stores to the end of the
3721 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3722 to optimize extracting a SImode from a V4SImode vector and
3723 converting it to a binary floating point type supported by the
3724 hardware. Use the vector converts instead of extracting the
3725 element, sign extending it, and then converting it to double.
3726 Other floating point types than double first convert to double,
3727 then the double is converted to that type.
3728 (vsx_extract_si_<uns>float_<mode>): Likewise.
3730 2016-10-31 Andrew Pinski <apinski@cavium.com>
3732 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3733 Rewrite handling of part num to handle the case where
3734 multiple implementers share the same part num.
3736 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3737 Jakub Jelinek <jakub@redhat.com>
3739 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3740 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3742 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3744 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3745 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3746 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3747 (is_cu_die, is_unit_die): Likewise.
3748 (should_move_die_to_comdat, break_out_comdat_types): Adjust
3749 comments for DWARF5 DW_UT_type units.
3750 (output_compilation_unit_header): Add UT argument, output
3751 start of DWARF5 .debug_info section header.
3752 (output_comp_unit): Add dwo_id argument. Adjust
3753 output_compilation_unit_header caller, for DW_UT_split_compile
3754 emit dwo_id field, otherwise padding1. Emit padding2 field.
3755 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3756 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3757 (output_skeleton_debug_sections): Add dwo_id argument, for
3758 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3759 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3760 DW_UT_type or DW_UT_split_type units rather than .debug_types.
3761 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3762 DW_TAG_compile_unit for skeleton unit die. Don't add
3763 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3764 address to output_comp_unit and output_skeleton_debug_sections.
3766 * dwarf2out.c (debug_line_str_section): New variable.
3767 (debug_line_str_hash): Likewise.
3768 (DEBUG_LINE_STR_SECTION): Define.
3769 (set_indirect_string): Handle DW_FORM_line_strp like
3771 (find_string_form): Fix up formatting.
3772 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3774 (output_die): Handle DW_FORM_line_strp.
3775 (DWARF5_USE_DEBUG_LINE_STR): Define.
3776 (output_line_string): New function.
3777 (output_file_names): Add -gdwarf-5 support.
3778 (output_line_info): Likewise.
3779 (init_sections_and_labels): Initialize debug_line_str_section.
3780 (output_indirect_string): Change 2nd argument from void *
3781 to enum dwarf_form form, compare with form rather than
3783 (output_indirect_strings): Pass DW_FORM_strp to
3784 output_indirect_string traversion.
3785 (dwarf2out_finish): Output .debug_line_str strings.
3786 (dwarf2out_c_finalize): Clear debug_line_str_section and
3787 debug_line_str_hash.
3789 2016-10-31 Tom Tromey <tom@tromey.com>
3792 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
3793 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
3794 DW_OP_GNU_push_tls_address case.
3795 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
3797 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3799 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
3800 for frame_offset_rel bit.
3801 (struct array_descr_info): Add rank field.
3802 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
3803 and placeholder_seen fields.
3804 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
3805 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
3806 DW_OP_pick 1 into DW_OP_over.
3807 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
3808 gen_variant_part): Clear placeholder_{arg,seen}.
3809 (loc_list_from_tree_1): Drop const from context argument.
3810 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
3811 (loc_list_for_address_of_addr_expr_of_indirect_ref,
3812 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
3814 (add_scalar_info): Drop const from context argument. Handle
3815 context->placeholder_arg.
3816 (add_bound_info): Drop const from context argument.
3817 (gen_descr_array_type_die): Drop const from ctx variable.
3818 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
3819 attribute and use a single DW_TAG_generic_subrange instead of
3820 7 DW_TAG_subrange_type for assumed rank arrays.
3822 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
3823 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
3824 from bool to 1-bit uchar bitfield. Add num_assigned and
3825 offset_emitted bitfields.
3826 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
3827 for dw_val_class_lineptr and dw_val_class_macptr. Handle
3828 dw_val_class_loclistsptr.
3829 (new_addr_loc_descr): Fix up formatting.
3830 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
3831 (add_AT_low_high_pc): Fix up formatting.
3832 (add_AT_loclistsptr): New function.
3833 (AT_lbl): Allow dw_val_class_loclistsptr.
3834 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
3835 Handle dw_val_class_loclistsptr.
3836 (loc_list_idx): New variable.
3837 (output_loclists_offsets, assign_location_list_indexes): New
3839 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
3840 add size_of_uleb128 of the index. Drop never used
3841 dwarf_split_debug_info AT_index handling. Handle
3842 dw_val_class_loclistsptr.
3843 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
3844 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
3845 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
3846 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
3847 DW_FORM_loclistx indexes.
3848 (output_attr_index_or_value): Fix up formatting. Don't handle
3849 dw_val_class_loc_list here.
3850 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
3851 For dw_val_class_loc_list call output_loc_list_offset rather than
3852 output_attr_index_or_value.
3853 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
3854 or .debug_loclists.dwo section name for debug_loc_section.
3855 (resolve_addr_in_expr): Formatting fix.
3856 (index_location_lists): Likewise.
3857 (dwarf2out_finish): If there are any location lists, for
3858 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
3859 index_location_lists only if have_location_lists. Call
3860 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
3861 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
3862 -gsplit-dwarf also emit offset table.
3864 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
3865 (size_of_die, value_format, output_die): Use
3866 DW_FORM_data16 for 128-bit dw_val_class_const_double or
3867 dw_val_class_wide_int.
3869 * dwarf2out.c (dwarf_op): Renamed to ...
3870 (dwarf_OP): ... this.
3871 (convert_descriptor_to_mode, scompare_loc_descriptor,
3872 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3873 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
3875 (dwarf_AT, dwarf_TAG): New functions.
3876 (check_die): Disallow DW_AT_call_all_calls next to
3877 DW_AT_GNU_all_call_sites.
3878 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
3879 and attributes instead of the corresponding GNU tag and attributes.
3880 (gen_subprogram_die): Likewise. Emit call site information even
3881 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
3882 DW_AT_defaulted in comment.
3883 (resolve_addr): Handle DW_AT_call_origin attribute on
3884 DW_TAG_call_site DIE like DW_AT_abstract_origin on
3885 DW_TAG_GNU_call_site DIE.
3887 * dwarf2out.c (dwarf_op): New function.
3888 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
3889 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
3890 (output_loc_operands, output_loc_operands_raw): Likewise.
3891 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
3892 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
3893 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
3894 if dwarf_version < 5.
3895 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
3897 (scompare_loc_descriptor, ucompare_loc_descriptor,
3898 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3899 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
3900 optimize_location_into_implicit_ptr): Likewise. Only punt for
3901 !dwarf_strict if dwarf_version < 5.
3902 (string_cst_pool_decl): Adjust comment.
3903 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
3905 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
3906 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3907 (struct dw_val_node): Add val_file_implicit field.
3908 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
3909 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
3910 output_die): Handle dw_val_class_const_implicit,
3911 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3912 (abbrev_die_table): Change into va_gc vec.
3913 (abbrev_die_table_allocated, abbrev_die_table_in_use,
3914 ABBREV_DIE_TABLE_INCREMENT): Remove.
3915 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
3916 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
3918 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
3919 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
3921 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
3923 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
3925 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
3927 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
3928 unit. Call optimize_abbrev_table.
3929 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
3930 abbrev_die_table being a va_gc vec.
3932 PR tree-optimization/77860
3933 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
3934 also integral complex and vector constants.
3936 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
3937 optimize_macinfo_range, save_macinfo_strings): Replace
3938 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
3939 (output_macinfo): Likewise. Emit .debug_macro* rather than
3940 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
3941 (init_sections_and_labels): Use .debug_macro* labels rather than
3942 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
3943 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
3944 or DW_AT_GNU_macros for -gdwarf-5.
3946 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
3948 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
3950 2016-09-11 Le-Chun Wu <lcwu@google.com>
3951 Mark Wielaard <mjw@redhat.com>
3953 * common.opt (Wshadow=global): New option. Default for -Wshadow.
3954 (Wshadow=local): New option.
3955 (Wshadow-local): Hidden alias for -Wshadow=local.
3956 (Wshadow=compatible-local): New option.
3957 (Wshadow-compatible-local): Hidden alias for
3958 -Wshadow=compatible-local.
3959 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
3960 Wshadow=compatible-local.
3962 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3964 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
3965 Check slp defs for COND_EXPR by swapping/inverting operands if the
3966 new parameter SWAP indicates so.
3967 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
3968 is isomorphic to the first stmt via swapping/inverting. Store swap
3969 information in the new parameter SWAP.
3970 (vect_build_slp_tree): New local array SWAP and pass it to function
3971 vect_build_slp_tree_1. Cleanup result handling code for function
3972 call to vect_get_and_check_slp_defs. Skip operand swapping if the
3973 order of operands has been fixed as indicated by SWAP[i].
3975 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3977 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
3978 unnecessary data dependence check after visited store stmt.
3980 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3982 PR tree-optimization/71915
3983 PR tree-optimization/71490
3984 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
3986 (find_basis_for_base_expr): Require stride types to match when
3988 (alloc_cand_and_find_basis): Record the stride type.
3989 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
3990 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
3991 the expressions having those types.
3992 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
3993 (create_mul_ssa_cand): Likewise.
3994 (create_mul_imm_cand): Likewise.
3995 (create_add_ssa_cand): Likewise.
3996 (create_add_imm_cand): Likewise.
3997 (legal_cast_p_1): Change interface to accept types rather than the
3998 expressions having those types.
3999 (legal_cast_p): Pass types to legal_cast_p_1.
4000 (slsr_process_cast): Pass stride type to
4001 alloc_cand_and_find_basis.
4002 (slsr_process_copy): Likewise.
4003 (dump_candidate): Display stride type when a cast exists.
4004 (create_add_on_incoming_edge): Introduce a cast when necessary for
4006 (analyze_increments): Change the code checking for invalid casts
4007 to rely on the stride type, and update the documentation and
4008 example. Change the code checking for pointer multiplies to rely
4010 (insert_initializers): Introduce a cast when necessary for the
4011 stride type. Use the stride type for the type of the initializer.
4013 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4015 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
4017 2016-10-29 Jakub Jelinek <jakub@redhat.com>
4019 PR rtl-optimization/77919
4020 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
4021 into memory if both modes are complex and their inner modes have the
4022 same precision. If the two modes are different complex modes, convert
4023 each part separately and generate a new CONCAT.
4025 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
4027 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
4029 2016-10-29 Jakub Jelinek <jakub@redhat.com>
4032 * gimple-ssa-store-merging.c
4033 (imm_store_chain_info::output_merged_store): Use build_aligned_type
4034 instead of SET_TYPE_ALIGN on shared integral type.
4036 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
4038 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
4039 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
4042 2016-10-28 Jeff Law <law@redhat.com>
4044 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
4045 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
4047 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4049 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
4051 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4053 * target.def (min_arithmetic_precision): New hook.
4054 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
4055 * doc/tm.texi: Regenerate.
4056 * internal-fn.c (expand_arith_overflow): Adjust handling of target
4057 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
4058 * targhooks.c (default_min_arithmetic_precision): New function.
4059 * targhooks.h (default_min_arithmetic_precision): Declare.
4060 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
4061 (sparc_min_arithmetic_precision): New function.
4063 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
4066 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
4067 Swap commutative operands in new RTL if needed. Handle zero_ext
4069 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
4072 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4073 Kugan Vivekanandarajah <kuganv@linaro.org>
4074 Jim Wilson <jim.wilson@linaro.org>
4076 PR tree-optimization/43721
4077 * target.def: New hook expand_divmod_libfunc.
4078 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
4079 * doc/tm.texi: Regenerate.
4080 * internal-fn.def: Add new entry for DIVMOD ifn.
4081 * internal-fn.c (expand_DIVMOD): New.
4082 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
4084 (widen_mul_stats): Add new field divmod_calls_inserted.
4085 (target_supports_divmod_p): New.
4086 (divmod_candidate_p): Likewise.
4087 (convert_to_divmod): Likewise.
4088 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
4089 renumber_gimple_stmt_uids at beginning of function. Call
4090 convert_to_divmod and record stats for divmod.
4091 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
4092 TARGET_EXPAND_DIVMOD_LIBFUNC.
4093 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
4096 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
4097 Segher Boessenkool <segher@kernel.crashing.org>
4099 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
4100 swapping the arms of the branch.
4101 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
4102 sequence for the generic signed-signed-signed case.
4104 2016-10-28 Jeff Law <law@redhat.com>
4106 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
4108 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4110 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
4112 PR rtl-optimization/78029
4113 * function.c (prologue_contains, epilogue_contains): New functions.
4114 (record_prologue_seq, record_epilogue_seq): New functions.
4115 * function.h (prologue_contains, epilogue_contains,
4116 record_prologue_seq, record_epilogue_seq): New declarations.
4117 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
4118 mixing prologue and epilogue insns.
4119 (init_deps): Initialize the new fields in struct deps_desc.
4120 * sched-int.h (struct deps_desc): New fields last_prologue,
4121 last_epilogue, and last_logue_was_epilogue.
4122 * shrink-wrap.c (emit_common_heads_for_components): Record all
4123 emitted prologue and epilogue insns.
4124 (emit_common_tails_for_components): Ditto.
4125 (insert_prologue_epilogue_for_components): Ditto.
4127 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4130 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
4131 * common.opt (fstore-merging): New Optimization option.
4132 * opts.c (default_options_table): Add entry for
4133 OPT_ftree_store_merging.
4134 * fold-const.h (can_native_encode_type_p): Declare prototype.
4135 * fold-const.c (can_native_encode_type_p): Define.
4136 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
4137 (PARAM_MAX_STORES_TO_MERGE): Likewise.
4138 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
4139 * passes.def: Insert pass_tree_store_merging.
4140 * tree-pass.h (make_pass_store_merging): Declare extern
4142 * gimple-ssa-store-merging.c: New file.
4143 * doc/invoke.texi (Optimization Options): Document
4145 (--param documentation): Document store-merging-allow-unaligned
4146 and max-stores-to-merge.
4148 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
4151 * gimplify.c (gimplify_init_constructor): Move emit of constructor
4152 assignment to earlier in the if/else logic.
4154 2016-10-28 Richard Biener <rguenther@suse.de>
4158 * fold-const.c (make_bit_field_ref): Only adjust alias set
4159 when the original alias set was zero.
4161 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4163 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
4164 (s390_adjust_loops): New function.
4165 (s390_reorg): Invoke s390_adjust_loops.
4166 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
4167 ("osc_break"): New insn definition.
4169 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4171 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
4172 * config.gcc: Support alternate archXX cpu levels with
4173 --with-arch= and --with-tune=.
4174 * config/s390/linux.h: Translate new archXX cpu levels to the
4175 original names when calling GAS.
4176 * config/s390/tpf.h: Likewise.
4177 * doc/invoke.texi: Document the alternate cpu level names.
4179 2016-10-28 Jakub Jelinek <jakub@redhat.com>
4181 PR rtl-optimization/77919
4182 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
4183 MEM if mode1 is not a complex mode.
4185 PR rtl-optimization/78132
4186 * ree.c (combine_reaching_defs): Give up if copy_needed and
4187 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
4189 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
4191 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
4193 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4195 * config/rs6000/constraints.md (wH constraint): Add new
4196 constraints for allowing 32-bit integers (and eventually 8/16-bit
4197 integers) into the vector registers.
4198 (wI constraint): Likewise.
4199 (wJ constraint): Likewise.
4200 (wK constraint): Likewise.
4201 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
4202 -mvsx-small-integer as a default option for ISA 2.07
4204 (POWERPC_MASKS): Likewise.
4205 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
4206 switch to turn off small integer support in vector registers.
4207 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
4208 test for -mupper-regs-di, since it is already done with the
4209 reg_add[mode].scalar_in_vsx_p. Add support for the switch
4210 -mvsx-small-integer.
4211 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
4213 (rs6000_setup_reg_addr_masks): Likewise.
4214 (rs6000_init_hard_regno_mode_ok): Likewise.
4215 (rs6000_option_override_internal): Add consistency checks for
4216 -mvsx-small-integer.
4217 (rs6000_secondary_reload_simple_move): SImode is a simple move if
4218 -mvsx-small-integer.
4219 (rs6000_secondary_reload): Use std::swap.
4220 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
4221 VSX_REGS for small integers in vector registers, since there is no
4222 D-FORM address mode for such types.
4223 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
4224 (rs6000_opt_masks): Add -mvsx-small-integer.
4225 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
4227 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
4228 extracts can be done on ISA 2.07.
4229 (vsx_extract_<mode>): Add support for small integers in vsx
4231 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
4232 longer support V4SImode in this pattern.
4233 (vsx_extract_si): New insn to support extraction of SImode in ISA
4234 2.07 using either xxextractuw or vspltw.
4235 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
4236 longer support V4SImode in this pattern.
4237 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
4238 wJ, and wK constraints.
4239 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
4240 storing SDmode with VSX instructions.
4241 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
4242 GPR load and before the FPR and VSX loads. Remove ??, ! from the
4243 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
4244 small integers in vector registers.
4245 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
4246 load and before the FPR and VSX loads. Remove ??, ! from the
4247 constraints. Add VEXTSW2D support for small integers in vector
4249 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
4250 integers in vector registers.
4251 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
4252 move instead of using an UNSPEC.
4253 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
4254 integers in vector registers.
4255 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
4256 move instead of using an UNSPEC.
4257 (movsi_internal1): Add support for -mvsx-small-integer. Align
4258 columns so that it is more readable.
4259 (SImode splitter for ISA 3.0 constants): Add splitter for
4260 -128..127 constants that can easily be constructed on ISA 3.0.
4261 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
4264 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4267 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
4270 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4272 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
4273 PIC_OFFSET_TABLE_REGNUM twice.
4275 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4277 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
4278 support for constant operand for OP.
4280 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4282 * dwarf2out.c (gen_member_die): Only reparent_child instead of
4283 splice_child_die if child doesn't have DW_AT_specification attribute.
4285 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4287 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
4288 (TARGET_HAVE_LDREXBH): Likewise.
4289 (TARGET_HAVE_LDACQ): Likewise.
4291 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4293 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
4294 logic to to decide whether to copy over old value to register for new
4296 * config/arm/sync.md: Add comments explaning why mode and code
4297 attribute are not defined in iterators.md
4298 (thumb1_atomic_op_str): New code attribute.
4299 (thumb1_atomic_newop_str): Likewise.
4300 (thumb1_atomic_fetch_op_str): Likewise.
4301 (thumb1_atomic_fetch_newop_str): Likewise.
4302 (thumb1_atomic_fetch_oldop_str): Likewise.
4303 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
4304 mirror the more restrictive constraints of the Thumb-1 insns after
4305 split compared to Thumb-2 counterpart insns.
4306 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
4307 in sync with non atomic version.
4308 (atomic_nand<mode>): Likewise.
4309 (atomic_fetch_<sync_optab><mode>): Likewise.
4310 (atomic_fetch_nand<mode>): Likewise.
4311 (atomic_<sync_optab>_fetch<mode>): Likewise.
4312 (atomic_nand_fetch<mode>): Likewise.
4313 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
4314 in sync with atomic version.
4315 (thumb1_subsi3_insn): Likewise.
4316 (thumb1_andsi3_insn): Likewise.
4317 (thumb1_iorsi3_insn): Likewise.
4318 (thumb1_xorsi3_insn): Likewise.
4320 2016-10-27 Nick Clifton <nickc@redhat.com>
4322 * plugin.c (register_plugin_info): Produce an error message if the
4323 plugin is not found in the hash table.
4325 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4327 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
4330 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
4333 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
4334 define builtin functions from the bdesc_spe_predicates or
4335 bdesc_spe_evsel arrays if the builtin mask is not compatible with
4336 the current compiler configuration.
4337 (paired_init_builtins): Modify loop to not define define builtin
4338 functions from the bdesc_paried_preds array if the builtin mask is
4339 not compatible with the current compiler configuration.
4340 (altivec_init_builtins): Modify loops to not define the
4341 __builtin_altivec_stxvl function nor the builtin functions from
4342 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
4343 builtin mask is not compatible with the current compiler
4346 2016-10-26 Jeff Law <law@redhat.com>
4348 * config/sh/sh.c (output_branch): Add missing fallthru comments.
4349 (gen_shl_and): Likewise.
4350 * config/sh/sh.md (movsicc): Add missing fallthru comments.
4352 * config/mips/mips.c (mips16_constant_cost): Add missing
4354 (mips16_build_call_stub): Increase buffer size. Adjust
4357 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4359 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
4360 INSN_UIDs for all insns in compact mode.
4361 (rtx_writer::print_rtx): Likewise.
4362 * print-rtl.h (rtx_writer::flag_compact): Update comment.
4363 * rtl-tests.c (selftest::test_dumping_insns): Update expected
4364 output to include INSN_UID.
4365 (selftest::test_uncond_jump): Likewise.
4367 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
4369 * haifa-sched.c (call_used_regs_num): Rename to...
4370 (call_saved_regs_num): ...this.
4371 (fixed_regs_num): New variable.
4372 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
4374 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
4376 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4378 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
4380 * print-rtl.c (outfile): Delete global.
4381 (sawclose): Likewise.
4383 (in_call_function_usage): Likewise.
4384 (flag_compact): Likewise.
4385 (flag_simple): Likewise.
4386 (rtx_writer::rtx_writer): New ctor.
4387 (print_rtx_operand_code_0): Convert to...
4388 (rtx_writer::print_rtx_operand_code_0): ...this.
4389 (print_rtx_operand_code_e): Convert to...
4390 (rtx_writer::print_rtx_operand_code_e): ...this.
4391 (print_rtx_operand_codes_E_and_V): Convert to...
4392 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
4393 (print_rtx_operand_code_i): Convert to...
4394 (rtx_writer::print_rtx_operand_code_i): ...this.
4395 (print_rtx_operand_code_r): Convert to...
4396 (rtx_writer::print_rtx_operand_code_r): ...this.
4397 (print_rtx_operand_code_u): Convert to...
4398 (rtx_writer::print_rtx_operand_code_u): ...this.
4399 (print_rtx_operand): Convert to...
4400 (rtx_writer::print_rtx_operand): ...this.
4401 (print_rtx): Convert to...
4402 (rtx_writer::print_rtx): ...this.
4403 (print_inline_rtx): Rewrite in terms of class rtx_writer.
4404 (debug_rtx): Likewise.
4405 (print_rtl): Convert to...
4406 (rtx_writer::print_rtl): ...this.
4407 (print_rtl): Reimplement in terms of class rtx_writer.
4408 (print_rtl_single): Rewrite in terms of class rtx_writer.
4409 (print_rtl_single_with_indent): Convert to..
4410 (rtx_writer::print_rtl_single_with_indent): ...this.
4411 (print_simple_rtl): Rewrite in terms of class rtx_writer.
4412 * print-rtl.h (flag_compact): Delete decl.
4413 (class rtx_writer): New class.
4414 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
4417 2016-10-26 Jeff Law <law@redhat.com>
4419 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
4422 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
4423 (check_if_valid_sleep_operand): Add missing fallthru comment.
4424 (arc_register_move_cost): Increase buffer size.
4425 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
4427 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
4429 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
4430 comment. Add gcc_unreachable for path that should never happen.
4432 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
4435 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4436 Martin Liska <mliska@suse.cz>
4439 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
4440 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
4441 on outer context if any.
4443 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4445 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
4446 by increment rather than double it.
4447 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
4448 emit a space before args[4].
4449 (END): Don't emit a space before with_arg.
4451 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4453 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
4454 Baseline only alternatives to (i) hold store atomic success value in a
4455 return register rather than a scratch register, (ii) use a low register
4456 for it and to (iii) ensure the cbranchsi insn generated by the split
4457 respect the constraints of Thumb-1 cbranchsi4_insn and
4459 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
4460 constraints must match those in atomic_compare_and_swap.
4461 (cbranchsi4_scratch): Likewise.
4463 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4465 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4466 variable. Add the new parameter to the insn generator. Set that
4467 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
4468 return value from the negation of that parameter for Thumb-1, keeping
4469 the logic unchanged otherwise except for using bdst as the destination
4470 register of the compare_and_swap insn.
4471 (arm_split_compare_and_swap): Add explanation about how is the value
4472 returned to the function comment. Rename scratch variable to
4473 neg_bval. Adapt initialization of variables holding operands to the
4474 new operand numbers. Use return register to hold result of store
4475 exclusive for Thumb-1, scratch register otherwise. Construct the
4476 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
4477 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
4478 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
4479 for strongly ordered compare_and_swap.
4480 * config/arm/predicates.md (cc_register_operand): New predicate.
4481 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
4482 match_operand with the new predicate to accept either the CC flag or a
4483 destination register for the boolean return value, restricting it to
4484 CC flag only via constraint. Adapt operand numbers accordingly.
4486 2016-10-26 Jeff Law <law@redhat.com>
4488 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4490 * config/frv/frv.c (comparison_string): Do not fall through after
4493 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4495 (expand_one_builtin): Add missing break.
4497 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4498 (m32c_legitimate_address_p): Likewise.
4500 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4502 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4504 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4507 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4510 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4512 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4514 (rl78_asm_ctor_dtor): Increase buffer size.
4516 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4518 (xstormy16_asm_output_constructor): Likewise.
4520 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4523 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4524 comment to silence warning.
4526 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4527 (spu_legitimate_address_p): Fix logic error and add missing fallthru
4530 2016-10-26 Michael Matz <matz@suse.de>
4532 PR tree-optimization/78060
4533 PR tree-optimization/78061
4534 PR tree-optimization/78088
4535 * tree-ssa-loop-split.c (easy_exit_values): New function.
4536 (tree_ssa_split_loops): Use it.
4537 (compute_new_first_bound): Change order of operations,
4538 fix invalid use of types.
4540 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
4542 gen-pass-instances.awk is sensitive to the order in which
4543 passes are added; passes that appear later have to be added first.
4547 * config/avr/avr-passes.def: Swap order of directives for
4548 gen-pass-instances.awk.
4550 2016-10-25 Jeff Law <law@redhat.com>
4552 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4553 (vax_notice_update_cc): Likewise.
4555 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4557 * config.gcc (sparc*-*-solaris2*): Adjust.
4558 (sparc64-*-linux*): Likewise.
4559 * config/sparc/default-64.h: Rename to...
4560 * config/sparc/default64.h: ...this.
4561 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4563 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4564 * config/sparc/sparc.h: Minor tweaks.
4565 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4566 TARGET_ARCH32 throughout. Minor various tweaks throughout.
4568 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4570 * input.c (fcache::file_patch): Add comment about lifetime.
4571 (selftest::cpp_reader_ptr): New class.
4572 (selftest::lexer_test): Convert m_parser from cpp_reader *
4573 to a cpp_reader_ptr, and move m_tempfile to after it.
4574 (selftest::lexer_test::lexer_test): Update for above reordering.
4575 (lexer_test::~lexer_test): Move cleanup of m_parser to
4576 cpp_reader_ptr's dtor.
4578 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4580 * toplev.c (toplev::main): Remove call to
4581 location_adhoc_data_fini.
4583 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4585 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4586 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
4588 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4590 * ggc-tests.c (forcibly_ggc_collect): Rename to...
4591 (selftest::forcibly_ggc_collect): ...this, and remove "static".
4592 (test_basic_struct): Update for above renaming.
4593 (test_length): Likewise.
4594 (test_union): Likewise.
4595 (test_finalization): Likewise.
4596 (test_deletable_global): Likewise.
4597 (test_inheritance): Likewise.
4598 (test_chain_next): Likewise.
4599 (test_user_struct): Likewise.
4600 (test_tree_marking): Likewise.
4601 * selftest-run-tests.c (selftest::run_tests): Call
4602 selftest::forcibly_ggc_collect at the end of the selftests.
4603 * selftest.h (selftest::forcibly_ggc_collect): New decl.
4605 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4608 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4609 * optabs.c (expand_vec_cond_expr): For comparison codes
4610 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4611 (expand_vec_cmp_expr): For comparison codes
4612 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4613 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4614 Add enum tree_code argument.
4615 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4617 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
4618 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4620 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
4621 NE_EXPR, attempt to use vcondeq_optab as fallback.
4622 * tree-vect-generic.c (expand_vector_comparison,
4623 expand_vector_divmod, expand_vector_condition): Adjust
4624 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4625 * tree-vect-stmts.c (vectorizable_condition,
4626 vectorizable_comparison): Likewise.
4627 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4628 check_bool_pattern, search_type_for_mask_1): Likewise.
4629 * expr.c (do_store_flag): Likewise.
4630 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4631 @code{vcondeq@var{m}@var{n}}): Document.
4632 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4635 2016-10-25 Jeff Law <law@redhat.com>
4637 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4639 (v850_output_aligned_bss): Add missing break.
4641 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4643 2016-10-25 Martin Liska <mliska@suse.cz>
4646 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4647 statements as they can also contain possibly a freeing call.
4649 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
4650 Martin Liska <mliska@suse.cz>
4653 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4654 * ipa-icf.c (sem_function::get_hash): Add target optimization
4657 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
4660 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4661 Remove partial overlap check for shift by 1.
4662 (ashldi3_neon): Likewise.
4664 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4666 * config/arm/constraints.md (Q constraint): Document its use for
4668 (Pf constraint): New constraint for relaxed, consume or relaxed memory
4670 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4671 alternatives to allow any register when memory model matches Pf and
4672 thus lda is used, but only low registers otherwise. Use unpredicated
4673 output template for Thumb-1 targets.
4674 (atomic_store<mode>): Likewise for stl.
4675 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4676 whose output template does not have predication.
4677 (arm_load_acquire_exclusive<mode>): Likewise.
4678 (arm_load_exclusivesi): Likewise.
4679 (arm_load_acquire_exclusivesi): Likewise.
4680 (arm_store_release_exclusive<mode>): Likewise.
4681 (arm_store_exclusive<mode>): Use unpredicated output template for
4684 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4686 * internal-fn.def (LAUNDER): New internal function.
4687 * internal-fn.c (expand_LAUNDER): New function.
4689 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4690 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4692 New avr target pass to work around performance loss by PR fix.
4696 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4697 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4698 * config/avr/predicates.md (extend_operator): New.
4699 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4700 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4701 (make_avr_pass_casesi): New prototypes.
4702 * config/avr/avr.c (print-rtl.h): Include it.
4703 (pass_data avr_pass_data_casesi): Data for new pass.
4704 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4705 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4706 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4707 (avr_optimize_casesi): New functions.
4709 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4710 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4714 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4716 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4718 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4719 DW_AT_rvalue_reference attributes.
4721 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
4723 * doc/invoke.text (Wint-in-bool-context): Update documentation.
4724 * value-prof.c (stringop_block_profile): Fix a warning.
4726 2016-10-24 Martin Sebor <msebor@redhat.com>
4729 * builtins.c (string_length): New function.
4730 (c_strlen): Use string_length. Correctly handle wide strings.
4731 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4733 (target_int_max): Call target_max_value.
4734 (format_result::knownrange): New data member.
4735 (fmtresult::fmtresult): Define default constructor.
4736 (format_integer): Use it and set format_result::knownrange.
4737 Handle global constants.
4738 (format_floating_max): Add third argument.
4739 (format_floating): Recompute maximum value for %a for each argument.
4740 (get_string_length): Use fmtresult default ctor.
4741 (format_string): Set format_result::knownrange.
4742 (format_directive): Check format_result::knownrange.
4743 (add_bytes): Same. Correct caret placement in diagnostics.
4744 (pass_sprintf_length::compute_format_length): Set
4745 format_result::knownrange.
4746 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4748 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4750 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4751 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4753 2016-10-24 Ximin Luo <infinity0@pwned.gg>
4756 * dwarf2out.c (file_table_relative_p): Remove.
4757 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4758 also for absolute paths.
4759 * doc/tm.texi: Update.
4760 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4761 * target.def (force_at_comp_dir): Remove hook.
4762 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4764 2016-10-24 Richard Biener <rguenther@suse.de>
4766 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4767 backedges when identifying the single predecessor to take
4768 conditional info from. Use SCEV to get at ranges for loop IVs.
4769 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4770 avoid false warning.
4772 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
4775 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4776 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4777 (avr_address_tiny_absdata_p): New static function.
4778 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4779 it to determine validity of constant addresses.
4780 (avr_attribute_table) [absdata]: New variable attribute...
4781 (avr_handle_absdata_attribute): ...and handler.
4782 (avr_decl_absdata_p): New static function.
4783 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4784 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4785 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4787 2016-10-24 Richard Biener <rguenther@suse.de>
4789 PR tree-optimization/78076
4790 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
4791 also on the loop tree root.
4793 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4795 * config/i386/i386.c (ix86_fold_builtin): Handle
4796 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
4797 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4798 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
4799 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4801 2016-10-24 Martin Liska <mliska@suse.cz>
4804 * opts.c (finish_options): Skip conditionally.
4806 2016-10-23 Martin Sebor <msebor@redhat.com>
4809 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
4810 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
4812 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4814 * config/sparc/sparc.md (cpu_feature): Minor tweak.
4815 (enabled): Likewise.
4816 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
4817 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
4818 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
4819 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
4820 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
4821 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
4823 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4825 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
4826 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
4828 2016-10-21 Andrew Pinski <apinski@cavium.com>
4830 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
4832 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
4833 implementer_id to unsigned char.
4834 Change part_no to unsigned int.
4835 (AARCH64_BIG_LITTLE): New define.
4836 (INVALID_IMP): New define.
4837 (INVALID_CORE): New define.
4838 (cpu_data): Change the last element's implementer_id and part_no to
4840 (valid_bL_string_p): Rewrite to ..
4841 (valid_bL_core_p): this for integers instead of strings.
4842 (parse_field): New function.
4843 (contains_string_p): Rewrite to ...
4844 (contains_core_p): this for integers and only for the part_no.
4845 (host_detect_local_cpu): Rewrite handling of implementation and
4846 par num to be integers; simplifying the code.
4848 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4850 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
4851 value range for pointers in more cases.
4853 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4855 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
4856 Add extra argument to allow emitting the move immediate.
4857 Use add/sub with positive immediate.
4858 (aarch64_add_constant): Add inline function.
4859 (aarch64_add_sp): Likewise.
4860 (aarch64_sub_sp): Likewise.
4861 (aarch64_expand_prologue): Call aarch64_sub_sp.
4862 (aarch64_expand_epilogue): Call aarch64_add_sp.
4863 Decide when to leave out move.
4864 (aarch64_output_mi_thunk): Call aarch64_add_constant.
4866 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4868 * config/aarch64/aarch64.c (aarch64_layout_frame):
4869 Align FP callee-saves.
4871 2016-10-21 Jakub Jelinek <jakub@redhat.com>
4873 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
4874 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
4876 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4877 _rdseed64_step): Likewise.
4878 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
4881 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
4882 and tree-ssanames.h.
4883 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
4884 with INTEGER_CST argument.
4885 (ix86_gimple_fold_builtin): New function.
4886 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4888 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
4889 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
4890 (ranges_table_allocated, ranges_table_in_use,
4891 ranges_by_label_allocated, ranges_by_label_in_use,
4892 RANGES_TABLE_INCREMENT): Removed.
4893 (add_ranges_num): Use vec_safe_push into ranges_table.
4894 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
4895 (output_ranges): Adjust for ranges_table and ranges_by_label
4896 conversion from arrays to vec.
4897 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
4898 conversion from arrays to vec.
4899 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
4900 ranges_table_in_use, ranges_by_label_allocated and
4901 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
4903 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
4904 if needed. Re-add origin_die variable and its initialization.
4906 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
4907 even for -fstack-reuse=none, or for volatile vars etc.
4909 2016-10-21 David Malcolm <dmalcolm@redhat.com>
4911 * print-rtl-function.c (flag_compact): Move extern decl to...
4912 * print-rtl.h (flag_compact): ...here.
4913 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
4914 (ASSERT_RTL_DUMP_EQ): New macro.
4915 (selftest::test_dumping_regs): New function.
4916 (selftest::test_dumping_insns): New function.
4917 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
4919 (selftest::rtl_tests_c_tests): Call the new test functions.
4921 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4923 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
4924 (outgoing_edges_match): Likewise.
4925 (try_crossjump_to_edge): Likewise.
4926 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4927 (rtl_tidy_fallthru_edge): Likewise.
4928 * rtl.h (tablejump_p): Adjust prototype.
4929 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
4931 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4933 * rtl.h (label_ref_label): New function.
4934 (set_label_ref_label): New function.
4935 (LABEL_REF_LABEL): Delete.
4936 * alias.c (rtx_equal_for_memref_p): Adjust.
4937 * cfgbuild.c (make_edges): Likewise.
4938 (purge_dead_tablejump_edges): Likewise.
4939 * cfgexpand.c (convert_debug_memory_address): Likewise.
4940 * cfgrtl.c (patch_jump_insn): Likewise.
4941 * combine.c (distribute_notes): Likewise.
4942 * cse.c (hash_rtx_cb): Likewise.
4943 (exp_equiv_p): Likewise.
4944 (fold_rtx): Likewise.
4945 (check_for_label_ref): Likewise.
4946 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4947 (cselib_hash_rtx): Likewise.
4948 * emit-rtl.c (mark_label_nuses): Likewise.
4949 * explow.c (convert_memory_address_addr_space_1): Likewise.
4950 * final.c (output_asm_label): Likewise.
4951 (output_addr_const): Likewise.
4952 * gcse.c (add_label_notes): Likewise.
4953 * genconfig.c (walk_insn_part): Likewise.
4954 * genrecog.c (validate_pattern): Likewise.
4955 * ifcvt.c (cond_exec_get_condition): Likewise.
4956 (noce_emit_store_flag): Likewise.
4957 (noce_get_alt_condition): Likewise.
4958 (noce_get_condition): Likewise.
4959 * jump.c (maybe_propagate_label_ref): Likewise.
4960 (mark_jump_label_1): Likewise.
4961 (redirect_exp_1): Likewise.
4962 (rtx_renumbered_equal_p): Likewise.
4963 * lra-constraints.c (operands_match_p): Likewise.
4964 * print-rtl.c (print_value): Likewise.
4965 * reload.c (find_reloads): Likewise.
4966 * reload1.c (set_label_offsets): Likewise.
4967 * reorg.c (get_branch_condition): Likewise.
4968 * rtl-tests.c (test_uncond_jump): Likewise.
4969 * rtl.c (rtx_equal_p_cb): Likewise.
4970 (rtx_equal_p): Likewise.
4971 * rtlanal.c (reg_mentioned_p): Likewise.
4972 (rtx_referenced_p): Likewise.
4973 (get_condition): Likewise.
4974 * varasm.c (const_hash_1): Likewise.
4975 (compare_constant): Likewise.
4976 (const_rtx_hash_1): Likewise.
4977 (output_constant_pool_1): Likewise.
4979 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4982 * reload.c (find_valid_class_1): Allow regclass if atleast one
4983 regno in regclass is ok. Compute and use rclass size based on
4984 actually available regnos for mode in rclass.
4986 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
4988 * config/sparc/sparc-modes.def (CCV): New.
4990 * config/sparc/predicates.md (v_comparison_operator): New.
4991 (icc_comparison_operator): Add support for CCV/CCXV.
4992 (xcc_comparison_operator): Likewise.
4993 * config/sparc/sparc.c (output_cbranch): Likewise.
4994 (sparc_print_operand): Likewise.
4995 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4996 (uaddvdi4): New expander.
4997 (addvdi4): Likewise.
4998 (uaddvdi4_sp32): New instruction.
4999 (addvdi4_sp32): Likewise.
5000 (uaddvsi4): New expander.
5001 (addvsi4): Likewise.
5002 (cmp_ccc_plus_sltu_set): New instruction.
5003 (cmp_ccv_plus): Likewise.
5004 (cmp_ccxv_plus): Likewise.
5005 (cmp_ccv_plus_set): Likewise.
5006 (cmp_ccxv_plus_set): Likewise.
5007 (cmp_ccv_plus_sltu_set): Likewise.
5008 (uaddvdi4): New expander.
5009 (subvdi4): Likewise.
5010 (usubdi4_sp32): New instruction.
5011 (subvdi4_sp32): Likewise.
5012 (usubvsi4): New expander.
5013 (subvsi4): Likewise.
5014 (cmpsi_minus_sltu_set): New instruction.
5015 (cmp_ccv_minus): Likewise.
5016 (cmp_ccxv_minus): Likewise.
5017 (cmp_ccv_minus_set): Likewise.
5018 (cmp_ccxv_minus_set): Likewise.
5019 (cmp_ccv_minus_sltu_set): Likewise.
5020 (unegvdi3): New expander.
5021 (negvdi3): Likewise.
5022 (unegdi3_sp32): New instruction.
5023 (negvdi3_sp32): Likewise.
5024 (unegvsi3): New expander.
5025 (negvsi3): Likewise.
5026 (cmp_ccc_neg_sltu_set): New instruction.
5027 (cmp_ccv_neg): Likewise.
5028 (cmp_ccxv_neg): Likewise.
5029 (cmp_ccv_neg_set): Likewise.
5030 (cmp_ccxv_neg_set): Likewise.
5031 (cmp_ccv_neg_sltu_set): Likewise.
5033 * tree-ssa-loop-split.c: Remove trailing spaces.
5034 * match.pd: Likewise.
5036 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5038 PR rtl-optimization/78038
5039 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
5040 be deduced to set REG through the RTL structure.
5041 (make_defs_and_copies_lists): Return false on a failing get_defs call.
5043 2016-10-21 Richard Biener <rguenther@suse.de>
5045 PR tree-optimization/78051
5046 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
5047 and mark replaced if folding did something.
5049 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
5051 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
5052 and "protected" in visibility types.
5053 (rs6000_xcoff_declare_function_name): Fix formatting.
5054 (rs6000_xcoff_declare_object_name): Fix formatting.
5056 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
5058 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
5059 and IX86_BUILTIN_HUGE_VALQ here ...
5060 (ix86_expand_builtin): ... not here.
5062 2016-10-20 Jakub Jelinek <jakub@redhat.com>
5064 * doc/gty.texi (for_user): Use @item next to @findex.
5066 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
5069 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
5070 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
5071 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
5072 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
5073 __builtin_ia32_lzcnt_u16.
5074 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
5075 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
5076 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
5077 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
5078 (bmi_tzcnt_<mode>): New expander.
5079 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5080 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
5081 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
5082 (lzcnt_<mode>): New expander.
5083 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5084 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
5085 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
5086 (UINT64_FTYPE_UINT64): New.
5087 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
5088 (__builtin_ia32_lzcnt_u16): New description.
5089 (__builtin_ia32_lzcnt_u32): Ditto.
5090 (__builtin_ia32_lzcnt_u64): Ditto.
5091 (__builtin_ctzs): Remove description.
5092 (__builtin_ia32_tzcnt_u16): New description.
5093 (__builtin_ia32_tzcnt_u32): Ditto.
5094 (__builtin_ia32_tzcnt_u64): Ditto.
5095 * config/i386/i386.c (ix86_expand_args_builtin): Handle
5096 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
5098 2016-10-20 Martin Liska <mliska@suse.cz>
5101 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
5102 comparison with STMT_UID_NOT_IN_RANGE.
5103 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
5106 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
5108 * compare-elim.c (conforming_compare): Accept UNSPECs.
5109 (find_comparison_dom_walker::before_dom_children): Deal with
5110 instructions both using and killing the flags register.
5111 (equivalent_reg_at_start): New function extracted from...
5112 (try_eliminate_compare): ...here. Use it and add support for
5113 registers and UNSPECs as second operand of the compare.
5114 * config/visium/visium-modes.def (CCV): New.
5115 * config/visium/predicates.md (visium_v_comparison_operator): New.
5116 (visium_branch_operator): Deal with CCV mode.
5117 * config/visium/visium.c (visium_select_cc_mode): Likewise.
5118 (output_cbranch): Likewise.
5119 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5120 (uaddv<mode>4): New expander.
5121 (addv<mode>4): Likewise.
5122 (add<mode>3_insn_set_carry): New instruction.
5123 (add<mode>3_insn_set_overflow): Likewise.
5124 (addsi3_insn_set_overflow): Likewise.
5125 (usubv<mode>4): New expander.
5126 (subv<mode>4): Likewise.
5127 (sub<mode>3_insn_set_carry): New instruction.
5128 (sub<mode>3_insn_set_overflow): Likewise.
5129 (subsi3_insn_set_overflow): Likewise.
5130 (unegv<mode>3): New expander.
5131 (negv<mode>3): Likewise.
5132 (neg<mode>2_insn_set_overflow): New instruction.
5133 (addv_tst<mode>): Likewise.
5134 (subv_tst<mode>): Likewise.
5135 (negv_tst<mode>): Likewise.
5136 (cbranch<mode>4_addv_insn): New splitter and instruction.
5137 (cbranch<mode>4_subv_insn): Likewise.
5138 (cbranch<mode>4_negv_insn): Likewise.
5140 2016-10-20 Richard Biener <rguenther@suse.de>
5142 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
5143 Handle decls possibly not bound.
5144 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
5145 nothing_id for decls that might not be bound if we are interested
5147 (get_constraint_for_component_ref): Deal with that.
5149 2016-10-20 Michael Matz <matz@suse.de>
5152 * common.opt (-fsplit-loops): New flag.
5153 * passes.def (pass_loop_split): Add.
5154 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
5155 (enable_fdo_optimizations): Add loop splitting.
5156 * timevar.def (TV_LOOP_SPLIT): Add.
5157 * tree-pass.h (make_pass_loop_split): Declare.
5158 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
5159 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
5160 * tree-ssa-loop-split.c: New file.
5161 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
5162 * doc/invoke.texi (fsplit-loops): Document.
5163 * doc/passes.texi (Loop optimization): Add paragraph about loop
5166 2016-10-20 Richard Biener <rguenther@suse.de>
5168 * cgraphunit.c (analyze_functions): Set node->definition to
5169 false to signal symbol removal to debug_hooks->late_global_decl.
5170 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
5171 WPA signal symbol removal to the debuginfo machinery.
5172 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
5173 using early_finised to guard the we're called for symbol
5174 removal case look at the symtabs definition flag.
5175 (gen_variable_die): Remove redundant check.
5177 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5179 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
5181 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5183 PR tree-optimization/53979
5184 * match.pd ((a ^ b) | a -> a | b): New pattern.
5186 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
5188 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
5189 config/pa/pa64-hpux-lib.h.
5190 (PA_CRTBEGIN_HACK): Likewise.
5191 (DTOR_LIST_BEGIN): Likewise.
5193 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5195 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5196 register only if "in" and "out" are different registers.
5198 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
5200 * omp-low.c (pass_oacc_device_lower::gate): New method.
5201 (execute): Always call execute_oacc_device_lower.
5203 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5205 PR tree-optimization/77916
5206 PR tree-optimization/77937
5207 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
5209 (insert_initializers): Requirement of initializer for -1 should be
5210 based on pointer-typedness of the candidate basis.
5212 2016-10-19 Bin Cheng <bin.cheng@arm.com>
5214 PR tree-optimization/78005
5215 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5216 upper (included) bound for niters of prolog loop.
5217 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
5218 Compute niters of scalar loop above which vectorized loop is
5219 preferred, as well as the upper (included) bound for the niters.
5220 (vect_do_peeling): Record niter bound for loops accordingly.
5222 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5225 * tree-core.h (enum tree_index): Put the complex types after their
5227 * tree-streamer.c (verify_common_node_recorded): New function.
5228 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
5230 2016-10-19 Martin Liska <mliska@suse.cz>
5232 * cgraph.h (cgraph_edge::binds_to_current_def_p):
5233 Replace NULL with false as a return value.
5235 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5237 PR tree-optimization/78024
5238 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5239 don't clear BB_VISITED after processing.
5241 2016-10-19 Richard Biener <rguenther@suse.de>
5243 * domwalk.c (dom_walker::walk): Use RPO order.
5245 2016-10-19 Richard Biener <rguenther@suse.de>
5247 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
5249 (evrp_dom_walker::~evrp_dom_walker): Free it.
5250 (evrp_dom_walker::stmts_to_remove): Add.
5251 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
5252 whose output we fully propagate for removal. Propagate
5253 into BB destination PHI arguments.
5254 (execute_early_vrp): Remove queued stmts. Dump value ranges
5255 before stmt removal.
5257 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
5259 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
5260 * passes.def: Add two instances of pass_walloca.
5261 * tree-pass.h (make_pass_walloca): New.
5262 * gimple-ssa-warn-alloca.c: New file.
5263 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
5264 -Wvla-larger-than= options.
5266 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
5268 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
5269 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
5271 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
5273 * config/rs6000/altivec.h (vec_xl_len): New macro.
5274 (vec_xst_len): New macro.
5275 (vec_cmpnez): New macro.
5276 (vec_cntlz_lsbb): New macro.
5277 (vec_cnttz_lsbb): New macro.
5278 (vec_xlx): New macro.
5279 (vec_xrx): New macro.
5280 (vec_all_nez): New C++ predicate template.
5281 (vec_any_eqz): New C++ predicate template.
5282 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
5283 conditional compilation.
5284 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
5285 conditional compilation.
5286 (vec_all_nez): New macro.
5287 (vec_any_eqz): New macro.
5288 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
5290 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
5292 * config/rs6000/vector.md (VI): Moved this mode iterator
5293 definition from altivec.md to vector.md.
5294 (UNSPEC_NEZ_P): New value.
5295 (vector_ne_<mode>_p): New expansion for implementation of
5296 vec_all_ne and vec_any_eq built-in functions.
5297 (vector_nez_<mode>_p): New expansion for implementation of
5298 vec_all_nez and vec_any_eqz built-in functions.
5299 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
5300 and vec_any_eq built-in function.
5301 (cr6_test_for_zero): New commentary to explain this expansion.
5302 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
5303 (cr6_test_for_lt): New commentary to explain this expansion.
5304 (cr6_test_for_lt_reverse): New commentary to explain this
5306 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5307 overloaded function prototypes for vec_all_ne, vec_all_nez,
5308 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
5309 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
5311 (altivec_resolve_overloaded_builtin): Modify the handling of
5312 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
5313 the compiler is configured to support TARGET_P9_VECTOR.
5314 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
5315 to explain the special processing that is given to predicate
5316 built-ins introduced using this macro.
5317 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
5318 the special processing given to predicate built-ins introduced
5320 (BU_VSX_P): Likewise.
5321 (BU_P8V_AV_P): Likewise.
5322 (BU_P9V_AV_P): Likewise.
5323 (BU_P9V_AV_X): New macro.
5324 (BU_P9V_64BIT_AV_X): New macro.
5325 (BU_P9V_VSX_3): New macro.
5326 (BU_P9V_OVERLOAD_P): New macro.
5327 (LXVL): New BU_P9V_64BIT_VSX_2.
5328 (VEXTUBLX): New BU_P9V_AV_2.
5329 (VEXTUBRX): Likewise.
5330 (VEXTUHLX): Likewise.
5331 (VEXTUHRX): Likewise.
5332 (VEXTUWLX): Likewise.
5333 (VEXTUWRX): Likewise.
5334 (STXVL): New BU_P9V_64BIT_AV_X.
5335 (VCLZLSBB): New BU_P9V_AV_1.
5336 (VCTZLSBB): Likewise.
5337 (CMPNEB): New BU_P9V_AV_2.
5342 (VCMPNEB_P): New BU_P9V_AV_P.
5343 (VCMPNEH_P): Likewise.
5344 (VCMPNEW_P): Likewise.
5345 (VCMPNED_P): Likewise.
5346 (VCMPNEFP_P): Likewise.
5347 (VCMPNEDP_P): Likewise.
5348 (CMPNEZB): New BU_P9V_AV_2.
5349 (CMPNEZH): Likewise.
5350 (CMPNEZW): Likewise.
5351 (VCMPNEZB_P): New BU_P9V_AV_P.
5352 (VCMPNEZH_P): Likewise.
5353 (VCMPNEZW_P): Likewise.
5354 (LXVL): New BU_P9V_OVERLOAD_2.
5355 (STXVL): New BU_P9V_OVERLOAD_3.
5356 (VEXTULX): New BU_P9V_OVERLOAD_2.
5357 (VEXTURX): Likewise.
5359 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
5360 (VCMPNE_P): Likewise.
5361 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
5362 (VCTZLSBB): Likewise.
5363 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
5364 comment to explain mode used for scratch register.
5365 (altivec_expand_stxvl_builtin): New function.
5366 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
5367 (altivec_init_builtins): Add initialized variable
5368 void_ftype_v16qi_pvoid_long and use this type to define the
5369 built-in function __builtin_altivec_stxvl.
5370 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
5371 (UNSPEC_STXVL): New value.
5372 (UNSPEC_VCLZLSBB): New value.
5373 (UNSPEC_VCTZLSBB): New value.
5374 (UNSPEC_VEXTUBLX): New value.
5375 (UNSPEC_VEXTUHLX): New value.
5376 (UNSPEC_VEXTUWLX): New value.
5377 (UNSPEC_VEXTUBRX): New value.
5378 (UNSPEC_VEXTUHRX): New value.
5379 (UNSPEC_VEXTUWRX): New value.
5380 (UNSPEC_VCMPNEB): New value.
5381 (UNSPEC_VCMPNEZB): New value.
5382 (UNSPEC_VCMPNEH): New value.
5383 (UNSPEC_VCMPNEZH): New value.
5384 (UNSPEC_VCMPNEW): New value.
5385 (UNSPEC_VCMPNEZW): New value.
5386 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5387 vector of integer modes.
5388 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5389 vector of float or double modes.
5390 (*vector_nez_<mode>_p): New insn for vector test all not equal or
5392 (lxvl): New expand for load VSX vector with length.
5393 (*lxvl): New insn for load VSX vector with length.
5394 (stxvl): New expand for store VSX vector with length.
5395 (*stxvl): New insn for store VSX vector with length.
5396 (vcmpneb): New insn for vector of byte compare not equal.
5397 (vcmpnezb): New insn for vector of byte compare not equal or zero.
5398 (vcmpneh): New insn for vector of half word compare not equal.
5399 (vcmpnezh): New insn for vector of half word compare not equal or
5401 (vcmpnew): New insn for vector of word compare not equal.
5402 (vcmpne<VSs>): New insn for vector of float or double compare not
5404 (vcmpnezw): New insn for vector of word compare not equal or zero.
5405 (vclzlsbb): New insn for vector count leading zero
5406 least-significant bits byte.
5407 (vctzlsbb): New insn for vector count trailing zero least
5408 signficant bits byte.
5409 (vextublx): New insn for vector extract unsigned byte left
5411 (vextubrx): New insn for vector extract unsigned byte right
5413 (vextuhlx): New insn for vector extract unsigned half word left
5415 (vextuhrx): New insn for vector extract unsigned half word right
5417 (vextuwlx): New insn for vector extract unsigned word left
5419 (vextuwrx): New insn for vector extract unsigned word right
5421 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
5422 clarify intent of this constant.
5423 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
5424 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
5425 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
5426 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
5427 and vec_xrx functions.
5429 2016-10-18 Andrew Pinski <apinski@cavium.com>
5432 * predict.c (is_exit_with_zero_arg): New function.
5433 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
5436 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
5439 * config/i386/i386.c (legitimize_tls_address)
5440 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
5441 convert dest to Pmode if different than Pmode.
5443 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5445 PR tree-optimization/77916
5446 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
5447 stopgap fix, as pointers with -1 increment are still broken.
5449 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
5451 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
5452 mapping class decoration from here...
5453 (rs6000_xcoff_encode_section): ...to here.
5455 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
5456 if shrink-wrapping and optimizing for speed.
5458 2016-10-18 Richard Biener <rguenther@suse.de>
5460 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5461 not visited but non-executable predecessors. Return taken edge.
5462 Simplify conditions and refactor propagation vs. folding step.
5464 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
5466 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
5467 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
5468 (rs6000_get_separate_components): Assert we do not have those
5469 strategies selected.
5471 2016-10-18 Richard Biener <rguenther@suse.de>
5473 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
5474 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
5476 (substitute_and_fold_dom_walker): Adjust constructor.
5477 (substitute_and_fold_dom_walker::before_dom_children): Remove
5478 do_dce flag and handling (always true).
5479 (substitute_and_fold): Likewise.
5480 * tree-vrp.c (vrp_finalize): Adjust.
5481 (execute_early_vrp): Remove final BB_VISITED clearing.
5482 * tree-ssa-ccp.c (ccp_finalize): Adjust.
5483 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5484 * ira.c (ira): Call clear_bb_flags.
5486 2016-10-18 Richard Biener <rguenther@suse.de>
5488 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5489 get at the operand to look at with TREE_OPERAND for generic
5492 2016-10-18 David Malcolm <dmalcolm@redhat.com>
5494 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5496 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5497 (write_test_expr): Use rtx_reader_ptr for calls to
5499 (write_attr_value): Likewise.
5500 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5501 call to print_md_ptr_loc.
5502 (write_one_condition): Likewise for calls to print_c_condition.
5503 * genconstants.c: Include "statistics.h" and "vec.h".
5504 (main): Update for conversion to member functions.
5505 * genemit.c (emit_c_code): Use rtx_reader_ptr for
5506 call to print_md_ptr_loc.
5507 * genenums.c: Include "statistics.h" and "vec.h".
5508 (main): Update for conversion of traverse_enum_types to a method.
5509 * genmddeps.c: Include "statistics.h" and "vec.h".
5510 * genoutput.c (process_template): Use rtx_reader_ptr for call to
5512 * genpreds.c (write_predicate_subfunction): Likewise.
5513 (write_predicate_expr): Likewise for calls to print_c_condition.
5514 * genrecog.c (print_test): Likewise.
5515 * gensupport.c (process_rtx): Likewise for calls to
5516 copy_md_ptr_loc and join_c_conditions.
5517 (alter_test_for_insn): Likewise for call to join_c_conditions.
5518 (process_substs_on_one_elem): Likewise.
5519 (gen_mnemonic_setattr): Update for move of string_obstack to a
5520 field of rtx_reader.
5521 (mnemonic_htab_callback): Likewise. Fix formatting.
5522 (gen_mnemonic_attr): Likewise.
5523 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5524 to print_c_condition.
5525 * read-md.c: Include "statistics.h" and "vec.h".
5526 (string_obstack): Convert this global to field "m_string_obstack"
5527 of class rtx_reader.
5528 (ptr_locs): Likewise, as "m_ptr_locs".
5529 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5530 (joined_conditions): Likewise, as "m_joined_conditions".
5531 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5532 (md_constants): Likewise, as "m_md_constants".
5533 (enum_types): Likewise, as "m_enum_types".
5534 (set_md_ptr_loc): Convert to...
5535 (rtx_reader::set_md_ptr_loc): ...member function.
5536 (get_md_ptr_loc): Convert to...
5537 (rtx_reader::get_md_ptr_loc): ...member function.
5538 (copy_md_ptr_loc): Convert to...
5539 (rtx_reader::copy_md_ptr_loc): ...member function.
5540 (fprint_md_ptr_loc): Convert to...
5541 (rtx_reader::fprint_md_ptr_loc): ...member function.
5542 (print_md_ptr_loc): Convert to...
5543 (rtx_reader::print_md_ptr_loc): ...member function.
5544 (join_c_conditions): Convert to...
5545 (rtx_reader::join_c_conditions): ...member function.
5546 (fprint_c_condition): Convert to...
5547 (rtx_reader::fprint_c_condition): ...member function.
5548 (print_c_condition): Convert to...
5549 (rtx_reader::print_c_condition): ...member function.
5550 (read_name): Convert to...
5551 (rtx_reader::read_name): ...member function.
5552 (read_escape): Convert to...
5553 (rtx_reader::read_escape): ...member function.
5554 (read_quoted_string): Convert to...
5555 (rtx_reader::read_quoted_string): ...member function.
5556 (read_braced_string): Convert to...
5557 (rtx_reader::read_braced_string): ...member function.
5558 (read_string): Convert to...
5559 (rtx_reader::read_string): ...member function.
5560 (read_skip_construct): Convert to...
5561 (rtx_reader::read_skip_construct): ...member function.
5562 (handle_constants): Convert to...
5563 (rtx_reader::handle_constants): ...member function.
5564 (traverse_md_constants): Convert to...
5565 (rtx_reader::traverse_md_constants): ...member function.
5566 (handle_enum): Convert to...
5567 (rtx_reader::handle_enum): ...member function.
5568 (lookup_enum_type): Convert to...
5569 (rtx_reader::lookup_enum_type): ...member function.
5570 (traverse_enum_types): Convert to...
5571 (rtx_reader::traverse_enum_types): ...member function.
5572 (rtx_reader::rtx_reader): Move initializations
5573 of various former global data from rtx_reader::read_md_files to
5574 here, as fields, along with the call to unlock_std_streams.
5575 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5577 (rtx_reader::read_md_files): Move initializations of various
5578 global data from here to the ctor.
5579 * read-md.h (read_name): Convert to...
5580 (rtx_reader::read_name): ...member function.
5581 (rtx_reader::read_escape): New method decl.
5582 (read_quoted_string): Convert to...
5583 (rtx_reader::read_quoted_string): ...member function.
5584 (rtx_reader::read_braced_string): New method decl.
5585 (read_string): Convert to...
5586 (rtx_reader::read_string): ...member function.
5587 (rtx_reader::read_skip_construct): New method decl.
5588 (rtx_reader::set_md_ptr_loc): New method decl.
5589 (rtx_reader::get_md_ptr_loc): New method decl.
5590 (copy_md_ptr_loc): Convert to...
5591 (rtx_reader::copy_md_ptr_loc): ...member function.
5592 (fprint_md_ptr_loc): Convert to...
5593 (rtx_reader::fprint_md_ptr_loc): ...member function.
5594 (print_md_ptr_loc): Convert to...
5595 (rtx_reader::print_md_ptr_loc): ...member function.
5596 (rtx_reader::lookup_enum_type): New method decl.
5597 (rtx_reader::traverse_enum_types): New method decl.
5598 (rtx_reader::handle_constants): New method decl.
5599 (traverse_md_constants): Convert to...
5600 (rtx_reader::traverse_md_constants): ...member function.
5601 (rtx_reader::handle_enum): New method decl.
5602 (rtx_reader::join_c_conditions): New method decl.
5603 (fprint_c_condition): Convert to...
5604 (rtx_reader::fprint_c_condition): ...member function.
5605 (print_c_condition): Convert to...
5606 (rtx_reader::print_c_condition): ...member function.
5607 (rtx_reader::apply_iterator_to_string): New method decl.
5608 (rtx_reader::copy_rtx_for_iterators): New method decl.
5609 (rtx_reader::read_conditions): New method decl.
5610 (rtx_reader::record_potential_iterator_use): New method decl.
5611 (rtx_reader::read_mapping): New method decl.
5612 (rtx_reader::read_rtx): New method decl.
5613 (rtx_reader::read_rtx_code): New method decl.
5614 (rtx_reader::read_rtx_operand): New method decl.
5615 (rtx_reader::read_nested_rtx): New method decl.
5616 (rtx_reader::read_rtx_variadic): New method decl.
5617 (rtx_reader::get_string_obstack): New method.
5618 (rtx_reader::get_md_constants): New method.
5619 (string_obstack): Convert global variable decl to...
5620 (rtx_reader::m_string_obstack): ...this new field.
5621 (rtx_reader::m_ptr_locs): New field.
5622 (rtx_reader::m_ptr_loc_obstack): New field.
5623 (rtx_reader::m_joined_conditions): New field.
5624 (rtx_reader::m_joined_conditions_obstack): New field.
5625 (rtx_reader::m_md_constants): New field.
5626 (rtx_reader::m_enum_types): New field.
5627 * read-rtl.c (apply_iterator_to_string): Convert to...
5628 (rtx_reader::apply_iterator_to_string): ...member function.
5629 (copy_rtx_for_iterators): Convert to...
5630 (rtx_reader::copy_rtx_for_iterators): ...member function.
5631 (add_condition_to_string): Use rtx_reader_ptr for
5632 calls join_c_conditions.
5633 (apply_iterators): Use rtx_reader_ptr for calls to
5634 join_c_conditions and copy_rtx_for_iterators.
5635 (read_conditions): Convert to...
5636 (rtx_reader::read_conditions): ...member function.
5637 (record_potential_iterator_use): Convert to...
5638 (rtx_reader::record_potential_iterator_use): ...member function.
5639 (read_mapping): Convert to...
5640 (rtx_reader::read_mapping): ...member function.
5641 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5642 (read_rtx): Convert to...
5643 (rtx_reader::read_rtx): ...member function.
5644 (read_rtx_code): Convert to...
5645 (rtx_reader::read_rtx_code): ...member function.
5646 (read_rtx_operand): Convert to...
5647 (rtx_reader::read_rtx_operand): ...member function. Update for move
5648 of string_obstack to a field.
5649 (read_nested_rtx): Convert to..
5650 (rtx_reader::read_nested_rtx): ...member function.
5651 (read_rtx_variadic): Convert to..
5652 (rtx_reader::read_rtx_variadic): ...member function.
5654 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5656 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5658 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5660 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5661 for pointer type too.
5662 (ipcp_update_vr): set_ptr_nonnull for pointer.
5664 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5666 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5667 pt_solution_singleton_p.
5668 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5669 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5670 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5671 pointer nonnull computed by VRP.
5672 Also Conservatively set pt.null to 1.
5673 (pt_solution_reset): Conservatively set pt.null to 1.
5674 (pt_solution_singleton_or_null_p): Renamed from
5675 pt_solution_singleton_p.
5676 * tree-ssanames.h (set_ptr_nonnull): Declare.
5677 (get_ptr_nonnull): Likewise.
5678 * tree-ssanames.c (set_ptr_nonnull): New.
5679 (get_ptr_nonnull): Likewise.
5680 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5681 (evrp_dom_walker::before_dom_children): Likewise.
5683 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5685 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5686 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5687 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5688 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5689 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5690 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5691 (rs6000_option_override_internal): Clear it if ABI_AIX.
5692 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5693 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5695 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5697 * gimple-ssa-strength-reduction.c (record_increment): Remove
5700 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5702 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5703 that the result is non-zero if it is true.
5704 (maybe_expand_shift): New wrapper around expand_shift_1.
5705 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5707 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5709 PR tree-optimization/77916
5710 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5711 Don't allow a MINUS_EXPR for pointer arithmetic for either known
5713 (record_increment): Increments of -1 for unknown strides just use
5714 a multiply initializer like other negative values.
5715 (analyze_increments): Remove stopgap solution for -1 increment
5716 applied to pointer arithmetic.
5718 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5720 * dominance.c (dom_info::dom_info): Add new constructor for region
5721 which is vector of basic blocks.
5722 (dom_init): New method to initialize members common for both
5724 (dom_info::dom_info): Invoke dom_init for partial initialization.
5725 (dom_info::get_idom): Add check to corner cases on basic blocks which
5727 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5728 to detect unreachable bbs.
5729 (dom_info::calc_idoms): Likewise.
5730 (compute_dom_fast_query_in_region): New function.
5731 (calculate_dominance_info_for_region): Likewise.
5732 (free_dominance_info_for_region): Likewise.
5733 * dominance.h: Add prototypes for introduced region-based functions
5734 * tree-if-conv.c (build_region): New function.
5735 (if_convertible_loop_p_1): Invoke local version of post-dominators
5736 calculation before basic block predication with subsequent freeing
5737 post-dominator info.
5738 (tree_if_conversion): Remove free of post-dominator info
5739 (pass_if_conversion::execute): Delete detection of infinite loops
5740 and fake edges to exit block since post-dominator calculation is
5741 performed per if-converted loop only.
5743 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5746 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5747 register explicitly.
5748 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5749 optimizing for size.
5751 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5753 * config/aarch64/aarch64.c: Delete inclusion of
5754 cortex-a57-fma-steering.h.
5755 (aarch64_override_options): Delete call
5756 to aarch64_register_fma_steering.
5757 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5758 * config/aarch64/cortex-a57-fma-steering.h: Delete.
5759 * config/aarch64/aarch64-passes.def: New file.
5760 * config/aarch64/cortex-a57-fma-steering.c
5761 (aarch64_register_fma_steering): Delete definition.
5762 (make_pass_fma_steering): Remove static qualifier.
5763 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5764 (cortex-a57-fma-steering.o): Remove dependency on
5765 cortex-a57-fma-steering.h.
5767 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5769 * explow.c (validize_mem): Do not modify the argument in-place.
5771 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
5773 * tree-streamer.c (record_common_node): Explicitly list expected
5776 2016-10-17 Richard Biener <rguenther@suse.de>
5778 PR tree-optimization/77988
5779 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5781 2016-10-17 Marek Polacek <polacek@redhat.com>
5783 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5785 2016-10-17 Richard Biener <rguenther@suse.de>
5787 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5790 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5792 PR tree-optimization/71636
5793 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
5795 2016-10-17 Richard Biener <rguenther@suse.de>
5797 * gimplify.c (gimplify_function_tree): Do not move the outer
5800 2016-10-17 Jakub Jelinek <jakub@redhat.com>
5802 * langhooks.h (struct lang_hooks_for_decls): Remove
5803 function_decl_explicit_p, function_decl_deleted_p and
5804 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
5805 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
5806 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5807 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
5808 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
5809 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
5810 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5811 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
5812 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
5813 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
5814 * langhooks.c (lhd_decl_dwarf_attribute): New function.
5815 * dwarf2out.c (gen_subprogram_die): Use
5816 lang_hooks.decls.decl_dwarf_attribute instead of
5817 lang_hooks.decls.function_decl_*.
5819 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5823 * common.opt (-ftrampolines): New option.
5824 * doc/invoke.texi (Code Gen Options): Document it.
5825 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
5826 * doc/tm.texi: Regenerate.
5827 * builtins.def: Add init_descriptor and adjust_descriptor.
5828 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
5829 on platforms with descriptors.
5830 (expand_builtin_init_descriptor): New function.
5831 (expand_builtin_adjust_descriptor): Likewise.
5832 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
5833 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
5834 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
5835 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
5836 Set STATIC_CHAIN_REG_P on the static chain register, if any.
5837 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
5838 (expand_call): Likewise. Move around call to prepare_call_address
5839 and pass all flags to it.
5840 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
5841 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
5842 (gimple_call_set_by_descriptor): New setter.
5843 (gimple_call_by_descriptor_p): New getter.
5844 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
5845 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
5846 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
5847 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5848 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
5849 * rtl.h (STATIC_CHAIN_REG_P): New macro.
5850 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
5851 * target.def (custom_function_descriptors): New POD hook.
5852 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
5853 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
5854 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
5855 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
5856 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
5857 (build_common_builtin_nodes): Initialize init_descriptor and
5859 * tree-nested.c: Include target.h.
5860 (struct nesting_info): Add 'any_descr_created' field.
5861 (get_descriptor_type): New function.
5862 (lookup_element_for_decl): New function extracted from...
5863 (create_field_for_decl): Likewise.
5864 (lookup_tramp_for_decl): ...here. Adjust.
5865 (lookup_descr_for_decl): New function.
5866 (convert_tramp_reference_op): Deal with descriptors.
5867 (build_init_call_stmt): New function extracted from...
5868 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
5869 * defaults.h (FUNCTION_ALIGNMENT): Define.
5870 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
5871 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5872 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5873 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
5874 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5876 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5878 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
5879 constants in CONST_VECTORs.
5881 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5883 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
5884 register as destination of bmask.
5885 (vector_init_bshuffle): Likewise.
5886 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
5887 (bmaskdi_vis): Enable only in 64-bit mode.
5889 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5891 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
5892 make LR a separately shrink-wrapped component unless savres_strategy
5893 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
5894 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
5895 wrapping when not both {SAVE,REST}_INLINE_GPRS.
5897 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5899 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
5900 and keep looping on failure.
5902 2016-10-14 David Malcolm <dmalcolm@redhat.com>
5904 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
5906 (print_rtx_function): Update example in comment for...
5907 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
5908 non-virtual pseudos with a '%' sigil followed by the regno, offset
5909 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
5910 pseudo is dumped as "%0".
5912 2016-10-14 Jakub Jelinek <jakub@redhat.com>
5915 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
5918 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
5920 * config/sparc/sparc-passes.def: New file.
5921 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
5922 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
5923 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
5925 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5927 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
5928 loop peel to loops with exit test at the beginning.
5930 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5932 PR rtl-optimization/68212
5933 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
5934 frequency when computing scale factor for peeled copies.
5935 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
5936 values for switch/peel blocks/edges.
5938 2016-10-14 Pedro Alves <palves@redhat.com>
5940 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
5942 2016-10-14 Catherine Moore <clm@codesourcery.com>
5944 * config/mips/mips.c (mips_prepare_pch_save): Initialize
5945 micromips_globals to zero.
5947 2016-10-14 Richard Biener <rguenther@suse.de>
5949 PR tree-optimization/77979
5950 * tree-vrp.c (compare_name_with_value): Handle released SSA names
5951 in the equivalency sets.
5952 (compare_names): Likewise.
5954 2016-10-14 Martin Liska <mliska@suse.cz>
5956 * builtins.h(target_char_cst_p): Declare the function.
5957 * builtins.c (fold_builtin_memchr): Remove.
5958 (target_char_cst_p): Move the function from gimple-fold.c.
5959 (fold_builtin_3): Do not call the function.
5960 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
5961 (gimple_fold_builtin): Call the function.
5962 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
5964 2016-10-14 Martin Liska <mliska@suse.cz>
5966 * builtins.c (fold_builtin_strcmp): Remove function.
5967 (fold_builtin_strncmp): Likewise.
5968 (fold_builtin_2): Remove call of the function.
5969 (fold_builtin_3): Likewise.
5970 * fold-const-call.c (fold_const_call): Add constant folding
5971 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
5972 * fold-const-call.h (build_cmp_result): Declare the function.
5973 * gimple-fold.c (gimple_load_first_char): New function.
5974 (gimple_fold_builtin_string_compare): Likewise.
5975 (gimple_fold_builtin): Call the function.
5977 2016-10-14 Nathan Sidwell <nathan@acm.org>
5979 * gcov-io.c (gcov_open): Deconstify 'mode'.
5981 2016-10-14 Martin Liska <mliska@suse.cz>
5983 * fold-const.c (c_getstr): Support of properly \0-terminated
5984 string constants. New argument is added.
5985 * fold-const.h: New argument is added.
5987 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5989 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
5991 (aarch64_print_hint_for_core): Likewise.
5992 (aarch64_print_hint_for_arch): Likewise.
5993 (aarch64_validate_march): Use it. Fix indentation in type signature.
5994 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
5995 (aarch64_validate_mtune): Likewise.
5996 (aarch64_handle_attr_arch): Likewise.
5997 (aarch64_handle_attr_cpu): Likewise.
5998 (aarch64_handle_attr_tune): Likewise.
6000 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6002 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
6005 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
6007 * config/m68k/m68k.c (m68k_option_override): Check
6008 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
6009 instead of stack_limit_rtx.
6011 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6013 * dwarf2out.c (gen_member_die): Handle inline static data member
6016 2016-10-13 Nathan Sidwell <nathan@acm.org>
6018 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
6019 gcov_var.mode. Remove unnecessary fstat.
6021 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
6024 * function.c (thread_prologue_and_epilogue_insns): Call all
6025 make_*logue_seq in the same order as traditional. Call them
6026 all a second time if shrink_wrapped_separate.
6028 2016-10-13 Marek Polacek <polacek@redhat.com>
6030 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
6031 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
6034 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6036 PR tree-optimization/77937
6037 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
6038 to infinite when we have a pointer with an increment of -1.
6040 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6042 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
6044 * memmodel.h: This file.
6045 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
6046 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
6047 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
6048 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
6049 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
6050 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
6051 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
6052 compare-elim.c, config/aarch64/aarch64-builtins.c,
6053 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
6054 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
6055 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
6056 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
6057 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
6058 config/darwin.c, config/epiphany/epiphany.c,
6059 config/epiphany/mode-switch-use.c,
6060 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
6061 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6062 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
6063 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6064 config/m68k/m68k.c, config/mcore/mcore.c,
6065 config/microblaze/microblaze.c, config/mmix/mmix.c,
6066 config/mn10300/mn10300.c, config/moxie/moxie.c,
6067 config/msp430/msp430.c, config/nds32/nds32-cost.c,
6068 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
6069 config/nds32/nds32-memory-manipulation.c,
6070 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
6071 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
6072 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
6073 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
6074 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
6075 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
6076 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6077 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6078 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
6079 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
6080 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
6081 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
6082 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
6083 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
6084 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
6085 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
6086 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
6087 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
6088 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
6089 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6090 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
6091 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
6092 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
6093 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
6094 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
6095 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
6096 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
6097 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
6098 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
6099 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
6100 var-tracking.c, varasm.c: Include memmodel.h.
6101 * genattrtab.c (write_header): Include memmodel.h in generated file.
6102 * genautomata.c (main): Likewise.
6103 * gengtype.c (open_base_files): Likewise.
6104 * genopinit.c (main): Likewise.
6105 * genconditions.c (write_header): Include memmodel.h earlier in
6107 * genemit.c (main): Likewise.
6108 * genoutput.c (output_prologue): Likewise.
6109 * genpeep.c (main): Likewise.
6110 * genpreds.c (write_insn_preds_c): Likewise.
6111 * genrecog.c (write_header): Likewise.
6112 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
6114 2016-10-13 David Malcolm <dmalcolm@redhat.com>
6116 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
6117 for new "compact" param of print_rtx_function. Check for "cinsn"
6119 * print-rtl-function.c (flag_compact): New decl.
6120 (print_rtx_function): Add param "compact" and use it to set
6121 flag_compact, adding a description of the effect to the leading
6122 comment, and updating the example output.
6123 * print-rtl.c (flag_compact): New variable.
6124 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
6126 (print_rtx_operand_code_i): When printing source locations, wrap
6127 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
6128 (print_rtx_operand_code_r): Don't print regnos for hard regs and
6129 virtuals in compact mode.
6130 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
6131 apart from in LABEL_REFs.
6132 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
6133 Don't print basic block ids in compact mode.
6134 (print_rtx): In compact mode, prefix the code of insns with "c",
6135 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
6136 * print-rtl.h (print_rtx_function): Add "compact" param.
6138 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6140 * arm.h (TARGET_VFP): Delete.
6141 (TARGET_VFPD32): Remove references to TARGET_VFP.
6142 (TARGET_VFP3, TARGET_VFP5): Likewise.
6143 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
6144 (TARGET_NEON_FP16): Likewise.
6145 (TARGET_FMA): Likewise.
6146 (TARGET_CRYPTO): Likewise.
6147 (TARGET_NEON): Likewise.
6148 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6149 (FUNCTION_ARG_REGNO_P): Likewise.
6150 * arm.c (arm_option_check_internal): Likewise.
6151 (arm_option_override): Likewise.
6152 (use_return_insn): Likewise.
6153 (arm_function_value_regno_p): Likewise.
6154 (arm_apply_result_size): Likewise.
6155 (use_vfp_abi): Likewise.
6156 (arm_legitimate_address_outer_p): Likewise.
6157 (thumb2_legitimate_address_p): Likewise.
6158 (arm_legitimate_index_p): Likewise.
6159 (thumb2_legitimate_index_p): Likewise.
6160 (arm_legitimate_address): Likewise.
6161 (arm_get_vfp_saved_size): Likewise.
6162 (arm_emit_vfp_multi_reg_pop): Likewise.
6163 (arm_get_frame_offsets): Likewise.
6164 (arm_save_coproc_regs): Likewise.
6165 (arm_hard_regno_mode_ok): Likewise.
6166 (arm_expand_epilogue_apcs_frame): Likewise.
6167 (arm_expand_epilogue): Likewise.
6168 (arm_file_start): Likewise.
6169 (arm_conditional_register_usage): Likewise.
6170 (arm_validize_comparison): Use vfp_compare_operand directly.
6171 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
6172 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
6174 (arm_atomic_assign_expand_fenv): Likewise.
6175 * arm.md (divsf3): Likewise.
6176 (arm_negsi2): Likewise.
6178 (arm_movdi): Likewise.
6179 (arm_movt): Likewise.
6180 (cbranchsf4): Change predicate to vfp_compare_operand.
6181 (cbranchdf4): Change predicate to vfp_compare_operand.
6182 (cstorehf4): Change predicate to vfp_compare_operand.
6183 (cstoresf4): Change predicate to vfp_compare_operand.
6184 (cstoredf4): Change predicate to vfp_compare_operand.
6185 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
6186 (movhi_insn_arch4, movhi_bytes): Likewise.
6187 * constraints.md (Dt): Likewise.
6189 * iterators.md (SDF): Likewise.
6190 * predicates.md (arm_float_compare_operand): Delete.
6191 (const_double_vcvt_power_of_two_reciprocal): Remove references to
6193 (const_double_vcvt_power_of_two): Likewise.
6194 * thumb2.md thumb2_movsi_insn): Likewise.
6195 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
6196 (movhf_vfp): Likewise.
6197 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
6198 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6199 (movsf_vfp, thumb2_movsf_vfp): Likewise.
6200 (movdf_vfp, thumb2_movdf_vfp): Likewise.
6201 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
6202 (subsf3_vfp, divsf3_vfp): Likewise.
6203 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
6204 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
6205 (mulsf3negsfsubsf_vfp): Likewise.
6206 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
6207 (floatunssisf2, sqrtsf2_vfp): Likewise.
6208 (movcc_vfp): Likewise.
6209 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
6210 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
6211 (push_multi_vfp): Likewise.
6212 (set_fpscr, get_fpscr): Likewise.
6213 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
6215 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6217 * arm.h (TARGET_VFP): Unconditionally define to 1.
6218 (arm_fpu_desc): Remove 'model' field.
6219 (TARGET_FPU_MODEL): Delete.
6220 * arm.c (all_fpus): Don't initialize the model field.
6221 (arm_can_inline_p): Don't check the FPU model.
6222 * arm-fpus.def: Remove redundant model field from all FPU
6225 2016-10-13 Richard Biener <rguenther@suse.de>
6228 * genmatch.c (struct capture): Add value_match member.
6229 (commutate): Preserve value_match.
6230 (lower_opt_convert): Likewise.
6231 (lower_cond): Likewise.
6232 (replace_id): Likewise.
6233 (struct dt_operand): Add value_match member.
6234 (decision_tree::cmp_node): Compare it.
6235 (decision_tree::insert_operand): Honor it when finding and
6236 when appending a DT_MATCH.
6237 (dt_operand::gen_match_op): Generate a type check after
6238 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
6239 (parser::get_internal_capture_id): New helper.
6240 (parser::finish_match_operand): New function lowering @@<id>.
6241 (parser::parse_capture): Parse @@<id> as value-match.
6242 (parser::parse_expr): Use get_internal_capture_id.
6243 (parser::parse_simplify): Call finish_match_operand.
6244 (walk_captures): New helper.
6245 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
6247 ((X /[ex] A) * A -> X): Likewise.
6248 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
6249 convert[12] and value-matching.
6250 ((A | B) & (A | C) -> A | (B & C)): Likewise.
6251 ((X | Y) | Y -> X | Y): Likewise.
6252 ((X ^ Y) ^ Y -> X): Likewise.
6253 (A - (A & B) -> ~B & A): Likewise.
6254 ((T)(P + A) - (T)P -> (T) A): Likewise.
6255 ((T)P - (T)(P + A) -> -(T) A): Likewise.
6256 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
6257 * doc/match-and-simplify.texi: Amend capture section.
6259 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6261 * config/arc/arc.md (umul_600): Remove predicated variant.
6262 (umul64_600): Likewise.
6264 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6266 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
6268 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6270 * tree-vect-loop.c (loop_niters_no_overflow): New func.
6271 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
6272 no-overflow information to vect_do_peeling_for_loop_bound and
6273 vect_gen_vector_loop_niters.
6275 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6277 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
6280 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6282 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
6283 adjust_vec automatically.
6284 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
6285 param exit_bb to guard_to.
6286 (slpeel_checking_verify_cfg_after_peeling):
6287 (set_prologue_iterations):
6288 (create_lcssa_for_virtual_phi): New func which is factored out from
6289 slpeel_tree_peel_loop_to_edge.
6290 (slpeel_tree_peel_loop_to_edge):
6291 (iv_phi_p): New func.
6292 (vect_can_advance_ivs_p): Call iv_phi_p.
6293 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
6294 new gimple stmts in basic block.
6295 (vect_gen_niters_for_prolog_loop): Rename to...
6296 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
6297 adjust implementation.
6298 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
6299 sizetype if necessary.
6300 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
6301 it to external function.
6302 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
6303 (vect_gen_vector_loop_niters_mult_vf): New.
6304 (slpeel_update_phi_nodes_for_loops): New.
6305 (slpeel_update_phi_nodes_for_guard1): Reimplement.
6306 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
6307 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
6308 * tree-vect-loop.c (vect_build_loop_niters): Move to file
6309 tree-vect-loop-manip.c
6310 (vect_generate_tmps_on_preheader): Delete.
6311 (vect_transform_loop): Rename vectorization_factor to vf. Call
6312 vect_do_peeling instead of vect_do_peeling-* functions.
6313 * tree-vectorizer.h (vect_do_peeling): New decl.
6314 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
6315 (vect_do_peeling_for_loop_bound): Delete.
6316 (vect_do_peeling_for_alignment): Delete.
6318 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6320 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
6321 duplicated loop after its preheader and after the original loop.
6323 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6325 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
6326 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
6328 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6330 * tree-vect-loop.c (vectorizable_live_operation): Support handling
6331 for live variable outside loop but not in lcssa form.
6333 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6335 * cfg.c (reset_original_copy_tables): New func.
6336 * cfg.h (reset_original_copy_tables): New decl.
6338 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6341 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
6343 * varasm.c (default_binds_local_p_3): Formatting fix.
6345 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6347 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
6349 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
6350 Remove useless code.
6352 2016-10-13 Martin Liska <mliska@suse.cz>
6354 PR tree-optimization/77943
6355 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
6356 a different EH landing pads.
6358 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6361 * hooks.h (hook_tree_void_null): Declare.
6362 * hooks.c (hook_tree_void_null): New function.
6363 * langhooks.c (lhd_return_null_tree_v): Remove.
6364 * langhooks-def.h (lhd_return_null_tree_v): Remove.
6365 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
6366 set y to const0_rtx.
6367 * function.c (stack_protect_epilogue): Likewise.
6368 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
6369 if TARGET_THREAD_SSP_OFFSET is defined.
6370 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6371 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6372 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6373 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6374 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6375 (ix86_stack_protect_guard): New function.
6377 2016-10-13 Richard Biener <rguenther@suse.de>
6379 * dwarf2out.c (tree_add_const_value_attribute): Do not try
6380 rtl_for_decl_init during early phase.
6381 (gen_variable_die): Do not create locations during early phase.
6382 (gen_label_die): Likewise.
6383 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
6386 2016-10-12 Richard Biener <rguenther@suse.de>
6388 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
6389 try_add_new_range and made to eturn new range.
6390 (evrp_dom_walker::before_dom_children): Push op1 value range before
6391 pushing op0 value range.
6393 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6395 PR tree-optimization/77937
6396 * gimple-ssa-strength-reduction.c (analyze_increments): Use
6397 POINTER_TYPE_P on the candidate type to determine whether
6398 candidates in this chain require pointer arithmetic.
6400 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
6402 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
6403 correction if the type is smaller than a word.
6404 (visium_select_cc_mode): Add ... fall through ... comment.
6406 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6408 * config/rs6000/rs6000.c (machine_function): Add new fields
6409 gpr_is_wrapped_separately and lr_is_wrapped_separately.
6410 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
6411 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
6412 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
6413 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
6414 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
6415 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
6416 (rs6000_get_separate_components): New function.
6417 (rs6000_components_for_bb): New function.
6418 (rs6000_disqualify_components): New function.
6419 (rs6000_emit_prologue_components): New function.
6420 (rs6000_emit_epilogue_components): New function.
6421 (rs6000_set_handled_components): New function.
6422 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
6423 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
6424 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
6425 (rs6000_emit_epilogue): Don't emit GPR restores if
6426 gpr_is_wrapped_separately for that register. Don't make a
6427 REG_CFA_RESTORE note for registers we did not restore, either.
6429 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6431 * function.c (thread_prologue_and_epilogue_insns): Call
6432 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
6433 if it has possibly changed. Compute the split_prologue_seq and
6434 epilogue_seq later, too.
6435 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
6436 (dump_components): New function.
6437 (struct sw): New struct.
6439 (init_separate_shrink_wrap): New function.
6440 (fini_separate_shrink_wrap): New function.
6441 (place_prologue_for_one_component): New function.
6442 (spread_components): New function.
6443 (disqualify_problematic_components): New function.
6444 (emit_common_heads_for_components): New function.
6445 (emit_common_tails_for_components): New function.
6446 (insert_prologue_epilogue_for_components): New function.
6447 (try_shrink_wrapping_separate): New function.
6448 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
6450 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6452 * regrename.c (build_def_use): Invalidate chains that have a
6453 REG_CFA_RESTORE on some instruction.
6455 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6457 * dce.c (delete_unmarked_insns): Don't delete instructions with
6458 a REG_CFA_RESTORE note.
6460 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6462 * common.opt (-fshrink-wrap-separate): New flag.
6463 * doc/invoke.texi: Document it.
6464 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
6465 * doc/tm.texi: Regenerate.
6466 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
6467 * target.def (shrink_wrap): New hook vector.
6468 (get_separate_components, components_for_bb, disqualify_components,
6469 emit_prologue_components, emit_epilogue_components,
6470 set_handled_components): New hooks.
6472 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6474 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
6475 vector return by reference only if -Wpsabi.
6476 (rs6000_pass_by_reference): Similarly, for argument passing.
6478 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6480 * function-tests.c: Include "print-rtl.h".
6481 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
6482 function, and verify what is dumped.
6483 * print-rtl-function.c (print_edge): New function.
6484 (begin_any_block): New function.
6485 (end_any_block): New function.
6486 (can_have_basic_block_p): New function.
6487 (print_rtx_function): Track the basic blocks of insns in the
6488 chain, wrapping those that are within blocks within "(block)"
6489 directives. Remove the "(cfg)" directive.
6491 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6493 * selftest.c (selftest::read_file): New function.
6494 (selftest::test_read_file): New function.
6495 (selftest::selftest_c_tests): Call test_read_file.
6496 * selftest.h (selftest::read_file): New decl.
6498 2016-10-12 Richard Biener <rguenther@suse.de>
6501 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6504 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
6506 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6508 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6509 dwarf2out_assembly_start.
6511 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6513 * Makefile.in (SELFTEST_FLAGS): New variable.
6514 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6516 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6519 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
6521 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6522 dumped in RTL dumps.
6524 2016-10-12 Martin Liska <mliska@suse.cz>
6526 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6527 (gimple_fold_builtin_memory_op): Use the function.
6528 (gimple_fold_builtin_strchr): Likewise.
6529 (gimple_fold_builtin_strcat): Likewise.
6530 (gimple_build): Likewise.
6532 2016-10-12 Nathan Sidwell <nathan@acm.org>
6534 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6536 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6538 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6539 equivalent 32-bit constant (modulo 2**32) when that yields
6540 smaller instructions.
6541 (size_of_int_loc_descriptor): Update accordingly.
6543 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6545 * dwarf2out.c (dwarf2out_early_global_decl): For nested
6546 functions, call dwarf2out_decl on the parent function first.
6548 2016-10-12 Richard Biener <rguenther@suse.de>
6550 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6553 2016-10-12 Richard Biener <rguenther@suse.de>
6555 * tree-ssa-propagate.c
6556 (substitute_and_fold_dom_walker::before_dom_children): Do not
6557 ignore ASSERT_EXPRs but only preserve them.
6558 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6559 that have been propagated into.
6560 (vrp_finalize): Enable DCE for substitute_and_fold.
6562 2016-10-12 Richard Biener <rguenther@suse.de>
6564 PR tree-optimization/77920
6565 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6566 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6567 (simplify_abs_using_ranges): Likewise.
6568 (simplify_conversion_using_ranges): Likewise.
6569 (simplify_stmt_using_ranges): Adjust.
6571 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6573 PR tree-optimization/77929
6574 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6575 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6577 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6580 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6581 needs a base register for arg 1.
6583 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6585 * common.opt (Wimplicit-fallthrough) Turn into alias to
6586 -Wimplicit-fallthrough=3. Remove EnabledBy.
6587 (Wimplicit-fallthrough=): New option.
6588 * gimplify.c (warn_implicit_fallthrough_r): Use
6589 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6590 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6591 to -Wimplicit-fallthrough=3.
6592 (-Wimplicit-fallthrough=): Document.
6594 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6596 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6597 and GEU in DImode if TARGET_SUBXC.
6598 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6599 (seqdi<W:mode>_zero_subxc): Delete.
6600 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6601 (neg_seqdi<W:mode>_zero_vis3): Delete.
6602 (plus_seqdi<W:mode>_zero): Likewise.
6603 (minus_seqdi<W:mode>_zero): Likewise.
6604 (plus_plus_sltu<W:mode>): Accept only register.
6605 (addx<W:mode>): Likewise.
6606 (plus_sltu<W:mode>_vis3): Likewise.
6607 (plus_plus_sltu<W:mode>_vis3): Likewise.
6608 (neg_sgeu<W:mode>_vis3): Delete.
6609 (minus_sgeu<W:mode>_vis3): Likewise.
6610 (addxc<W:mode>): Accept only registers.
6611 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6612 (minus_neg_sltu<W:mode>_subxc): Accept only register.
6613 (neg_plus_sltu<W:mode>_subxc): Likewise.
6614 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6615 (minus_minus_sltu<W:mode>_subxc): Accept only register.
6616 (sgeu<W:mode>_insn_subxc): Delete.
6617 (plus_sgeu<W:mode>_subxc): Likewise.
6618 (subxc<W:mode>): Accept only register.
6619 (scc splitter): Split always GEU again.
6621 2016-10-11 Jeff Law <law@redhat.com>
6623 PR tree-optimization/77424
6624 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6625 dead conditionals. Assert that all e->aux fields are NULL.
6627 2016-10-11 David Malcolm <dmalcolm@redhat.com>
6629 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
6630 operand-printing "switch" statement into...
6631 (print_rtx_operand_code_0): ...this new function, ...
6632 (print_rtx_operand_code_e): ...this new function, ...
6633 (print_rtx_operand_codes_E_and_V): ...this new function, ...
6634 (print_rtx_operand_code_i): ...this new function, ...
6635 (print_rtx_operand_code_r): ...this new function, ...
6636 (print_rtx_operand_code_u): ...this new function, ...
6637 (print_rtx_operand): ...and this new function.
6639 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
6641 * config/alpha/alpha-passes.def: New file.
6642 * config/alpha/t-alpha: New file.
6643 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6644 (make_pass_handle_trap_shadows): New prototype.
6645 (make_pass_align_insns): Ditto.
6646 * config/alpha/alpha.c (alpha_option_override): Don't register
6648 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6650 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6653 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6654 distinct __ibm128 IBM extended double type if long doubles are
6655 128-bits and the default format for long double is IEEE 128-bit.
6657 2016-10-11 Richard Biener <rguenther@suse.de>
6659 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6660 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6661 (verify_die): New function.
6662 (dwarf2out_finish): Call it.
6663 (output_line_info): Handle case of -gsplit-dwarf without
6664 DWARF2_ASM_LINE_DEBUG_INFO.
6666 2016-10-11 Richard Biener <rguenther@suse.de>
6669 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6670 sub-chains of BLOCK_VARS and gimple_bind_vars.
6672 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6674 * config/i386/znver1.md : Fix imov/imovx load type reservations.
6676 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6678 * config/sparc/sparc.opt (msubxc): New option.
6679 * doc/invoke.texi (SPARC options): Document it and tidy up.
6680 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6681 * doc/tm.texi: Regenerate.
6682 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6684 (CCX_NOOV): Rename into...
6688 * config/sparc/predicates.m (fcc_register_operand): Simplify.
6689 (fcc0_register_operand): Likewise.
6690 (icc_register_operand): New.
6691 (icc_or_fcc_register_operand): Simplify.
6692 (nz_comparison_operator): New.
6693 (c_comparison_operator): Likewise.
6694 (noov_compare_operator): Rename into...
6695 (icc_comparison_operator): ...this. Use above predicates.
6696 (noov_compare64_operator): Rename into...
6697 (v9_comparison_operator): ...this and tidy up.
6698 (fcc_comparison_operator): New.
6699 (icc_or_fcc_comparison_operator): Likewise.
6700 (v9_register_compare_operator): Rename info...
6701 (v9_register_comparison_operator): ...this.
6702 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6703 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6705 (sparc_fixed_condition_code_regs): New function.
6706 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
6707 renaming and add support for CCC/CCXC.
6708 (output_cbranch): Likewise.
6709 (sparc_print_operand): Likewise.
6710 (gen_v9_scc): Remove obsolete assertion.
6711 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
6712 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
6713 (output_cbcond): Remove bogus handling of CC modes.
6714 (sparc_register_move_cost): Return 100 for NO_REGS.
6715 * config/sparc/sparc.md (W): New mode iterator.
6716 (length): Adjust for noov_compare64_operator renaming.
6717 (cmpsi_sne): New instruction.
6718 (cmpdi_sne): Likewise.
6719 (seqdi_special): Delete.
6720 (seqdi_special): Likewise.
6721 (snesi<P:mode>_special): Likewise.
6722 (snedi_special): Likewise.
6723 (snedi_special_vis3): Likewise.
6724 (snesi patterns): Use W iterator.
6725 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
6726 (sltu patterns): Likewise.
6727 (sgeu patterns): Likewise.
6728 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6729 (normal_branch): Use icc_comparison_operator predicate.
6730 (inverted_branch): Likewise.
6731 (cbcond_sp32): Use comparison_operator predicate.
6732 (cbcond_sp64): Likewise.
6733 (normal_int_branch_sp64): Adjust for renaming
6734 (inverted_int_branch_sp64): Likewise.
6735 (mov<I:mode>_cc_reg_sp64): Likewise.
6736 (movsf_cc_reg_sp6): Likewise.
6737 (movdf_cc_reg_sp64): Likewise.
6738 (movtf_cc_reg_hq_sp64): Likewise.
6739 (movtf_cc_reg_sp64): Likewise.
6740 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6741 (movsf_cc_v9): Likewise.
6742 (movdf_cc_v9): Likewise.
6743 (movtf_cc_hq_v9): Likewise.
6744 (movtf_cc_v9): Likewise.
6745 (adddi3): Call gen_adddi3_sp32.
6746 (adddi3_insn_sp32): Rename to...
6747 (adddi3_sp32): ...this. Accept only register_operand as operand #1
6748 and use CCCmode for the carry.
6749 (addx_extend_sp32): Use CCCmode for the carry.
6750 (addx_extend_sp64): Delete.
6751 (adddi3_extend_sp32): Use CCCmode for the carry.
6752 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6753 (subdi3): Call gen_subdi3_sp32.
6754 (subdi3_insn_sp32): Rename to...
6755 (subdi3_sp32): ...this and use CCmode for the carry.
6756 (subx_extend_sp32): Use CCCmode for the carry.
6757 (subx_extend_sp64): Delete.
6758 (subdi3_extend_sp32): Use CCmode for the carry.
6759 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6760 (negdi3): Call gen_negdi3_sp32.
6761 (negdi3_sp32): Use CCCmode for the carry.
6762 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6763 (cmp_nz_ashift_1): Use CCNZ mode.
6764 (cmp_nz_set_ashift_1): Likewise.
6765 (ctrapsi4): Use comparison_operator predicate.
6766 (ctrapdi4): Likewise.
6767 (trapsi_insn): Use icc_comparison_operator predicate.
6768 (trapdi_insn): Likewise.
6769 (edge8 patterns): Use CCNZmode.
6770 (edge16 patterns): Likewise.
6771 (edge32 patterns): Likewise.
6773 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6775 * config/visium/visium-modes.def (CC_NOOV): Rename into...
6777 (CC_BTST): Rename into...
6779 * config/visium/predicates.md (real_add_operand): New.
6780 (visium_btst_operator): Rename into...
6781 (visium_equality_comparison_operator): ...this.
6782 (visium_noov_operator): Rename into...
6783 (visium_nz_comparison_operator): ...this.
6784 (visium_c_comparison_operator): New.
6785 (visium_branch_operator): Adjust and deal with all CC modes.
6786 * config/visium/visium.c (visium_adjust_cost): Adjust.
6787 (visium_split_double_add): Use the *_set_carry patterns.
6788 (visium_select_cc_mode): Add support for CCC mode and adjust.
6789 (output_cbranch): Adjust and use the carry-based operators for
6790 floating-point comparisons.
6791 * config/visium/visium.md (flags_subst_arith): Adjust.
6792 (addsi3_insn_set_carry): New instruction.
6793 (subsi3_insn_set_carry): Likewise.
6794 (negsi2_insn_set_carry): Likewise.
6796 (cmp<mode>_sne): Likewise.
6797 (cbranch<mode>4): Use ordered_comparison_operator.
6798 (cbranch<mode>4_insn): Likewise.
6799 (cbranchsi4_btst_insn): Adjust.
6801 2016-10-11 Tom de Vries <tom@codesourcery.com>
6804 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
6807 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6809 * tree.h (build_complex_type): Add second parameter with default.
6810 * tree.c (build_complex_type): Add NAMED second parameter and adjust
6811 recursive call. Create a TYPE_DECL only if NAMED is true.
6812 (build_common_tree_nodes): Pass true in calls to build_complex_type.
6814 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
6816 New avr-passes.def to register AVR specific passes.
6818 * config/avr/avr-passes.def: New file.
6819 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
6820 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
6821 (make_avr_pass_recompute_note): New proto.
6822 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
6823 (avr_pass_recompute_notes): Use anonymous namespace.
6824 (avr_register_passes): Remove function...
6825 (avr_option_override): ...and its call.
6827 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
6829 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
6830 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
6831 PTF_AVOID_BRANCHLIKELY_SPEED for others.
6832 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
6834 * config/mips/mips.c (mips_option_override): Enable the branch
6835 likely depending on the tune flags and optimization level.
6836 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
6837 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
6838 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
6839 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
6841 2016-10-11 Richard Biener <rguenther@suse.de>
6843 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
6844 (output_function): Properly stream the whole block tree.
6845 * lto-streamer-in.c (input_function): Likewise.
6847 2016-10-11 Marek Polacek <polacek@redhat.com>
6849 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
6851 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6853 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
6854 (evrp_dom_walker::before_dom_children): Infer and push new value
6855 ranges for x in y < x.
6857 2016-10-10 Joseph Myers <joseph@codesourcery.com>
6860 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
6861 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6862 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6863 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6864 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
6865 (IA64_NO_LIBGCC_TFMODE): Likewise.
6867 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6869 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
6872 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
6874 * config.gcc: Add aarch64-*-freebsd* support.
6875 * config.host: Likewise.
6876 * config/aarch64/aarch64-freebsd.h: New file.
6877 * config/aarch64/t-aarch64-freebsd: Ditto.
6879 2016-10-10 Jeff Law <law@redhat.com>
6881 PR tree-optimization/71947
6882 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
6883 B with A within a single statement.
6885 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6887 PR tree-optimization/77824
6888 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
6889 zero cost for copies.
6890 (find_candidates_dom_walker::before_dom_children): Replace
6891 MODIFY_EXPR with SSA_NAME.
6892 (replace_mult_candidate): Likewise.
6893 (replace_profitable_candidates): Likewise.
6895 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6897 * config/s390/s390.h: Wrap more macros args in brackets and fix
6899 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
6901 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
6903 2016-10-10 Andreas Schwab <schwab@suse.de>
6906 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
6907 pseudo is not DImode.
6909 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
6911 * common/config/arc/arc-common.c (arc_option_optimization_table):
6912 Remove compact casesi option.
6913 * config/arc/arc.c (arc_override_options): Use compact casesi
6914 option only for pre-ARCv2 cores.
6915 * doc/invoke.texi (mcompact-casesi): Update text.
6917 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6919 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
6920 Add macro to say we can efficiently handle overlapping unaligned
6922 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
6923 poor code for processors older than p8.
6925 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
6927 * gen-pass-instances.awk: Remove GNUism.
6929 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6931 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
6932 NULL of (*ipcp_transformations)][node->uid].
6934 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
6936 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6937 (MALLOC_ABI_ALIGNMENT): Define.
6939 2016-10-09 Jakub Jelinek <jakub@redhat.com>
6941 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
6942 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
6943 VAR_OR_FUNCTION_DECL_P macros.
6944 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
6945 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
6946 chkp_find_bounds_1): Likewise.
6947 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
6948 * hsa-gen.c (get_symbol_for_decl): Likewise.
6949 * cgraphunit.c (check_global_declaration, analyze_functions,
6950 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
6952 * gimple-fold.c (can_refer_decl_in_current_unit_p,
6953 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
6955 * tree.c (set_decl_section_name, copy_node_stat,
6956 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
6957 merge_dllimport_decl_attributes, handle_dll_attribute,
6958 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
6959 verify_type): Likewise.
6960 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
6961 find_explicit_erroneous_behavior): Likewise.
6962 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
6963 * ipa.c (process_references): Likewise.
6964 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
6965 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
6966 notice_global_symbol, assemble_variable, mark_decl_referenced,
6967 build_constant_desc, output_constant_def_contents, do_assemble_alias,
6968 make_decl_one_only, default_section_type_flags,
6969 categorize_decl_for_section, default_encode_section_info): Likewise.
6970 * trans-mem.c (requires_barrier): Likewise.
6971 * gimple-expr.c (mark_addressable): Likewise.
6972 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
6973 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
6974 expand_debug_expr): Likewise.
6975 * tree-dump.c (dequeue_and_dump): Likewise.
6976 * ubsan.c (instrument_bool_enum_load): Likewise.
6977 * tree-pretty-print.c (print_declaration): Likewise.
6978 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6979 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
6980 * asan.c (asan_protect_global, instrument_derefs): Likewise.
6981 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
6982 pass_build_ssa::execute): Likewise.
6983 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
6984 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
6986 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
6988 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
6989 can_be_nonlocal, remap_decls, copy_debug_stmt,
6990 initialize_inlined_parameters, add_local_variables,
6991 reset_debug_binding, replace_locals_op): Likewise.
6992 * dse.c (can_escape): Likewise.
6993 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
6995 * tree-diagnostic.c (default_tree_printer): Likewise.
6996 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
6997 unpack_ts_decl_with_vis_value_fields,
6998 lto_input_ts_decl_common_tree_pointers): Likewise.
6999 * builtins.c (builtin_save_expr, fold_builtin_expect,
7000 readonly_data_expr): Likewise.
7001 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
7002 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
7004 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
7005 * gimplify.c (force_constant_size, gimplify_bind_expr,
7006 gimplify_decl_expr, gimplify_var_or_parm_decl,
7007 gimplify_compound_lval, gimplify_init_constructor,
7008 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
7009 gimplify_type_sizes): Likewise.
7010 * cgraphbuild.c (record_reference, record_type_list, mark_address,
7011 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
7012 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
7013 remove_unused_locals): Likewise.
7014 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
7015 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
7016 * function.c (instantiate_expr, instantiate_decls_1,
7017 setjmp_vars_warning, add_local_decl): Likewise.
7018 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
7020 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
7021 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
7022 optimize_va_list_gpr_fpr_size): Likewise.
7023 * tree-nrv.c (pass_nrv::execute): Likewise.
7024 * tsan.c (instrument_expr): Likewise.
7025 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
7026 * vtable-verify.c (verify_bb_vtables): Likewise.
7027 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
7028 get_ref_base_and_extent): Likewise.
7029 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
7031 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
7032 analyze_all_variable_accesses): Likewise.
7033 * tree-nested.c (get_nonlocal_debug_decl,
7034 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
7035 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
7036 get_local_debug_decl, convert_local_omp_clauses,
7037 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
7039 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
7040 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
7041 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
7042 dbxout_symbol, dbxout_common_check): Likewise.
7043 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
7044 string_constant): Likewise.
7045 * hsa.c (hsa_get_declaration_name): Likewise.
7046 * passes.c (rest_of_decl_compilation): Likewise.
7047 * tree-ssanames.c (make_ssa_name_fn): Likewise.
7048 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
7049 pack_ts_decl_with_vis_value_fields,
7050 write_ts_decl_common_tree_pointers): Likewise.
7051 * stor-layout.c (place_field): Likewise.
7052 * symtab.c (symtab_node::maybe_create_reference,
7053 symtab_node::verify_base, symtab_node::make_decl_local,
7054 symtab_node::copy_visibility_from,
7055 symtab_node::can_increase_alignment_p): Likewise.
7056 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
7057 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
7058 fortran_common, add_location_or_const_value_attribute,
7059 add_scalar_info, add_linkage_name, set_block_abstract_flags,
7060 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
7061 optimize_one_addr_into_implicit_ptr,
7062 optimize_location_into_implicit_ptr): Likewise.
7063 * gimple-low.c (record_vars_into): Likewise.
7064 * ipa-visibility.c (update_vtable_references): Likewise.
7065 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
7067 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
7068 DFS::DFS_write_tree_body, write_symbol): Likewise.
7069 * langhooks.c (lhd_warn_unused_global_decl,
7070 lhd_set_decl_assembler_name): Likewise.
7071 * attribs.c (decl_attributes): Likewise.
7072 * except.c (output_ttype): Likewise.
7073 * varpool.c (varpool_node::get_create, ctor_for_folding,
7074 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
7075 * fold-const.c (fold_unary_loc): Likewise.
7076 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7077 ipa_find_agg_cst_from_init): Likewise.
7078 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
7079 expand_omp_target, lower_omp_regimplify_p,
7080 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
7081 find_link_var_op): Likewise.
7082 * tree-chrec.c (chrec_contains_symbols): Likewise.
7083 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
7084 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
7085 execute_fixup_cfg): Likewise.
7087 PR tree-optimization/77901
7088 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
7089 if ranges[i].exp is SSA_NAME when looking for >= and only when
7090 ranges[i].exp is NULL or SSA_NAME when looking for the other
7093 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7095 * ipa-cp.c (ipcp_alignment_lattice): Remove.
7096 (ipcp_param_lattices): Remove field alignment.
7097 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
7098 (set_all_contains_variable): Remove call to
7099 ipcp_alignment_lattice::set_to_bottom.
7100 (initialize_node_lattices): Likewise.
7101 (propagate_alignment_accross_jump_function): Remove.
7102 (propagate_constants_accross_call): Remove call to
7103 propagate_alignment_accross_jump_function.
7104 (ipcp_store_alignment_results): Remove.
7105 (ipcp_driver): Remove call to ipcp_store_alignment_results.
7106 (propagate_bits_accross_jump_function): Handle ancestor jump function.
7107 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
7108 pretty-printing of alignment jump function.
7109 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
7110 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
7111 alignments and remove computing ipa_alignment jump function.
7112 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
7113 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
7114 (ipa_read_jump_function): Remove reading of ipa_alignment.
7115 (write_ipcp_transformation_info): Remove streaming for alignment
7116 propagation summary.
7117 (read_ipcp_transformation_info): Remove reading of alignment
7118 propagation summary.
7119 (ipcp_update_alignments): Remove.
7120 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
7122 (ipcp_transform_function): Remove call to ipcp_update_alignments()
7123 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
7124 * ipa-prop.h (ipa_alignment): Remove.
7125 (ipa_jump_func): Remove field alignment.
7126 (ipcp_transformation_summary): Remove field alignments.
7127 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
7128 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
7129 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
7131 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
7133 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
7135 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
7137 (visium_expand_fp_cstore): Likewise.
7139 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7141 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
7142 * diagnostic.c (warning_at_rich_loc_n): New function.
7143 (diagnostic_n_impl_richloc): Likewise.
7144 (diagnostic_n_impl): Move most of the function to
7145 diagnostic_n_impl_richloc and call it.
7147 2016-10-08 Jakub Jelinek <jakub@redhat.com>
7149 * gen-pass-instances.awk: Rewritten.
7150 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
7151 $(PASSES_EXTRA) after passes.def to the script.
7152 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
7153 * config/i386/i386-passes.def: New file.
7154 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
7155 make_pass_stv): Declare.
7156 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
7158 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
7160 (pass_stv::clone, pass_stv::set_pass_param): New methods.
7161 (pass_stv::timode_p): New non-static data member.
7162 (ix86_option_override): Don't register passes here.
7164 * doc/invoke.texi: Document accepting Else, fallthrough.
7166 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
7169 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
7170 FALLTHRU comment styles.
7172 2016-10-07 Andrew Pinski <apinski@cavium.com>
7174 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
7175 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
7176 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
7178 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
7180 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
7182 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
7183 (AARCH64_ARCH): Likewise.
7184 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
7186 (AARCH64_CORE): Likewise.
7187 (AARCH64_ARCH): Likewise.
7188 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
7189 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7190 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
7191 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7192 (AARCH64_ARCH): Likewise.
7193 (AARCH64_CORE): Likewise.
7194 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
7195 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
7196 (AARCH64_CORE): Likewise.
7197 (AARCH64_ARCH): Likewise.
7199 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7201 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
7202 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
7203 floating point type infrastructre, and -mfloat128 that enables the
7204 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
7205 if -mfloat128-type. Define __ibm128 to be long double by default.
7206 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
7207 the IEEE 128-bit floating point type infrastructure should
7208 automatically be enabled.
7209 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
7210 instead of -mfloat128 to enable KFmode.
7211 (rs6000_option_override_internal): Split the option -mfloat128
7212 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
7213 systems, automatically set -mfloat128-type, but don't enable it on
7214 other operating systems. Move setting the long double size and
7215 IEEE quad support before the IEEE 128-bit floating point changes.
7216 (rs6000_init_builtins): Do not create a unique type for __ibm128
7217 if long double is IBM extended double, instead rely on __ibm128
7218 being defined as 'long double'. If -mfloat128-type and not
7219 -mfloat128, create the KFmode type with an undocumented __ieee128
7221 (rs6000_init_libfuncs): Use -mfloat128-type instead of
7222 -mfloat128 for tests about the types, but keep tests for
7223 -mfloat128 to enable the keyword support.
7224 (rs6000_complex_function_value): Likewise.
7225 (rs6000_scalar_mode_supported_p): Likewise.
7226 (rs6000_floatn_mode): Likewise.
7227 (rs6000_c_mode_for_suffix): Likewise.
7228 (rs6000_opt_masks): Add -mfloat128-type.
7229 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
7230 -mfloat128-type being split from -mfloat128. Add
7231 -mfloat128-hardware, which was missing.
7232 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
7233 -mfloat128 and -mfloat128-type:
7234 (-mfloat128-type): Likewise.
7235 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
7236 that 64-bit Linux systems with enable -mfloat128-type by default
7238 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
7239 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
7240 -mfloat128-type instead of -mfloat128.
7241 (FLOAT128_2REG_P): Likewise.
7242 (MASK_FLOAT128_TYPE): Likewise.
7243 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7244 (RS6000_BTM_FLOAT128): Likewise.
7245 (TARGET_FLOAT128): Poison old identifiers.
7246 (OPTION_MASK_FLOAT128): Likewise.
7247 (MASK_FLOAT128): Likewise.
7248 * config/rs6000/rs6000.md (FP): Likewise.
7249 (FLOAT128): Likewise.
7250 (fix_trunc<mode>di2): Likewise.
7251 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7252 (floatdi<mode>2): Likewise.
7253 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
7254 (neg<mode>2, FLOAT128 iterator): Likewise.
7255 (abs<mode>2, FLOAT128 iterator): Likewise.
7256 (ieee_128bit_negative_zero): Likewise.
7257 (ieee_128bit_vsx_neg<mode>2): Likewise.
7258 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7259 (ieee_128bit_vsx_abs<mode>2): Likewise.
7260 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7261 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7262 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7263 (extendiftf2): Likewise.
7264 (extendifkf2): Likewise.
7265 (extendtfkf2): Likewise.
7266 (trunciftf2): Likewise.
7267 (truncifkf2): Likewise.
7268 (trunckftf2): Likewise.
7269 (trunctfif2): Likewise.
7270 (extendkftf2): Likewise.
7271 (trunctfkf2): Likewise.
7273 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7275 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
7276 before merging in bytes to pass down to real_from_target.
7278 2016-10-07 Richard Biener <rguenther@suse.de>
7280 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
7282 (substitute_and_fold_dom_walker::before_dom_children):
7283 Substitute and fold before pass specific folding to avoid
7284 feeding that with SSA names that will be later released.
7285 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
7286 introduced by folding and visited by evaluate_stmt called during
7288 (likely_value): Likewise.
7289 (evaluate_stmt): Likewise.
7290 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
7291 (simplify_div_or_mod_using_ranges): Likewise.
7292 (simplify_min_or_max_using_ranges): Likewise.
7293 (simplify_abs_using_ranges): Likewise.
7294 (simplify_conversion_using_ranges): Likewise.
7295 (simplify_float_conversion_using_ranges): Likewise.
7296 (simplify_stmt_using_ranges): Likewise.
7298 2016-10-07 Marek Polacek <polacek@redhat.com>
7300 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
7301 FALLTHROUGH_LABEL_P here...
7302 (warn_implicit_fallthrough_r): ...not here.
7304 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
7306 PR tree-optimization/77880
7307 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
7310 2016-10-07 Marek Polacek <polacek@redhat.com>
7313 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
7315 2016-10-07 Richard Biener <rguenther@suse.de>
7317 * bitmap.h: Document constraints on bitmap modification while
7320 2016-10-07 Richard Biener <rguenther@suse.de>
7322 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
7323 * bitmap.h (bmp_iter_set): When advancing to the next element
7324 check that we didn't remove the current one.
7325 (bmp_iter_and): Likewise.
7326 (bmp_iter_and_compl): Likewise.
7327 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
7328 we currently iterate on but keep a one-level queue.
7329 * sched-deps.c (remove_from_deps): Do not clear current bit
7330 but keep a one-level queue.
7332 2016-10-07 Jakub Jelinek <jakub@redhat.com>
7334 PR tree-optimization/77664
7335 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
7336 for the other ranges.
7337 (optimize_range_tests_diff): Fix up formatting.
7338 (optimize_range_tests_var_bound): New function.
7339 (optimize_range_tests): Use it.
7341 2016-10-07 Martin Liska <mliska@suse.cz>
7343 * coverage.c (build_gcov_exit_decl): Fix priority what
7344 should be really 99.
7346 2016-10-07 Richard Biener <rguenther@suse.de>
7348 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
7349 vars in gimple_bind_vars but not in BLOCK_VARS.
7351 2016-10-07 Richard Biener <rguenther@suse.de>
7353 PR tree-optimization/77879
7354 * tree-ssa-structalias.c (handle_const_call): Properly handle
7356 (handle_pure_call): Likewise.
7358 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7360 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
7361 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
7364 2016-10-06 Andrew Pinski <apinski@cavium.com>
7366 * config/aarch64/aarch64-cores.def: Add a comment before each
7369 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7371 PR tree-optimization/77862
7372 * tree-vrp.c (add_equivalence): Use get_value_range so that
7373 num_vr_values is checked before accessing vr_values.
7375 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7377 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7380 2016-10-05 Jeff Law <law@redhat.com>
7382 PR tree-optimization/71661
7383 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
7384 removal of a forwarder exposes a new natural loop.
7386 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
7388 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
7389 Introduce ssesuffix variable.
7390 (<mask_codefor><code><mode>3<mask_name>): Ditto.
7391 (*<code><mode>3): Ditto.
7393 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
7395 * postreload.c (reload_cse_simplify): Skip also USE when detecting
7398 2016-10-06 Richard Biener <rguenther@suse.de>
7400 PR tree-optimization/77855
7401 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
7402 instead of removing the current item while iterating over the set
7405 2016-10-06 James Clarke <jrtc27@jrtc27.com>
7406 Eric Botcazou <ebotcazou@adacore.com>
7409 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
7410 (classify_registers): Don't set it
7411 (function_arg_slotno): Don't initialize and test it. Tidy up.
7413 2016-10-06 Richard Biener <rguenther@suse.de>
7415 PR tree-optimization/77839
7416 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
7419 2016-10-06 Martin Liska <mliska@suse.cz>
7421 * gcc.c: Set -fprofile-update=atomic when profiling is
7422 enabled and -pthread is set. Warn when one combines
7423 -pthread and -fprofile-update=single for an app using
7426 2016-10-06 Martin Liska <mliska@suse.cz>
7429 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
7430 * gimple-ssa-strength-reduction.c (slsr_process_cast):
7431 Initialize a pointer to NULL.
7432 (slsr_process_copy): Likewise.
7433 * input.c (location_get_source_line): Likewise.
7434 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7436 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
7438 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
7439 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
7440 (ix86_handle_option): Deleted handle of OPT_mpcommit.
7441 * config.gcc: Deleted pcommitintrin.h
7442 * config/i386/pcommitintrin.h: Deleted file.
7443 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
7444 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
7446 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
7448 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
7449 (PTA_PCOMMIT): Deleted define.
7450 (ix86_option_override_internal): Deleted handle of option.
7451 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
7452 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
7453 __builtin_ia32_pcommit): Deleted.
7454 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
7455 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
7456 (pcommit): Deleted instruction.
7457 * config/i386/i386.opt: Mention -mpcommit deprecation.
7458 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
7460 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
7463 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
7464 Remove wrong assert.
7465 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
7466 Use <round_constraint> as operand 1 constraint.
7468 2016-10-05 Jakub Jelinek <jakub@redhat.com>
7471 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
7472 (ubsan_instrument_float_cast): And not here.
7475 * ubsan.c (ubsan_ids): New GTY(()) array.
7476 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
7477 instead of static local counters.
7479 2016-10-05 Martin Sebor <msebor@redhat.com>
7482 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
7483 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
7484 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
7485 (default_printf_pointer_format): Define function.
7486 * targhooks.c (linux_printf_pointer_format): Define new function.
7487 * targhooks.h (linux_printf_pointer_format): Declare.
7488 (gnu_libc_printf_pointer_format): Remove declaration.
7490 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7492 * fold-const.c (native_encode_real): Fix logic for selecting offset
7493 to write to when BYTES_BIG_ENDIAN.
7495 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
7497 * builtins.c (fold_builtin_strchr): Remove function.
7498 (fold_builtin_strrchr): Likewise.
7499 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7500 * gimple-fold.c (target_char_cst_p): New function.
7501 (gimple_fold_builtin_strchr) Add more foldings.
7502 (gimple_fold_builtin): Add index, strrchr, rindex cases.
7504 2016-10-05 Richard Biener <rguenther@suse.de>
7507 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7508 capture ids in c-exprs.
7510 2016-10-05 Richard Biener <rguenther@suse.de>
7513 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7514 with types_match for GIMPLE code gen to handle type mismatched
7516 (dt_operand::gen): Adjust.
7517 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7520 2016-10-05 Richard Biener <rguenther@suse.de>
7522 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7524 2016-10-05 Richard Biener <rguenther@suse.de>
7527 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7529 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
7531 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7532 version check to protect only DW_TAG_imported_module generation.
7534 2016-10-05 Richard Biener <rguenther@suse.de>
7537 * match.pd (min(a,-a) -> -abs(a)): New pattern.
7539 2016-10-04 Ian Lance Taylor <iant@golang.org>
7541 * explow.c (allocate_dynamic_stack_space): Call
7542 do_pending_stack_adjust before handling flag_split_stack.
7544 2016-10-04 David Malcolm <dmalcolm@redhat.com>
7546 * genattrtab.c (make_internal_attr): Supply dummy column number to
7549 * genoutput.c (init_insn_for_nothing): Likewise.
7550 * gensupport.c (add_define_attr): Likewise.
7551 * read-md.c (message_at_1): Print column number.
7552 (fatal_with_file_and_line): Likewise.
7553 (rtx_reader::read_char): Track column numbers.
7554 (rtx_reader::unread_char): Likewise.
7555 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7556 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7557 (rtx_reader::handle_file): Initialize m_read_md_colno.
7558 (rtx_reader::get_current_location): Supply column number to
7560 * read-md.h (struct file_location): Add field "colno".
7561 (file_location::file_location): Likewise.
7562 (rtx_reader::get_colno): New accessor.
7563 (rtx_reader::m_read_md_colno): New field.
7564 (rtx_reader::m_last_line_colno): New field.
7566 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7568 * doc/extend.texi (Java Exceptions): Remove.
7569 (java_interface): Remove.
7571 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
7573 PR tree-optimization/77808
7574 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7575 and addr are different before copying points-to information.
7577 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
7579 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7580 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7581 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7582 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7584 2016-10-04 Richard Biener <rguenther@suse.de>
7586 PR tree-optimization/77399
7587 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7588 verify the target can convert.
7590 2016-10-04 Richard Biener <rguenther@suse.de>
7593 * explow.c (plus_constant): Verify the mode of the constant
7594 pool offset before calling plus_constant.
7596 2016-10-04 Richard Biener <rguenther@suse.de>
7599 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7600 type support, mark with :C.
7601 (X / -X -> -1): Mark with :C.
7603 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7605 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7606 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7607 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7608 * doc/tm.texi: Regenerated.
7609 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7610 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7611 * config/darwin.h (JCR_SECTION_NAME): Remove.
7612 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7613 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7614 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7615 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7616 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7617 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7619 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7621 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7622 between "because" and "param" in dump message in call to fprintf.
7624 2016-10-03 Jeff Law <law@redhat.com>
7626 PR tree-optimization/71550
7627 PR tree-optimization/71403
7628 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7629 (profitable_jump_thread_path): Also return boolean indicating if
7630 the realized path will create an irreducible loop.
7631 Remove loop depth tests from 71403.
7632 (fsm_find_control_statement_thread_paths): Remove loop depth tests
7633 from 71403. If threading will create an irreducible loop, then
7634 throw away loop iteration and related information.
7636 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
7638 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7639 -Woverloaded-virtual checks for warning options.
7640 * configure: Regenerate.
7642 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7644 PR preprocessor/77699
7645 * input.c (maybe_grow): Don't allocate one byte extra headroom.
7646 (get_next_line): Return false on error.
7647 (read_next_line): Removed, use get_next_line instead.
7648 (read_line_num): Don't copy the line.
7649 (location_get_source_line): Don't use static data.
7650 (selftest::test_reading_source_line): Add more test cases.
7652 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7655 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7657 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7658 (noce_process_if_block): Use it.
7660 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7662 * doc/invoke.texi: Update -Wint-in-bool-context.
7664 2016-10-02 Jakub Jelinek <jakub@redhat.com>
7666 * dwarf2out.c (output_fde, output_call_frame_info,
7667 dwarf2out_do_cfi_startproc, set_indirect_string,
7668 gen_internal_sym, output_die, output_line_info): Use
7669 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7670 ASM_GENERATE_INTERNAL_LABEL output.
7672 2016-10-01 Richard Biener <rguenther@suse.de>
7675 * genmatch.c (get_operand_type): Add operand position arg
7676 and handle COND_EXPR comparison operand with fixed boolean_type_node.
7677 (expr::gen_transform): Adjust.
7678 (dt_simplify::gen_1): Likewise.
7680 2016-10-01 Jakub Jelinek <jakub@redhat.com>
7682 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7683 comments. Simplify asserts, remove unnecessary conditions.
7685 (*<code><mode>3): Likewise.
7687 2016-09-30 Jakub Jelinek <jakub@redhat.com>
7689 * doc/invoke.texi (-Wregister): Document.
7691 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7693 * configure.ac: Split CHECKING_P into CHECKING_P and
7694 ENABLE_EXTRA_CHECKING.
7695 * configure: Regenerated.
7696 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7697 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7699 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
7702 * gcc.c (process_command): For @filename handling, output
7703 the correct name if the file does not exist.
7705 2016-09-30 Marek Polacek <polacek@redhat.com>
7707 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7708 * config/alpha/predicates.md: Likewise.
7710 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7712 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7713 (noce_process_if_block): Use it.
7715 2016-09-30 Martin Liska <mliska@suse.cz>
7717 * doc/invoke.texi: Document asan-use-after-return that
7718 it's disabled by default in runtime.
7720 2016-09-30 Richard Biener <rguenther@suse.de>
7722 * tree-vrp.c (intersect_ranges): If we failed to handle
7723 the intersection choose a constant singleton range if available.
7725 2016-09-30 Richard Biener <rguenther@suse.de>
7727 PR tree-optimization/77399
7728 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7729 float <-> int conversions.
7731 2016-09-30 Alan Modra <amodra@gmail.com>
7733 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7735 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7737 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7738 ext_level before calling CPUID with 0x80000008.
7739 Simplify xgetbv checks.
7741 2016-09-29 David Malcolm <dmalcolm@redhat.com>
7743 * Makefile.in (OBJS): Add print-rtl-function.o.
7744 * print-rtl-function.c: New file.
7745 * print-rtl.h (print_rtx_function): New decl.
7747 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7750 * config/i386/cpuid.h (__get_cpuid_count): New.
7751 (__get_cpuid): Rename __level to __leaf.
7753 2016-09-29 Marek Polacek <polacek@redhat.com>
7755 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7757 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
7760 * builtins.c (expand_builtin_memcmp): Don't swap args unless
7761 result is only being compared with zero.
7763 2016-09-29 Marek Polacek <polacek@redhat.com>
7765 * dwarf2out.c (loc_descriptor): Add fall through comment.
7766 (add_const_value_attribute): Likewise.
7768 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
7770 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7771 with "v6t2". Move "arch" attribute above "pool_range".
7772 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7774 (*thumb2_movhi_vfp): Likewise.
7775 (*arm_movhi_fp16): Likewise.
7776 (*thumb2_movhi_fp16): Likewise.
7777 (*arm_movsi_vfp): Remove "arch" attribute.
7778 (*thumb2_movsi_vfp): Likewise.
7780 2016-09-29 Martin Liska <mliska@suse.cz>
7782 * doc/extend.texi: Remove limitation of Objective C for
7783 __attribute__((constructor)) and __attribute__((destructor)).
7785 2016-09-29 Richard Biener <rguenther@suse.de>
7787 PR tree-optimization/77768
7788 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7789 Handle stores to readonly memory when removing redundant stores.
7791 2016-09-29 Richard Biener <rguenther@suse.de>
7794 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
7795 X / -X -> -1 simplifications.
7797 2016-09-29 Richard Biener <rguenther@suse.de>
7800 * match.pd: Add max(a,-a) -> abs(a) pattern.
7801 * tree-ssa-phiopt.c (minmax_replacement): Disable for
7802 HONOR_SIGNED_ZEROS types.
7804 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
7806 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
7807 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
7809 2016-09-29 Richard Biener <rguenther@suse.de>
7811 * tree-vrp.c (set_defs_to_varying): New helper avoiding
7812 writing to vr_const_varying.
7813 (vrp_initialize): Call it.
7814 (vrp_visit_stmt): Likewise.
7815 (evrp_dom_walker::before_dom_children): Likewise.
7817 2016-09-29 Richard Biener <rguenther@suse.de>
7819 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
7820 constructors with vector elements.
7822 2016-09-29 Richard Biener <rguenther@suse.de>
7824 PR tree-optimization/77768
7825 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
7826 with stores to a place we know has a constant value.
7828 2016-09-29 Alan Modra <amodra@gmail.com>
7830 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
7831 * doc/invoke.texi: Document it.
7832 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
7833 (rs6000_passes_float): Comment.
7834 (rs6000_passes_long_double): New static var.
7835 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
7836 (init_cumulative_args): Set up to emit fp .gnu_attribute for
7837 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
7838 to include fp values returned in vectors.
7839 Set rs6000_passes_long_double.
7840 (rs6000_function_arg_advance_1): Likewise for function args.
7841 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
7842 and SPE. Emit long double tag value too.
7843 (rs6000_opt_vars): Add gnu-attr.
7844 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
7845 * configure: Regenerate.
7846 * config.in: Regenerate.
7848 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7850 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
7852 (format_floating, format_string, format_directive,
7853 get_destination_size, pass_sprintf_length::handle_gimple_call):
7856 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7858 * gimple-ssa-sprintf.c: Fix comment formatting.
7859 (format_integer): Use is_gimple_assign.
7860 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
7861 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
7862 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
7863 (pass_sprintf_length::execute): Use is_gimple_call.
7865 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7867 * gimple-fold.c (gimple_fold_builtin): After failing to fold
7868 strchr, also try the generic folding.
7870 2016-09-28 Martin Sebor <msebor@redhat.com>
7873 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
7876 2016-09-28 Martin Sebor <msebor@redhat.com>
7879 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
7880 length modifier is not expected.
7881 (format_floating): Ignore l length modifier and fail gracefuly
7882 when it isn't one of the other expected ones.
7884 2016-09-28 Martin Sebor <msebor@redhat.com>
7887 * varasm.c (assemble_addr_to_section): Increase local buffer size.
7889 2016-09-27 Richard Biener <rguenther@suse.de>
7891 * dwarf2out.c (cu_die_list): New global.
7892 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
7893 main_comp_unit_die to cu_die_list if we created it.
7894 Move break_out_includes ...
7895 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
7898 2016-09-28 Richard Biener <rguenther@suse.de>
7900 * dwarf2out.c (struct die_struct): Add removed flag.
7901 (lookup_type_die): If the DIE is marked as removed, clear
7902 TYPE_SYMTAB_DIE and return NULL.
7903 (lookup_decl_die): If the DIE is marked as removed, remove it
7904 from the hash and return NULL.
7905 (mark_removed): New helper.
7906 (prune_unused_types_prune): Call it for removed DIEs.
7907 (gen_subprogram_die): Move the premark_used_types call to after
7908 DIEs for the functions scopes are generated.
7909 (process_scope_var): Do not re-create pruned types or type decls.
7910 Make sure to also re-parent type decls.
7911 (dwarf2out_finish): Move unused type pruning and debug_types
7913 (dwarf2out_early_finish): ... here.
7915 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7917 * config/arc/arc-c.c: New file.
7918 * config/arc/arc-c.def: Likewise.
7919 * config/arc/t-arc: Likewise.
7920 * config.gcc: Include arc-c.o as c and cpp object.
7921 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
7922 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
7923 arc_cpu_cpp_builtins.
7925 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7927 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
7928 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
7930 2016-09-28 Nathan Sidwell <nathan@acm.org>
7932 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
7935 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7937 PR tree-optimization/61056
7938 * gimple-fold.c (gimple_fold_builtin_strchr):
7939 New function to optimize strchr (s, 0) to strlen.
7940 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
7942 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
7944 PR tree-optimization/77724
7945 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
7946 Add tree_fits_shwi_p check.
7948 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7950 * auto-inc-dec.c (try_merge): Remove break after return.
7951 * cselib.c (autoinc_split): Likewise.
7952 * explow.c (promote_mode): Likewise.
7953 * fixed-value.c (fixed_arithmetic): Likewise.
7954 * hsa.c (hsa_internal_fn::get_arity): Likewise.
7955 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
7956 * trans-mem.c (get_attrs_for): Likewise.
7957 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
7958 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
7959 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
7960 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
7961 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
7962 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
7963 * config/cris/cris.c (cris_op_str): Likewise.
7964 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
7965 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
7967 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
7969 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
7970 IFN_GOACC_REDUCTION_CODES): New.
7971 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
7972 ifn_goacc_reduction_kind): Use them.
7973 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
7974 of internal functions, when applicable.
7976 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
7978 * config/mips/constraints.md (d): Fix documentation.
7979 * doc/md.texi (Machine Constraints): Update accordingly.
7981 2016-09-27 Richard Biener <rguenther@suse.de>
7983 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
7984 cur_line_info_table initialization ...
7985 (dwarf2out_assembly_start): ... here.
7987 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
7989 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
7990 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
7991 (*thumb2_movhi_vfp): Likewise.
7992 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
7993 template. Expand predicable attribute to mark VMOV.F16 as not
7994 predicable. Add "arch" attribute.
7995 (*thumb2_movhi_fp16): Likewise.
7996 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
7997 (*thumb2_movsi_vfp): Add "arch" attribute.
7999 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
8001 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
8004 2016-09-27 Marek Polacek <polacek@redhat.com>
8006 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
8009 * config/c6x/c6x.h: Adjust fall through comment.
8010 * config/sh/sh.c (final_prescan_insn): Likewise.
8011 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
8012 (visium_expand_fp_cstore): Likewise.
8014 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8016 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
8017 expected by -Wimplicit-fallthrough.
8018 (thumb1_size_rtx_costs): Likewise.
8019 (thumb2_reorg): Likewise.
8020 (tls_mentioned_p): Add "Fall through" comment.
8021 (thumb2_reorg): Likewise.
8022 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
8023 comment form expected by -Wimplicit-fallthrough.
8025 2016-09-27 Martin Liska <mliska@suse.cz>
8027 PR gcov-profile/46266
8028 * input.h (RESERVED_LOCATION_P): New macro.
8029 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
8030 instread of comparison with UNKNOWN_LOCATION.
8032 2016-09-27 Richard Biener <rguenther@suse.de>
8034 PR tree-optimization/77745
8035 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8036 When removing redundant stores make sure to check compatibility
8037 of the TBAA state for downstream accesses.
8038 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
8039 value-numbering virtual operands for store matches.
8041 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
8044 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
8045 movrt patterns. Match them before anything else in the SET case.
8047 2016-09-27 Martin Liska <mliska@suse.cz>
8049 PR gcov-profile/7970
8050 PR gcov-profile/16855
8051 PR gcov-profile/44779
8052 * coverage.c (build_gcov_exit_decl): New function.
8053 (coverage_obj_init): Call the function and generate __gcov_exit
8055 * doc/gcov.texi: Document when __gcov_exit function is called.
8057 2016-09-27 Marek Polacek <polacek@redhat.com>
8060 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8061 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
8062 -Wno-error instead of -Wno-implicit-fallthrough.
8064 2016-09-27 Martin Liska <mliska@suse.cz>
8067 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
8069 2016-09-27 Jakub Jelinek <jakub@redhat.com>
8071 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
8072 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
8073 comments. Remove break after return.
8074 (ix86_fp_compare_code_to_integer, has_dispatch,
8075 ix86_simd_clone_usable): Remove break after return.
8077 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8079 PR rlt-optimization/77714
8080 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
8083 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
8086 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
8087 extract_range_from_unary_expr to convert value_range.
8088 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
8089 (extract_range_from_unary_expr): This.
8090 * tree-vrp.h (extract_range_from_unary_expr): Declare.
8092 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
8094 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
8096 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8098 * config/i386/i386.c (ix86_print_operand)
8099 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
8100 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
8101 (epilogue_renumber): Likewise.
8103 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
8106 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
8107 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
8109 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
8111 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
8112 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
8113 is_mm_seq_cst, is_mm_sync): Move to ...
8114 * memmodel.h: This. New file.
8115 * builtins.c: Include memmodel.h.
8116 * optabs.c: Likewise.
8118 * config/aarch64/aarch64.c: Likewise.
8119 * config/alpha/alpha.c: Likewise.
8120 * config/arm/arm.c: Likewise.
8121 * config/i386/i386.c: Likewise.
8122 * config/ia64/ia64.c: Likewise.
8123 * config/mips/mips.c: Likewise.
8124 * config/rs6000/rs6000.c: Likewise.
8125 * config/sparc/sparc.c: Likewise.
8126 * genconditions.c: Include memmodel.h in generated file.
8127 * genemit.c: Likewise.
8128 * genoutput.c: Likewise.
8129 * genpeep.c: Likewise.
8130 * genpreds.c: Likewise.
8131 * genrecog.c: Likewise.
8133 2016-09-26 David Malcolm <dmalcolm@redhat.com>
8135 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
8136 "c" instead when parsing characters. Move operand parsing into...
8137 (read_rtx_operand): ...this new function, renaming "i" to "idx",
8138 and tightening the scope of various locals.
8140 2016-09-26 Liu Hao <lh_mouse@126.com>
8142 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
8144 2016-09-26 Marek Polacek <polacek@redhat.com>
8146 * system.h: Use __has_attribute to check whether the fallthrough
8147 attribute is supported.
8149 2016-09-26 Marek Polacek <polacek@redhat.com>
8151 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
8152 gimple_call_internal_p.
8153 * ipa-split.c (find_return_bb): Likewise.
8154 (execute_split_functions): Likewise.
8155 * omp-low.c (dump_oacc_loop_part): Likewise.
8156 (oacc_loop_xform_head_tail): Likewise.
8157 * predict.c (predict_loops): Likewise.
8158 * sanopt.c (pass_sanopt::execute): Likewise.
8159 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
8160 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
8161 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
8162 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
8163 (expand_ifn_va_arg): Likewise.
8164 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8165 (optimize_mask_stores): Likewise.
8166 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
8167 (vect_transform_stmt): Likewise.
8168 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
8169 * tsan.c (instrument_memory_accesses): Likewise.
8171 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8172 Alexander Monakov <amonakov@ispras.ru>
8174 * regrename.c (rename_chains): Check
8175 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
8176 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
8177 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8179 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8181 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
8182 (s390_sched_score): Likewise.
8184 2016-09-26 Martin Liska <mliska@suse.cz>
8186 * doc/gcov.texi: Update program output of gcov tool.
8188 2016-09-26 Martin Liska <mliska@suse.cz>
8190 PR gcov-profile/23332
8191 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
8192 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
8193 * value-prof.c (dump_histogram_value): Do not handle
8194 HIST_TYPE_CONST_DELTA.
8195 (stream_in_histogram_value): Likewise.
8196 (gimple_find_values_to_profile): Likewise.
8197 * value-prof.h (enum hist_type): Likewise.
8199 2016-09-26 Martin Liska <mliska@suse.cz>
8201 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
8202 from default sanitize recover values.
8203 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
8204 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
8205 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
8207 * opts.c (finish_options): Do a generic loop over options
8208 that can be recovered.
8209 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
8211 (common_handle_option): Likewise.
8212 * opts.h: Declare can_recover to sanitizer_opts_s.
8214 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
8216 * target.def(elf_flags_numeric): Change documentation to present tense.
8217 * doc/tm.texi: Regenerate.
8219 2016-09-26 Marek Polacek <polacek@redhat.com>
8222 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8223 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
8224 -Wno-switch-fallthrough.
8225 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
8226 (expand_builtin): Likewise.
8227 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
8228 * convert.c (convert_to_real_1): Likewise.
8229 (convert_to_integer_1): Likewise.
8230 * final.c (output_alternate_entry_point): Likewise.
8231 * genattrtab.c (make_canonical): Likewise.
8232 (write_test_expr): Likewise.
8233 * genpreds.c (validate_exp): Likewise.
8234 * gimple-ssa-strength-reduction.c
8235 (find_candidates_dom_walker::before_dom_children): Likewise.
8236 * godump.c (go_format_type): Likewise.
8237 * reload1.c (elimination_effects): Likewise.
8238 * resource.c (mark_referenced_resources): Likewise.
8239 (mark_set_resources): Likewise.
8240 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
8241 * varasm.c (output_addressed_constants): Likewise.
8243 2016-09-26 Marek Polacek <polacek@redhat.com>
8246 * common.opt (Wimplicit-fallthrough): New option.
8247 * doc/extend.texi: Document statement attributes and the fallthrough
8249 * doc/invoke.texi: Document -Wimplicit-fallthrough.
8250 * gimple.h (gimple_call_internal_p): New function.
8251 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
8252 (struct label_entry): New struct.
8253 (find_label_entry): New function.
8254 (case_label_p): New function.
8255 (collect_fallthrough_labels): New function.
8256 (last_stmt_in_scope): New function.
8257 (should_warn_for_implicit_fallthrough): New function.
8258 (warn_implicit_fallthrough_r): New function.
8259 (maybe_warn_implicit_fallthrough): New function.
8260 (expand_FALLTHROUGH_r): New function.
8261 (expand_FALLTHROUGH): New function.
8262 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
8263 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
8264 (gimplify_label_expr): New function.
8265 (gimplify_case_label_expr): Set location.
8266 (gimplify_expr): Call gimplify_label_expr.
8267 * internal-fn.c (expand_FALLTHROUGH): New function.
8268 * internal-fn.def (FALLTHROUGH): New internal function.
8269 * langhooks.c (lang_GNU_OBJC): New function.
8270 * langhooks.h (lang_GNU_OBJC): Declare.
8271 * system.h (gcc_fallthrough): Define.
8272 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
8273 * tree.h (FALLTHROUGH_LABEL_P): Define.
8275 2016-09-26 Richard Biener <rguenther@suse.de>
8277 * dwarf2out.c (stripattributes): Remove unused function.
8278 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
8279 Push dwarf_split_debug_info handling into init_sections_and_labels.
8280 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
8281 (DEBUG_MACRO_SECTION_FLAGS): Remove.
8282 (debug_macinfo_section_name): New global.
8283 (output_macinfo): Use debug_macinfo_section_name.
8284 (init_sections_and_labels): Split out section and label generation
8285 from dwarf2out_init. Set debug_macinfo_section_name.
8286 (dwarf2out_init): Move text section label generation and emission
8288 (dwarf2out_assembly_start): ... here.
8289 (dwarf2out_finish): Call init_sections_and_labels before DWARF
8292 2016-09-26 Richard Biener <rguenther@suse.de>
8295 * cgraphunit.c (analyze_functions): Before early removing
8296 global vars calls the late_global_decl debug handler mark
8297 the variable as readonly.
8299 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8302 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
8303 (sh_rtx_costs): Handle SET of movt and movrt patterns.
8304 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
8305 declare new overloads.
8306 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
8309 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8311 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
8312 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
8314 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
8316 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
8317 * configure: Regenerate.
8319 2016-09-24 Marek Polacek <polacek@redhat.com>
8322 * doc/invoke.texi: Document -Wbool-operation.
8324 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8326 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
8327 * config/rs6000/rs6000.c (expand_block_compare): New function used by
8328 cmpmemsi pattern to do builtin expansion of memcmp ().
8329 (compute_current_alignment): Add helper function for
8330 expand_block_compare used to compute alignment as the compare proceeds.
8331 (select_block_compare_mode): Used by expand_block_compare to select
8332 the mode used for reading the next chunk of bytes in the compare.
8333 (do_load_for_compare): Used by expand_block_compare to emit the load
8334 insns for the compare.
8335 (rs6000_emit_dot_insn): Moved this function to avoid a forward
8336 reference from expand_block_compare ().
8337 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
8338 prototype for this function.
8339 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
8340 target option for controlling how much code inline expansion of
8341 memcmp() will be allowed to generate.
8343 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8345 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
8346 hook_bool_mode_false, hook_bool_mode_true,
8347 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8348 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8349 hook_bool_const_rtx_insn_const_rtx_insn_true,
8350 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
8351 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
8352 hook_bool_const_tree_hwi_hwi_const_tree_false,
8353 hook_bool_const_tree_hwi_hwi_const_tree_true,
8354 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
8355 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8356 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
8357 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
8358 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
8359 hook_bool_const_tree_true, hook_bool_tree_tree_false,
8360 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
8361 hook_bool_rtx_insn_true, hook_bool_rtx_false,
8362 hook_bool_uintp_uintp_false,
8363 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
8364 hook_rtx_tree_int_null, hook_uint_mode_0,
8365 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
8366 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
8367 hook_constcharptr_const_rtx_insn_null,
8368 hook_constcharptr_const_tree_const_tree_null,
8369 hook_constcharptr_int_const_tree_null,
8370 hook_constcharptr_int_const_tree_const_tree_null,
8371 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
8372 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
8373 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
8375 * vec.h (vNULL): Extend comment to say = vNULL initialization
8376 isn't needed for static vars.
8378 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
8379 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
8380 = vNULL initialization of file scope vec.
8381 * passes.c (pass_tab, enabled_pass_uid_range_tab,
8382 disabled_pass_uid_range_tab): Likewise.
8383 * haifa-sched.c (sched_luids, h_i_d): Likewise.
8384 * tree-chkp-opt.c (check_infos): Likewise.
8385 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
8387 * vec.h (vnull::operator vec): Add constexpr keyword for
8390 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
8392 PR tree-optimization/77654
8393 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
8394 to duplicate_ssa_name_ptr_info.
8396 2016-09-23 David Malcolm <dmalcolm@redhat.com>
8398 PR preprocessor/77672
8399 * input.c (selftest::test_lexer_string_locations_simple): Update
8400 test to expect location information of the terminator character
8401 at the location of the final closing quote.
8402 (selftest::test_lexer_string_locations_hex): Likewise.
8403 (selftest::test_lexer_string_locations_oct): Likewise.
8404 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
8405 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
8406 (selftest::test_lexer_string_locations_ucn4): Likewise.
8407 (selftest::test_lexer_string_locations_ucn8): Likewise.
8408 (selftest::test_lexer_string_locations_u8): Likewise.
8409 (selftest::test_lexer_string_locations_utf8_source): Likewise.
8410 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
8411 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
8412 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
8413 (selftest::test_lexer_string_locations_macro): Likewise.
8414 (selftest::test_lexer_string_locations_long_line): Likewise.
8416 2016-09-23 Richard Biener <rguenther@suse.de>
8418 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
8419 virtual definition to virtual use if the call devirtualizes
8420 to a const or pure function.
8421 (visit_use): Also visit calls we can devirtualize to a
8422 const or pure function.
8424 2016-09-23 Richard Biener <rguenther@suse.de>
8426 PR tree-optimization/77697
8427 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
8428 signal error if we have sth ternary or unhandled.
8430 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8432 * config/arm/arm_neon.h (vabd_f16): New.
8466 (vcvt_f16_s16): New.
8467 (vcvt_f16_u16): New.
8468 (vcvt_s16_f16): New.
8469 (vcvt_u16_f16): New.
8470 (vcvtq_f16_s16): New.
8471 (vcvtq_f16_u16): New.
8472 (vcvtq_s16_f16): New.
8473 (vcvtq_u16_f16): New.
8474 (vcvta_s16_f16): New.
8475 (vcvta_u16_f16): New.
8476 (vcvtaq_s16_f16): New.
8477 (vcvtaq_u16_f16): New.
8478 (vcvtm_s16_f16): New.
8479 (vcvtm_u16_f16): New.
8480 (vcvtmq_s16_f16): New.
8481 (vcvtmq_u16_f16): New.
8482 (vcvtn_s16_f16): New.
8483 (vcvtn_u16_f16): New.
8484 (vcvtnq_s16_f16): New.
8485 (vcvtnq_u16_f16): New.
8486 (vcvtp_s16_f16): New.
8487 (vcvtp_u16_f16): New.
8488 (vcvtpq_s16_f16): New.
8489 (vcvtpq_u16_f16): New.
8490 (vcvt_n_f16_s16): New.
8491 (vcvt_n_f16_u16): New.
8492 (vcvtq_n_f16_s16): New.
8493 (vcvtq_n_f16_u16): New.
8494 (vcvt_n_s16_f16): New.
8495 (vcvt_n_u16_f16): New.
8496 (vcvtq_n_s16_f16): New.
8497 (vcvtq_n_u16_f16): New.
8511 (vmul_lane_f16): New.
8514 (vmulq_lane_f16): New.
8536 (vrsqrteq_f16): New.
8540 (vrsqrtsq_f16): New.
8544 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8546 * config.gcc (extra_headers): Add arm_fp16.h
8547 * config/arm/arm_fp16.h: New.
8548 * config/arm/arm_neon.h: Include "arm_fp16.h".
8550 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8552 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8554 (vmulf): New (v8hf, v4hf variants).
8555 (vfma): New (v8hf, v4hf variants).
8556 (vfms): New (v8hf, v4hf variants).
8557 (vsub): New (v8hf, v4hf variants).
8558 (vcage): New (v8hf, v4hf variants).
8559 (vcagt): New (v8hf, v4hf variants).
8560 (vcale): New (v8hf, v4hf variants).
8561 (vcalt): New (v8hf, v4hf variants).
8562 (vceq): New (v8hf, v4hf variants).
8563 (vcgt): New (v8hf, v4hf variants).
8564 (vcge): New (v8hf, v4hf variants).
8565 (vcle): New (v8hf, v4hf variants).
8566 (vclt): New (v8hf, v4hf variants).
8567 (vceqz): New (v8hf, v4hf variants).
8568 (vcgez): New (v8hf, v4hf variants).
8569 (vcgtz): New (v8hf, v4hf variants).
8570 (vcltz): New (v8hf, v4hf variants).
8571 (vclez): New (v8hf, v4hf variants).
8572 (vabd): New (v8hf, v4hf variants).
8573 (vmaxf): New (v8hf, v4hf variants).
8574 (vmaxnm): New (v8hf, v4hf variants).
8575 (vminf): New (v8hf, v4hf variants).
8576 (vminnm): New (v8hf, v4hf variants).
8577 (vpmaxf): New (v4hf variant).
8578 (vpminf): New (v4hf variant).
8579 (vpadd): New (v4hf variant).
8580 (vrecps): New (v8hf, v4hf variants).
8581 (vrsqrts): New (v8hf, v4hf variants).
8582 (vabs): New (v8hf, v4hf variants).
8583 (vneg): New (v8hf, v4hf variants).
8584 (vrecpe): New (v8hf, v4hf variants).
8585 (vrnd): New (v8hf, v4hf variants).
8586 (vrnda): New (v8hf, v4hf variants).
8587 (vrndm): New (v8hf, v4hf variants).
8588 (vrndn): New (v8hf, v4hf variants).
8589 (vrndp): New (v8hf, v4hf variants).
8590 (vrndx): New (v8hf, v4hf variants).
8591 (vrsqrte): New (v8hf, v4hf variants).
8592 (vmul_lane): Add v4hf and v8hf variants.
8593 (vmul_n): Add v4hf and v8hf variants.
8594 (vext): New (v8hf, v4hf variants).
8595 (vcvts): New (v8hi, v4hi variants).
8596 (vcvts): New (v8hf, v4hf variants).
8597 (vcvtu): New (v8hi, v4hi variants).
8598 (vcvtu): New (v8hf, v4hf variants).
8599 (vcvts_n): New (v8hf, v4hf variants).
8600 (vcvtu_n): New (v8hi, v4hi variants).
8601 (vcvts_n): New (v8hi, v4hi variants).
8602 (vcvtu_n): New (v8hf, v4hf variants).
8603 (vbsl): New (v8hf, v4hf variants).
8604 (vcvtas): New (v8hf, v4hf variants).
8605 (vcvtau): New (v8hf, v4hf variants).
8606 (vcvtms): New (v8hf, v4hf variants).
8607 (vcvtmu): New (v8hf, v4hf variants).
8608 (vcvtns): New (v8hf, v4hf variants).
8609 (vcvtnu): New (v8hf, v4hf variants).
8610 (vcvtps): New (v8hf, v4hf variants).
8611 (vcvtpu): New (v8hf, v4hf variants).
8613 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8615 * config/arm/arm-builtins.c (hf_UP): New.
8617 (vfp_builtin_data): New. Update comment.
8618 (enum arm_builtins): Include "arm_vfp_builtins.def".
8619 (ARM_BUILTIN_VFP_PATTERN_START): New.
8620 (arm_init_vfp_builtins): New.
8621 (arm_init_builtins): Add arm_init_vfp_builtins.
8622 (arm_expand_vfp_builtin): New.
8623 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
8625 * config/arm/arm_vfp_builtins.def: New file.
8626 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8627 (arm-builtins.o): Likewise.
8629 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8632 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8633 from constant while creating value range.
8635 2016-09-23 Renlin Li <renlin.li@arm.com>
8637 * ira.c (ira): Move ira_use_lra_p initialization code to ...
8638 (ira_init_once): Here.
8640 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
8641 Jakub Jelinek <jakub@redhat.com>
8643 * hooks.h (hook_uint_uintp_false): Rename to...
8644 (hook_bool_uint_uintp_false): ... this.
8645 * hooks.c (hook_uint_uintp_false): Rename to...
8646 (hook_bool_uint_uintp_false): ... this.
8647 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8648 instead of hook_uint_uintp_false.
8650 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8652 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8653 (arm_init_builtins): Move body of a loop to the standalone
8654 function arm_init_neon_builtin.
8655 (arm_expand_neon_builtin_1): New. Update comment. Function body
8656 moved from arm_neon_builtin with some white-space fixes.
8657 (arm_expand_neon_builtin): Move code into the standalone function
8658 arm_expand_neon_builtin_1.
8660 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8662 * config/arm/iterators.md (VCVTHI): New.
8663 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
8667 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
8668 (V_HALF): Add V4HF. Fix white-space.
8669 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
8670 (V_s_elem): Likewise.
8671 (V_sz_elem): Fix white-space.
8672 (V_elem_ch): Likewise.
8674 (scalar_mul_constraint): Add V8HF and V4HF.
8675 (Is_float_mode): Fix white-space.
8676 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
8677 (q): Add HF. Fix white-space.
8680 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8681 (neon_vfm_lane_as): New.
8682 * config/arm/neon.md (add<mode>3_fp16): New.
8683 (sub<mode>3_fp16): New.
8684 (mul<mode>3add<mode>_neon): New.
8685 (fma<VH:mode>4_intrinsic): New.
8686 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8687 (fmsub<VH:mode>4_intrinsic): New.
8688 (<absneg_str><mode>2): New.
8689 (neon_v<absneg_str><mode>): New.
8690 (neon_v<fp16_rnd_str><mode>): New.
8691 (neon_vrsqrte<mode>): New.
8692 (neon_vpaddv4hf): New.
8693 (neon_vadd<mode>): New.
8694 (neon_vsub<mode>): New.
8695 (neon_vmulf<mode>): New.
8696 (neon_vfma<VH:mode>): New.
8697 (neon_vfms<VH:mode>): New.
8698 (neon_vc<cmp_op><mode>): New.
8699 (neon_vc<cmp_op><mode>_fp16insn): New
8700 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8701 (neon_vca<cmp_op><mode>): New.
8702 (neon_vca<cmp_op><mode>_fp16insn): New.
8703 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8704 (neon_vc<cmp_op>z<mode>): New.
8705 (neon_vabd<mode>): New.
8706 (neon_v<maxmin>f<mode>): New.
8707 (neon_vp<maxmin>fv4hf: New.
8708 (neon_<fmaxmin_op><mode>): New.
8709 (neon_vrecps<mode>): New.
8710 (neon_vrsqrts<mode>): New.
8711 (neon_vrecpe<mode>): New (VH variant).
8712 (neon_vdup_lane<mode>_internal): New.
8713 (neon_vdup_lane<mode>): New.
8714 (neon_vcvt<sup><mode>): New (VCVTHI variant).
8715 (neon_vcvt<sup><mode>): New (VH variant).
8716 (neon_vcvt<sup>_n<mode>): New (VH variant).
8717 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8718 (neon_vcvt<vcvth_op><sup><mode>): New.
8719 (neon_vmul_lane<mode>): New.
8720 (neon_vmul_n<mode>): New.
8721 * config/arm/unspecs.md (UNSPEC_VCALE): New
8722 (UNSPEC_VCALT): New.
8723 (UNSPEC_VFMA_LANE): New.
8724 (UNSPECS_VFMS_LANE): New.
8726 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8728 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8729 ("*extzv<mode><clobbercc_or_nocc>"):
8730 Correct a typo in a comment.
8732 ("*insv<mode>_zEC12", "*insv<mode>_z10")
8733 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8734 ("*insv<mode>_zEC12_appendbitsleft")
8735 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8736 ("*insv<mode>_z10_appendbitsleft"): Ditto.
8737 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8738 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8739 Provide pattern with operands switched.
8740 ("*pre_z10_extv<mode>"):
8741 Use new subst patterns.
8742 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8743 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8744 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8745 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8746 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8747 ("*<risbg_n>_sidi_ior_and_lshiftrt")
8748 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8750 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8751 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8752 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8754 ("SINT"): New mode_iterator with SI, HI, QI.
8755 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8756 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8759 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8761 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8762 new interface of s390_contiguous_bitmask_p.
8763 ("contiguous_bitmask_nowrap_operand"): New predicate.
8764 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8765 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8766 of s390_contiguous_bitmask_p.
8767 ("NxxDw"): Rename NxxDq constraint to NxxDw.
8768 ("NxxSw"): New constraint.
8769 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8770 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8772 (s390_contiguous_bitmask_nowrap_p): Export.
8773 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8774 former s390_contiguous_bitmask_p.
8775 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8776 detect contiguous bit ranges with wraparound. Change signature to
8777 return START and END position instead of POS and LENGTH.
8778 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8779 ranges with wraparound.
8780 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8781 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8782 Adapt to new signature of s390_contiguous_bitmask_p.
8784 2016-09-23 Bin Cheng <bin.cheng@arm.com>
8786 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8787 (create_intersect_range_checks): New.
8788 (vect_create_cond_for_alias_checks): Call above function.
8790 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8792 * config/arm/iterators.md (Code iterators): Fix some white-space
8796 (FCVT): Moved from vfp.md.
8797 (VCVT_HF_US_N): New.
8798 (VCVT_SI_US_N): New.
8803 (FCVTI32typename): Moved from vfp.md.
8804 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
8805 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
8806 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
8807 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
8808 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
8810 (fp16_rnd_str): New.
8811 (fp16_rnd_insn): New.
8812 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
8813 (UNSPEC_VCVT_HF_U_N): New.
8814 (UNSPEC_VCVT_SI_S_N): New.
8815 (UNSPEC_VCVT_SI_U_N): New.
8816 (UNSPEC_VCVTH_S): New.
8817 (UNSPEC_VCVTH_U): New.
8818 (UNSPEC_VCVTA_S): New.
8819 (UNSPEC_VCVTA_U): New.
8820 (UNSPEC_VCVTM_S): New.
8821 (UNSPEC_VCVTM_U): New.
8822 (UNSPEC_VCVTN_S): New.
8823 (UNSPEC_VCVTN_U): New.
8824 (UNSPEC_VCVTP_S): New.
8825 (UNSPEC_VCVTP_U): New.
8826 (UNSPEC_VCVTP_S): New.
8827 (UNSPEC_VCVTP_U): New.
8829 (UNSPEC_VRNDA): New.
8830 (UNSPEC_VRNDI): New.
8831 (UNSPEC_VRNDM): New.
8832 (UNSPEC_VRNDN): New.
8833 (UNSPEC_VRNDP): New.
8834 (UNSPEC_VRNDX): New.
8835 * config/arm/vfp.md (<absneg_str>hf2): New.
8837 (neon_v<fp16_rnd_str>hf): New.
8838 (neon_vrndihf): New.
8843 (*mulsf3neghf_vfp): New.
8844 (*negmulhf3_vfp): New.
8845 (*mulsf3addhf_vfp): New.
8846 (*mulhf3subhf_vfp): New.
8847 (*mulhf3neghfaddhf_vfp): New.
8848 (*mulhf3neghfsubhf_vfp): New.
8851 (fmsubhf4_fp16): New.
8855 (neon_vsqrthf): New.
8856 (neon_vrsqrtshf): New.
8857 (FCVT): Move to iterators.md.
8858 (FCVTI32typename): Likewise.
8859 (neon_vcvth<sup>hf): New.
8860 (neon_vcvth<sup>si): New.
8861 (neon_vcvth<sup>_nhf_unspec): New.
8862 (neon_vcvth<sup>_nhf): New.
8863 (neon_vcvth<sup>_nsi_unspec): New.
8864 (neon_vcvth<sup>_nsi): New.
8865 (neon_vcvt<vcvth_op>h<sup>si): New.
8866 (neon_<fmaxmin_op>hf): New.
8868 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8870 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
8871 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
8872 ("*insv<mode>_zEC12_appendbitsleft")
8873 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
8874 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
8876 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8878 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
8879 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
8880 construct values without normalization.
8881 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
8882 static local lhs_ops to vNULL.
8884 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8885 Jiong Wang <jiong.wang@arm.com>
8887 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
8888 available when FP16 instructions are available.
8889 (output_move_vfp): Add support for 16-bit data moves.
8890 (arm_validize_comparison): Fix some white-space. Support HFmode
8891 by conversion to SFmode.
8892 * config/arm/arm.md (truncdfhf2): Fix a comment.
8893 (extendhfdf2): Likewise.
8895 (movsicc): Fix some white-space.
8897 (movsfcc): Fix some white-space.
8899 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
8900 instructions are available.
8901 (*thumb2_movhi_vfp): Likewise.
8902 (*arm_movhi_fp16): New.
8903 (*thumb2_movhi_fp16): New.
8904 (*movhf_vfp_fp16): New.
8905 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
8906 (*movhf_vfp): Likewise.
8907 (extendhfsf2): Enable when VFP FP16 instructions are available.
8908 (truncsfhf2): Enable when VFP FP16 instructions are available.
8910 2016-09-23 Martin Liska <mliska@suse.cz>
8912 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
8914 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8916 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
8918 (arm_evpc_neon_vtrn): Likewise.
8919 (arm_evpc_neon_vrev): Likewise.
8920 (arm_evpc_neon_vext): Likewise.
8921 * config/arm/arm_neon.h (vbsl_f16): New.
8925 (vdup_lane_f16): New.
8926 (vdupq_lane_f16): New.
8939 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
8940 (vdup_lane): New (v8hf, v4hf variants).
8941 (vext): New (v8hf, v4hf variants).
8942 (vbsl): New (v8hf, v4hf variants).
8943 * config/arm/iterators.md (VDQWH): New.
8945 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
8946 (Scalar_mul_8_16): Fix white-space.
8947 (Is_d_reg): Add V4HF and V8HF.
8948 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
8949 (neon_vdup_lane<mode>): New.
8950 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
8951 (*neon_vtrn<mode>_insn): Likewise.
8952 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
8953 (*neon_vzip<mode>_insn): Likewise
8954 (neon_vuzp<mode>_internal): Likewise.
8955 (*neon_vuzp<mode>_insn): Likewise
8956 * config/arm/vec-common.md (vec_perm_const<mode>): New.
8958 2016-09-23 Jiong Wang <jiong.wang@arm.com>
8959 Matthew Wahab <matthew.wahab@arm.com>
8961 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
8962 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
8963 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
8964 available. Also fix some white-space.
8965 * config/arm/vfp.md (*arm_movhi_vfp): New.
8966 (*thumb2_movhi_vfp): New.
8968 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8970 * config/arm/arm-c.c (arm_cpu_builtins): Define
8971 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
8972 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
8974 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8976 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
8977 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
8978 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
8979 arm_v8_2a_fp16_neon_hw.
8980 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
8983 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8985 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
8986 arm_fp16_alternative_ok and arm_fp16_none_ok.
8988 2016-09-23 Martin Liska <mliska@suse.cz>
8990 * ipa-icf.c (sem_variable::merge): Replace adress with address.
8992 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8994 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
8996 ("armv8.2-a+fp16"): New.
8997 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
8998 (FL2_FP16INST): New.
8999 (FL2_FOR_ARCH8_2A): New.
9000 * config/arm/arm-tables.opt: Regenerate.
9001 * config/arm/arm.c (arm_arch8_2): New.
9002 (arm_fp16_inst): New.
9003 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
9004 for incompatible fp16-format settings.
9005 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
9006 (TARGET_NEON_FP16INST): New.
9007 (arm_arch8_2): Declare.
9008 (arm_fp16_inst): Declare.
9009 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
9010 march=armv8.2-a and march=armv8.2-a+fp16.
9011 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
9013 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
9014 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
9016 2016-09-23 Martin Liska <mliska@suse.cz>
9018 * doc/extend.texi: Remove fused-madd from i386 target options.
9020 2016-09-23 Martin Liska <mliska@suse.cz>
9022 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9025 2016-09-23 Martin Liska <mliska@suse.cz>
9027 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9030 2016-09-23 Martin Liska <mliska@suse.cz>
9033 * config/i386/i386.c (ix86_option_override_internal): Change
9034 signature and return false when there's an error related to
9036 (release_options_strings): New function.
9037 (ix86_valid_target_attribute_tree): Call the function.
9039 2016-09-23 Jakub Jelinek <jakub@redhat.com>
9041 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
9042 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
9043 (gen_hsa_ctor_assignment): Likewise.
9044 * print-tree.c (print_node): Likewise.
9045 * tree-dump.c (dequeue_and_dump): Likewise.
9046 * tree-sra.c (sra_modify_constructor_assign): Likewise.
9047 * expr.c (store_constructor): Likewise.
9048 * fold-const.c (operand_equal_p): Likewise.
9049 * tree-pretty-print.c (dump_generic_node): Likewise.
9050 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
9051 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
9053 2016-09-23 Richard Biener <rguenther@suse.de>
9055 * hooks.h (hook_uint_uintp_false): Declare.
9057 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9059 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
9060 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
9062 2016-09-22 Martin Sebor <msebor@redhat.com>
9065 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
9066 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
9067 (target_int_min): Correct computation.
9068 (format_integer): Use long long as the argument for the ll length
9070 (format_floating): Use target_int_max().
9071 (get_string_length): Same.
9072 (format_string): Avoid setting the bounded flag for strings
9074 (try_substitute_return_value): Avoid setting range info when
9075 the result isn't bounded.
9076 * varasm.c (assemble_name): Increase buffer size.
9078 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
9079 Terry Guo <terry.guo@arm.com>
9081 * target.def (elf_flags_numeric): New target hook.
9082 * targhooks.h (default_asm_elf_flags_numeric): New.
9083 * varasm.c (default_asm_elf_flags_numeric): New.
9084 (default_elf_asm_named_section): Use new target hook.
9085 * config/arm/arm.opt (mpure-code): New.
9086 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
9087 * config/arm/arm.c (arm_asm_init_sections): Add section
9088 attribute to default text section if -mpure-code.
9089 (arm_option_check_internal): Diagnose use of option with
9090 non supported targets and/or options.
9091 (arm_asm_elf_flags_numeric): New.
9092 (arm_function_section): New.
9093 (arm_elf_section_type_flags): New.
9094 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
9096 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
9097 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
9099 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
9101 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
9103 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9105 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
9106 * rtl.h: Adjust prototype.
9108 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9110 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
9111 (prev_active_insn): Likewise.
9112 (active_insn_p): Likewise.
9113 * rtl.h: Adjust prototypes.
9114 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
9115 * config/arc/arc.md: Likewise.
9116 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
9117 (branch_needs_nop_p): Likewise.
9118 (use_skip_p): Likewise.
9119 * config/sh/sh.c (gen_block_redirect): Likewise.
9120 (split_branches): Likewise.
9121 * reorg.c (optimize_skip): Likewise.
9122 (fill_simple_delay_slots): Likewise.
9123 (fill_slots_from_thread): Likewise.
9124 (relax_delay_slots): Likewise.
9125 * resource.c (mark_target_live_regs): Likewise.
9127 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9129 * config/cris/cris.c (cris_asm_output_case_end): Change argument
9131 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
9132 (prev_nonnote_nondebug_insn): Likewise.
9133 * config/cris/cris-protos.h: Adjust prototype.
9135 * jump.c (rtx_renumbered_equal_p): Adjust.
9137 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9139 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
9140 * rtl.h: Adjust prototype.
9141 * config/sh/sh.md: Adjust.
9142 * dwarf2out.c (add_var_loc_to_decl): Likewise.
9144 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9146 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
9147 (prev_nondebug_insn): Likewise.
9148 * loop-doloop.c (doloop_condition_get): Likewise.
9149 * rtl.h: Adjust prototype.
9150 * cfgloop.h: Likewise.
9152 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9154 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
9155 (prev_nonnote_insn): Likewise.
9156 * jump.c (reversed_comparison_code_parts): Likewise.
9157 (reversed_comparison): Likewise.
9158 * rtl.h: Adjust prototypes.
9159 * config/arc/arc.md: Adjust.
9160 * cse.c (find_comparison_args): Likewise.
9161 * reorg.c (redundant_insn): Change return type to rtx_insn *.
9162 (fix_reg_dead_note): Change argument type to rtx_insn *.
9163 (delete_prior_computation): Likewise.
9164 (delete_computation): Likewise.
9165 (fill_slots_from_thread): Adjust.
9166 (relax_delay_slots): Likewise.
9167 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9168 (simplify_relational_operation_1): Likewise.
9169 (simplify_ternary_operation): Likewise.
9171 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9173 * config/arc/arc-protos.h (arc_label_align): Change type of
9174 variables from rtx to rtx_insn *.
9175 * config/arc/arc.c (arc_label_align): Likewise.
9176 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
9177 * config/bfin/bfin.c (workaround_speculation): Likewise.
9178 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
9179 (find_last_same_clock): Likewise.
9180 (reorg_split_calls): Likewise.
9181 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
9182 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
9183 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
9184 (same_cmp_following_p): Likewise.
9185 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
9186 (same_cmp_following_p): Likwise.
9187 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
9188 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
9189 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
9190 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
9191 (rl78_alloc_physical_registers_cmp): Likewise.
9192 (rl78_alloc_physical_registers_umul): Likewise.
9193 (rl78_calculate_death_notes): Likewise.
9194 * config/s390/s390-protos.h (s390_label_align): Likewise.
9195 * config/s390/s390.c (s390_label_align): Likewise.
9196 * config/sh/sh.c (barrier_align): Likewise.
9197 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
9198 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
9199 (emit_cbcond_nop): Likewise.
9201 2016-09-22 Martin Liska <mliska@suse.cz>
9204 * ipa-icf.c (sem_variable::merge): Yield merge operation if
9205 alias address matters, not necessarily address of original.
9207 2016-09-22 Richard Biener <rguenther@suse.de>
9210 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
9213 2016-09-22 Richard Biener <rguenther@suse.de>
9216 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
9217 from constant folding results.
9218 (gimple_resimplify2): Likewise.
9219 (gimple_resimplify3): Likewise.
9221 2016-09-22 Richard Biener <rguenther@suse.de>
9224 * expr.c (expand_expr_real_1): Guard array access against negative
9227 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9229 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
9231 (format_floating): Likewise.
9233 2016-09-22 Jakub Jelinek <jakub@redhat.com>
9236 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
9237 for all IFN_GOMP_SIMD_* internal fns, not just for
9238 IFN_GOMP_SIMD_ORDERED_*.
9240 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9243 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
9244 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
9245 instructions when you want to invert the test.
9246 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
9247 correct order for XXSEL.
9248 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
9249 for using XSCMP{EQ,GT,GE}DP.
9251 2016-09-21 David Malcolm <dmalcolm@redhat.com>
9253 * genconstants.c (main): Introduce noop_reader and convert call
9254 to read_md_files to a method call.
9255 * genenums.c (main): Likewise.
9256 * genmddeps.c (main): Likewise.
9257 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
9258 rtx_reader_ptr->get_top_level_filename ().
9259 (write_tm_preds_h): Likewise.
9260 (write_insn_preds_c): Likewise.
9261 * gensupport.c (class gen_reader): New subclass of rtx_reader.
9262 (rtx_handle_directive): Convert to...
9263 (gen_reader::handle_unknown_directive): ...this.
9264 (init_rtx_reader_args_cb): Convert return type from bool to
9265 rtx_reader *. Create a gen_reader instance, using it for the
9266 call to read_md_files. Return it if no errors occur.
9267 (init_rtx_reader_args): Convert return type from bool to
9269 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9270 (init_rtx_reader_args_cb): Likewise.
9271 * read-md.c (struct file_name_list): Move to class rtx_reader.
9272 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
9273 (read_md_filename): Delete in favor of
9274 rtx_reader::m_read_md_filename.
9275 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
9276 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
9277 (base_dir): Delete in favor of rtx_reader::m_base_dir.
9278 (first_dir_md_include): Delete in favor of
9279 rtx_reader::m_first_dir_md_include.
9280 (last_dir_md_include_ptr): Delete in favor of
9281 rtx_reader::m_last_dir_md_include_ptr.
9282 (max_include_len): Delete.
9283 (rtx_reader_ptr): New.
9284 (fatal_with_file_and_line): Use get_filename and get_lineno
9285 accessors of rtx_reader_ptr.
9286 (require_char_ws): Likewise.
9287 (rtx_reader::read_char): New method, based on ::read_char.
9288 (rtx_reader::unread_char): New method, based on ::unread_char.
9289 (read_escape): Use get_filename and get_lineno accessors of
9291 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
9292 (read_string): Use get_filename and get_lineno accessors of
9294 (rtx_reader::rtx_reader): New ctor.
9295 (rtx_reader::~rtx_reader): New dtor.
9296 (handle_include): Convert from a function to...
9297 (rtx_reader::handle_include): ...this method, converting
9298 handle_directive from a callback to a virtual function.
9299 (handle_file): Likewise, converting to...
9300 (rtx_reader::handle_file): ...this method.
9301 (handle_toplevel_file): Likewise, converting to...
9302 (rtx_reader::handle_toplevel_file): ...this method.
9303 (rtx_reader::get_current_location): New method.
9304 (parse_include): Convert from a function to...
9305 (rtx_reader::add_include_path): ...this method, dropping redundant
9306 update to unused max_include_len.
9307 (read_md_files): Convert from a function to...
9308 (rtx_reader::read_md_files): ...this method, converting
9309 handle_directive from a callback to a virtual function.
9310 (noop_reader::handle_unknown_directive): New method.
9311 * read-md.h (directive_handler_t): Delete this typedef.
9313 (read_md_file): Delete.
9314 (read_md_lineno): Delete.
9315 (read_md_filename): Delete.
9316 (class rtx_reader): New class.
9317 (rtx_reader_ptr): New decl.
9318 (class noop_reader): New subclass of rtx_reader.
9319 (read_char): Reimplement in terms of rtx_reader::read_char.
9320 (unread_char): Reimplement in terms of rtx_reader::unread_char.
9321 (read_md_files): Delete.
9322 * read-rtl.c (read_rtx_code): Update for deletion of globals
9323 read_md_filename and read_md_lineno.
9325 2016-09-21 Jason Merrill <jason@redhat.com>
9327 * input.h (from_macro_definition_at): New.
9329 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9331 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
9333 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9335 PR tree-optimization/77550
9336 * tree-vect-stmts.c (create_array_ref): Change parameters.
9337 (get_group_alias_ptr_type): New function.
9338 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
9340 2016-09-21 Marek Polacek <polacek@redhat.com>
9342 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
9343 Add falls through comment.
9345 2016-09-21 Richard Biener <rguenther@suse.de>
9347 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
9348 (replace_child): Likewise.
9349 (remove_child_TAG): Adjust.
9350 (move_marked_base_types): Likewise.
9351 (prune_unused_types_prune): Clear die_sib of removed children.
9353 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
9356 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
9357 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
9359 2016-09-21 Richard Biener <rguenther@suse.de>
9361 PR tree-optimization/77648
9362 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
9364 (make_transitive_closure_constraints): Adjust comment.
9365 (make_any_offset_constraints): New function.
9366 (handle_rhs_call): Make sure to first expand a pointer to all
9367 subfields before transitively closing it.
9368 (handle_const_call): Likewise. Properly expand returned
9370 (handle_pure_call): Likewise.
9372 2016-09-21 Richard Biener <rguenther@suse.de>
9373 Jakub Jelinek <jakub@redhat.com>
9375 PR tree-optimization/77621
9376 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
9377 group at non-vectorizable stmts.
9379 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9381 PR tree-optimization/72835
9382 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
9383 (make_new_ssa_for_all_defs): Likewise.
9384 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
9386 2016-09-20 Martin Sebor <msebor@redhat.com>
9389 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
9390 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
9391 * config/linux.c (gnu_libc_printf_pointer_format): New function.
9392 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
9393 * config/sol2.c (solaris_printf_pointer_format): New function.
9394 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
9396 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
9397 * doc/tm.texi: Regenerate.
9398 * gimple-fold.h (get_range_strlen): New function.
9399 (get_maxval_strlen): Declare existing function.
9400 * gimple-fold.c (get_range_strlen): Add arguments and compute both
9401 maximum and minimum.
9402 (get_range_strlen): Define overload.
9403 (get_maxval_strlen): Adjust.
9404 * gimple-ssa-sprintf.c: New file and pass.
9405 * passes.def (pass_sprintf_length): Add new pass.
9406 * targhooks.h (default_printf_pointer_format): Declare new function.
9407 (gnu_libc_printf_pointer_format): Same.
9408 (solaris_libc_printf_pointer_format): Same.
9409 * targhooks.c (default_printf_pointer_format): Define new function.
9410 * tree-pass.h (make_pass_sprintf_length): Declare new function.
9411 * print-tree.c: Increase buffer size.
9413 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9415 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
9417 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9419 * common.opt: New option -fipa-vrp.
9420 * ipa-cp.c (ipa_get_vr_lat): New.
9421 (ipcp_vr_lattice::print): Likewise.
9422 (print_all_lattices): Call ipcp_vr_lattice::print.
9423 (ipcp_vr_lattice::meet_with): New.
9424 (ipcp_vr_lattice::meet_with_1): Likewise.
9425 (ipcp_vr_lattice::top_p): Likewise.
9426 (ipcp_vr_lattice::bottom_p): Likewsie.
9427 (ipcp_vr_lattice::set_to_bottom): Likewise.
9428 (set_all_contains_variable): Call VR set_to_bottom.
9429 (initialize_node_lattices): Init VR lattices.
9430 (propagate_vr_accross_jump_function): New.
9431 (propagate_constants_accross_call): Call
9432 propagate_vr_accross_jump_function.
9433 (ipcp_store_vr_results): New.
9434 (ipcp_driver): Handle VR.
9435 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
9436 (ipa_set_jf_unknown): Likewise.
9437 (ipa_compute_jump_functions_for_edge): Likewise.
9438 (ipa_node_params_t::duplicate): Likewise.
9439 (ipa_write_jump_function): Likewise.
9440 (ipa_read_jump_function): Likewise.
9441 (write_ipcp_transformation_info): Likewise.
9442 (read_ipcp_transformation_info): Likewise.
9443 (ipcp_update_vr): New.
9444 (ipcp_transform_function): Handle VR.
9445 * ipa-prop.h (struct ipa_vr): New.
9446 * cgraph.c: Include tree-vrp.h.
9447 * cgraphunit.c: Likewise.
9448 * ipa-utils.c: Likewise.
9451 * toplev.c: Likewise.
9452 * ipa-devirt.c: Likewise.
9453 * ipa-inline-transform.c: Likewise.
9454 * ipa-inline.c: Likewise.
9455 * ipa-profile.c: Likewise.
9457 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9459 * doc/invoke.texi: Document -fdump-tree-evrp.
9460 * passes.def: Define new pass_early_vrp.
9461 * timevar.def: Define new TV_TREE_EARLY_VRP.
9462 * tree-pass.h (make_pass_early_vrp): New.
9463 * tree-ssa-propagate.c: Make replace_uses_in non static.
9464 * tree-ssa-propagate.h: Export replace_uses_in.
9465 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
9466 (extract_range_from_assert): Factor out
9467 extract_range_for_var_from_comparison_expr.
9468 (vrp_initialize_lattice): New.
9469 (vrp_initialize): Factor out vrp_initialize_lattice.
9470 (vrp_valueize): Fix it to reject complex value ranges.
9471 (vrp_free_lattice): New.
9472 (evrp_dom_walker::before_dom_children): Likewise.
9473 (evrp_dom_walker::after_dom_children): Likewise.
9474 (evrp_dom_walker::push_value_range): Likewise.
9475 (evrp_dom_walker::pop_value_range): Likewise.
9476 (execute_early_vrp): Likewise.
9477 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
9478 (make_pass_early_vrp): New.
9480 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9482 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
9483 instead of exact_log2.
9485 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9488 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9489 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9490 (ix86_add_stmt_cost): Penalize DFmode vector operations
9491 for !TARGET_VECTORIZE_DOUBLE.
9493 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
9495 * doc/invoke.texi (Warning Options): Simplify language.
9496 (Optimize Options): Complete sentence.
9498 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
9500 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
9503 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9506 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9507 inits on power8 and above, use the VMRGEW instruction instead of a
9510 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9511 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9514 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9516 * config/aarch64/arm_neon.h
9517 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9518 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9519 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9521 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9523 * config/var/vax.h (ELIMINABLE_REGS): Define.
9524 (INITIAL_ELIMINATION_OFFSET): Define.
9526 2016-09-20 Jakub Jelinek <jakub@redhat.com>
9529 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9530 cast to void * if the cast is from some other pointer type.
9532 2016-09-20 Richard Biener <rguenther@suse.de>
9534 PR tree-optimization/77646
9535 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9538 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9540 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9541 attributes to all inlined functions and make them extern.
9543 2016-09-20 Richard Biener <rguenther@suse.de>
9545 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9547 * debug.c (do_nothing_debug_hooks): Adjust.
9548 * dbxout.c (dbx_debug_hooks): Likewise.
9549 * sdbout.c (sdb_debug_hooks): Likewise.
9550 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9551 (dwarf2out_finish): Move producer, filename and
9553 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
9554 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9556 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9559 * doc/invoke.texi: Document -Wint-in-bool-context.
9562 * dwarf2out.c (output_loc_operands): Fix an assertion.
9564 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9566 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9567 (CR_DECIMAL_DIG): New macro.
9569 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9571 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9574 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
9576 PR rtl-optimization/77416
9577 * lra-remat.c (operand_to_remat): Process hard coded insn
9580 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9582 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9583 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9585 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9587 * target.def (lra_p): Wordsmithing.
9588 * doc/tm.texi: Regenerate.
9590 2016-09-19 Jakub Jelinek <jakub@redhat.com>
9591 Jan Hubicka <jh@suse.cz>
9594 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9595 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9596 Call ultimate_alias_target just once, not up to 4 times.
9598 2016-09-19 Richard Biener <rguenther@suse.de>
9600 * dwarf2out.c (early_dwarf_finished): New global.
9601 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9603 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9604 if called from LTO exit early.
9605 (dwarf2out_late_global_decl): When being during the early
9606 debug phase do not add locations but only const value attributes.
9607 Adjust the way we generate early DIEs for LTO.
9609 2016-09-19 Richard Biener <rguenther@suse.de>
9612 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9613 proper niter to bound the loops.
9615 2016-09-19 Richard Biener <rguenther@suse.de>
9617 PR tree-optimization/77514
9618 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9619 search for folded stmt.
9621 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
9623 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9624 * tree-pass.h (make_pass_early_thread_jumps): Declare.
9625 * tree-ssa-threadbackward.c (fsm_find_thread_path,
9626 fsm_find_thread_path, profitable_jump_thread_path,
9627 fsm_find_control_statement_thread_paths,
9628 find_jump_threads_backwards): Add speed_p parameter.
9629 (pass_data_early_thread_jumps): New pass.
9630 (make_pass_early_thread_jumps): New function.
9632 2016-09-17 Andreas Schwab <schwab@suse.de>
9634 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9635 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9637 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
9639 * recog.c (rest_of_handle_split_after_reload): Delete.
9640 (pass_split_after_reload::gate): New method.
9641 (pass_split_after_reload::execute): Call split_all_insns directly.
9643 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
9645 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9646 parameters for functions taking long long arguments.
9648 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9651 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9652 splat with truncate.
9654 2016-09-16 Jason Merrill <jason@redhat.com>
9656 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9658 * hwint.c (exact_log2): Use pow2p_hwi.
9659 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9660 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9661 * builtins.c (get_object_alignment_2, get_object_alignment)
9662 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9664 * calls.c (compute_argument_addresses, store_one_arg): Use
9666 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9667 * combine.c (force_to_mode): Use least_bit_hwi.
9668 (contains_muldiv, find_split_point, combine_simplify_rtx)
9669 (simplify_if_then_else, simplify_set, force_to_mode)
9670 (if_then_else_cond, simplify_and_const_int_1)
9671 (simplify_compare_const): Use pow2p_hwi.
9672 * cse.c (fold_rtx): Use pow2p_hwi.
9673 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9675 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9676 (init_expmed_one_conv): Use pow2p_hwi.
9677 * expr.c (is_aligning_offset): Use pow2p_hwi.
9678 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9679 (fold_binary_loc): Use pow2p_hwi.
9680 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9681 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9682 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9683 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9685 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9686 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9687 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9688 * omp-low.c (oacc_loop_fixed_partitions)
9689 (oacc_loop_auto_partitions): Use least_bit_hwi.
9690 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9691 * stor-layout.c (place_field): Use least_bit_hwi.
9692 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9693 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9694 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9695 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9696 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9697 * tree-vect-data-refs.c (vect_analyze_group_access_1)
9698 (vect_grouped_store_supported, vect_grouped_load_supported)
9699 (vect_permute_load_chain, vect_shift_permute_load_chain)
9700 (vect_transform_grouped_load): Use pow2p_hwi.
9701 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9702 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9703 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9705 * tsan.c (instrument_expr): Use least_bit_hwi.
9706 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9708 2016-09-16 Andreas Schwab <schwab@suse.de>
9710 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9712 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9714 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9717 * combine.c (rest_of_handle_combine): If any edges have been purged,
9718 free dominators if available.
9720 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9721 Eric Botcazou <ebotcazou@adacore.com>
9724 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9725 through into expand_addsub_overflow after expand_neg_overflow.
9727 2016-09-15 David Malcolm <dmalcolm@redhat.com>
9729 * diagnostic-show-locus.c
9730 (selftest::test_fixit_insert_containing_newline): New function.
9731 (selftest::test_fixit_replace_containing_newline): New function.
9732 (selftest::diagnostic_show_locus_c_tests): Call the above.
9734 2016-09-15 Bin Cheng <bin.cheng@arm.com>
9736 PR tree-optimization/77503
9737 * tree-vect-loop.c (vectorizable_reduction): Record reduction
9738 code for CONST_COND_REDUCTION at analysis stage and use it at
9740 * tree-vectorizer.h (struct _stmt_vec_info): New field.
9741 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9742 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9745 2016-09-15 Richard Biener <rguenther@suse.de>
9748 * fold-const.c (split_tree): Do not split constant ~X.
9750 2016-09-15 Jakub Jelinek <jakub@redhat.com>
9752 PR rtl-optimization/77425
9753 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9757 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9758 use %qs instead of %s where desirable, use argument instead of arg in
9759 the diagnostic wording, add list of supported strategies and
9761 (ix86_option_override_internal): Emit target("m...") instead of
9762 option("m...") in the diagnostic. Use %qs instead of %s in invalid
9763 -march/-mtune option diagnostic. Add list of supported arches/tunings
9764 and spellcheck hint. Remove prefix, suffix and sw variables, use
9765 main_args_p ? "..." : "..." in diagnostics to make translation
9768 2016-09-15 Richard Biener <rguenther@suse.de>
9770 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9771 extra offset argument.
9772 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9773 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9774 to reflect new offset parameter.
9775 * doc/tm.texi: Regenerate.
9776 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9777 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9779 (darwin_asm_output_dwarf_offset): Likewise.
9780 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9782 (darwin_asm_output_dwarf_offset): Pass offset argument through.
9783 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9784 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9786 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
9789 * ipa-icf.c (set_alias_uids): New function.
9790 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
9791 all the merged variable's referring aliases.
9793 2016-09-15 Richard Biener <rguenther@suse.de>
9795 PR tree-optimization/77514
9796 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
9797 only forced_stmts sequence.
9799 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
9801 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
9802 * cfgexpand.c (update_alias_info_with_stack_vars): Use
9803 FOR_EACH_SSA_NAME to iterate over SSA variables.
9804 (pass_expand::execute): Likewise.
9805 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
9806 * tree-cfg.c (dump_function_to_file): Likewise.
9807 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
9808 (update_ssa): Likewise.
9809 * tree-ssa-alias.c (dump_alias_info): Likewise.
9810 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9811 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
9812 (create_outofssa_var_map): Likewise.
9813 (coalesce_ssa_name): Likewise.
9814 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
9815 * tree-ssa-pre.c (compute_avail): Likewise.
9816 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
9817 (scc_vn_restore_ssa_info): Likewise.
9818 (free_scc_vn): Likwise.
9819 (run_scc_vn): Likewise.
9820 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9821 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
9822 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9823 * tree-ssa.c (verify_ssa): Likewise.
9825 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
9827 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
9828 and mips64r2 as default 32-bit and 64-bit architectures.
9829 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
9830 as default 32-bit and 64-bit architectures.
9832 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
9834 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
9837 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9839 * target.def (lra_p): Change commentary (for the manual) for the
9841 * doc/tm.texi: Regenerate.
9843 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9845 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
9846 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
9847 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
9848 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
9850 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9852 * targhooks.c (default_lra_p): Return true instead of false.
9854 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9856 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
9857 hook_bool_void_false.
9858 * config/avr/avr.c: Ditto.
9859 * config/bfin/bfin.c: Ditto.
9860 * config/c6x/c6x.c: Ditto.
9861 * config/cr16/cr16.c: Ditto.
9862 * config/cris/cris.c: Ditto.
9863 * config/epiphany/epiphany.c: Ditto.
9864 * config/fr30/fr30.c: Ditto.
9865 * config/frv/frv.c: Ditto.
9866 * config/h8300/h8300.c: Ditto.
9867 * config/ia64/ia64.c: Ditto.
9868 * config/iq2000/iq2000.c: Ditto.
9869 * config/lm32/lm32.c: Ditto.
9870 * config/m32c/m32c.c: Ditto.
9871 * config/m32r/m32r.c: Ditto.
9872 * config/m68k/m68k.c: Ditto.
9873 * config/mcore/mcore.c: Ditto.
9874 * config/microblaze/microblaze.c: Ditto.
9875 * config/mmix/mmix.c: Ditto.
9876 * config/mn10300/mn10300.c: Ditto.
9877 * config/moxie/moxie.c: Ditto.
9878 * config/msp430/msp430.c: Ditto.
9879 * config/nios2/nios2.c: Ditto.
9880 * config/nvptx/nvptx.c: Ditto.
9881 * config/pa/pa.c: Ditto.
9882 * config/pdp11/pdp11.c: Ditto.
9883 * config/rl78/rl78.c: Ditto.
9884 * config/sparc/sparc.c: Ditto.
9885 * config/spu/spu.c: Ditto.
9886 * config/stormy16/stormy16.c: Ditto.
9887 * config/tilegx/tilegx.c: Ditto.
9888 * config/tilepro/tilepro.c: Ditto.
9889 * config/v850/v850.c: Ditto.
9890 * config/vax/vax.c: Ditto.
9891 * config/visium/visium.c: Ditto.
9892 * config/xtensa/xtensa.c: Ditto.
9894 2016-09-14 Jakub Jelinek <jakub@redhat.com>
9897 * tsan.c: Include target.h.
9898 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
9899 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
9900 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
9901 BUILT_IN_ATOMIC_TEST_AND_SET entries.
9902 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
9904 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9905 Martin Liska <mliska@suse.cz>
9908 * predict.c (force_edge_cold): Add braces to a condition.
9910 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9912 PR rtl-optimization/77289
9913 * lra-constraints.c (get_final_hard_regno): Removed.
9914 (get_hard_regno): Add new parameter final_p.
9915 (get_reg_class): Directly call lra_get_elimination_hard_regno.
9916 (operands_match_p): Adjust call to get_hard_regno.
9917 (uses_hard_regs_p): Likewise.
9918 (process_alt_operands): Likewise.
9920 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
9923 * config/msp430/msp430.c (msp430_start_function): Emit an error
9924 if a function is both weak and specifies an interrupt number.
9926 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9928 PR tree-optimization/77454
9929 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
9930 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
9933 2016-09-13 Tamar Christina <tamar.christina@arm.com>
9935 * config/aarch64/aarch64-builtins.c
9936 (aarch64_init_simd_builtins): Fix builtin type signature printing.
9938 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
9940 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
9941 SFmode and SCmode arguments by reference.
9943 2016-09-13 David Malcolm <dmalcolm@redhat.com>
9945 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
9947 (selftest::test_one_liner_fixit_insert_before): ...this, and update
9948 for renaming of add_fixit_insert to add_fixit_insert_before.
9949 (selftest::test_one_liner_fixit_insert_after): New function.
9950 (selftest::test_one_liner_fixit_validation_adhoc_locations):
9951 Update for renaming of add_fixit_insert to add_fixit_insert_before.
9952 (selftest::test_one_liner_many_fixits): Likewise.
9953 (selftest::test_diagnostic_show_locus_one_liner): Update for
9954 renaming, call new test function.
9955 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
9956 renaming of add_fixit_insert to add_fixit_insert_before.
9957 (selftest::test_fixit_consolidation): Likewise.
9958 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
9960 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
9961 (selftest::test_applying_fixits_insert_before): ...this.
9962 (selftest::test_applying_fixits_insert): Update for renaming of
9963 add_fixit_insert to add_fixit_insert_before.
9964 (selftest::test_applying_fixits_insert_after): New function.
9965 (selftest::test_applying_fixits_insert_after_at_line_end): New
9967 (selftest::test_applying_fixits_insert_after_failure): New function.
9968 (selftest::test_applying_fixits_multiple): Update for renaming of
9969 add_fixit_insert to add_fixit_insert_before.
9970 (selftest::change_line): Likewise.
9971 (selftest::test_applying_fixits_unreadable_file): Likewise.
9972 (selftest::test_applying_fixits_line_out_of_range): Likewise.
9973 (selftest::test_applying_fixits_column_validation): Likewise.
9974 (selftest::test_applying_fixits_column_validation): Likewise.
9975 (selftest::edit_context_c_tests): Update for renamed test function;
9976 call new test functions.
9978 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
9980 PR tree-optimization/77536
9981 PR rtl-optimization/68212
9982 * config/rs6000/rs6000.md (div->recip splitter): Remove
9983 optimize_insn_for_speed_p condition.
9985 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
9987 * optabs.c (prepare_cmp_insn): Update documentation comment.
9989 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9990 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9993 * opts.h (candidates_list_and_hint): Declare.
9994 * opts-common.c (candidates_list_and_hint): New function.
9995 (cmdline_handle_error): Use it.
9997 2016-09-12 David Malcolm <dmalcolm@redhat.com>
9999 * edit-context.c (edited_line::get_len): New accessor.
10000 (edited_file::print_diff): Split out hunk-printing into...
10001 (edited_file::print_diff_hunk): New method.
10002 (edited_file::print_diff_line): New method.
10004 2016-09-12 Andrew Pinski <apinski@cavium.com>
10006 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
10008 * config/aarch64/aarch64.c (thunderx_tunings): Enable
10009 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
10010 (aarch64_operands_ok_for_ldpstp): Return false if
10011 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
10012 was SImode and the alignment is less than 8 byte.
10013 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
10015 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
10018 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
10020 2016-09-12 Marek Polacek <polacek@redhat.com>
10022 * doc/extend.texi: Use lowercase "boolean".
10023 * doc/invoke.texi: Likewise.
10024 * doc/md.texi: Likewise.
10025 * target.def: Likewise.
10026 * doc/tm.texi: Regenerated.
10028 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10030 PR middle-end/77426
10031 * expmed.c (synth_mult): Delete duplicate mode check.
10033 2016-09-10 Tom de Vries <tom@codesourcery.com>
10036 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
10038 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
10039 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
10041 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
10043 PR rtl-optimization/77289
10044 * lra-constraints.c (get_final_hard_regno): Add support for non hard
10045 register numbers. Remove support for subregs.
10046 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
10047 (get_reg_class): Delete removed get_final_hard_regno() argument.
10048 (uses_hard_regs_p): Call get_final_hard_regno().
10050 2016-09-09 Martin Sebor <msebor@redhat.com>
10054 * pretty-print.c (pp_quoted_string): New function.
10055 (pp_format): Call it for %c and %s directives.
10057 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10059 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
10060 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
10061 INITIAL_ELIMINATION_OFFSET) : Update documentation.
10062 * target.def (frame_pointer_required, can_eliminate): Likewise.
10063 * doc/tm.texi: Regenerated.
10064 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
10066 * df-scan.c (df_hard_reg_init): Likewise.
10067 * ira.c (ira_setup_eliminable_regset): Likewise.
10068 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
10069 init_elim_table): Likewise.
10070 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
10071 set_initial_elim_offsets, update_eliminables,
10072 init_elim_table): Likewise.
10073 * rtlanal.c (get_initial_register_offset): Likewise.
10074 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10075 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10076 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10077 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10078 * config/fr30/fr30.h: Fix comment.
10079 * config/frv/frv.c: Likewise.
10080 * config/frv/frv.h: Likewise.
10081 * config/ft32/ft32.h: Likewise.
10082 * config/visium/visium.h: Likewise.
10083 * config/pa/pa64-linux.h: Likewise.
10084 * config/v850/v850.h: Likewise.
10085 * config/cris/cris.c: Likewise.
10086 * config/ia64/ia64.h: Likewise.
10087 * config/moxie/moxie.h: Likewise.
10088 * config/m32r/m32r.h: Likewise.
10090 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
10093 * config.in: Regenerate.
10094 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
10096 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
10097 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
10098 static-libmpxwrappers case.
10099 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
10100 MPX_LD_AS_NEEDED_GUARD_POP.
10101 * configure: Regenerate.
10102 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
10103 defined if linker support "--push-state"/"--pop-state".
10105 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10107 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
10109 2016-09-09 Joseph Myers <joseph@codesourcery.com>
10111 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
10112 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
10113 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
10114 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
10115 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
10116 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
10117 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
10119 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
10120 width macros from TS 18661-1.
10121 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
10123 2016-09-08 Jakub Jelinek <jakub@redhat.com>
10126 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
10127 OMP_CLAUSE_SAFELEN_EXPR.
10129 2016-09-07 David Malcolm <dmalcolm@redhat.com>
10131 * Makefile.in (OBJS): Add substring-locations.o.
10132 * langhooks-def.h (class substring_loc): New forward decl.
10133 (lhd_get_substring_location): New decl.
10134 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
10135 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
10136 * langhooks.c (lhd_get_substring_location): New function.
10137 * langhooks.h (class substring_loc): New forward decl.
10138 (struct lang_hooks): Add field get_substring_location.
10139 * substring-locations.c: New file, taking definition of
10140 format_warning_va and format_warning_at_substring from
10141 c-family/c-format.c, making them non-static.
10142 * substring-locations.h (class substring_loc): Move class here
10143 from c-family/c-common.h. Add and rewrite comments.
10144 (format_warning_va): New decl.
10145 (format_warning_at_substring): New decl.
10146 (get_source_location_for_substring): Add comment.
10148 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
10150 * config/i386/i386.c: Add 'U' suffix to processor feature bits
10151 to avoid -Wnarrowing warning.
10152 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
10153 * opts.c: Likewise for SANITIZER_OPT bitmasks.
10155 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
10157 * config/aarch64/aarch64.c (aarch64_legitimize_address):
10158 Avoid use of base_offset if offset already in range.
10160 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
10162 * config/sh/sh-protos.h (struct sh_atomic_model,
10163 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10164 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10165 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
10166 * config/sh/sh.h (struct sh_atomic_model,
10167 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10168 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10169 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
10170 Guard with __cplusplus.
10172 2016-09-06 Jakub Jelinek <jakub@redhat.com>
10175 * config/i386/i386.c (ix86_expand_builtin): For builtin with
10176 unsupported or unknown ISA, use expand_call.
10178 2016-09-06 Martin Liska <mliska@suse.cz>
10180 PR gcov-profile/77378
10181 PR gcov-profile/77466
10182 * tree-profile.c (tree_profiling): Detect whether target can use
10183 -fprofile-update=atomic.
10185 2016-09-06 Richard Biener <rguenther@suse.de>
10187 PR tree-optimization/77479
10188 * tree-vrp.c (update_value_range): Extend overflow handling to
10191 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10194 * config/i386/i386.md (isa): Add x64_avx512bw.
10195 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
10196 (kmov_isa): New mode attr.
10197 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
10198 (*zero_extend<mode>si2): Likewise.
10199 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
10201 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
10203 * doc/invoke.texi (SPU Options): nops -> NOPs.
10204 (x86 Options): Ditto.
10206 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10208 PR middle-end/77475
10209 * toplev.c (process_options): Temporarily set input_location
10210 to UNKNOWN_LOCATION around targetm.target_option.override () call.
10212 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
10214 PR rtl-optimization/77452
10215 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
10216 inner-mode reference to a CONST_VECTOR constant in the constant pool.
10218 2016-09-05 Marek Polacek <polacek@redhat.com>
10221 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
10223 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10226 * gensupport.c (alter_output_for_subst_insn): Remove redundant
10227 *insn_out == '*' test. Don't copy unnecessary to yet another
10228 memory buffer, and don't leak it.
10230 PR rtl-optimization/77425
10231 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
10233 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
10235 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
10237 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10239 * common.opt (fdiagnostics-generate-patch): New option.
10240 * diagnostic.c: Include "edit-context.h".
10241 (diagnostic_initialize): Initialize context->edit_context_ptr.
10242 (diagnostic_finish): Delete context->edit_context_ptr.
10243 (diagnostic_report_diagnostic): Add fix-it hints from the
10244 diagnostic to context->edit_context_ptr, if any.
10245 * diagnostic.h (class edit_context): Add forward decl.
10246 (struct diagnostic_context): Add field "edit_context_ptr".
10247 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10248 -fdiagnostics-generate-patch.
10249 (-fdiagnostics-generate-patch): New item.
10250 * toplev.c: Include "edit-context.h".
10251 (process_options): Set global_dc->edit_context_ptr to a new
10252 edit_context if the options need one.
10253 (toplev::main): Handle -fdiagnostics-generate-patch by using
10254 global_dc->edit_context_ptr.
10256 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10259 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
10260 map and firstprivate clauses on target construct for _Atomic
10262 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
10263 on target construct for _Atomic qualified decls.
10264 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
10266 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
10267 _Atomic qualified arguments not mentioned in uniform clause.
10269 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10271 * Makefile.in (OBJS-libcommon): Add edit-context.o.
10272 * diagnostic-color.c (color_dict): Add "diff-filename",
10273 "diff-hunk", "diff-delete", and "diff-insert".
10274 (parse_gcc_colors): Update default value of GCC_COLORS in comment
10275 to reflect above changes.
10276 * doc/invoke.texi (-fdiagnostics-color): Update description of
10277 default GCC_COLORS, and of the supported capabilities.
10278 * edit-context.c: New file.
10279 * edit-context.h: New file.
10280 * input.c (struct fcache): Add field "missing_trailing_newline".
10281 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
10283 (add_file_to_cache_tab): Likewise.
10284 (fcache::fcache): Likewise.
10285 (get_next_line): Update c->missing_trailing_newline.
10286 (location_missing_trailing_newline): New function.
10287 * input.h (location_missing_trailing_newline): New decl.
10288 * selftest-run-tests.c (selftest::run_tests): Call
10289 edit_context_c_tests.
10290 * selftest.h (edit_context_c_tests): New decl.
10292 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10293 Richard Biener <rguenth@suse.de>
10295 PR tree-optimization/77444
10296 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
10297 as steptype, remove redundant initialization.
10299 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10302 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
10303 (sanopt_optimize_walker): Optimize away
10304 __asan_before_dynamic_init (...) followed by
10305 __asan_after_dynamic_init () without intervening memory loads/stores.
10306 * ipa-pure-const.c (special_builtin_state): Handle
10307 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
10308 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
10310 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10312 * cfg.c (free_original_copy_tables): Replace second assignment of
10313 bb_copy = NULL by bb_original = NULL.
10315 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10318 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
10319 assignment added in r216794.
10321 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10323 * Makefile.in (OBJS): Add typed-splay-tree.o.
10324 * selftest-run-tests.c (selftest::run_tests): Call
10325 typed_splay_tree_c_tests.
10326 * selftest.h (typed_splay_tree_c_tests): New decl.
10327 * typed-splay-tree.c: New file.
10328 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
10329 (typed_splay_tree::max): New method.
10330 (typed_splay_tree::min): New method.
10331 (typed_splay_tree::foreach): New method.
10332 (typed_splay_tree::closure): New struct.
10333 (typed_splay_tree::inner_foreach_fn): New function.
10335 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10337 * ipa-cp.c (ipcp_store_bits_results): Change option name from
10338 -fipa-cp-bit to -fipa-bit-cp.
10340 2016-09-01 Martin Sebor <msebor@redhat.com>
10342 PR tree-optimization/71831
10343 * tree-object-size.h: Return bool instead of the size and add
10344 argument for the size.
10345 * tree-object-size.c (compute_object_offset): Update signature.
10346 (addr_object_size): Same.
10347 (compute_builtin_object_size): Return bool instead of the size
10348 and add argument for the size. Handle POINTER_PLUS_EXPR when
10349 optimization is disabled.
10350 (expr_object_size): Adjust.
10351 (plus_stmt_object_size): Adjust.
10352 (pass_object_sizes::execute): Adjust.
10353 * builtins.c (fold_builtin_object_size): Adjust.
10354 * doc/extend.texi (Object Size Checking): Update.
10355 * ubsan.c (instrument_object_size): Adjust.
10357 2016-09-01 Martin Sebor <msebor@redhat.com>
10359 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
10360 it fits the output of the formatted function regardless of its
10362 * genmodes.c (parser::parse_expr): Same.
10363 * gimplify.c (gimplify_asm_expr): Same.
10364 * passes.c (pass_manager::register_one_dump_file): Same.
10365 * print-tree.c (print_node): Same.
10367 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10369 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
10371 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10373 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
10375 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10377 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
10378 * config/rs6000/vector.md: Ditto.
10379 * config/rs6000/vsx.md: Ditto.
10381 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10383 * ipa-inline-analysis.c (param_change_prob): Get to the base object
10384 first in all cases.
10386 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10388 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
10389 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
10390 *return_and_restore_gpregs_<mode>_r11,
10391 *return_and_restore_gpregs_<mode>_r12,
10392 *return_and_restore_gpregs_<mode>_r1,
10393 *return_and_restore_fpregs_<mode>_r11,
10394 *return_and_restore_fpregs_<mode>_r12,
10395 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
10396 directly instead of via the "l" constraint. Renumber operands.
10399 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10401 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
10402 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
10403 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
10404 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
10405 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
10406 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
10407 *call_value_nonlocal_darwin64, reload_macho_picbase,
10408 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
10409 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
10410 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
10411 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
10412 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
10413 *save_fpregs_<mode>_r1): Ditto.
10414 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
10415 *return_and_restore_gpregs_spe): Ditto.
10417 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10419 * config/rs6000/rs6000.md
10420 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
10421 the use of the link register.
10422 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
10424 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10425 Michael Meissner <meissner@linux.vnet.ibm.com>
10428 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
10429 reg+reg addressing for TImode.
10430 (rs6000_legitimate_address_p): Only allow register indirect
10431 addressing for TImode, even without TARGET_QUAD_MEMORY.
10433 2016-09-01 Richard Biener <rguenther@suse.de>
10435 PR middle-end/77436
10436 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
10437 check whether the result fits the desired result type.
10439 2016-09-01 Nathan Sidwell <nathan@acm.org>
10441 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
10443 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
10445 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
10447 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
10449 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10451 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
10452 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
10453 for comparisons of integer ZERO_EXTEND against zero.
10455 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10457 * config/i386/i386.c (ix86_option_override_internal): Also disable the
10458 STV pass if -mstackrealign is enabled.
10460 2016-08-31 Ilya Verbin <iverbin@gmail.com>
10462 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
10465 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10467 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
10468 (layout_range::intersects_line_p): New method.
10469 (test_range_contains_point_for_single_point): Rename to...
10470 (test_layout_range_for_single_point): ...this, and add testing
10471 for layout_range::intersects_line_p.
10472 (test_range_contains_point_for_single_line): Rename to...
10473 (test_layout_range_for_single_line): ...this, and add testing
10474 for layout_range::intersects_line_p.
10475 (test_range_contains_point_for_multiple_lines): Rename to...
10476 (test_layout_range_for_multiple_lines): ...this, and add testing
10477 for layout_range::intersects_line_p.
10478 (layout::layout): Populate m_fixit_hints.
10479 (layout::get_expanded_location): Handle the case of a line-span
10481 (layout::validate_fixit_hint_p): New method.
10482 (get_line_span_for_fixit_hint): New function.
10483 (layout::calculate_line_spans): Add spans for fixit-hints.
10484 (layout::should_print_annotation_line_p): New method.
10485 (layout::print_any_fixits): Drop param "richloc", instead using
10486 validated fixits in m_fixit_hints. Add "const" to hint pointers.
10487 (diagnostic_show_locus): Avoid printing blank annotation lines.
10488 (selftest::test_diagnostic_context::test_diagnostic_context):
10489 Initialize show_column and start_span.
10490 (selftest::test_diagnostic_context::start_span_cb): New static
10492 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10493 (selftest::diagnostic_show_locus_c_tests): Update for function
10494 renamings. Call test_diagnostic_show_locus_fixit_lines.
10496 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10498 PR tree-optimization/73714
10499 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10501 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10503 * selftest.c: Move "namespace selftest {" to top of file,
10504 removing explicit "selftest::" qualifiers throughout.
10506 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10508 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10510 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10511 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10512 Replace builtin with vector extension.
10513 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10515 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10516 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10517 Replace builtin with vector extension.
10518 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10519 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10520 Replace builtin with vector extension.
10521 * config/i386/xmmintrin.h (__m128_u): New type.
10522 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10523 (_mm_load_ps, _mm_store_ps): Simplify.
10525 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
10527 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10529 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10531 * diagnostic-show-locus.c (colorizer::begin_state): Support more
10532 than 3 ranges per diagnostic by alternating between color 1 and
10534 (layout::layout): Replace use of rich_location::MAX_RANGES
10535 with richloc->get_num_locations ().
10536 (layout::calculate_line_spans): Replace use of
10537 rich_location::MAX_RANGES with m_layout_ranges.length ().
10538 (layout::print_annotation_line): Handle arbitrary numbers of
10539 ranges in caret-printing by defaulting to '^'.
10540 (selftest::test_one_liner_many_fixits): New function.
10541 (test_diagnostic_show_locus_one_liner): Call it.
10542 * diagnostic.c (diagnostic_initialize): Update for renaming
10543 of rich_location::MAX_RANGES to
10544 rich_location::STATICALLY_ALLOCATED_RANGES.
10545 * diagnostic.h (struct diagnostic_context): Likewise.
10547 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10549 * selftest.c (selftest::named_temp_file::named_temp_file): New
10551 (selftest::temp_source_file::~temp_source_file): Move to...
10552 (selftest::named_temp_file::~named_temp_file): ...here.
10553 (selftest::test_named_temp_file): New function.
10554 (selftest::selftest_c_tests): Call test_named_temp_file.
10555 * selftest.h (class named_temp_file): New class.
10556 (class temp_source_file): Convert to a subclass of named_temp_file.
10558 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
10560 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10561 USEs of LR_REGNO in returns and sibcalls.
10562 (rs6000_output_mi_thunk): Similar.
10563 (rs6000_sibcall_aix): Similar.
10564 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10565 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10566 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10567 Remove the USE of LR_REGNO from the patterns as well. Delete an
10569 (return_internal_<mode>): Delete.
10571 2016-08-30 Tamar Christina <tamar.christina@arm.com>
10573 * config/aarch64/aarch64-simd.md
10574 (aarch64_ld2<mode>_dreg_le): New.
10575 (aarch64_ld2<mode>_dreg_be): New.
10576 (aarch64_ld2<mode>_dreg): Removed.
10577 (aarch64_ld3<mode>_dreg_le): New.
10578 (aarch64_ld3<mode>_dreg_be): New.
10579 (aarch64_ld3<mode>_dreg): Removed.
10580 (aarch64_ld4<mode>_dreg_le): New.
10581 (aarch64_ld4<mode>_dreg_be): New.
10582 (aarch64_ld4<mode>_dreg): Removed.
10583 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10585 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10587 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10588 redundant location param.
10589 (test_one_liner_fixit_remove): Likewise.
10590 (test_one_liner_fixit_replace): Likewise.
10591 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10592 * gcc-rich-location.c
10593 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10594 get_range_from_loc. Drop overload taking a const char *.
10595 * gcc-rich-location.h
10596 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10599 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10601 * config/linux.c (linux_libc_has_function): Return true on musl.
10603 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10605 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10607 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
10609 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10610 used for abnormal egdes.
10612 2016-08-30 Jakub Jelinek <jakub@redhat.com>
10614 PR tree-optimization/72866
10615 * tree-vect-patterns.c (search_type_for_mask): Turn into
10616 a small wrapper, move all code to ...
10617 (search_type_for_mask_1): ... this new function. Add caching
10618 and adjust recursive calls.
10621 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10622 instead of lookup_type_die (type_main_variant (type)) even for array
10625 PR middle-end/77377
10626 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10627 constant pool reference return x instead of c.
10629 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
10631 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10634 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10637 (selftest::test_make_location_nonpure_range_endpoints): Fix
10640 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10642 * diagnostic-show-locus.c
10643 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10645 (selftest::test_diagnostic_show_locus_one_liner): Call it.
10646 * input.c (get_pure_location): Move to libcpp/line-map.c.
10647 * input.h (get_pure_location): Convert decl to an inline function
10648 calling implementation in libcpp.
10650 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
10653 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10654 template for intel asm dialect.
10655 (vec_set_hi_<mode><mask_name>): Ditto.
10657 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10659 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10660 (selftest::fail_formatted): Likewise.
10662 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10664 * input.c (make_location): Call get_start and get_finish
10665 on the endpoints to avoid storing packed ranges or ad-hoc
10667 (selftest::test_make_location_nonpure_range_endpoints): New function.
10668 (selftest::input_c_tests): Call it.
10669 * input.h (get_start): New inline function.
10671 2016-08-29 Tom de Vries <tom@codesourcery.com>
10674 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10677 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
10679 * Makefile.in (gcov-iov.h): Add dummy recipe.
10681 2016-08-29 Nathan Sidwell <nathan@acm.org>
10683 * config/nvptx/nvptx.c: #include tree-vrp.h.
10685 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
10688 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10689 HIGH+LO construct during reload.
10691 2016-08-28 Tom de Vries <tom@codesourcery.com>
10694 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10695 'sysv_abi va_list' attribute.
10696 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10697 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10700 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10702 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10703 * emit-rtl.c (unshare_all_rtl_1): Adjust.
10704 (unshare_all_rtl_again): Likewise.
10705 * function.c (assign_stack_local_1): Likewise.
10706 (assign_stack_temp_for_type): Likewise.
10708 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10710 * cfgbuild.c (make_edges): Adjust.
10711 * cfgrtl.c (can_delete_label_p): Likewise.
10712 * dwarf2cfi.c (create_trace_edges): Likewise.
10713 * except.c (sjlj_emit_dispatch_table): Likewise.
10714 * function.h (struct expr_status): make x_forced_labels a vector.
10715 * jump.c (rebuild_jump_labels_1): Adjust.
10716 * reload1.c (set_initial_label_offsets): Likewise.
10717 * stmt.c (force_label_rtx): Likewise.
10718 (expand_label): Likewise.
10720 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10722 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10724 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
10726 PR tree-optimization/71077
10727 PR tree-optimization/68542
10728 * fold-const.c (fold_relational_const): Fix folding of
10729 VECTOR_CST comparisons that have a scalar boolean result type.
10730 (selftest::test_vector_folding): New static function.
10731 (selftest::fold_const_c_tests): Call it.
10733 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
10735 * doc/extend.texi (SPU Built-in Functions): Remove stale
10736 references to material formerly at IBM and Sony.
10738 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
10741 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10743 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10745 * diagnostic-show-locus.c
10746 (selftest::test_fixit_consolidation): New function.
10747 (selftest::diagnostic_show_locus_c_tests): Call it.
10748 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10749 constructor based on source_range.
10751 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10753 * diagnostic-color.c (color_dict): Add "fixit-insert" and
10755 (parse_gcc_colors): Update description of default GCC_COLORS.
10756 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10757 (colorizer::set_fixit_insert): New method.
10758 (colorizer::set_fixit_delete): New method.
10759 (colorizer::get_color_by_name): New method.
10760 (colorizer::STATE_FIXIT_INSERT): New constant.
10761 (colorizer::STATE_FIXIT_DELETE): New constant.
10762 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
10763 fields in favor of new field "m_stop_color". Add fields
10764 "m_fixit_insert" and "m_fixit_delete".
10765 (colorizer::colorizer): Update for above changes. Replace
10766 colorize_start calls with calls to get_color_by_name.
10767 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10768 STATE_FIXIT_DELETE. Update for field renamings.
10769 (colorizer::finish_state): Simplify by using m_stop_color,
10770 rather than multiple identical "*_ce" fields.
10771 (colorizer::get_color_by_name): New method.
10772 (layout::print_any_fixits): Print insertions and replacements
10773 using the "fixit-insert" color, and deletions using the
10774 "fixit-delete" color.
10775 * doc/invoke.texi (-fdiagnostics-color): Update description of
10776 default GCC_COLORS, and of the supported capabilities.
10778 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
10780 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10781 current_function_static_stack_size variable with the static
10782 stack frame size of the current function when
10783 flag_stack_usage_info is enabled.
10785 2016-08-26 Nathan Sidwell <nathan@acm.org>
10787 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10788 assignment inside if condition.
10790 2016-08-26 Richard Biener <rguenther@suse.de>
10792 PR tree-optimization/69047
10793 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
10794 extracts similar to what FRE does.
10795 (non_rewritable_mem_ref_base): Likewise.
10797 2016-08-26 Joseph Myers <joseph@codesourcery.com>
10799 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
10800 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10801 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10802 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10803 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
10805 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10806 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10807 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10808 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
10809 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10811 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10814 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
10815 reservation duration to 15 cycles.
10816 (cortex_a8_vfp_macs): Likewise.
10817 (cortex_a8_vfp_macd): Likewise.
10818 (cortex_a8_vfp_divs): Likewise.
10819 (cortex_a8_vfp_divd): Likewise.
10821 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10823 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
10824 (aarch_macro_fusion_pair_p): Use above to avoid early return.
10826 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10827 Martin Jambhor <mjambor@suse.cz>
10829 * common.opt: New option -fipa-bit-cp.
10830 * doc/invoke.texi: Document -fipa-bit-cp.
10831 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
10832 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
10833 * tree-ssa-ccp.h: New header file.
10834 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
10835 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
10836 Replace all occurences of tree parameter by two new params: signop, int.
10837 (bit_value_unop_1): Change to bit_value_unop and export it.
10838 Replace all occurences of tree parameter by two new params: signop,
10840 (bit_value_binop): Change call from bit_value_binop_1 to
10842 (bit_value_assume_aligned): Likewise.
10843 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
10844 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
10846 (ccp_finalize): Skip processing if val->mask == 0.
10847 * ipa-cp.c: Include tree-ssa-ccp.h
10848 (ipcp_bits_lattice): New class.
10849 (ipcp_param_lattice (bits_lattice): New member.
10850 (print_all_lattices): Call ipcp_bits_lattice::print.
10851 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
10852 (initialize_node_lattices): Likewise.
10853 (propagate_bits_accross_jump_function): New function.
10854 (propagate_constants_accross_call): Call
10855 propagate_bits_accross_jump_function.
10856 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
10857 (ipcp_store_bits_results): New function.
10858 (ipcp_driver): Call ipcp_store_bits_results.
10859 * ipa-prop.h (ipa_bits): New struct.
10860 (ipa_jump_func): Add new member bits of type ipa_bits.
10861 (ipa_param_descriptor): Change decl to decl_or_type.
10862 (ipa_get_param): Change decl to decl_or_type and assert on
10864 (ipa_get_type): New function.
10865 (ipcp_transformation_summary): New member bits.
10866 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
10867 (ipa_populate_param_decls): Likewise.
10868 (ipa_dump_param): Likewise.
10869 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
10871 (ipa_set_jf_unknown): Set ipa_bits::known to false.
10872 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
10874 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
10875 (ipa_write_jump_function): Add streaming for ipa_bits.
10876 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
10877 (write_ipcp_transformation_info): Add streaming for ipa_bits
10878 summary for ltrans.
10879 (read_ipcp_transfomration_info): Add support for reading streamed
10881 (ipcp_update_bits): New function.
10882 (ipcp_transform_function): Call ipcp_update_bits.
10884 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
10886 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
10887 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
10889 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
10891 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
10893 2016-08-25 Richard Biener <rguenther@suse.de>
10895 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10896 Only add locations in late dwarf.
10897 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
10898 (dwarf2out_early_finish): But do it here.
10900 2016-08-24 Michael Collison <michael.collison@linaro.org>
10901 Michael Collison <michael.collison@arm.com>
10903 * config/arm/arm-modes.def: Add new condition code mode CC_V
10904 to represent the overflow bit.
10905 * config/arm/arm.c (maybe_get_arm_condition_code):
10906 Add support for CC_Vmode.
10907 (arm_gen_unlikely_cbranch): New function to generate common
10908 rtl conditional branches for overflow patterns.
10909 * config/arm/arm-protos.h: Add prototype for
10910 arm_gen_unlikely_cbranch.
10911 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
10912 addsi3_compareV_upper): New patterns to support signed
10913 builtin overflow add operations.
10914 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
10915 New patterns to support unsigned builtin add overflow operations.
10916 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
10917 builtin overflow subtract operations,
10918 (usubv<mode>4): New patterns to support unsigned builtin subtract
10919 overflow operations.
10920 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
10921 to support builtin overflow negate operations.
10923 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10926 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10928 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10929 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10932 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10934 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
10935 MULTILIB_OPTIONS should be used. Small wording fixes.
10936 * genmultilib: Memorize set of all option combinations in
10937 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
10938 found in MULTILIB_OPTIONS by checking if option set is listed in
10939 combination_space. Output new and existing error message to stderr.
10941 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10943 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
10944 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
10945 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
10946 (MULTILIB_REUSE): Remove reuse rules for option set including
10947 -mfpu=fp-armv8 and -mfpu=vfpv4
10949 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
10951 * config/arm/t-rtems: Add vfp multilib.
10953 2016-08-23 Ian Lance Taylor <iant@golang.org>
10955 * config/s390/s390.c (s390_asm_file_start): Call
10956 default_file_start.
10958 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10960 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
10961 initialization of all 0's to the 0 constant, instead of directly
10962 generating XOR. Add support for V4SImode vector initialization on
10963 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
10964 initialization. Change variables used in V4SFmode vector
10965 intialization. For V4SFmode vector splat on ISA 3.0, make sure
10966 any memory addresses are in index form. Add support for using
10967 VSPLTH/VSPLTB to initialize vector short and vector char vectors
10968 with all of the same element.
10969 (regno_or_subregno): New helper function to return a register
10970 number for either REG or SUBREG.
10971 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
10972 Use regno_or_subregno where possible.
10973 (rs6000_split_v4si_init_di_reg): New helper function to build up a
10974 DImode value from two SImode values in order to generate V4SImode
10975 vector initialization on 64-bit systems with direct move.
10976 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
10978 (rtx_is_swappable_p): V4SImode vector initialization insn is not
10980 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
10982 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
10983 attributes to initialize V8HImode and V16QImode vectors with the
10985 (VSX_SPLAT_COUNT): Likewise.
10986 (VSX_SPLAT_SUFFIX): Likewise.
10987 (UNSPEC_VSX_VEC_INIT): New unspec.
10988 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
10989 Allow SFmode values to come from Altivec registers.
10990 (vsx_init_v4si): New insn/split for V4SImode vector initialization
10991 on 64-bit systems with direct move.
10992 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
10993 vector initializations, to allow V4SImode vector initializations
10994 on 64-bit systems with direct move.
10995 (vsx_splat_v4si): Likewise.
10996 (vsx_splat_v4si_di): Likewise.
10997 (vsx_splat_v4sf): Likewise.
10998 (vsx_splat_v4sf_internal): Likewise.
10999 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
11001 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
11002 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
11003 initializing V8HImode and V16QImode vectors with the same
11005 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
11006 optimization if -maltivec=be.
11008 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
11010 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
11011 attribute for alternatives 3 and 4.
11013 2016-08-23 David Malcolm <dmalcolm@redhat.com>
11015 * selftest.c (selftest::assert_str_contains): New function.
11016 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
11017 * selftest.h (selftest::assert_str_contains): New decl.
11018 (ASSERT_STR_CONTAINS): New macro.
11020 2016-08-23 Richard Biener <rguenther@suse.de>
11022 PR tree-optimization/77286
11023 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
11025 (vect_transform_loop): Split exit edges of loop and scalar
11026 loop if required and at the appropriate time.
11028 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11030 * explow.c (get_dynamic_stack_size): Take known alignment of stack
11031 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11033 Correct a typo in a comment.
11035 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11037 * config/s390/s390.md ("*andc_split"): New splitter for and with
11040 2016-08-23 Richard Biener <rguenther@suse.de>
11042 PR tree-optimization/27336
11043 * tree-vrp.c (infer_value_range): Handle stmts that can throw
11044 by looking for a non-EH edge.
11045 (process_assert_insertions_for): Likewise.
11047 2016-08-23 Richard Biener <rguenther@suse.de>
11049 PR middle-end/77305
11050 * statistics.c (statistics_counter_event): Robustify against
11053 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11055 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
11056 for targets amdfam10 and barcelona.
11058 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
11060 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
11061 (zero_extend<mode>di2): Ditto.
11062 (*zero_extend<mode>si2): Ditto.
11063 (*zero_extendqihi2): Ditto.
11065 2016-08-22 Joseph Myers <joseph@codesourcery.com>
11067 PR middle-end/77269
11068 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
11069 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
11071 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
11073 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
11074 identical consecutive elements.
11075 [SSA_NAME]: Print the name's def stmt on its own line. When printing
11076 the node's def stmt, avoid printing an unwanted trailing newline by
11077 replacing the call to print_gimple_stmt() with its inlined body and
11078 adjusting it to not set pp_needs_newline and to call pp_flush()
11079 instead of pp_newline_and_flush().
11081 2016-08-22 Joseph Myers <joseph@codesourcery.com>
11083 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
11084 (float32_type_node, float64_type_node, float32x_type_node)
11085 (float128x_type_node): New macros.
11086 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
11087 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
11088 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
11089 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
11090 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
11091 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
11092 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
11093 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
11094 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
11095 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
11096 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
11097 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
11098 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
11099 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
11100 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
11101 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
11102 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
11103 (copysign, fabs, huge_val, inf, nan, nans): Use it.
11104 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
11106 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
11107 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
11108 * doc/extend.texi (Other Builtins): Document these built-in
11110 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
11113 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
11115 * doc/install.texi (Binaries): www.opencsw.org now uses https.
11117 2016-08-22 Richard Biener <rguenther@suse.de>
11119 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
11121 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
11124 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
11125 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
11126 non-SSE2 athlons only, otherwise prefer SSE prefetches.
11128 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11130 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
11131 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
11132 (vrp_visit_switch_stmt): Likewise.
11133 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
11134 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
11135 (vrp_visit_stmt): Use extract_range_from_stmt.
11136 (vrp_visit_phi_node): Use extract_range_from_phi_node.
11138 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11140 * Makefile.in: Add tree-vrp.h to GTFILES.
11141 * gengtype.c (open_base_files): Add tree-vrp.h.
11142 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
11143 * builtins.c: Likewise.
11144 * fold-const.c: Likewise.
11145 * gimple-builder.c: Likewise.
11146 * gimple-laddress.c: Likewise.
11147 * hsa-gen.c: Likewise.
11148 * internal-fn.c: Likewise.
11150 * targhooks.c: Liewise,
11151 * tree-ssa-address.c: Likewise.
11152 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
11153 * tree-vrp.c (struct value_range): Move to tree-vrp.h
11154 * tree-vrp.h: New file.
11156 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11158 PR tree-optimization/61839
11159 * tree-vrp.c (two_valued_val_range_p): New.
11160 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
11161 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
11162 Also Convert VAR BINOP CST where VAR is two-valued to
11163 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
11165 2016-08-19 David Malcolm <dmalcolm@redhat.com>
11167 * diagnostic-show-locus.c
11168 (layout::annotation_line_showed_range_p): New method.
11169 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
11170 Reimplement case fixit_hint::REPLACE to cover removals, and
11171 replacements where the range of the replacement isn't one
11172 of the ranges in the rich_location.
11173 (test_one_liner_fixit_replace): Likewise.
11174 (selftest::test_one_liner_fixit_replace_non_equal_range): New
11176 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
11178 (selftest::test_diagnostic_show_locus_one_liner): Call the new
11180 * diagnostic.c (print_parseable_fixits): Remove case
11181 fixit_hint::REMOVE.
11183 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
11186 * config/i386/i386.c (ix86_option_override_internal): Remove
11187 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
11188 Enable SSE prefetch also for TARGET_PREFETCHWT1.
11189 Do not try to enable TARGET_PRFCHW ISA flag here.
11190 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
11191 Rewrite expander function body.
11192 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
11194 2016-08-19 Joseph Myers <joseph@codesourcery.com>
11197 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
11198 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
11199 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
11200 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
11201 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
11202 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
11203 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
11204 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
11205 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
11207 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
11209 (struct floatn_type_info): New structure type.
11210 (floatn_nx_types): New variable declaration.
11211 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
11212 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
11213 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
11214 * tree.c (floatn_nx_types): New variable.
11215 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
11216 corresponding complex types.
11217 * target.def (floatn_mode): New hook.
11218 * targhooks.c: Include "real.h".
11219 (default_floatn_mode): New function.
11220 * targhooks.h (default_floatn_mode): New prototype.
11221 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
11223 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
11224 effective-target and dg-add-options keywords.
11225 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
11226 Document new effective-target keywords.
11227 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
11228 * doc/tm.texi: Regenerate.
11229 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
11230 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
11231 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
11233 * real.h (struct real_format): Add field ieee_bits.
11234 * real.c (ieee_single_format, mips_single_format)
11235 (motorola_single_format, spu_single_format, ieee_double_format)
11236 (mips_double_format, motorola_double_format)
11237 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
11238 (ieee_extended_intel_128_format)
11239 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
11240 (mips_extended_format, ieee_quad_format, mips_quad_format)
11241 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
11242 (decimal_double_format, decimal_quad_format, ieee_half_format)
11243 (arm_half_format, real_internal_format: Initialize ieee_bits
11245 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
11246 float128_type_node. Set float80_type_node to float64x_type_node
11247 if appropriate and long_double_type_node not appropriate.
11248 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
11249 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
11250 Initialize ieee_bits field.
11251 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
11252 (rs6000_init_builtins): Set ieee128_float_type_node to
11253 float128_type_node.
11254 (rs6000_floatn_mode): New function.
11256 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11258 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
11259 _rdseed64_step): Uglify argument names and/or local variable names
11260 in inline functions.
11261 * config/i386/rtmintrin.h (_xabort): Likewise.
11262 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
11263 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
11264 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
11265 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
11266 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
11267 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
11268 _mm_maskz_ternarylogic_epi32): Likewise.
11269 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
11270 __lwpins32, __lwpins64): Likewise.
11271 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
11272 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
11273 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
11274 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
11275 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
11276 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
11277 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
11278 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
11279 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
11280 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
11281 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
11282 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
11283 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
11284 _mm256_mask_i64gather_epi32): Likewise.
11285 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11286 * config/i386/ia32intrin.h (__writeeflags): Likewise.
11287 * config/i386/pkuintrin.h (_wrpkru): Likewise.
11288 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
11289 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
11290 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
11291 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
11292 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
11293 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
11294 _mm512_mask_prefetch_i64scatter_ps): Likewise.
11295 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11296 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
11297 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
11298 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
11299 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
11300 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
11301 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
11302 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
11304 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
11306 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
11307 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
11309 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
11310 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
11312 (_rdpkru_u32): Add space after function name.
11314 * config/i386/t-i386 (i386-c.o): Don't depend on
11315 i386-builtin-types.inc.
11316 (i386.o): Depend on i386-builtin-types.inc.
11318 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
11321 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
11322 Use const_vec_duplicate to check for duplicated elements.
11324 2016-08-19 Richard Biener <rguenther@suse.de>
11326 PR tree-optimization/77290
11327 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11328 Fix flag_tree_parallelize_loops check.
11330 2016-08-19 Richard Biener <rguenther@suse.de>
11332 * match.pd (x | 0 -> x): Add.
11334 2016-08-19 Richard Biener <rguenther@suse.de>
11336 PR tree-optimization/77286
11337 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11338 Deal with virtual PHIs being out-of-order.
11340 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11342 * doc/invoke.texi (fverbose-asm): Note that source code lines
11343 are emitted, and provide an example.
11344 * final.c (asm_show_source): New function.
11345 (final_scan_insn): Call asm_show_source.
11347 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11349 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
11350 param with diagnostic_kind.
11351 (class colorizer): Similarly replace field m_diagnostic with
11353 (colorizer::colorizer): Replace diagnostic
11354 param with diagnostic_kind.
11355 (colorizer::begin_state): Update for above field change.
11356 (layout::layout): Replace diagnostic param with rich_location *
11357 and diagnostic_kind.
11358 (diagnostic_show_locus): Replace diagnostic param with richloc
11359 and diagnostic_kind.
11360 (class selftest::test_diagnostic_context): New class.
11361 (selftest::test_diagnostic_show_locus_unknown_location): New
11363 (selftest::test_one_liner_simple_caret): New function.
11364 (selftest::test_one_liner_caret_and_range): New function.
11365 (selftest::test_one_liner_multiple_carets_and_ranges): New
11367 (selftest::test_one_liner_fixit_remove): New function.
11368 (selftest::test_one_liner_fixit_replace): New function.
11369 (selftest::test_diagnostic_show_locus_one_liner): New function.
11370 (selftest::diagnostic_show_locus_c_tests): Call the new test
11372 * diagnostic.c (diagnostic_initialize): Initialize
11373 colorize_source_p, show_ruler_p and parseable_fixits_p.
11374 (default_diagnostic_finalizer): Update for change to
11375 diagnostic_show_locus.
11376 (diagnostic_append_note): Likewise.
11377 * diagnostic.h (diagnostic_show_locus): Replace
11378 const diagnostic_info * param with location * and diagnostic_t.
11380 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11382 * input.c (saved_line_table): New global.
11383 (class selftest::temp_line_table): Rename to line_table_test and
11384 move declaration to selftest.h, and drop field m_old_line_table.
11385 (selftest::temp_line_table::temp_line_table): Rename ctor to...
11386 (selftest::line_table_test::line_table_test): ...this. Add a
11387 default ctor. Store current value of line_table within
11389 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
11390 (selftest::line_table_test::~line_table_test): ...this, and
11391 restore line_table from the saved_line_table, rather than
11393 (selftest::test_accessing_ordinary_linemaps): Update for above
11395 (selftest::test_lexer): Likewise.
11396 (struct selftest::lexer_test): Likewise.
11397 (selftest::lexer_test::lexer_test): Likewise.
11398 (selftest::input_c_tests): Move the looping over test cases from
11400 (selftest::for_each_line_table_case): New function.
11401 * input.h (saved_line_table): New decl.
11402 * selftest.h (struct selftest::line_table_case): New forward decl.
11403 (class selftest::line_table_test): New class, moved here from
11404 selftest::temp_line_table in input.c, and renamed.
11405 (selftest::for_each_line_table_case): New decl.
11407 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
11410 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
11412 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11414 PR middle-end/70895
11415 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
11416 enclosing parallel construct for reduction variables on OpenACC loop
11419 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
11421 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
11422 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
11424 (function_to_dwarf_procedure): Update comment.
11426 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11428 * input.c (diagnostics_file_cache_forcibly_evict_file): New
11430 * input.h (diagnostics_file_cache_forcibly_evict_file): New
11432 * selftest.c (selftest::temp_source_file::~temp_source_file):
11433 Evict m_filename from the diagnostic file cache.
11435 2016-08-18 Richard Biener <rguenther@suse.de>
11437 * tree-pass.h (make_pass_materialize_all_clones): Declare.
11438 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
11439 make_pass_materialize_all_clones): New simple IPA pass encapsulating
11440 clone materialization.
11441 * passes.def (all_late_ipa_passes): Start with
11442 pass_materialize_all_clones.
11443 * cgraphunit.c (symbol_table::compile): Remove call to
11444 materialize_all_clones.
11445 * tree-into-ssa.c: Include statistics.h.
11446 (update_ssa): Count number of times we do incremental/rewrite
11449 2016-08-18 Richard Biener <rguenther@suse.de>
11451 PR tree-optimization/77282
11452 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11453 When doing auto-parallelizing also prevent use of PHIs that
11454 carry dependences across loop backedges.
11456 2016-08-18 Tamar Christina <tamar.christina@arm.com>
11457 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11459 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
11461 2016-08-18 Richard Biener <rguenther@suse.de>
11463 * ssa-iterators.h (ssa_vuse_operand): New inline.
11464 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
11465 (predicate_all_scalar_phis): Use remove_phi_node to remove
11466 phi nodes predicated. Delay removing virtual PHIs.
11467 (predicate_mem_writes): Update virtual operands.
11468 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
11469 (tree_if_conversion): Do not rewrite virtual SSA form.
11470 * tree-phinodes.c (release_phi_node): Make static.
11471 * tree-phinodes.h (release_phi_node): Remove.
11473 2016-08-18 Jakub Jelinek <jakub@redhat.com>
11475 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
11476 codes that appear in bdesc_* arrays, instead include i386-builtin.def
11477 twice to define those.
11478 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
11479 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
11480 bdesc_multi_arg): Define by including i386-builtin.def the third time.
11481 * config/i386/i386-builtin.def: New file.
11483 2016-08-17 David Malcolm <dmalcolm@redhat.com>
11485 * input.c (get_source_range_for_char): Rename to...
11486 (selftest::get_source_range_for_char): ...this, and move within
11487 the #if CHECKING_P guard.
11488 (get_num_source_ranges_for_substring): Rename to...
11489 (selftest::get_num_source_ranges_for_substring): ...this, move
11490 within the #if CHECKING_P guard, and make static.
11491 (selftest::assert_num_substring_ranges): Initialize
11494 2016-08-18 Alan Modra <amodra@gmail.com>
11496 PR rtl-optimization/72771
11497 * reload.c (find_reloads): Don't assume that a subreg mem is OK
11498 when find_reloads_toplev returns address_reloaded==-1.
11499 (alternative_allows_const_pool_ref): Update comment.
11501 2015-08-17 Alan Hayward <alan.hayward@arm.com>
11503 PR tree-optimization/71752
11504 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11505 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11507 2016-08-17 Jakub Jelinek <jakub@redhat.com>
11509 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11510 instead of testing ECF_NORETURN bit in gimple_call_flags.
11511 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11512 * predict.c (tree_bb_level_predictions): Likewise.
11513 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11515 PR middle-end/77259
11516 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11517 turning a call into __builtin_unreachable-like noreturn call, adjust
11518 gimple_call_set_fntype.
11519 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11520 gimple_call_fntype has void return type.
11522 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
11524 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11525 maybe_lookup_decl, to handle nested acc loop directives.
11527 2016-08-17 Richard Biener <rguenther@suse.de>
11529 PR tree-optimization/76490
11530 * tree-vrp.c (update_value_range): Preserve overflow infinities
11531 when intersecting with ranges from get_range_info.
11532 (operand_less_p): Handle overflow infinities correctly.
11533 (value_range_constant_singleton): Use vrp_operand_equal_p
11534 to handle overflow max/min correctly.
11535 (vrp_valueize): Likewise.
11536 (union_ranges): Likewise.
11537 (intersect_ranges): Likewise.
11538 (vrp_visit_phi_node): Improve iteration limitation to only
11539 apply when we'll possibly re-visit the PHI via a changed argument
11542 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
11544 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11545 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11546 rather than those that should not be built.
11548 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
11551 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11553 2016-08-17 Richard Biener <rguenther@suse.de>
11555 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11556 (verify_vssa): New function verifying virtual SSA form.
11557 (verify_ssa): Call it.
11558 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11559 Do not apply loop-closed SSA handling to virtuals.
11560 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11561 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11562 when rewriting their symbol.
11563 (prepare_def_site_for): Likewise.
11564 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11565 operands of moved stmts.
11567 2016-08-17 Richard Biener <rguenther@suse.de>
11569 PR tree-optimization/23855
11570 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11571 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11572 find guards to hoist. Do not update SSA form but rewrite virtuals
11573 into loop closed SSA.
11574 (find_loop_guard): Adjust to skip already hoisted guards. Do
11575 not mark virtuals for renaming or update SSA form.
11577 2016-08-17 Martin Liska <mliska@suse.cz>
11579 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11580 a LONG_LONG_TYPE_SIZE comparison.
11581 * gcov-io.h: Remove macro definitions.
11582 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11583 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11586 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11588 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11589 that builtins not mentioned in bdesc_* arrays come first, then
11590 the ones mentioned in bdesc_* arrays in the order they appear in
11591 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11592 IX86_BUILTIN__BDESC_*_LAST enumerator.
11593 (bdesc_mpx): Fix up a comment typo.
11594 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11595 __builtin_ia32_vpcomneu[bwdq] builtins.
11596 (BDESC_VERIFY, BDESC_VERIFYS): Define.
11597 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11598 enum ix86_builtins ordering.
11599 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11600 for direct bdesc_* array member access instead of searching all the
11601 arrays until an fcode match is found.
11603 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
11605 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11606 pattern as define_insn_and_split. Split insn before reload to
11608 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
11609 <shift_insn><mode>3_1.
11610 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
11611 <rotate_insn><mode>3_1.
11613 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11616 * input.c (get_source_range_for_substring): Rename to...
11617 (get_source_location_for_substring): ...this, adding param
11618 "caret_idx", and converting output param from source_range * to
11620 (get_source_range_for_char): New function.
11621 (get_num_source_ranges_for_substring): Update comment to reflect
11623 (assert_char_at_range): Update to use get_source_range_for_char
11624 rather than get_source_range_for_substring.
11625 (test_lexer_string_locations_concatenation_2): Likewise.
11626 * substring-locations.h (get_source_range_for_substring): Rename
11628 (get_source_location_for_substring): ...this, and adding param
11629 "caret_idx", and converting output param from source_range * to
11632 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11634 * input.c (class selftest::temp_source_file): Move to
11636 (selftest::temp_source_file::temp_source_file): Move to
11638 (selftest::temp_source_file::~temp_source_file): Likewise.
11639 * selftest.c (selftest::temp_source_file::temp_source_file): Move
11641 (selftest::temp_source_file::~temp_source_file): Likewise.
11642 * selftest.h (class selftest::temp_source_file): Move here from
11645 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11648 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
11649 inlining, add cgraph edge for the added __builtin_unreachable call.
11651 PR middle-end/67485
11652 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11653 only cast it to SHWI for the final comparison.
11655 2016-08-16 Martin Liska <mliska@suse.cz>
11657 PR gcov-profile/36412
11658 * doc/gcov.texi: Document --hash-filenames(-x).
11659 * gcov.c (print_usage): Add the option.
11660 (process_args): Process the option, sort options alphabetically.
11661 (md5sum_to_hex): New function.
11662 (make_gcov_file_name): Do the md5sum and append it to a
11665 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11667 PR tree-optimization/69848
11668 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11669 and swtich operands to avoid additional NOT instruction.
11670 (vcond<v_cmp_mixed><mode>): Ditto.
11671 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11673 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
11675 * doc/install.texi (*-*-solaris2*): Adjust latest change.
11677 2016-08-16 Richard Biener <rguenther@suse.de>
11679 PR tree-optimization/76783
11680 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
11681 BB visited flags at start.
11683 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11685 PR tree-optimization/72817
11686 PR tree-optimization/73450
11687 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11688 multiple_of_p for adjusted IV.base.
11690 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
11693 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11694 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11695 for !flag_finite_math_only or flag_signed_zeros.
11696 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11697 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
11698 depend on flag_finite_math_only.
11699 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11701 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11702 (*ieee_smin<mode>3): Ditto.
11703 (*ieee_smax<mode>3): Ditto.
11704 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11705 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11707 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
11708 depend on flag_finite_math_only.
11709 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11710 (*mmx_<code>v2sf3): Remove.
11711 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11712 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11713 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11715 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11717 PR rtl-optimization/73650
11718 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11719 it is not a simple move.
11721 2016-08-15 Martin Liska <mliska@suse.cz>
11724 * gcc.c (do_spec_1): Call save_string with the right size.
11725 (save_string): Do an assert about string we copy.
11727 2016-08-15 Richard Biener <rguenther@suse.de>
11729 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11730 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11732 (pass_data_stv): Likewise.
11734 2016-08-15 Richard Biener <rguenther@suse.de>
11736 PR tree-optimization/73434
11737 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11738 TBAA info on the base when forwarding a non-invariant address.
11740 2016-08-15 Jakub Jelinek <jakub@redhat.com>
11742 * dwarf2out.c (struct checksum_attributes): Add
11743 at_string_length_bit_size and at_string_length_byte_size fields.
11744 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11745 and DW_AT_string_length_byte_size.
11746 (die_checksum_ordered): Handle at_string_length_bit_size and
11747 at_string_length_byte_size.
11748 (gen_array_type_die): For dwarf_version >= 5 emit
11749 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11750 (adjust_string_types): For dwarf_version >= 5 remove
11751 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11752 (resolve_addr): Likewise.
11755 * dwarf2out.c (string_types): New variable.
11756 (gen_array_type_die): Change early_dwarf handling of
11757 DW_AT_string_length, create DW_OP_call4 referencing the
11758 length var temporarily. Handle parameters that are pointers
11760 (adjust_string_types): New function.
11761 (gen_subprogram_die): Temporarily set string_types to local var,
11762 call adjust_string_types if needed.
11763 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11765 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11767 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
11769 * doc/install.texi (*-*-solaris2*): Fix version number and document
11770 requirement on GNU make for building libjava with the Solaris linker.
11772 2016-08-15 Martin Liska <mliska@suse.cz>
11773 Jakub Jelinek <jakub@redhat.com>
11775 PR tree-optimization/72824
11776 * tree-loop-distribution.c (const_with_all_bytes_same)
11777 <case VECTOR_CST>: Fix a typo.
11779 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
11782 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11783 Renamed from _mm512_undefined_si512.
11784 (_mm_undefined_si512): New definition.
11786 2016-08-13 Richard Biener <rguenther@suse.de>
11788 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11789 into PHIs and update the lattice for its def.
11791 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11794 * ubsan.c (instrument_si_overflow): Pass true instead of false
11796 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
11797 of bbs. Return TODO_cleanup_cfg if any returned true.
11799 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11801 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
11802 ISA 3.0 MTVSRDD instruction.
11803 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
11806 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11808 PR tree-optimization/71083
11809 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
11810 bitfield access when possible.
11812 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
11814 PR middle-end/71654
11815 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
11816 sign-changing cast from a shorter unsigned type to a wider
11819 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11821 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
11822 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
11823 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
11825 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11827 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11828 Correct costs for vec_construct.
11830 2016-08-12 Bin Cheng <bin.cheng@arm.com>
11832 PR tree-optimization/69848
11833 * tree-vectorizer.h (enum vect_def_type): New condition reduction
11834 type CONST_COND_REDUCTION.
11835 * tree-vect-loop.c (vectorizable_reduction): Support new condition
11836 reudction type CONST_COND_REDUCTION.
11838 2016-08-12 Richard Biener <rguenther@suse.de>
11840 PR tree-optimization/57326
11841 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
11842 returning an SSA name.
11843 (phi_translate_1): When fully_constant_expression returns a NAME
11844 make sure we have a leader for it.
11846 2016-08-12 Martin Liska <mliska@suse.cz>
11847 Adam Fineman <afineman@afineman.com>
11849 * gcov.c (process_file): Create .gcov file when .gcda
11852 2016-08-12 Marek Polacek <polacek@redhat.com>
11855 * alias.c (find_base_value): Adjust fall through comment.
11856 * cfgexpand.c (expand_debug_expr): Likewise.
11857 * combine.c (find_split_point): Likewise.
11858 (expand_compound_operation): Likewise. Add FALLTHRU.
11859 (make_compound_operation): Adjust fall through comment.
11860 (canon_reg_for_combine): Add FALLTHRU.
11861 (force_to_mode): Adjust fall through comment.
11862 (simplify_shift_const_1): Likewise.
11863 (simplify_comparison): Likewise.
11864 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
11866 * config/aarch64/predicates.md: Likewise.
11867 * config/i386/i386.c (function_arg_advance_32): Likewise.
11868 (ix86_gimplify_va_arg): Likewise.
11869 (print_reg): Likewise.
11870 (ix86_print_operand): Likewise.
11871 (ix86_build_const_vector): Likewise.
11872 (ix86_expand_branch): Likewise.
11873 (ix86_sched_init_global): Adjust fall through comment.
11874 (ix86_expand_args_builtin): Add FALLTHRU.
11875 (ix86_expand_builtin): Likewise.
11876 (ix86_expand_vector_init_one_var): Likewise.
11877 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
11878 (rs6000_adjust_cost): Likewise.
11879 (insn_must_be_first_in_group): Likewise.
11880 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
11881 * dbxout.c (dbxout_symbol): Adjust fall through comment.
11882 * df-scan.c (df_uses_record): Likewise.
11883 * dojump.c (do_jump): Add FALLTHRU.
11884 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
11886 (resolve_args_picking_1): Adjust fall through comment.
11887 (loc_list_from_tree_1): Likewise.
11888 * expmed.c (make_tree): Likewise.
11889 * expr.c (expand_expr_real_2): Add FALLTHRU.
11890 (expand_expr_real_1): Likewise. Adjust fall through comment.
11891 * fold-const.c (const_binop): Adjust fall through comment.
11892 (fold_truth_not_expr): Likewise.
11893 (fold_cond_expr_with_comparison): Add FALLTHRU.
11894 (fold_binary_loc): Likewise.
11895 (contains_label_1): Adjust fall through comment.
11896 (multiple_of_p): Likewise.
11897 * gcov-tool.c (process_args): Add FALLTHRU.
11898 * genattrtab.c (check_attr_test): Likewise.
11899 (write_test_expr): Likewise.
11900 * genconfig.c (walk_insn_part): Likewise.
11901 * genpreds.c (validate_exp): Adjust fall through comment.
11902 (needs_variable): Likewise.
11903 * gensupport.c (get_alternatives_number): Add FALLTHRU.
11904 (subst_dup): Likewise.
11905 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
11906 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
11907 (gimplify_scan_omp_clauses): Add FALLTHRU.
11908 (goa_stabilize_expr): Likewise.
11909 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
11911 * hsa-gen.c (get_address_from_value): Likewise.
11912 * ipa-icf.c (sem_function::hash_stmt): Likewise.
11913 * ira.c (ira_setup_alts): Add FALLTHRU.
11914 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
11916 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
11917 * opts.c (common_handle_option): Likewise.
11918 * read-rtl.c (read_rtx_code): Likewise.
11919 * real.c (round_for_format): Likewise.
11920 * recog.c (asm_operand_ok): Likewise.
11921 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
11922 * reload1.c (set_label_offsets): Likewise.
11923 (eliminate_regs_1): Likewise.
11924 (reload_reg_reaches_end_p): Likewise.
11925 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
11926 (rtx_cost): Likewise.
11927 * sched-rgn.c (is_exception_free): Likewise.
11928 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
11929 * stor-layout.c (int_mode_for_mode): Likewise.
11930 * toplev.c (print_to_asm_out_file): Likewise.
11931 (print_to_stderr): Likewise.
11932 * tree-cfg.c (gimple_verify_flow_info): Likewise.
11933 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
11934 (chrec_fold_multiply): Likewise.
11935 (evolution_function_is_invariant_rec_p): Likewise.
11936 (for_each_scev_op): Likewise.
11937 * tree-data-ref.c (siv_subscript_p): Likewise.
11938 (get_references_in_stmt): Likewise.
11939 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
11940 (substitute_in_expr): Likewise.
11941 (type_cache_hasher::equal): Likewise.
11942 (walk_type_fields): Likewise.
11943 * var-tracking.c (adjust_mems): Add FALLTHRU.
11944 (set_dv_changed): Adjust fall through comment.
11945 * varasm.c (default_function_section): Add FALLTHRU.
11947 2016-08-12 Marek Polacek <polacek@redhat.com>
11950 * tree-complex.c (expand_complex_division): Add missing break.
11952 2016-08-12 Richard Biener <rguenther@suse.de>
11954 * passes.c (execute_todo): Do not push/pop TV_TODO.
11955 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
11956 (execute_one_pass): Likewise.
11957 * common.opt (ftime-report-details): New switch.
11958 * doc/invoke.texi (ftime-report-details): Document.
11959 * timevar.h (timer::print_row): Adjust signature.
11960 (timer::all_zero): New static helper.
11961 (timer::child_map_t): New typedef.
11962 (timer::time_var_def): Add children field.
11963 * timevar.c (timer::named_items::print): Adjust.
11964 (timer::~timer): Free timevar recorded children.
11965 (timer::pop_internal): When -ftime-report-details record
11966 time spent in sub-timevars.
11967 (timer::print_row): Adjust.
11968 (timer::print): Print sub-timevar stats, use all_zero.
11969 * timevar.def (TV_TODO): Remove.
11971 2016-08-12 Richard Biener <rguenther@suse.de>
11973 PR tree-optimization/72851
11974 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
11975 worklists to use bitmaps indexed in execution order.
11976 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
11977 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
11978 (cfg_blocks): Make a bitmap.
11979 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
11981 (cfg_blocks_empty_p): Adjust.
11982 (cfg_blocks_add): Likewise.
11983 (cfg_blocks_get): Likewise.
11984 (add_ssa_edge): Likewise.
11985 (add_control_edge): Likewise.
11986 (simulate_stmt): Likewise.
11987 (process_ssa_edge_worklist): Likewise.
11988 (simulate_block): Likewise.
11989 (ssa_prop_init): Compute PRE order and stmt UIDs.
11990 (ssa_prop_fini): Adjust.
11991 (ssa_propagate): Adjust.
11993 2016-08-12 Richard Biener <rguenther@suse.de>
11995 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
11996 the currently executable edges have fixed ranges. Always
11997 go through update_value_range.
11999 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
12003 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
12004 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
12005 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
12006 (LANG_HOOKS_DECLS): Add it.
12007 * langhooks.h (struct lang_hooks_for_decls): Add
12008 function_decl_defaulted. Const_tree-ify
12009 function_decl_explicit_p and function_decl_deleted_p.
12010 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
12011 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
12012 also at strict DWARF v5.
12015 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
12016 TYPE_QUAL_CONST in reference-typed decls.
12019 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
12020 in DW_OP_pieces, just enough to handle pointers to member
12022 (gen_remaining_tmpl_value_param_die_attribute): Use a location
12023 expression on DWARFv5 if a constant value doesn't work.
12025 2016-08-11 David Malcolm <dmalcolm@redhat.com>
12027 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
12028 * selftest.c (selftest::test_assertions): New function.
12029 (selftest::selftest_c_tests): New function.
12030 * selftest.h (selftest::selftest_c_tests): New declaration.
12032 2016-08-11 Richard Biener <rguenther@suse.de>
12033 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12035 PR rtl-optimization/72855
12036 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
12038 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12041 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
12042 (vsx_store_<mode>): Likewise.
12044 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
12046 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
12047 TImode CONST_WIDE_INT store.
12048 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
12050 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
12052 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
12053 mode if unaligned SSE load and store are optimal.
12055 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
12057 PR tree-optimization/71083
12058 * tree-predcom.c (ref_at_iteration): Correctly align the
12061 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12063 * config/s390/s390-builtin-types.def: Add INT128 types.
12064 * config/s390/s390-builtins.def: Add INT128 variants for the add
12065 sub low-level builtins dealing with TImode.
12066 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
12067 via subreg when expanding a builtin.
12068 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
12069 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
12071 * config/s390/vecintrin.h: Adjust builtin names accordingly.
12072 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
12073 ("vec_addc<mode>", "vec_addc_u128"): Merge to
12074 "vacc<bhfgq>_<mode>".
12075 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
12076 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
12077 ("vec_subc<mode>", "vec_subc_u128"): Merge to
12078 "vscbi<bhfgq>_<mode>".
12079 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
12080 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
12082 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12084 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
12086 2016-08-11 Bin Cheng <bin.cheng@arm.com>
12088 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
12089 unused declaration.
12090 (vcond<v_cmp_mixed><mode>): Ditto.
12091 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
12093 2016-08-11 Bin Cheng <bin.cheng@arm.com>
12095 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
12096 variable explicitly, also assert on it before use.
12098 2016-08-11 Richard Biener <rguenther@suse.de>
12100 PR tree-optimization/72772
12101 * cfgloopmanip.c (create_preheader): Use split_edge if there
12102 is a single loop entry, avoiding degenerate PHIs.
12104 2016-08-11 Richard Biener <rguenther@suse.de>
12106 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
12107 unconditional TODO_cleanup_cfg.
12108 (pass_thread_jumps::execute): Initialize loops, perform a CFG
12109 cleanup only if we threaded a jump.
12111 2016-08-11 Alan Modra <amodra@gmail.com>
12114 * lra-constraints.c (simplify_operand_subreg): Allow subreg
12115 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
12116 slow. Emit two reloads for slow mem case, first loading in
12117 fast innermode, then converting to required mode.
12119 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
12121 * config/rs6000/altivec.h (vec_extract_exp): New macro.
12122 (vec_extract_sig): New macro.
12123 (vec_insert_exp): New macro.
12124 (vec_test_data_class): New macro.
12125 (scalar_extract_exp): New macro.
12126 (scalar_extract_sig): New macro.
12127 (scalar_insert_exp): New macro.
12128 (scalar_test_data_class): New macro.
12129 (scalar_test_neg): New macro.
12130 (scalar_cmp_exp_gt): New macro.
12131 (scalar_cmp_exp_lt): New macro.
12132 (scalar_cmp_exp_eq): New macro.
12133 (scalar_cmp_exp_unordered): New macro.
12134 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
12135 to enforce constraint that operand is a 7-bit unsigned literal.
12136 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
12137 for power9 built-ins.
12138 (BU_P9V_VSX_2): Likewise.
12139 (BU_P9V_64BIT_VSX_2): Likewise.
12140 (VSEEDP): Add scalar extract exponent support.
12141 (VSEESP): Add scalar extract signature support.
12142 (VSTDCNDP): Add scalar test negative support.
12143 (VSTDCNSP): Likewise.
12144 (VSIEDP): Add scalar insert exponent support.
12145 (VSCEDPGT): Add scalar compare exponent greater than support.
12146 (VSCEDPLT): Add scalar compare exponent less than support.
12147 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
12148 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
12149 (VSTDCDP): Add scalar test data class support.
12150 (VSTDCSP): Likewise.
12151 (VSEEDP): Add overload support for scalar extract exponent
12153 (VSESDP): Add overload support for scalar extract signature
12155 (VSTDCN): Add overload support for scalar test negative
12157 (VSTDCNDP): Add overload support for scalar test negative
12159 (VSTDCNSP): Add overload support for scalar test negative
12161 (VSIEDP): Add overload support for scalar insert exponent
12163 (VSTDC): Add overload support for scalar test data class
12165 (VSTDCDP): Add overload support for scalar test data class
12167 (VSTDCSP): Add overload support for scalar test data class
12169 (VSCEDPGT): Add overload support for scalar compare exponent
12170 greater than operation.
12171 (VSCEDPLT): Add overload support for scalar compare exponent
12172 less than operation.
12173 (VSCEDPEQ): Add overload support for scalar compare exponent
12174 test-for-equality operation.
12175 (VSCEDPUO): Add overload support for scalar compare exponent
12176 test-for-unordered operation.
12177 (VEEDP): Add vector extract exponent support.
12179 (VESDP): Add vector extract significand support.
12181 (VIEDP): Add vector insert exponent support.
12183 (VTDCDP): Add vector test data class support.
12184 (VTDCSP): Likewise.
12185 (VES): Add overload support for vector extract significand operation.
12188 (VEE): Add overload support for vector extract exponent operation.
12191 (VTDC): Add overload support for vector test data class operation.
12192 (VTDCDP): Likewise.
12193 (VTDCSP): Likewise.
12194 (VIE): Add overload support for vector insert exponent operation.
12197 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12198 overloaded binary floating point functions.
12199 (altivec_resolve_overloaded_builtin): Improve error messages to
12200 distinguish between functions not supported in the current
12201 compiler configuration and functions that were invoked with an
12202 invalid parameter combination, and include the built-in function
12203 name in both error messages.
12204 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
12206 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
12208 (rs6000_expand_binop_builtin): Add check to enforce that argument
12209 2 of the test data class operations is a 7-bit unsigned literal.
12210 (rs6000_invalid_builtin): Add code to issue an error message if a
12211 built-in function that requires the power9_vector and -m32
12212 command-line options is compiled without these options.
12213 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
12214 (UNSPEC_VSX_SXSIGDP): New value.
12215 (UNSPEC_VSX_SXSIGPDP): New value.
12216 (UNSPEC_VSX_SIEXPDP): New value.
12217 (UNSPEC_VSX_SCMPEXPDP): New value.
12218 (UNSPEC_VSX_STSTDC): New value.
12219 (UNSPEC_VSX_VXEXP): New value.
12220 (UNSPEC_VSX_VXSIG): New value.
12221 (UNSPEC_VSX_VIEXP): New value.
12222 (UNSPEC_VSX_VTSTDC): New value.
12223 (xsxexpdp): New insn for scalar extract exponent.
12224 (xsxsigdp): New insn for scalar extract significand.
12225 (xsiexpdp): New insn for scalar insert exponent.
12226 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
12227 (*xscmpexpdp): New insn for scalar compare exponents.
12228 (xststdc<Fvsx): New expansion for both single- and
12229 double-precision scalar test data class operations.
12230 (xststdcneg<Fvsx>): New expansion for both single- and
12231 double-precision scalar test for negative value operations.
12232 (*xststdc<Fvsx>): New insn for scalar test data class
12234 (xvxexp<VSs>): New insn for single- and double-precision
12235 vector extract exponent operation.
12236 (xvxsig<VSs>): New insn for single- and double-precision
12237 vector extract significand operation.
12238 (xviexp<VSs>): New insn for single- and double-precision
12239 vector insert exponent operation.
12240 (xvtstdc<VSs>): New insn for single- and double-precision
12241 vector test data class operation.
12242 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12243 built-in functions to represent the Power9 binary floating-point
12244 support instructions.
12246 2016-08-10 bin cheng <bin.cheng@arm.com>
12248 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
12250 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12251 Renlin Li <renlin.li@arm.com>
12252 Bin Cheng <bin.cheng@arm.com>
12254 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
12255 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
12256 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
12257 (aarch64_vcond_internal<mode><mode>): Delete pattern.
12258 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
12259 (vcond<v_cmp_result><mode>): Ditto.
12260 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
12261 (vcondu<mode><mode>): Ditto.
12262 (vcond<v_cmp_mixed><mode>): New pattern.
12263 (vcondu<mode><v_cmp_mixed>): New pattern.
12264 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
12265 of aarch64_vcond_internal.
12267 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12268 Renlin Li <renlin.li@arm.com>
12269 Bin Cheng <bin.cheng@arm.com>
12271 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
12272 (vec_cmp<mode><v_cmp_result>): New pattern.
12273 (vec_cmpu<mode><mode>): New pattern.
12274 (vcond_mask_<mode><v_cmp_result>): New pattern.
12276 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12278 PR tree-optimization/71734
12279 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
12280 REF_LOOP, invoke ref_indep_loop_p_1.
12281 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
12282 to ref_indep_loop_p.
12283 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
12284 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
12285 is inside LOOP, do not cache dpendence value for loops with
12287 (ref_indep_loop_p_2): Delete function.
12288 (can_sm_ref_p): Pass LOOP as additional argument to
12291 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12294 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
12295 being an offsettable address.
12297 2016-08-10 Martin Liska <mliska@suse.cz>
12299 PR gcov-profile/58306
12300 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
12301 atomic variants of profile update functions.
12303 2016-08-10 Martin Liska <mliska@suse.cz>
12305 Cherry picked (and modified) from google-4_7 branch
12306 2012-12-26 Rong Xu <xur@google.com>
12307 * common.opt (fprofile-update): Add new flag.
12308 * coretypes.h: Define enum profile_update.
12309 * doc/invoke.texi: Document -fprofile-update.
12310 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
12311 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
12312 * tree-profile.c (gimple_init_edge_profiler): Generate
12313 also atomic profiler update.
12314 (gimple_gen_edge_profiler): Likewise.
12316 2016-08-10 David Malcolm <dmalcolm@redhat.com>
12318 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
12319 stack_usage_file to NULL after fclose calls.
12321 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12324 * reload.c (push_reload): Compute subreg_in_class for
12325 subregs of constants and plus expressions. Remove special
12326 handling of SYMBOL_REFs.
12328 2016-08-10 Alan Modra <amodra@gmail.com>
12331 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
12332 SImode for TARGET_E500_DOUBLE when given SImode.
12334 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
12336 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
12337 unused variable __O.
12339 2016-08-09 Martin Liska <mliska@suse.cz>
12341 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
12342 _gcov_reset to __gcov_reset.
12343 * doc/gcov-tool.texi: Fix typo.
12345 2016-08-09 Martin Liska <mliska@suse.cz>
12347 * value-prof.c (gimple_divmod_values_to_profile): Do not
12348 instrument MOD histogram if a value is not a SSA name.
12350 2016-08-09 Martin Liska <mliska@suse.cz>
12352 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
12355 2016-08-09 Renlin Li <renlin.li@arm.com>
12357 PR middle-end/64971
12358 * calls.c (prepare_call_address): Convert funexp to Pmode when
12360 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
12361 (sibcall_value): Likewise.
12363 2016-08-09 Marek Polacek <polacek@redhat.com>
12366 * cselib.c (cselib_expand_value_rtx_1): Add return.
12367 * gengtype.c (dbgprint_count_type_at): Likewise.
12368 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
12369 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
12371 2016-08-09 Martin Jambor <mjambor@suse.cz>
12374 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
12375 if instance is a MEM_REF.
12377 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
12380 * config/i386/i386.md (*movtf_internal): Use
12381 lra_in_progress || reload_completed instead of !can_create_pseudo_p
12382 in the insn constraint.
12383 (*movxf_internal): Ditto.
12384 (*movdf_internal): Ditto.
12385 (*movsf_internal): Ditto.
12387 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12389 PR tree-optimization/72772
12390 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12393 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12395 PR tree-optimization/72772
12396 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
12398 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
12399 parameter STOP and update calls. Move expand_simple_operations
12400 function call from here...
12401 (simplify_using_initial_conditions): ...to here. Delete parameter
12403 (tree_simplify_using_condition): Delete parameter STOP.
12404 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
12405 simplify_using_initial_conditions.
12407 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
12410 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
12411 Use create_tmp_var_raw instead of create_tmp_var.
12413 2016-08-09 Richard Biener <rguenther@suse.de>
12415 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
12416 Treat same SSA names related.
12418 2016-08-09 Jakub Jelinek <jakub@redhat.com>
12420 PR tree-optimization/72824
12421 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
12422 real_zerop is not negative.
12424 2016-08-09 Richard Biener <rguenther@suse.de>
12426 PR tree-optimization/71802
12427 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
12428 all merge opportunities with the predecessor.
12430 2016-08-09 Richard Biener <rguenther@suse.de>
12433 * ipa-prop.c (ipa_modify_formal_parameters): Build
12434 parameter types with natural alignment also for the
12437 2016-08-08 Andi Kleen <ak@linux.intel.com>
12439 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
12441 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12444 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
12445 do-nothing langhook.
12446 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
12447 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
12448 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
12449 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
12451 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12454 * input.c: Ensure that HAVE_ICONV is defined.
12456 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12458 PR middle-end/72781
12459 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
12460 private vars for lastprivate and for linear iterator.
12462 PR middle-end/68762
12463 * omp-simd-clone.c: Include varasm.h.
12464 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
12465 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
12466 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
12467 update function name.
12469 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12471 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
12472 (avr_diagnose_devicespecs_error): Remove.
12473 (avr_devicespecs_file): Remove composing absolute path for specfile
12474 and its verbose info. Remove conditions to check specs-file,
12476 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12478 PR rtl-optimization/72821
12479 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
12480 just return false for them.
12482 2016-08-08 Alan Modra <amodra@gmail.com>
12485 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12486 toc refs created during reload. Update function comment.
12488 2016-08-08 Alan Modra <amodra@gmail.com>
12491 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12492 alternatives. Put loads first, then stores, and reg/reg moves
12493 within same class later. Delete attr length.
12495 2016-08-08 Alan Modra <amodra@gmail.com>
12498 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12499 (mem_operand_ds_form): New predicate.
12500 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12501 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12502 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12503 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12504 (extendsfdf2_fpr): Replace o constraint with wY.
12506 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
12508 * tree-ssa-threadbackward.c: Include tree-inline.h
12509 (profitable_jump_thread_path): Use estimate_num_insns to estimate
12510 size of copied block; for cold paths reduce duplication.
12511 (find_jump_threads_backwards): Remove redundant tests.
12512 (pass_thread_jumps::gate): Enable for -Os.
12514 2016-08-07 Jakub Jelinek <jakub@redhat.com>
12517 * stor-layout.c (layout_decl): Fix up formatting.
12518 (relayout_decl): Allow DECL to be FIELD_DECL.
12520 2016-08-07 Alan Modra <amodra@gmail.com>
12522 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12524 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12526 * data-streamer-in.c (streamer_read_wide_int): New.
12527 (streamer_read_widest_int): Renamed function.
12528 * data-streamer-out.c (streamer_write_wide_int): New
12529 (streamer_write_widest_int): Renamed function.
12530 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12532 (input_cfg): Call renamed function.
12533 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12535 (output_cfg): Call renamed function.
12536 * data-streamer.h: Add declarations.
12538 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12540 * tree-ssa-ccp.c (extend_mask): New param sgn.
12541 Remove ORing with wi::mask.
12542 (get_default_value): Adjust call to extend_mask to pass sign.
12543 (evaluate_stmt): Likewise.
12545 2016-08-06 Jakub Jelinek <jakub@redhat.com>
12547 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12550 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12552 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12553 transform if operand's type is pointer to function or method.
12555 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12557 PR tree-optimization/18046
12558 * tree-ssa-threadedge.c: Include cfganal.h.
12559 (simplify_control_statement_condition): If simplifying a
12560 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12561 with the dominating ASSERT_EXPR before handing it off to VRP.
12562 Mention that a CASE_LABEL_EXPR may be returned.
12563 (thread_around_empty_blocks): Adjust to handle
12564 simplify_control_statement_condition() returning a
12566 (thread_through_normal_block): Likewise.
12567 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12568 a switch statement by trying to determine which case label
12571 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
12573 PR rtl-optimization/69847
12574 * lra-constraints.c (process_invariant_for_inheritance): Save
12575 pattern instead of src.
12576 (remove_inheritance_pseudos): Use the pattern. Add assert.
12578 2016-08-05 David Malcolm <dmalcolm@redhat.com>
12580 * input.c (string_concat::string_concat): New constructor.
12581 (string_concat_db::string_concat_db): New constructor.
12582 (string_concat_db::record_string_concatenation): New method.
12583 (string_concat_db::get_string_concatenation): New method.
12584 (string_concat_db::get_key_loc): New method.
12585 (class auto_cpp_string_vec): New class.
12586 (get_substring_ranges_for_loc): New function.
12587 (get_source_range_for_substring): New function.
12588 (get_num_source_ranges_for_substring): New function.
12589 (class selftest::lexer_test_options): New class.
12590 (struct selftest::lexer_test): New struct.
12591 (class selftest::ebcdic_execution_charset): New class.
12592 (selftest::ebcdic_execution_charset::s_singleton): New variable.
12593 (selftest::lexer_test::lexer_test): New constructor.
12594 (selftest::lexer_test::~lexer_test): New destructor.
12595 (selftest::lexer_test::get_token): New method.
12596 (selftest::assert_char_at_range): New function.
12597 (ASSERT_CHAR_AT_RANGE): New macro.
12598 (selftest::assert_num_substring_ranges): New function.
12599 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12600 (selftest::assert_has_no_substring_ranges): New function.
12601 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12602 (selftest::test_lexer_string_locations_simple): New function.
12603 (selftest::test_lexer_string_locations_ebcdic): New function.
12604 (selftest::test_lexer_string_locations_hex): New function.
12605 (selftest::test_lexer_string_locations_oct): New function.
12606 (selftest::test_lexer_string_locations_letter_escape_1): New function.
12607 (selftest::test_lexer_string_locations_letter_escape_2): New function.
12608 (selftest::test_lexer_string_locations_ucn4): New function.
12609 (selftest::test_lexer_string_locations_ucn8): New function.
12610 (selftest::uint32_from_big_endian): New function.
12611 (selftest::test_lexer_string_locations_wide_string): New function.
12612 (selftest::uint16_from_big_endian): New function.
12613 (selftest::test_lexer_string_locations_string16): New function.
12614 (selftest::test_lexer_string_locations_string32): New function.
12615 (selftest::test_lexer_string_locations_u8): New function.
12616 (selftest::test_lexer_string_locations_utf8_source): New function.
12617 (selftest::test_lexer_string_locations_concatenation_1): New
12619 (selftest::test_lexer_string_locations_concatenation_2): New
12621 (selftest::test_lexer_string_locations_concatenation_3): New
12623 (selftest::test_lexer_string_locations_macro): New function.
12624 (selftest::test_lexer_string_locations_stringified_macro_argument):
12626 (selftest::test_lexer_string_locations_non_string): New function.
12627 (selftest::test_lexer_string_locations_long_line): New function.
12628 (selftest::test_lexer_char_constants): New function.
12629 (selftest::input_c_tests): Call the new test functions once per
12630 case within the line_table test matrix.
12631 * input.h (struct string_concat): New struct.
12632 (struct location_hash): New struct.
12633 (class string_concat_db): New class.
12634 * substring-locations.h: New header.
12636 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12638 PR tree-optimization/72810
12639 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12640 the type of the case labels when truncating.
12642 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12645 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12646 (aarch64_fp16_ptr_type_node): Likewise.
12647 * config/aarch64/aarch64-simd-builtins.c
12648 (aarch64_fp16_ptr_type_node): Define.
12649 (aarch64_init_fp16_types): New, refactored out of...
12650 (aarch64_init_builtins): ...here, update to call
12651 aarch64_init_fp16_types.
12652 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12654 (aapcs_vfp_sub_candidate): Likewise.
12656 2016-08-05 Martin Liska <mliska@suse.cz>
12657 Joshua Cranmer <Pidgeot18@gmail.com>
12659 * gcov.c (line_t::has_block): New function.
12660 (enum loop_type): New enum.
12661 (handle_cycle): New function.
12662 (unblock): Likewise.
12663 (circuit): Likewise.
12664 (get_cycles_count): Likewise.
12665 (accumulate_line_counts): Use new loop detection algorithm.
12667 2016-08-05 Martin Liska <mliska@suse.cz>
12669 * gcov.c (output_intermediate_file): Rename
12670 function_info::line_next to next_file_fn.
12671 (process_file): Likewise.
12672 (read_graph_file): Likewise.
12673 (accumulate_line_counts): Likewise.
12674 (output_lines): Likewise.
12676 2016-08-05 Richard Biener <rguenther@suse.de>
12678 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12679 restriction on threading to a loop header.
12681 2016-08-05 Richard Biener <rguenther@suse.de>
12683 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12684 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12685 adjust loop info accordingly.
12687 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12689 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12690 before folding call to __builtin_constant_p with parameters to false.
12692 2016-08-05 Alan Modra <amodra@gmail.com>
12694 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12695 code accidentally committed 2016-05-02 providing class when given
12698 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12700 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12701 the case label ranges that partially overlap with OP's value
12704 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
12707 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12708 Cast builtin function result to __mmask16 instead of __mmask8.
12709 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12710 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12711 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12713 2016-08-04 David Malcolm <dmalcolm@redhat.com>
12715 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12716 (ASSERT_TRUE_AT): New macro.
12717 (ASSERT_FALSE): Reimplement in terms of...
12718 (ASSERT_FALSE_AT): New macro.
12719 (ASSERT_STREQ_AT): Fix typo in comment.
12721 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12723 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12724 labels are exhaustive, designate the label with the widest
12725 range to be the default label.
12727 2016-08-04 Andrew Pinski <apinski@cavium.com>
12729 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12730 (thunderx_tunings): Use thunderx_vector_cost instead of
12731 generic_vector_cost.
12733 2016-08-04 Martin Liska <mliska@suse.cz>
12735 * gcov.c (main): Fix GNU coding style.
12736 (output_intermediate_file): Likewise.
12737 (process_file): Likewise.
12738 (generate_results): Likewise.
12739 (release_structures): Likewise.
12740 (create_file_names): Likewise.
12741 (find_source): Likewise.
12742 (read_graph_file): Likewise.
12743 (find_exception_blocks): Likewise.
12744 (canonicalize_name): Likewise.
12745 (make_gcov_file_name): Likewise.
12746 (mangle_name): Likewise.
12747 (accumulate_line_counts): Likewise.
12748 (output_branch_count): Likewise.
12749 (read_line): Likewise.
12751 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12753 PR rtl-optimization/71779
12754 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12755 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12756 or if it was truncated.
12758 PR rtl-optimization/70903
12759 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12761 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12763 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12764 accessing SSA_NAME_PTR_INFO.
12766 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12769 * common/config/avr/avr-common.c (avr_option_optimization_table)
12770 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12772 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12775 * config/avr/avr.md: New pattern to work around do_store_flag
12776 generating shift instructions for bit extractions.
12778 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12780 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12782 (add_equivalence): Likewise.
12783 (get_value_range): Allocate value range with vrp_value_range_pool.
12784 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12785 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12787 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
12789 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12790 the default for the rs6000 port.
12792 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12794 PR middle-end/71876
12795 * calls.c (special_function_p): Remove special handling of
12796 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
12797 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
12798 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
12800 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
12802 PR middle-end/72778
12803 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
12804 Don't stop on regular insns.
12806 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12808 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
12809 size to DImode boundary.
12810 (nvptx_propagate): Likewise.
12812 2016-08-03 Alan Modra <amodra@gmail.com>
12814 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
12815 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
12816 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12817 from -mefficient-unaligned-vector. Note that this affects fp too.
12819 2016-08-03 Alan Modra <amodra@gmail.com>
12821 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
12824 2016-08-03 Alan Modra <amodra@gmail.com>
12826 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
12827 to a reg. Localize vars.
12829 2016-08-03 Alan Modra <amodra@gmail.com>
12831 * config/rs6000/rs6000.opt: Remove negatives from help strings
12834 2016-08-03 Alan Modra <amodra@gmail.com>
12836 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
12837 Delete duplicated code.
12839 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12841 PR middle-end/72778
12842 * lra-spills.c (regno_in_use_p): New.
12843 (lra_final_code_change): Use it.
12845 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12847 PR rtl-optimization/69847
12848 * lra-int.h (struct lra-reg): Use restore_rtx instead of
12850 (lra_rtx_hash): New.
12851 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
12853 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
12854 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
12855 * lra-spills.c (lra_final_code_change): Don't delete insn when the
12856 next insn is USE with the same reg as the current insn source.
12857 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
12859 (lra_constraints_init): Call initiate_invariants.
12860 (lra_constraints_finish): Call finish_invariants.
12861 (struct invariant, invariant_t, invariant_ptr_t): New.
12862 (const_invariant_ptr_t, invariants, invariants_pool): New.
12863 (invariant_table, invariant_hash, invariant_eq_p): New.
12864 (insert_invariant, initiate_invariants, finish_invariants): New.
12865 (clear_invariants, invalid_invariant_regs): New.
12866 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
12867 instead of restore_regno.
12868 (invariant_p, process_invariant_for_inheritance): New.
12869 (inherit_in_ebb): Implement invariant inheritance.
12870 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
12871 (remove_inheritance_pseudos): Implement undoing invariant
12873 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
12874 instead of restore_regno.
12875 * lra-assigns.c (regno_live_length): New.
12876 (reload_pseudo_compare_func): Use regno_live_length.
12877 (assign_by_spills): Use restore_rtx instead of restore_regno.
12878 (lra_assign): Ditto. Initiate regno_live_length.
12880 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
12882 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
12883 __builtin_aarch64_fmindf.
12885 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12887 PR tree-optimization/34114
12888 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
12889 information for more control IVs.
12891 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12893 PR tree-optimization/34114
12894 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
12895 PLUS_EXPR case. Handle SSA_NAME case.
12897 2016-08-02 Tamar Christina <tamar.christina@arm.com>
12899 * config/aarch64/aarch64-simd-builtins.def
12900 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
12901 (__builtin_aarch64_fmaxdf): Likewise.
12902 (__builtin_aarch64_smin_nandf): Likewise.
12903 (__builtin_aarch64_smax_nandf): Likewise.
12904 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
12905 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
12906 (<fmaxmin><mode>3): ...this.
12907 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
12908 (vminnm_f64): Likewise.
12909 (vmin_f64): Likewise.
12910 (vmax_f64): Likewise.
12911 * config/aarch64/iterators.md (FMAXMIN): Merge with...
12912 (FMAXMIN_UNS): ...this.
12913 (fmaxmin): Merged with
12914 (fmaxmin_op): ...this...
12915 (maxmin_uns_op): ...in to this.
12917 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12919 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12920 Add support for vec_extract on vector float, vector int, vector
12921 short, and vector char vector types.
12922 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12923 vector float, vector int, vector short, and vector char
12924 optimizations on 64-bit ISA 2.07 systems for both constant and
12925 variable element numbers.
12926 (rs6000_split_vec_extract_var): Likewise.
12927 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
12928 Altivec registers on ISA 2.07 and above.
12929 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
12930 which never was matched due to the split occuring before register
12931 allocation (and the code would not have worked on little endian
12932 systems if it did match). Allow extracts to go to the Altivec
12933 registers if ISA 2.07 (power8). Change from using "" around the
12934 C++ code to using {}'s.
12935 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
12936 vec_extracts when the vector is in memory.
12937 (vsx_extract_v4sf_var): New insn to optimize vector float
12938 vec_extracts when the element number is variable on 64-bit ISA
12940 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
12941 for 64-bit ISA 2.07 as well as ISA 3.0.
12942 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
12943 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
12944 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
12945 optimize vector int, vector short, and vector char vec_extracts
12946 when the vector is in memory.
12947 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
12948 optimize vector int, vector short, and vector char vec_extracts
12949 when the element number is variable.
12951 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12954 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
12955 does not overlap with other symbol flags.
12957 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
12959 * config/aarch64/aarch64.h (aarch64_frame):
12960 Remove padding0 and hardfp_offset. Add locals_offset,
12961 initial_adjust, callee_adjust, callee_offset and final_adjust.
12962 * config/aarch64/aarch64.c (aarch64_layout_frame):
12963 Remove unused padding0 and hardfp_offset initializations.
12964 Choose frame layout and set frame variables accordingly.
12965 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
12966 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
12967 (aarch64_pop_regs): Likewise.
12968 (aarch64_expand_prologue): Remove all decision code, just emit
12969 prolog according to frame variables.
12970 (aarch64_expand_epilogue): Remove all decision code, just emit
12971 epilog according to frame variables.
12972 (aarch64_initial_elimination_offset): Use offset to local/arg area.
12974 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
12977 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
12978 fix_debug_reg_uses after changing source register mode to
12979 V1TImode if source register is undefined.
12981 2015-08-01 Alan Hayward <alan.hayward@arm.com>
12983 PR tree-optimization/71818
12984 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
12985 with non invariant evolutions
12987 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12990 * config/avr/avr.md (length) [branch]: Correct insn length
12991 attribute for forward branches.
12993 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12995 * doc/extend.texi (AVR Built-in Functions): Document
12996 __builtin_avr_nops.
12997 * config/avr/builtins.def (NOPS): New.
12998 * config/avr/avr.c (avr_expand_nops): New static function.
12999 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
13001 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13003 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
13004 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
13007 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
13009 * config/aarch64/aarch64.c (vulcan_tunings): Update
13010 vulcan L1 cache_line_size.
13012 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
13014 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
13015 function that takes a vector memory address, a hard register, an
13016 element number and a temporary base register, and recreates an
13017 address that points to the appropriate element within the vector.
13018 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
13019 (rs6000_split_vec_extract_var): Add support for the target of a
13020 vec_extract with variable element number being a scalar memory
13022 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
13024 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
13025 vsx_extract_<mode>_load insn with a new insn that optimizes
13026 storing either element to a memory location, using scratch
13027 registers to pick apart the vector and reconstruct the address.
13028 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
13029 (vsx_extract_<mode>_store): Rework alternatives to more correctly
13030 support Altivec registers. Add support for ISA 3.0 Altivec d-form
13032 (vsx_extract_<mode>_var): Add support for extracting a variable
13033 element number from memory.
13035 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
13037 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
13038 when testing for compares against constants of the form 0xabab.
13040 2016-07-29 Bin Cheng <bin.cheng@arm.com>
13042 PR tree-optimization/57558
13043 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
13045 (vect_loop_versioning): Support versioning with niter assumptions.
13046 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
13047 (vect_get_loop_niters): New parameter. Reimplement to support
13048 assumptions in loop niter info.
13049 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
13050 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
13051 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
13052 Support loop versioning for niters.
13053 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
13054 (vect_free_loop_info_assumptions): New function.
13055 (vectorize_loops): Free loop niter info for loops with flag
13056 LOOP_F_ASSUMPTIONS set if vectorization failed.
13057 * tree-vectorizer.h (struct _loop_vec_info): New field
13058 num_iters_assumptions.
13059 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
13060 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
13061 (LOOP_REQUIRES_VERSIONING): New macro.
13062 (vect_free_loop_info_assumptions): New decl.
13064 2016-07-29 Bin Cheng <bin.cheng@arm.com>
13066 * cfgloop.h (struct loop): New field constraints.
13067 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
13068 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
13070 * cfgloop.c (alloc_loop): Initialize new field.
13071 * cfgloopmanip.c (copy_loop_info): Copy constraints.
13072 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
13073 Adjust niter analysis wrto loop constraints.
13074 * doc/loop.texi (@node Number of iterations): Add description for loop
13077 2016-07-29 Marek Polacek <polacek@redhat.com>
13080 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
13081 (ix86_expand_round_builtin): Likewise.
13083 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
13084 Georg-Johann Lay <avr@gjlay.de>
13086 PR rtl-optimization/71976
13087 * combine.c (get_last_value): Return 0 if the argument for which
13088 the function is called has a wider mode than the recorded value.
13090 2016-07-29 Marek Polacek <polacek@redhat.com>
13093 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
13094 (altivec_expand_st_builtin): Likewise.
13096 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
13098 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
13099 introduced in r238381.
13101 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13103 PR middle-end/68217
13104 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
13105 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
13107 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
13109 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
13111 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13112 Add support for vec_extract of vector double or vector long having
13113 a variable element number on 64-bit ISA 2.07 systems or newer.
13114 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
13116 (rs6000_split_vec_extract_var): New function to split a
13117 vec_extract built-in function with variable element number.
13118 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
13120 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
13121 (UNSPEC_VSX_EXTRACT): Likewise.
13122 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
13123 direct move instructions to be generated on 64-bit ISA 2.07
13124 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
13126 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
13127 arguments for vec_extract variable element.
13128 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
13129 vec_extract with variable element on V2DFmode and V2DImode
13131 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
13132 -mupper-regs-df requirement, since it isn't needed.
13133 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
13134 do direct moves on 64-bit systems, which allows optimization of
13135 vec_extract on 64-bit ISA 2.07 systems and newer.
13137 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13138 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13140 * config/aarch64/aarch64.md
13141 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
13142 statement and type.
13143 (<optab>qihi2_aarch64): Likewise, and split into two.
13144 (extendqihi2_aarch64): New.
13145 (zero_extendqihi2_aarch64): New.
13146 * config/aarch64/iterators.md (ldrxt): Remove.
13147 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
13150 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13152 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
13154 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13156 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
13157 (aarch64_push_reg): New function to push 1 or 2 registers.
13158 (aarch64_pop_reg): New function to pop 1 or 2 registers.
13159 (aarch64_expand_prologue): Use aarch64_push_regs.
13160 (aarch64_expand_epilogue): Use aarch64_pop_regs.
13162 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
13164 PR tree-optimization/71734
13165 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
13166 attribute instead of REF_LOOP and use it.
13167 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
13168 set it for Loops having non-zero safelen attribute.
13169 (ref_indep_loop_p): Pass zero as initial value for safelen.
13171 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
13173 PR middle-end/72657
13175 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
13176 call using chkp_gimple_call_builtin_p.
13177 (chkp_copy_bounds_for_assign): Likewise.
13179 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13181 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
13182 * config/arm/arm-protos.h (struct tune_params): Likewise.
13183 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13184 (cortex_a9_sched_adjust_cost): Likewise.
13185 (fa726te_sched_adjust_cost): Likewise.
13186 (arm_adjust_cost): Likewise.
13187 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
13188 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
13189 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
13190 * config/i386/i386.c (ix86_adjust_cost): Likewise.
13191 * config/ia64/ia64.c: Likewise.
13192 * config/m68k/m68k.c: Likewise.
13193 * config/mep/mep.c (mep_adjust_cost): Likewise.
13194 * config/microblaze/microblaze.c (microblaze_adjust_cost):
13196 * config/mips/mips.c (mips_adjust_cost): Likewise.
13197 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
13199 * config/pa/pa.c (pa_adjust_cost): Likewise.
13200 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
13201 (rs6000_debug_adjust_cost): Likewise.
13202 * config/sh/sh.c (sh_adjust_cost): Likewise.
13203 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
13204 (hypersparc_adjust_cost): Likewise.
13205 (sparc_adjust_cost): Likewise.
13206 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
13207 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
13208 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
13210 * config/visium/visium.c (visium_adjust_cost): Likewise.
13211 * doc/tm.texi: Regenerate.
13212 * haifa-sched.c (dep_cost_1): Adjust.
13213 * target.def: Merge adjust_cost and adjust_cost_2.
13215 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13217 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
13219 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13221 * store-motion.c (struct st_expr): Make pattern_regs a vector.
13222 (extract_mentioned_regs): Append to a vector instead of
13223 returning a rtx_expr_list.
13224 (st_expr_entry): Adjust.
13225 (free_st_expr_entry): Likewise.
13226 (store_ops_ok): Likewise.
13227 (store_killed_in_insn): Likewise.
13228 (find_moveable_store): Likewise.
13230 2016-07-28 Martin Liska <mliska@suse.cz>
13232 PR gcov-profile/68025
13233 * tree-profile.c (tree_profiling): Respect
13234 no_profile_instrument_function attribute.
13235 * doc/extend.texi: Document no_profile_instrument_function
13238 2016-07-28 Martin Liska <mliska@suse.cz>
13240 PR rtl-optimization/70944
13241 * combine.c (make_compound_operation):
13242 Do not allow make_compound_operation for vector mode
13244 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
13246 PR middle-end/71994
13247 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
13248 before calling get_ops.
13250 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13252 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
13253 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
13254 (BITS_PER_UNIT_LOG): Remove.
13255 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
13256 * expr.c (expand_assignment): Likewise.
13257 * stor-layout.c (initialize_sizetypes): Likewise.
13259 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13261 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
13262 signature of rs6000_expand_vector_extract so that the element
13263 number is a RTX instead of a constant integer.
13264 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
13266 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
13267 (altivec_expand_vec_ext_builtin): Likewise.
13268 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
13269 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
13270 MFVSRLD instruction.
13272 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13274 * input.c (get_pure_location): Move here from tree.c.
13275 (make_location): Likewise. Add header comment.
13276 (selftest::test_accessing_ordinary_linemaps): Verify
13277 pure_location_p, make_location, get_location_from_adhoc_loc and
13278 get_range_from_loc.
13279 * input.h (get_pure_location): Move declaration here from tree.h.
13280 (get_finish): Likewise for inline function.
13281 (make_location): Likewise for declaration.
13282 * tree.c (get_pure_location): Move to input.c.
13283 (make_location): Likewise.
13284 * tree.h (get_pure_location): Move declaration to tree.h.
13285 (get_finish): Likewise for inline function.
13286 (make_location): Likewise for declaration.
13288 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13290 PR middle-end/71078
13291 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
13293 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13295 * system.h (STATIC_ASSERT): Use static_assert if building
13296 with C++11 onwards.
13298 2016-07-27 Richard Biener <rguenther@suse.de>
13300 PR tree-optimization/72517
13301 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
13302 Revert change to not compute read-read dependences.
13304 2016-07-27 Richard Biener <rguenther@suse.de>
13306 * predict.c (set_even_probabilities): Make nedges unsigned.
13308 2016-07-27 Martin Liska <mliska@suse.cz>
13310 * predict.c (set_even_probabilities): Handle unlikely edges.
13311 (combine_predictions_for_bb): Likewise.
13313 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13316 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
13317 __float128 support when we don't have hardware support, so that
13318 the IEEE built-in functions like isgreater, first call __unordkf3
13319 to make sure neither operand is a NaN, and if both operands are
13320 ordered, do the normal comparison.
13322 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13324 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
13326 (extract_code_and_val_from_cond_with_ops): Verify that name is
13327 either cond_op0 or cond_op1.
13329 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13331 PR tree-optimization/18046
13332 * genmodes.c (emit_mode_size_inline): Emit an assert that
13333 verifies that mode is a valid array index.
13334 (emit_mode_nuinits_inline): Likewise.
13335 (emit_mode_inner_inline): Likewise.
13336 (emit_mode_unit_size_inline): Likewise.
13337 (emit_mode_unit_precision_inline): Likewise.
13338 * tree-vrp.c: Include params.h.
13339 (find_switch_asserts): Register edge assertions for the default
13340 label which correspond to the anti-ranges of each case label.
13341 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
13342 * doc/invoke.texi: Document it.
13344 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13346 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
13347 and unnecessary call to gimple_bb.
13349 2016-07-26 Richard Biener <rguenther@suse.de>
13351 PR rtl-optimization/71984
13352 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
13355 2016-07-26 Richard Biener <rguenther@suse.de>
13357 PR middle-end/72517
13358 * expmed.c (extract_bit_field_1): Constrain the vector mode
13359 with element size matching the extraction mode size when
13360 choosing a better vector mode to do the extraction from.
13362 2016-07-26 Richard Biener <rguenther@suse.de>
13363 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13365 PR middle-end/70920
13366 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
13369 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13371 * tree-ssa-structalias.c (struct scc_info): Change types of
13372 members to auto_sbitmap and auto_vec.
13373 (scc_info::scc_info): New constructor.
13374 (scc_info::~scc_info): New destructor.
13375 (init_scc_info): Remove.
13376 (free_scc_info): Remove.
13377 (find_indirect_cycles): Adjust.
13378 (perform_var_substitution): Likewise.
13379 (free_var_substitution_info): Likewise.
13381 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13383 * tree-outof-ssa.c (struct elim_graph): Change type of members
13384 to auto_vec and auto_sbitmap.
13385 (elim_graph::elim_graph): New constructor.
13386 (delete_elim_graph): Remove.
13387 (expand_phi_nodes): Adjust.
13389 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13391 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
13392 (new_elim_graph): Adjust.
13393 (clear_elim_graph): Likewise.
13394 (delete_elim_graph): Likewise.
13395 (elim_graph_size): Likewise.
13396 (elim_graph_add_node): Likewise.
13397 (elim_graph_add_edge): Likewise.
13398 (elim_graph_remove_succ_edge): Likewise.
13399 (eliminate_name): Likewise.
13400 (eliminate_build): Likewise.
13401 (elim_forward): Likewise.
13402 (elim_unvisited_predecessor): Likewise.
13403 (elim_backward): Likewise.
13404 (elim_create): Likewise.
13405 (eliminate_phi): Likewise.
13406 (expand_phi_nodes): Likewise.
13408 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13410 * bt-load.c (compute_out): Use auto_sbitmap class.
13411 (link_btr_uses): Likewise.
13412 * cfganal.c (mark_dfs_back_edges): Likewise.
13413 (post_order_compute): Likewise.
13414 (inverted_post_order_compute): Likewise.
13415 (pre_and_rev_post_order_compute_fn): Likewise.
13416 (single_pred_before_succ_order): Likewise.
13417 * cfgexpand.c (pass_expand::execute): Likewise.
13418 * cfgloop.c (verify_loop_structure): Likewise.
13419 * cfgloopmanip.c (fix_bb_placements): Likewise.
13420 (remove_path): Likewise.
13421 (update_dominators_in_loop): Likewise.
13422 * cfgrtl.c (break_superblocks): Likewise.
13423 * ddg.c (check_sccs): Likewise.
13424 (create_ddg_all_sccs): Likewise.
13425 * df-core.c (df_worklist_dataflow): Likewise.
13426 * dse.c (dse_step3): Likewise.
13427 * except.c (eh_region_outermost): Likewise.
13428 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13429 * gcse.c (prune_expressions): Likewise.
13430 (prune_insertions_deletions): Likewise.
13431 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
13432 * graph.c (draw_cfg_nodes_no_loops): Likewise.
13433 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
13434 * lcm.c (compute_earliest): Likewise.
13435 (compute_farthest): Likewise.
13436 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
13437 (unroll_loop_runtime_iterations): Likewise.
13438 (unroll_loop_stupid): Likewise.
13439 * lower-subreg.c (decompose_multiword_subregs): Likewise.
13440 * lra-lives.c: Likewise.
13441 * lra.c (lra): Likewise.
13442 * modulo-sched.c (schedule_reg_moves): Likewise.
13443 (optimize_sc): Likewise.
13444 (get_sched_window): Likewise.
13445 (sms_schedule_by_order): Likewise.
13446 (check_nodes_order): Likewise.
13447 (order_nodes_of_sccs): Likewise.
13448 (order_nodes_in_scc): Likewise.
13449 * recog.c (split_all_insns): Likewise.
13450 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13451 * reload1.c (reload): Likewise.
13452 * sched-rgn.c (haifa_find_rgns): Likewise.
13453 (split_edges): Likewise.
13454 (compute_trg_info): Likewise.
13455 * sel-sched.c (init_seqno): Likewise.
13456 * store-motion.c (remove_reachable_equiv_notes): Likewise.
13457 * tree-into-ssa.c (update_ssa): Likewise.
13458 * tree-ssa-live.c (live_worklist): Likewise.
13459 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
13460 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13462 (try_peel_loop): Likewise.
13463 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
13465 * tree-ssa-pre.c (compute_antic): Likewise.
13466 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13467 * tree-stdarg.c (reachable_at_most_once): Likewise.
13468 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13469 * var-tracking.c (vt_find_locations): Likewise.
13471 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13473 * sbitmap.h (auto_sbitmap): New class.
13475 2016-07-26 Alan Modra <amodra@gmail.com>
13478 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
13481 2016-07-25 David Malcolm <dmalcolm@redhat.com>
13483 * input.c (selftest::temp_source_file::temp_source_file): Fix
13484 missing "%s" in fprintf.
13486 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
13488 PR middle-end/71732
13489 * cselib.c (cselib_process_insn): Invalidate argument slots for
13492 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13494 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13495 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13496 vmulxh_lane_f16, vmulxh_laneq_f16): New.
13498 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13500 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13501 * config/aarch64/aarch64.md (fma, fnma): Support HF.
13502 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13504 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13506 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13507 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13509 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13510 (add<mode>3): Likewise.
13511 (sub<mode>3): Likewise.
13512 (mul<mode>3): Likewise.
13513 (div<mode>3): Likewise.
13514 (*div<mode>3): Likewise.
13515 (<fmaxmin><mode>3): Extend to HF.
13516 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13517 (fabd<mode>3): Likewise.
13518 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13519 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13520 (aarch64_fmulx<mode>): Likewise.
13521 (aarch64_fac<optab><mode>): Likewise.
13522 (aarch64_frecps<mode>): Likewise.
13523 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13524 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13525 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13526 (VSDQ_HSDI): Support HI.
13527 (fcvt_target, FCVT_TARGET): Likewise.
13528 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13529 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13530 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13531 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13532 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13533 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13534 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13535 vrsqrtsh_f16): New.
13537 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13539 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13540 * config/aarch64/aarch64-builtins.c (hi_UP): New.
13541 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13542 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13544 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13545 (aarch64_cm<optab><mode>): Likewise.
13546 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13547 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13548 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13549 (sqrt<mode>2): Likewise.
13550 (*sqrt<mode>2): Likewise.
13551 (abs<mode>2): Likewise.
13552 (<optab><mode>hf2): New pattern for HF mode.
13553 (<optab>hihf2): Likewise.
13554 * config/aarch64/arm_neon.h: Include arm_fp16.h.
13555 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13556 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13558 * config/aarch64/arm_fp16.h: New file.
13559 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13560 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13561 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13562 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13563 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13564 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13565 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13566 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13567 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13568 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13569 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13570 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13573 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13575 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13576 reduc_smin_scal_): Use VDQIF_F16.
13577 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13578 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13580 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13581 * config/aarch64/iterators.md (VDQIF_F16): New.
13582 (vp): Support HF modes.
13583 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13584 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13586 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13588 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13589 "*aarch64_mulx_elt_from_dup<mode>".
13590 (*aarch64_mul3_elt<mode>): Update schedule type.
13591 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13592 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13593 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13594 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13595 (f, fp): Support HF modes.
13596 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13597 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13598 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13599 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13600 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13601 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13603 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13605 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13606 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13608 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13611 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13613 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13614 * config/aarch64/aarch64-simd.md
13615 (aarch64_rsqrts<mode>): Extend to HF modes.
13616 (fabd<mode>3): Likewise.
13617 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13618 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13619 (aarch64_<maxmin_uns>p<mode>): Likewise.
13620 (<su><maxmin><mode>3): Likewise.
13621 (<maxmin_uns><mode>3): Likewise.
13622 (<fmaxmin><mode>3): Likewise.
13623 (aarch64_faddp<mode>): Likewise.
13624 (aarch64_fmulx<mode>): Likewise.
13625 (aarch64_frecps<mode>): Likewise.
13626 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13627 (add<mode>3): Extend to HF modes.
13628 (sub<mode>3): Likewise.
13629 (mul<mode>3): Likewise.
13630 (div<mode>3): Likewise.
13631 (*div<mode>3): Likewise.
13632 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13634 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13635 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13636 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13637 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13638 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13639 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13640 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13641 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13642 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13643 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13644 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13645 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13646 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13647 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13649 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13651 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13652 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13653 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13654 (neg<mode>2): Likewise.
13655 (abs<mode>2): Likewise.
13656 (<frint_pattern><mode>2): Likewise.
13657 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13658 (<optab><VDQF:mode><fcvt_target>2): Likewise.
13659 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13660 (ftrunc<VDQF:mode>2): Likewise.
13661 (<optab><fcvt_target><VDQF:mode>2): Likewise.
13662 (sqrt<mode>2): Likewise.
13663 (*sqrt<mode>2): Likewise.
13664 (aarch64_frecpe<mode>): Likewise.
13665 (aarch64_cm<optab><mode>): Likewise.
13666 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13668 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13669 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13671 * config/aarch64/arm_neon.h (vdup_n_f16): New.
13672 (vdupq_n_f16): Likewise.
13673 (vld1_dup_f16): Use vdup_n_f16.
13674 (vld1q_dup_f16): Use vdupq_n_f16.
13675 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13676 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13677 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13678 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13679 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13680 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13681 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13682 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13683 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13684 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13685 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13686 vsqrt_f16, vsqrtq_f16): New.
13688 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13690 * config/aarch64/aarch64-simd.md
13691 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13692 (aarch64_ext<mode>): Likewise.
13693 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13694 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13695 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13697 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13699 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13700 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13701 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13702 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13703 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13704 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13705 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13707 (vmov_n_f16): Reimplement using vdup_n_f16.
13708 (vmovq_n_f16): Reimplement using vdupq_n_f16..
13710 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13712 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13713 "frame_related_p". Generate CFA annotation when it's necessary.
13714 (aarch64_expand_prologue): Use aarch64_add_constant.
13715 (aarch64_expand_epilogue): Likewise.
13716 (aarch64_output_mi_thunk): Pass "false" when calling
13717 aarch64_add_constant.
13719 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13721 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13724 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13726 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13727 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13728 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13729 (aarch64_build_constant): Delete.
13731 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
13734 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13736 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13737 flag_toplevel_reorder.
13739 2016-07-25 Richard Biener <rguenther@suse.de>
13741 * cgraph.c (cgraph_node::verify_node): Compare against builtin
13742 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13743 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13744 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13745 (streamer_get_builtin_tree): Likewise.
13746 (streamer_write_builtin): Likewise.
13747 * lto-streamer.h (LTO_builtin_decl): Remove.
13748 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13749 (lto_input_scc): Remove LTO_builtin_decl handling.
13750 (lto_input_tree_1): Liekwise.
13751 * lto-streamer-out.c (lto_output_tree_1): Remove special
13752 handling of builtins.
13753 (DFS::DFS): Likewise.
13754 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13755 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13757 (streamer_write_builtin): Remove.
13759 2016-07-25 Martin Liska <mliska@suse.cz>
13761 * lto-cgraph.c (input_symtab): Don't call get_working_sets
13762 if flag_auto_profile is set to true.
13764 2016-07-25 Martin Liska <mliska@suse.cz>
13766 PR gcov-profile/71868
13767 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13768 have a function with multiple latches, count them all.
13770 2016-07-25 Martin Liska <mliska@suse.cz>
13772 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13774 2016-07-25 Martin Liska <mliska@suse.cz>
13776 PR tree-optimization/71987
13777 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13778 just for SSA_NAMEs. Fix GNU coding style.
13780 2016-07-25 Martin Liska <mliska@suse.cz>
13782 PR gcov-profile/64874
13783 * gcov-io.h: Update command about file format.
13784 * gcov-iov.c (main): Adapt the numbering scheme.
13786 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13788 PR middle-end/66726
13789 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13790 whose result is used in PHI.
13791 (final_range_test_p): Likewise.
13792 (maybe_optimize_range_tests): Likewise.
13794 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13796 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13797 Reformat two multi-line strings.
13799 2016-07-22 Martin Sebor <msebor@redhat.com>
13801 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
13803 2016-07-22 Martin Sebor <msebor@redhat.com>
13806 * doc/extend.texi (Compound Literals): Correct and clarify.
13807 (Cast to Union): Same.
13809 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
13811 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13812 comments to explain why certain error messages make mention of
13813 undocumented options.
13814 (rs6000_invalid_builtin): Change error messages to replace mention
13815 of undocumented options with mention of the -mcpu=power9 option
13816 that enables those undocumented options.
13817 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
13818 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
13819 definition of this macro to correct an existing error.
13820 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
13821 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
13822 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
13823 descriptions of built-in functions so that they depend on
13824 -mcpu=power9 instead of on the corresponding undocumented flags.
13825 * doc/invoke.texi (Option Summary): Remove all mention of newly
13826 undocumented flags.
13827 (IBM RS/6000 and PowerPC Options): Likewise.
13828 * doc/md.texi (Constraints for Particuliar Machines): Remove all
13829 mention of newly undocumented flags.
13831 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
13833 * ipa-cp.c (determine_versionability): Do not create constprop clones,
13834 when target_clones attribute is set.
13836 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13838 * common.opt (funsafe-loop-optimizations): Mark ignore.
13839 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
13840 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
13842 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
13843 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
13845 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13847 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13849 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13851 (number_of_iterations_exit): Warn missed loop optimization for
13852 possible infinite loops.
13854 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
13857 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
13858 when to emit a ".machine" pseudo-op.
13860 2016-07-22 Martin Liska <mliska@suse.cz>
13862 PR gcov-profile/69028
13863 PR gcov-profile/62047
13864 * coverage.c (coverage_compute_lineno_checksum): Do not
13865 calculate checksum for fns w/o xloc.file.
13866 (coverage_compute_profile_id): Likewise.
13868 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
13870 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
13871 (avr_secondary_reload): ...and implementation.
13872 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
13873 * config/avr/avr.md (reload_in<mode>): Remove insns.
13874 (adjust_len) [lpm]: Remove insn attribute value.
13875 * config/avr/predicates.md (flash_operand): Remove insn predicate.
13877 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13879 PR middle-end/71876
13880 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
13882 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
13883 * calls.c (special_function_p): Remove the special handling of the
13884 "__builtin_" prefix.
13886 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13888 PR middle-end/71876
13889 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
13890 if STMT may be an alloca call.
13891 (gimple_alloca_call_p, alloca_call_p): Return only true for the
13892 builtin alloca call.
13893 * calls.h (gimple_maybe_alloca_call_p): New function.
13894 * tree-inline.c (inline_forbidden_p_stmt): Use
13895 gimple_maybe_alloca_call_p here.
13897 2016-07-21 David Malcolm <dmalcolm@redhat.com>
13899 * spellcheck-tree.c (best_macro_match::best_macro_match):
13900 Explictly specify the template arguments when invoking the base
13901 class constructor, to help older C++ compilers.
13903 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13906 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
13907 before builtin_decl_implicit.
13909 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13911 * optabs.c (emit_condiitonal_move): Short circuit for identical
13914 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13916 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
13917 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
13918 (noce_conversion_profitable_p): New.
13919 (noce_try_store_flag_constants): Use it.
13920 (noce_try_addcc): Likewise.
13921 (noce_try_store_flag_mask): Likewise.
13922 (noce_try_cmove): Likewise.
13923 (noce_try_cmove_arith): Likewise.
13924 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
13926 (noce_convert_multiple_sets): Move cost model to here, from...
13927 (bb_ok_for_noce_convert_multiple_sets) ...here.
13928 (noce_process_if_block): Update calls for above changes.
13929 (noce_find_if_block): Record new noce_if_info parameters.
13931 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13933 * target.def (max_noce_ifcvt_seq_cost): New.
13934 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
13935 * doc/tm.texi: Regenerate.
13936 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
13937 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
13938 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
13939 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
13940 * doc/invoke.texi: Document new params.
13942 2016-07-21 Richard Biener <rguenther@suse.de>
13944 PR tree-optimization/71947
13945 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
13946 ranges have useful limit_vr information.
13948 2016-07-21 Richard Biener <rguenther@suse.de>
13950 * function-tests.c (build_trivial_generic_function): Set
13951 BLOCK_SUPERCONTEXT of DECL_INITIAL.
13952 * omp-low.c (create_omp_child_function): Likewise.
13953 (grid_expand_target_grid_body): Likewise.
13954 * cgraphunit.c (init_lowered_empty_function): Likewise.
13955 (cgraph_node::expand_thunk): Likewise.
13956 * tree-parloops.c (create_loop_fn): Likewise.
13957 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
13959 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13961 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
13964 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
13966 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
13967 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
13968 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
13969 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
13970 values for insn attribute.
13971 * config/avr/avr.c (avr_out_insert_notbit): New function.
13972 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
13973 ADJUST_LEN_INSV_NOTBIT_0/_7.
13974 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
13976 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13978 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
13979 (chrec_convert_1, chrec_convert): Ditto.
13980 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
13981 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
13982 * tree-vrp.c (adjust_range_with_scev): Ditto.
13983 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
13984 (scev_var_range_cant_overflow): New function.
13985 (scev_probably_wraps_p): New parameter. Call above function.
13986 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
13988 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13990 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13991 by removing computation of may_be_zero.
13993 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13995 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
13997 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
13999 Improving concepts performance and diagnostics.
14000 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
14001 for constraint satisfaction and subsumption.
14002 * timevar.h (auto_timevar): New constructor that matches the push/pop
14003 pattern of usage in pt.c.
14005 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
14007 * hwint.h (HOST_WIDE_INT_0): New define.
14008 (HOST_WIDE_INT_0U): Ditto.
14009 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
14010 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
14011 * simplify-rtx.c: Ditto.
14012 * tree-object-size.c: Ditto.
14014 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14016 * config/s390/s390.c (s390_encode_section_info): Remove mode size
14019 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
14021 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
14022 * combine.c: Use HOST_WIDE_INT_M1U instead of
14023 ~(unsigned HOST_WIDE_INT) 0.
14024 * double-int.h: Ditto.
14026 * dwarf2asm.c:Ditto.
14028 * genmodes.c: Ditto.
14030 * read-rtl.c: Ditto.
14031 * tree-ssa-loop-ivopts.c: Ditto.
14032 * tree-ssa-loop-prefetch.c: Ditto.
14033 * tree-vect-generic.c: Ditto.
14034 * tree-vect-patterns.c: Ditto.
14037 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14039 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
14040 constant addresses outside [0,0xc0] into a register.
14041 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
14042 cases where the base address register is unused after.
14043 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
14044 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
14045 (avr_out_store_psi_reg_disp_tiny): Same.
14047 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14049 Implement attribute progmem on reduced Tiny cores by adding
14050 flash offset 0x4000 to respective symbols.
14053 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
14054 documentation how it works on reduced Tiny cores.
14055 (AVR Named Address Spaces): No support for reduced Tiny.
14056 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
14057 (avr_address_tiny_pm_p): New static function.
14058 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
14059 if the address is in progmem.
14060 (avr_assemble_integer): Same.
14061 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
14062 for symbol_ref in progmem.
14063 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
14064 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
14065 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
14067 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
14069 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
14070 * configure: Regenerate.
14071 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
14072 (USE_THIN_ARCHIVES): New variable.
14073 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
14074 this archive as a thin archive.
14076 2016-07-20 David Malcolm <dmalcolm@redhat.com>
14078 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
14079 same location as last time, don't skip if we have fix-it hints.
14080 Clarify the skipping logic by converting it from one "if" clause
14081 to repeated "if" clauses.
14082 * spellcheck-tree.c: Include "cpplib.h".
14083 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
14084 (best_macro_match::best_macro_match): New constructor.
14085 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
14086 Move here from c/c-decl.c.
14087 (class best_macro_match): Move here from c/c-decl.c, converting
14088 from a typedef to a subclass, gaining a ctor.
14090 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14092 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
14093 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
14095 (avr_addr_space_diagnose_usage): ...and implementation.
14096 (avr_addr_space_supported_p): New function.
14097 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
14098 report bad address space usage if that space is supported.
14099 (avr_insert_attributes): Same. No more complain about unsupported
14101 * config/avr/avr-c.c (tm_p.h): Include it.
14102 (avr_cpu_cpp_builtins): Only define addr-space related built-in
14103 macro if avr_addr_space_supported_p.
14105 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
14107 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
14108 flag_toplevel_reorder.
14110 2016-07-20 David Malcolm <dmalcolm@redhat.com>
14112 * gcc-rich-location.c
14113 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
14115 * gcc-rich-location.h
14116 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
14118 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
14120 * target.def (addr_space): Add new diagnose_usage to hook vector.
14121 * targhooks.c (default_addr_space_diagnose_usage): Add default
14122 implementation and...
14123 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
14124 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
14125 is some address space, call targetm.addr_space.diagnose_usage.
14126 * doc/tm.texi.in (Named Address Spaces): Add anchor for
14127 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
14128 * doc/tm.texi: Regenerate.
14130 2016-07-20 Martin Liska <mliska@suse.cz>
14132 PR middle-end/71898
14133 * graphite-isl-ast-to-gimple.c (later_of_the_two):
14134 Properly handly PHI stmts.
14136 2016-07-20 Bin Cheng <bin.cheng@arm.com>
14138 PR tree-optimization/71503
14139 PR tree-optimization/71683
14140 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
14143 2016-07-20 Martin Liska <mliska@suse.cz>
14145 * doc/invoke.texi (-fipa-ra): Document when the option is
14146 disabled. Fix a typo.
14148 2016-07-20 Martin Liska <mliska@suse.cz>
14150 * Makefile.in: Include fibonacci_heap.c
14151 * fibonacci_heap.c: New file.
14152 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
14153 (fibonacci_heap::union_with): Fix deletion of the second heap.
14154 * selftest-run-tests.c (selftest::run_tests): Incorporate
14155 fibonacci heap tests.
14156 * selftest.h: Declare fibonacci_heap_c_tests.
14158 2016-07-20 Martin Liska <mliska@suse.cz>
14160 * selftest-run-tests.c (selftest::run_tests): New function.
14161 * selftest.h (sreal_c_tests): Declare.
14162 * sreal.c (sreal_verify_basics): New function.
14163 (verify_aritmetics): Likewise.
14164 (sreal_verify_arithmetics): Likewise.
14165 (verify_shifting): Likewise.
14166 (sreal_verify_shifting): Likewise.
14167 (void sreal_c_tests): Likewise.
14169 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14171 PR rtl-optimization/71916
14172 * cfgrtl.c (contains_no_active_insn_p): Return false also for
14173 bb which have a single succ fake edge.
14175 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
14178 * dwarf2out.c (gen_subprogram_die): Only call
14179 gen_unspecified_parameters_die while dumping early dwarf.
14181 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14183 PR middle-end/71874
14184 * gimple-fold.c (fold_builtin_memory_op): Use
14185 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
14187 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
14189 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
14190 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
14191 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
14192 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
14193 * combine.c: Ditto.
14196 * double-int.c: Ditto.
14198 * dwarf2out.c: Ditto.
14201 * fold-const.c: Ditto.
14202 * function.c: Ditto.
14204 * genmodes.c: Ditto.
14208 * loop-doloop.c: Ditto.
14209 * loop-invariant.c: Ditto.
14210 * loop-iv.c: Ditto.
14215 * rtlanal.c: Ditto.
14216 * simplify-rtx.c: Ditto.
14217 * stor-layout.c: Ditto.
14219 * tree-ssa-loop-ivopts.c: Ditto.
14220 * tree-vect-generic.c: Ditto.
14221 * tree-vect-patterns.c: Ditto.
14226 * wide-int-print.cc: Ditto.
14227 * wide-int.cc: Ditto.
14228 * wide-int.h: Ditto.
14230 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14232 * selftest.c (selftest::assert_streq): Handle NULL values of
14233 val_actual and val_expected.
14235 2016-07-19 Martin Jambor <mjambor@suse.cz>
14238 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
14239 rather than cgraph_create_node to get a call graph node.
14241 2016-07-19 Richard Biener <rguenther@suse.de>
14243 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
14244 handle all tcc_constant bases and valueize SSA names.
14245 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
14246 tcc_constant bases.
14248 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14250 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
14251 the flags of the exit block and bb2, not just the entry block.
14253 2016-07-19 Richard Biener <rguenther@suse.de>
14255 PR tree-optimization/71901
14256 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14257 align member, group stuff with the bitfield.
14258 (vn_ref_op_align_unit): New inline.
14259 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
14260 record element alignment and operand 3 unchanged.
14261 (ao_ref_init_from_vn_reference): Adjust.
14262 (valueize_refs_1): Likewise.
14263 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14265 2016-07-19 Richard Biener <rguenther@suse.de>
14267 PR tree-optimization/71908
14268 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
14269 symbolic constants in a more reliable way.
14271 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
14273 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
14275 (vect_update_inits_of_drs): Likewise.
14276 (vect_create_cond_for_alias_checks): Likewise.
14277 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
14279 2016-07-19 Richard Biener <rguenther@suse.de>
14282 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
14283 with an abstract origin that is not an inlined function outer
14284 scope add a self-reference as abstract origin.
14285 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
14287 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14290 * config/rs6000/rs6000.c (rs6000_function_value): Fix
14291 unintentional System V.4 structure return breakage for structures
14292 with a single floating point element.
14294 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14296 PR tree-optimization/71734
14297 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
14298 contains REF, use it to check safelen, assume that safelen value
14299 must be greater 1, fix style.
14300 (ref_indep_loop_p_2): Add REF_LOOP argument.
14301 (ref_indep_loop_p): Pass LOOP as additional argument to
14302 ref_indep_loop_p_2.
14304 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
14306 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
14307 allocation in the prologue.
14308 * explow.c (get_dynamic_stack_base): New function to return an address
14309 expression for the dynamic stack base.
14310 (get_dynamic_stack_size): New function to do the required dynamic stack
14311 space size calculations.
14312 (allocate_dynamic_stack_space): Use new functions.
14313 (align_dynamic_address): Move some code from
14314 allocate_dynamic_stack_space to new function.
14315 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
14317 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14319 * config/s390/s390.c (s390_encode_section_info): Always set
14320 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
14323 2016-07-18 Richard Biener <rguenther@suse.de>
14325 PR tree-optimization/71893
14326 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
14327 for sizetype cast added by array_ref_element_size.
14328 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14330 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
14332 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
14333 register parameters. Remove code to initialize argument pointer
14334 on TARGET_64BIT. Optimize call to _mcount when it can be reached
14335 using a pc-relative branch. Cleanup conditional code.
14336 * config/pa/pa.md (call_mcount): New expander.
14337 (call_mcount_nonpic): New insn.
14338 (call_mcount_pic): New insn and split.
14339 (call_mcount_pic_post_reload): New insn.
14340 (call_mcount_64bit): New insn and split.
14341 (call_mcount_64bit_post_reload): New insn.
14343 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
14345 * config/avr/predicates.md (const_m255_to_m1_operand): New.
14346 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
14347 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
14348 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
14349 (*usum_widenqihi3, *udiff_widenqihi3)
14350 (*addhi3_zero_extend.const): New combiner insns.
14351 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
14352 just 1 bit is affected.
14353 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
14354 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
14356 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
14358 * omp-low.c (lower_omp_target): Mark data clauses with
14359 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
14360 zero-length subarrays.
14362 2016-07-15 Richard Biener <rguenther@suse.de>
14364 PR tree-optimization/71881
14365 * tree-loop-distribution.c (destroy_loop): Remove blocks in
14366 reverse DOM order to make debug temp generation happy.
14368 2016-07-15 Richard Biener <rguenther@suse.de>
14370 PR tree-optimization/71887
14371 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
14372 verify it is not zero for division / modulo handling.
14373 (value_replacement): Adjust.
14375 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
14376 Julian Brown <julian@codesourcery.com>
14378 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
14379 * config/aarch64/aarch64-cost-tables.h
14380 (vulcan_extra_costs): New variable.
14381 * config/aarch64/aarch64.c
14382 (vulcan_addrcost_table): Likewise.
14383 (vulcan_regmove_cost): Likewise.
14384 (vulcan_vector_cost): Likewise.
14385 (vulcan_branch_cost): Likewise.
14386 (vulcan_tunings): Likewise.
14388 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
14390 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
14391 (output_in_order): Loop over undefined variables too. Output them
14392 via assemble_undefined_decl. Skip variables that correspond to hard
14393 registers or have value-exprs.
14394 * varpool.c (symbol_table::output_variables): Handle undefined
14395 variables together with defined ones.
14397 2016-07-15 Richard Biener <rguenther@suse.de>
14399 * tree-ssa-pre.c (get_representative_for): Make sure to return
14400 the value number of SSA names.
14401 (phi_translate_1): get_representative_for cannot return NULL.
14402 (do_pre_regular_insertion): Remove redundant call to
14403 fully_constant_expression.
14404 (do_pre_partial_partial_insertion): Likewise.
14406 2016-07-15 Bin Cheng <bin.cheng@arm.com>
14408 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
14409 (derive_simple_iv_with_niters): New function.
14410 (simple_iv): Rewrite using simple_iv_with_niters.
14411 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
14412 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14414 (number_of_iterations_exit): Rewrite using above function.
14415 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14418 2016-07-15 Richard Biener <rguenther@suse.de>
14420 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
14421 vec_construct cost.
14423 2016-07-14 Jakub Jelinek <jakub@redhat.com>
14425 PR tree-optimization/71872
14426 * tree-data-ref.c (get_references_in_stmt): Ignore references
14427 with is_gimple_constant get_base_address.
14429 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14431 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
14432 (TARGET_HAVE_LDACQD): New macro.
14433 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
14434 than TARGET_HAVE_LDACQ.
14435 (arm_load_acquire_exclusivedi): Likewise.
14436 (arm_store_release_exclusivedi): Likewise.
14438 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14440 PR rtl-optimization/71878
14441 * lra-constraints.c (match_reload): Pass information about other
14442 output operands. Create new unique register value if matching input
14443 operand shares same register value as output operand being considered.
14444 (curr_insn_transform): Record output operands already processed.
14446 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14449 PR tree-optimization/70923
14450 * tree-vect-patterns.c: Include mult-synthesis.h.
14451 (target_supports_mult_synth_alg): New function.
14452 (synth_lshift_by_additions): Likewise.
14453 (apply_binop_and_append_stmt): Likewise.
14454 (vect_synth_mult_by_constant): Likewise.
14455 (target_has_vecop_for_code): Likewise.
14456 (vect_recog_mult_pattern): Use above functions to synthesize vector
14457 multiplication by integer constants.
14459 2016-07-14 Alan Modra <amodra@gmail.com>
14461 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
14462 gpr alternatives. Correct '*' placement on Y,r alternative.
14463 Add '*' on operand 1 of r,r alternative.
14465 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14467 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
14468 * expmed.h: ... Here.
14470 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
14472 * gimple.h (stmt_can_terminate_bb_p): New function.
14473 * tree-cfg.c (need_fake_edge_p): Rename to ...
14474 (stmt_can_terminate_bb_p): ... this; return true if stmt can
14475 throw external; handle const and pure calls.
14476 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
14478 2016-07-14 Richard Biener <rguenther@suse.de>
14480 PR tree-optimization/71866
14481 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
14482 (do_hoist_insertion): Avoid endless recursion when we
14483 didn't insert anything because we managed to simplify
14484 things down to a constant or SSA name.
14485 (fully_constant_expression): Re-write in terms of ...
14486 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
14487 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14488 vn_nary_build_or_lookup_1.
14489 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14490 (vn_nary_build_or_lookup): ... this which now wraps it.
14492 2016-07-14 Alan Modra <amodra@gmail.com>
14495 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14496 with p9_vector override before power9-dform override.
14498 2016-07-13 Andi Kleen <ak@linux.intel.com>
14500 * value-prof.c (gimple_value_profile_transformations): Don't run
14501 when auto_profile is on.
14503 2016-07-13 Andi Kleen <ak@linux.intel.com>
14505 * auto-profile.c (update_inlined_ind_target,
14506 afdo_indirect_call): Print information to dump file.
14508 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
14510 * genrecog.c (special_predicate_operand_p): New function.
14511 (predicate_name): Move function.
14512 (validate_pattern): Don't warn about missing mode for all
14513 define_special_predicate predicates.
14515 2016-07-13 Bin Cheng <bin.cheng@arm.com>
14517 * tree-vect-data-refs.c (vect_no_alias_p): New function.
14518 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14519 resolve alias checks which are known at compilation time.
14520 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14521 alias checks are resolved. Move dump info for too many runtime
14522 alias checks to here...
14523 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14525 2016-07-13 Richard Biener <rguenther@suse.de>
14527 PR tree-optimization/24574
14528 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14529 position and add shift, rotate, divison and modulo support
14531 (value_replacement): Pass in argument position to absorbing_element_p.
14533 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
14536 * ipa-inline-transform.c (inline_call): Support
14537 instrumented thunks.
14539 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14541 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14542 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14544 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14545 Baseline. Make initial alternative TARGET_32BIT only.
14546 (udivsi3): Likewise.
14547 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14548 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14551 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14553 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14554 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14555 availability with TARGET_HAVE_MOVT.
14556 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14557 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14558 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14560 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14561 extra instruction if MOVW is available. Use a cost variable
14562 incremented by COSTS_N_INSNS (1) when the condition match rather than
14563 returning an arithmetic expression based on COSTS_N_INSNS. Make
14564 constant with bottom half word zero cost 2 instruction if MOVW is
14566 * config/arm/arm.md (define_attr "arch"): Add v8mb.
14567 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14568 target is ARMv8-M Baseline.
14569 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14570 (arm_movtas_ze): Likewise.
14571 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14572 alternative for constants satisfying j constraint.
14573 (thumb1_movsi_insn): Likewise.
14574 (movsi splitter for K alternative): Tighten condition to not trigger
14575 if movt is available and j constraint is satisfied.
14576 (Pe immediate splitter): Likewise.
14577 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14578 constant fitting in an halfword to use MOVW.
14579 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14582 2016-07-13 Richard Biener <rguenther@suse.de>
14584 PR middle-end/71104
14585 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14586 gimplifying the LHS. Make sure to gimplify a returning twice
14587 call LHS without using SSA names.
14589 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14591 * tree-data-ref.c (find_data_references_in_stmt): Remove
14592 unnecessary call to vec::release.
14593 (graphite_find_data_references_in_stmt): Likewise.
14594 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14595 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14597 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14599 * cfgexpand.c (expand_used_vars): Make the type of a local
14601 * genmatch.c (lower_for): Likewise.
14602 * haifa-sched.c (haifa_sched_init): Likewise.
14603 (add_to_speculative_block): Likewise.
14604 (create_check_block_twin): Likewise.
14605 * predict.c (handle_missing_profiles): Likewise.
14606 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14607 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14608 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14610 (maybe_lower_iteration_bound): Likewise.
14611 * tree-ssa-sccvn.c (DFS): Likewise.
14612 * tree-stdarg.c (reachable_at_most_once): Likewise.
14613 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14614 (vectorizable_store): Likewise.
14616 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14618 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14619 (sccvn_dom_walker): make cond_stack an auto_vec.
14621 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14623 * ree.c (struct ext_state): Make type of members auto_vec.
14624 (find_and_remove_re): Adjust.
14626 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14628 * cfgexpand.c (struct stack_vars_data): Make type of fields
14630 (expand_used_vars): Adjust.
14632 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14634 * ipa.c (record_cdtor_fn): Adjust.
14635 (build_cdtor_fns): Likewise.
14636 (ipa_cdtor_merge): Make static_ctors and static_dtors local
14639 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14641 * genextract.c (struct accum_extract): Add constructor and make
14643 (gen_insn): Adjust.
14645 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14647 * tree.c (struct free_lang_data_d): Add constructor and change
14648 types of members to ones that automatically manage resources.
14649 (fld_worklist_push): Adjust.
14650 (find_decls_types): Likewise.
14651 (find_decls_types_in_eh_region): Likewise.
14652 (free_lang_data_in_cgraph): Stop manually creating and
14653 destroying members of free_lang_data_d.
14655 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
14657 PR rtl-optimization/68961
14658 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14659 peephole variant. Use sse_reg_operand predicates.
14661 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
14663 * config/i386/predicates.md (x86_64_immediate_operand)
14664 <case CONST_INT>: Remove unneeded truncation to DImode.
14665 <case CONST>: Ditto.
14666 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14668 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14671 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14672 The xxperm and xxpermr instructions require that the 2nd input
14673 operand overlap with the output operand, and not the 1st.
14674 (altivec_vperm_v8hiv16qi): Likewise.
14675 (altivec_vperm_<mode>_uns_internal): Likewise.
14676 (altivec_vpermr_<mode>_internal): Likewise.
14677 (vperm_v8hiv4si): Likewise.
14678 (vperm_v16qiv8hi): Likewise.
14680 2016-07-12 Nathan Sidwell <nathan@acm.org>
14682 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14683 when -mno-pic-data-is-text-relative is in effect, by default.
14684 * doc/invoke.texi (mpic-data-is-text-relative): Document new
14685 behavior and clarify.
14687 2016-07-12 Martin Liska <mliska@suse.cz>
14689 * params.def: Add avg-loop niter.
14690 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14691 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14692 * doc/invoke.texi: Document the new parameter.
14694 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14696 PR middle-end/71700
14697 * expr.c (store_constructor): Mask sign-extended bits when widening
14698 sub-word constructor element at the start of a word.
14700 2016-07-12 Martin Liska <mliska@suse.cz>
14702 * Makefile.in: Append rule for params-options.h.
14703 * params-options.h: New file.
14705 2016-07-12 Martin Liska <mliska@suse.cz>
14707 * ira-build.c (mark_loops_for_removal): Properly iterate
14710 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
14711 Richard Biener <rguenther@suse.de>
14713 PR tree-optimization/23286
14714 PR tree-optimization/70159
14715 * doc/invoke.texi: Document -fcode-hoisting.
14716 * common.opt (fcode-hoisting): New flag.
14717 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14718 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14719 (do_regular_insertion): Rename to ...
14720 (do_pre_regular_insertion): ... this and amend general comments
14721 on insertion strathegy.
14722 (do_partial_partial_insertion): Rename to ...
14723 (do_pre_partial_partial_insertion): ... this.
14724 (do_hoist_insertion): New function.
14725 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14726 and call do_hoist_insertion properly.
14728 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14729 (pass_pre::execute): Register hoist_insert stats.
14731 2016-07-12 Jakub Jelinek <jakub@redhat.com>
14733 PR middle-end/71716
14734 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14735 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14736 is different from mode's bitsize. Small cleanup.
14738 2016-07-12 Richard Biener <rguenther@suse.de>
14740 PR rtl-optimization/68961
14741 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14742 to simplify to a non-constant.
14744 2016-07-11 Jakub Jelinek <jakub@redhat.com>
14746 PR middle-end/71758
14747 * omp-low.c (expand_omp_target): Gimplify device.
14749 PR tree-optimization/71823
14750 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14751 to get vec_oprnds2 from op2.
14753 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
14755 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14756 Hoist common subexpressions.
14757 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14759 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
14762 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14763 prevent generation of 'stxsiwx' on pre Power8 hardware.
14765 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14767 * input.c: Include cpplib.h.
14768 (selftest::temp_source_file): New class.
14769 (selftest::temp_source_file::temp_source_file): New ctor.
14770 (selftest::temp_source_file::~temp_source_file): New dtor.
14771 (selftest::should_have_column_data_p): New function.
14772 (selftest::test_should_have_column_data_p): New function.
14773 (selftest::temp_line_table): New class.
14774 (selftest::temp_line_table::temp_line_table): New ctor.
14775 (selftest::temp_line_table::~temp_line_table): New dtor.
14776 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14777 it to create a temp_line_table.
14778 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14779 locations that are known to have column data.
14780 (selftest::line_table_case): New struct.
14781 (selftest::test_reading_source_line): Move tempfile handling
14782 to class temp_source_file.
14783 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14784 (selftest::assert_token_loc_eq): New function.
14785 (ASSERT_TOKEN_LOC_EQ): New macro.
14786 (selftest::test_lexer): New function.
14787 (selftest::boundary_locations): New array.
14788 (selftest::input_c_tests): Call test_should_have_column_data_p.
14789 Loop over a test matrix of interesting values of location and
14790 default_range_bits, calling test_lexer on each case in the matrix.
14791 Move call to test_accessing_ordinary_linemaps into the matrix.
14792 * selftest.h (ASSERT_EQ): Reimplement in terms of...
14793 (ASSERT_EQ_AT): New macro.
14795 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
14798 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14799 Don't convert TImode in debug insn.
14801 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14803 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
14804 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
14805 (tree_type_common::lang_flag_7): New.
14806 (tree_type_common::spare): Reduce size.
14807 * tree.h (TYPE_ALIGN_OK): Remove.
14808 (TYPE_LANG_FLAG_7): New.
14809 (get_inner_reference): Adjust header.
14810 * print-tree.c (print_node): Adjust.
14811 * expr.c (get_inner_reference): Remove parameter keep_aligning.
14812 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
14813 calls to get_inner_reference.
14814 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
14815 handling of TYPE_ALIGN_OK.
14816 * builtins.c (get_object_alignment_2): Adjust call to
14817 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
14818 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
14820 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
14821 * cfgexpand.c (expand_debug_expr): Likewise.
14822 * dbxout.c (dbxout_expand_expr): Likewise.
14823 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
14824 loc_list_from_tree, fortran_common): Likewise.
14825 * fold-const.c (optimize_bit_field_compare,
14826 decode_field_reference, fold_unary_loc, fold_comparison,
14827 split_address_to_core_and_offset): Likewise.
14828 * gimple-laddress.c (execute): Likewise.
14829 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
14830 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
14831 * hsa-gen.c (gen_hsa_addr): Likewise.
14832 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
14833 * tsan.c (instrument_expr): Likewise.
14834 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
14835 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
14836 * tree-affine.c (tree_to_aff_combination,
14837 get_inner_reference_aff): Adjust calls to get_inner_reference.
14838 * tree-data-ref.c (split_constant_offset_1,
14839 dr_analyze_innermost): Likewise.
14840 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
14841 * tree-sra.c (ipa_sra_check_caller): Likewise.
14842 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
14843 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
14844 bswap_replace): Likewise.
14845 * tree-vect-data-refs.c (vect_check_gather,
14846 vect_analyze_data_refs): Likewise.
14847 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
14848 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
14851 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14853 * Makefile.in (selftest-valgrind): New phony target.
14854 * function-tests.c (selftest::build_cfg): Delete pass instances
14855 created by the test.
14856 (selftest::convert_to_ssa): Likewise.
14857 (selftest::test_expansion_to_rtl): Likewise.
14858 * tree-cfg.c (selftest::test_linear_chain): Release dominator
14860 (selftest::test_diamond): Likewise.
14862 2016-07-11 Richard Biener <rguenther@suse.de>
14864 PR tree-optimization/71816
14865 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
14866 than replacing all of its operands.
14868 2016-07-11 Alan Modra <amodra@gmail.com>
14870 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
14871 (ctr<mode>): Add unspec.
14872 (ctr<mode>_internal*): Likewise.
14874 2016-07-08 James Bowman <james.bowman@ftdichip.com>
14876 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
14877 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
14879 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
14881 PR rtl-optimization/71621
14882 * lra-constraints.c (process_alt_operands): Check combination of
14883 reg class and mode.
14885 2016-07-08 Jason Merrill <jason@redhat.com>
14886 Richard Biener <rguenther@suse.de>
14888 P0145: Refining Expression Order for C++.
14889 * gimplify.c (initial_rhs_predicate_for): New.
14890 (gimplfy_modify_expr): Gimplify RHS before LHS.
14892 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14895 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14896 Allow standard error handling to take over when a wrong number
14897 of arguments is presented to __builtin_vec_ld () or
14898 __builtin_vec_st ().
14900 2016-07-08 Jiong Wang <jiong.wang@arm.com>
14902 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
14907 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
14908 __builtin_aarch64_fmaxv2sf.
14909 (vmaxnmq_f32): Likewise.
14910 (vmaxnmq_f64): Likewise.
14911 (vminnm_f32): Likewise.
14912 (vminnmq_f32): Likewise.
14913 (vminnmq_f64): Likewise.
14915 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14918 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
14919 enable -mfloat128-hardware by default.
14920 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
14921 that IEEE 128-bit hardware support needs.
14922 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14923 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
14924 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
14925 floating point requires.
14926 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14927 -mfloat128 and -mfloat128-hardware changes.
14929 2016-07-08 Alan Hayward <alan.hayward@arm.com>
14931 PR tree-optimization/71667
14932 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
14934 2016-07-08 Martin Liska <mliska@suse.cz>
14936 PR middle-end/71606
14937 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
14938 folding produces SAVE_EXPRs, thus return false for the type.
14940 2016-07-07 Martin Liska <mliska@suse.cz>
14942 * file-find.c (remove_prefix): New function.
14943 * file-find.h (remove_prefix): Declare the function.
14944 * gcc-ar.c (main): Skip a folder of the wrapper if
14945 a wrapped binary would point to the same file.
14947 2016-07-07 Jan Hubicka <jh@suse.cz>
14949 * tree-scalar-evolution.c (iv_can_overflow_p): export.
14950 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
14951 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
14953 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
14956 * ipa-inline-analysis.c (compute_inline_parameters): Set
14957 local.can_change_signature to false for intrumentation
14960 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14962 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
14963 with TARGET_HAVE_MOVT.
14964 (TARGET_HAVE_MOVT): Define.
14965 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
14966 availability with TARGET_HAVE_MOVT.
14967 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
14969 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
14971 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
14972 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
14973 * config/arm/constraints.md (define_constraint "j"): Use
14974 TARGET_HAVE_MOVT to check MOVT availability.
14976 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14978 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
14980 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14982 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
14983 (armv8-m.main): Likewise.
14984 (armv8-m.main+dsp): Likewise.
14985 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
14986 (FL_FOR_ARCH8M_MAIN): Likewise.
14987 * config/arm/arm-tables.opt: Regenerate.
14988 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
14989 armv8-m.main+dsp to BE8_LINK_SPEC.
14990 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
14991 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
14992 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
14993 Baseline and Mainline.
14994 (arm_option_override_internal): Also disable arm_restrict_it when
14995 !arm_arch_notm. Update comment for -munaligned-access to also cover
14997 (arm_file_start): Increase buffer size for printing architecture name.
14998 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
14999 and armv8-m.main+dsp.
15000 (mno-unaligned-access): Clarify that this is disabled by default for
15001 ARMv8-M Baseline architectures as well.
15003 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15005 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
15006 decide whether to prevent some libgcc routines being included for some
15007 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
15008 link between this condition and the one in
15009 libgcc/config/arm/lib1func.S.
15011 2016-07-07 Richard Biener <rguenther@suse.de>
15013 * tree-ssa-pre.c: Include alias.h.
15014 (compute_avail): If we have multiple VN_REFERENCEs with the
15015 same hashtable entry adjust that to make it a valid replacement
15016 for all of them with respect to alignment and aliasing
15017 when doing insertion.
15018 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
15019 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
15021 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
15025 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
15026 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
15029 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15031 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
15032 (adjust_mems): Adjust.
15033 (adjust_insn): Likewise.
15034 (prepare_call_arguments): Likewise.
15036 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15038 * gcse.c (struct ls_expr): Make stores field a vector.
15039 (ldst_entry): Adjust.
15040 (free_ldst_entry): Likewise.
15041 (print_ldst_list): Likewise.
15042 (compute_ld_motion_mems): Likewise.
15043 (update_ld_motion_stores): Likewise.
15045 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15047 * gcse.c (struct ls_expr): Remove loads field.
15048 (ldst_entry): Adjust.
15049 (free_ldst_entry): Likewise.
15050 (print_ldst_list): Likewise.
15051 (compute_ld_motion_mems): Likewise.
15053 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15055 * store-motion.c (struct st_expr): Make antic_stores a vector.
15056 (st_expr_entry): Adjust.
15057 (free_st_expr_entry): Likewise.
15058 (print_store_motion_mems): Likewise.
15059 (find_moveable_store): Likewise.
15060 (compute_store_table): Likewise.
15061 (remove_reachable_equiv_notes): Likewise.
15062 (replace_store_insn): Likewise.
15063 (build_store_vectors): Likewise.
15065 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15067 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
15068 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
15070 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
15072 PR tree-optimization/71518
15073 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
15074 misalign also for outer loops with negative step.
15076 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
15078 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
15079 (cortex_a53_shift): Add mov_shift.
15080 (cortex_a53_shift_reg): Add new reservation for register shifts.
15081 (cortex_a53_alu): Remove bfm.
15082 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
15083 (cortex_a53_alu_extr): Add new reservation for EXTR.
15084 (bypasses): Improve bypass modelling.
15086 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15089 * config/avr/avr.c (avr_asm_select_section): Strip off
15090 SECTION_DECLARED from flags when calling get_section.
15092 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15094 * tree-vectorizer.h (vect_memory_access_type): Add
15095 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
15096 * tree-vect-stmts.c (compare_step_with_zero): New function.
15097 (perm_mask_for_reverse): Move further up file.
15098 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
15100 (get_negative_load_store_type): New function.
15101 (get_load_store_type): Call it. Add an ncopies argument.
15102 (vectorizable_mask_load_store): Update call accordingly and
15103 remove tests for negative steps.
15104 (vectorizable_store, vectorizable_load): Likewise. Handle new
15105 memory_access_types.
15107 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15109 * tree-vectorizer.h (vect_memory_access_type): New enum.
15110 (_stmt_vec_info): Add a memory_access_type field.
15111 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
15112 (vect_model_store_cost): Take an access type instead of a boolean.
15113 (vect_model_load_cost): Likewise.
15114 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
15115 vect_model_store_cost and vect_model_load_cost.
15116 * tree-vect-stmts.c (vec_load_store_type): New enum.
15117 (vect_model_store_cost): Take an access type instead of a
15118 store_lanes_p boolean. Simplify tests.
15119 (vect_model_load_cost): Likewise, but for load_lanes_p.
15120 (get_group_load_store_type, get_load_store_type): New functions.
15121 (vectorizable_store): Use get_load_store_type. Record the access
15122 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
15123 (vectorizable_load): Likewise.
15124 (vectorizable_mask_load_store): Likewise. Replace is_store
15125 variable with vls_type.
15127 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15129 * tree-vectorizer.h (vect_grouped_load_supported): Add a
15130 single_element_p parameter.
15131 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
15132 Check the PR65518 case here rather than in vectorizable_load.
15133 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
15134 * tree-vect-stmts.c (vectorizable_load): Likewise.
15136 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15138 * tree-vectorizer.h (gather_scatter_info): New structure.
15139 (vect_check_gather_scatter): Return a bool rather than a decl.
15140 Replace return-by-pointer arguments with a single
15141 gather_scatter_info *.
15142 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
15143 (vect_analyze_data_refs): Update call accordingly.
15144 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15145 (vectorizable_mask_load_store): Likewise. Also record the
15146 offset dt and vectype in the gather_scatter_info.
15147 (vectorizable_store): Likewise.
15148 (vectorizable_load): Likewise.
15150 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15152 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
15153 strided groups, use the cost of N scalar accesses instead
15154 of ncopies vector accesses.
15155 (vect_model_load_cost): Likewise.
15157 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15159 * tree-vect-stmts.c (vect_cost_group_size): Delete.
15160 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
15161 variable to indicate when once-per-group costs are being used.
15162 (vect_model_load_cost): Likewise. Fix comment and misindented code.
15164 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15166 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
15167 peeling-for-gaps condition.
15169 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15171 * config/s390/s390.c (s390_expand_vec_init): Force initializer
15172 element to register if it doesn't match general_operand.
15174 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
15175 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15177 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
15179 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
15180 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
15181 (SIGNBIT): New mode iterator.
15182 (Fsignbit): New mode attribute.
15183 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
15184 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
15185 when direct moves are available.
15186 (signbit<mode>2_dm): New define_insn_and_split).
15187 (signbit<mode>2_dm2): New define_insn.
15189 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15191 PR rtl-optimization/71594
15192 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
15193 into subregs of appropriate mode before trying to emit a conditional
15196 2016-07-05 Jan Hubicka <jh@suse.cz>
15198 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
15199 (simple_iv): Use it.
15201 2016-07-05 Jan Hubicka <jh@suse.cz>
15203 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
15205 2016-07-05 Jiong Wang <jiong.wang@arm.com>
15207 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
15210 2016-07-05 Jan Hubicka <jh@suse.cz>
15212 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
15215 2016-07-05 Richard Biener <rguenther@suse.de>
15217 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
15218 Handle empty else block.
15219 (is_feasible_trace): Likewise.
15220 (split_paths): Likewise.
15222 2016-07-05 Richard Biener <rguenther@suse.de>
15224 * tree-loop-distribution.c (distribute_loop): Fix issue with
15225 the cost model loop.
15227 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
15229 * config/arm/neon-testgen.ml: Delete.
15230 * config/arm/neon.ml: Delete.
15232 2016-07-04 Jakub Jelinek <jakub@redhat.com>
15235 * tree.c (attribute_value_equal): Use get_attribute_name instead of
15236 directly using TREE_PURPOSE.
15238 2016-07-04 Jiong Wang <jiong.wang@arm.com>
15240 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
15241 * config/aarch64/aarch64_neon.h: Likewise.
15242 * config/aarch64/arm_neon.h: Likewise.
15243 * config/aarch64/atomics.md: Likewise.
15244 * config/aarch64/aarch64-simd-builtins.def: Likewise.
15245 * doc/invoke.texi: Likewise.
15247 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15249 * config/s390/s390.md: Add "z13" cpu_facility.
15250 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
15251 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
15252 condition" type instructions.
15254 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15255 Jeff Law <law@redhat.com>
15257 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
15258 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
15260 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
15262 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
15263 permutation for TARGET_AVX512F.
15264 (ix86_expand_vec_one_operand_perm_avx512): New function.
15265 (expand_vec_perm_1): Invoke introduced function.
15266 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15267 it may be not valid after vectorization.
15269 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15272 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
15273 typo in comment. Only force to memory if it is a weak
15274 external reference.
15276 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
15277 Jiong Wang <jiong.wang@arm.com>
15279 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
15280 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
15281 (AARCH64_FL_F16): New.
15282 (AARCH64_FL_FOR_ARCH8_2): New.
15283 (AARCH64_ISA_8_2): New.
15284 (AARCH64_ISA_F16): New.
15285 (TARGET_FP_F16INST): New.
15286 (TARGET_SIMD_F16INST): New.
15287 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
15288 ("fp"): Disabling "fp" also disables "fp16".
15289 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
15290 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
15291 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
15292 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
15294 2016-07-04 Jan Beulich <jbeulich@suse.com>
15296 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
15298 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15301 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
15302 the insns, use an insn form that does not adjust the offset on
15303 little endian systems.
15305 2016-07-01 Jan Beulich <jbeulich@suse.com>
15307 * varasm.c (get_variable_section): Validate initializer in
15308 named .bss-like sections.
15310 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15312 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
15313 Exchange the order of the second and third operands in the vpermr
15314 instruction tmeplate.
15316 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
15319 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
15320 Disallow TDmode values.
15322 2016-07-01 Alan Modra <amodra@gmail.com>
15324 PR rtl-optimization/71709
15325 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
15326 being set, not referenced.
15328 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15330 PR tree-optimization/70729
15331 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
15332 of loop since it can be not valid after transformation.
15334 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15336 * config/arm/arm.c (thumb_reload_in_hi): Delete.
15337 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
15339 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
15341 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
15344 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15347 * config/rs6000/constraints.md (wY constraint): New constraint to
15348 match the requirements for the LXSD and STXSD instructions.
15349 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
15350 predicate to match the requirements for the LXSD and STXSD
15352 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
15353 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
15354 to make sure that the bottom 2 bits of offset are 0, the address
15355 form is offsettable, and no updating is done in the address mode.
15356 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
15357 (movdi_internal32): Likewise
15358 (movdi_internal64): Likewise.
15360 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15362 PR tree-optimization/71707
15363 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
15364 strinfo even for ADDR_EXPR ptr.
15366 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15368 * config/rs6000/altivec.md (darn_32): Change the condition to
15369 TARGET_P9_MISC instead of TARGET_MODULO.
15370 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
15371 condition expression.
15372 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
15373 condition expression.
15374 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
15375 (DFP_TEST): New code iterator.
15376 (dfptstsfi_<code>_mode>): New define_expand.
15377 (*dfp_sgnfcnc_<mode>): New define_insn.
15378 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
15379 definition next to BU_P9_MISC_1 definition and change the MASK
15380 value to RS6000_BTM_P9_MISC.
15381 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
15382 (BU_P9_64BIT_MISC_0): Likewise.
15383 (BU_P9_DFP_MISC_0): New macro definition.
15384 (BU_P9_DFP_MISC_1): New macro definition.
15385 (BU_P9_DFP_MISC_2): New macro definition.
15386 (BU_P9_DFP_OVERLOAD_1): New macro definition.
15387 (BU_P9_DFP_OVERLOAD_2): New macro definition.
15388 (BU_P9_DFP_OVERLOAD_3): New macro definition.
15389 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
15390 (TSTSFI_LT_TD): Likewise.
15391 (TSTSFI_EQ_DD): Likewise.
15392 (TSTSFI_EQ_TD): Likewise.
15393 (TSTSFI_GT_DD): Likewise.
15394 (TSTSFI_GT_TD): Likewise.
15395 (TSTSFI_OV_DD): Likewise.
15396 (TSTSFI_OV_TD): Likewise.
15397 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
15398 (TSTSFI_LT_DD): Likewise.
15399 (TSTSFI_LT_TD): Likewise.
15400 (TSTSFI_EQ): Likewise.
15401 (TSTSFI_EQ_DD): Likewise.
15402 (TSTSFI_EQ_TD): Likewise.
15403 (TSTSFI_GT): Likewise.
15404 (TSTSFI_GT_DD): Likewise.
15405 (TSTSFI_GT_TD): Likewise.
15406 (TSTSFI_OV): Likewise.
15407 (TSTSFI_OV_DD): Likewise.
15408 (TSTSFI_OV_TD): Likewise.
15409 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15410 overloaded test significance functions.
15411 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15412 OPTION_MASK_P9_MISC into the representation of this mask.
15413 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
15415 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
15416 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
15418 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
15419 argument is a 6-bit unsigned literal value if the icode argument
15420 represents a DFP test significance built-in call.
15421 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
15422 flag used independently and in combination with the
15423 RS6000_BTM_64BIT flag.
15424 (rs6000_opt_masks): Add entry for power9-misc command-line option.
15425 (rs6000_builtin_mask_names): Add entry for power9-misc
15426 command-line option.
15427 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
15428 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
15429 RS6000_BTM_P9_MISC macros.
15430 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
15431 option and change the description of the -mpower9-vector option to
15432 enable only vector instructions, removing its erroneously claimed
15433 support for scalar instructions.
15434 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15435 the ISA 3.0 digital floating point test significance built-in
15438 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
15440 * config/aarch64/aarch64.c (cortexa35_tunings):
15441 Enable AES fusion. Use cortexa57_branch_cost.
15442 (cortexa53_tunings): Use cortexa57_branch_cost.
15443 (cortexa72_tunings): Use cortexa57_branch_cost.
15444 Use AUTOPREFETCHER_WEAK.
15445 (cortexa73_tunings): Use cortexa57_branch_cost.
15447 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15448 James Greenhalgh <james.greenhalgh@arm.com>
15450 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
15451 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
15452 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
15453 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
15454 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
15455 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
15456 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
15457 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
15458 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
15459 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
15460 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
15461 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
15462 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
15465 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
15466 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15468 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
15470 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
15472 2016-06-30 David Malcolm <dmalcolm@redhat.com>
15475 * gcc.c (driver::build_option_suggestions): Pass "option" to
15476 add_misspelling_candidates.
15477 * opts-common.c (add_misspelling_candidates): Add "option" param;
15478 use it to avoid adding negated forms for options marked with
15480 * opts.h (add_misspelling_candidates): Add "option" param.
15482 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15484 PR middle-end/71693
15485 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15486 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15487 first when permuting bitwise operation with rotate. Cast
15488 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15490 2016-06-29 David Malcolm <dmalcolm@redhat.com>
15492 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15493 for misspelled param names.
15494 * params.c: Include spellcheck.h.
15495 (find_param_fuzzy): New function.
15496 * params.h (find_param_fuzzy): New prototype.
15497 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15498 * spellcheck.h (struct edit_distance_traits<const char *>):
15501 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
15503 * config/rs6000/predicates.md (const_0_to_7_operand): New
15504 predicate, recognize 0..7.
15505 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15506 support for doing extracts from V16QImode, V8HImode, V4SImode
15508 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15509 vector extract support.
15510 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15511 for ISA 3.0 vector extract.
15512 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15513 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15514 extracts of a constant element number from small integer vectors
15515 on 64-bit ISA 3.0 systems.
15516 (vsx_extract_<mode>_di): Likewise.
15517 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15518 say when we can do ISA 3.0 vector extracts.
15519 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15520 registers, using the stxsiwx instruction.
15522 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
15524 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15525 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15526 qdf24xx_regmove_cost, qdf24xx_tunings): New.
15527 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15528 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15529 * config/arm/arm.c (arm_qdf24xx_tune): New.
15531 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
15533 * config/aarch64/aarch64.c (cortexa53_tunings):
15534 Increase loop alignment to 8. Set function alignment to 16.
15535 (cortexa35_tunings): Likewise.
15536 (cortexa57_tunings): Increase loop alignment to 8.
15537 (cortexa72_tunings): Likewise.
15538 (cortexa73_tunings): Likewise.
15540 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
15542 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15543 for arm_fp16_ok and arm_fp16_hw.
15544 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15545 arm_fp16_alternative.
15547 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
15549 PR tree-optimization/71655
15550 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15551 types when swapping operands.
15553 2016-06-29 Martin Liska <mliska@suse.cz>
15555 PR middle-end/71585
15556 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15557 * ipa-inline-transform.c (inline_call): Remove unnecessary call
15558 of build_optimization_node.
15560 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15562 PR tree-optimization/70729
15563 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15564 independent in loops having positive safelen value.
15565 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15566 it may be not valid after vectorization.
15568 2016-06-29 Jakub Jelinek <jakub@redhat.com>
15570 PR tree-optimization/71625
15571 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
15572 is sorted by ascending list->offset. If PTR is non-NULL and there is
15573 previous strinfo, call get_stridx_plus_constant.
15574 (get_stridx): Pass exp as second argument to get_addr_stridx.
15575 (addr_stridxptr): Add missing list = list->next, so that there can be
15576 more than one entries in the list. Bump limit from 16 to 32. Ensure
15577 the list is sorted by ascending list->offset.
15578 (get_stridx_plus_constant): Adjust so that it can be also called with
15579 ADDR_EXPR instead of SSA_NAME as PTR.
15580 (handle_char_store): Pass NULL_TREE as second argument to
15583 2016-06-29 Richard Biener <rguenther@suse.de>
15585 PR rtl-optimization/68961
15586 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15588 2016-06-29 Richard Biener <rguenther@suse.de>
15590 PR middle-end/71002
15591 * alias.c (component_uses_parent_alias_set_from): Handle
15592 type punning through union accesses by using the union alias set.
15593 * gimple.c (gimple_get_alias_set): Remove union type punning case.
15595 2016-07-29 Richard Biener <rguenther@suse.de>
15597 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15598 precision not matching mode precision.
15600 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
15602 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15603 pa_output_arg_descriptor.
15604 (call_val_symref_64bit_post_reload): Likewise.
15605 (call_val_powf_64bit_post_reload): Likewise.
15606 (sibcall_internal_symref_64bit): Likewise.
15607 (sibcall_value_internal_symref_64bit): Likewise.
15609 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15611 PR middle-end/71626
15612 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15613 a constant, force its SUBREG_REG into memory or register instead
15616 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15619 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15620 * doc/invoke.texi (AVR Options): Document it.
15622 2016-06-28 Walter Lee <walt@tilera.com>
15624 * config/tilegx/linux.h: Do not include arch/icache.h
15625 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15626 * config/tilepro/linux.h: Do not include arch/icache.h
15627 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15629 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
15631 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15632 for big-endian BIT_FIELD_REF.
15634 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
15636 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15637 ('size' attribute): Add '128'.
15639 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15640 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15641 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15642 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15643 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15644 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15645 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15646 *trunc<mode>df2_odd): Set size attribute to '128'.
15647 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15648 * config/rs6000/power6.md (power6-fp): Include dfp type.
15649 * config/rs6000/power7.md (power7-fp): Likewise.
15650 * config/rs6000/power8.md (power8-fp): Likewise.
15651 * config/rs6000/power9.md: New file.
15652 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15653 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15654 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15656 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15657 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15658 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15659 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15660 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15661 dfp_dscri_<mode>): Change type attribute to dfp.
15662 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15663 attribute to vecsimple.
15664 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15665 and prefetch streams.
15666 (rs6000_option_override_internal): Remove temporary code setting
15667 tuning to power8. Don't set rs6000_sched_groups for power9.
15668 (last_scheduled_insn): Change to rtx_insn *.
15669 (divide_cnt, vec_load_pendulum): New variables.
15670 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15671 (rs6000_issue_rate): Set issue rate for Power9.
15672 (is_power9_pairable_vec_type): New.
15673 (power9_sched_reorder2): New.
15674 (rs6000_sched_reorder2): Call new function for Power9 specific
15676 (insn_must_be_first_in_group): Remove Power9.
15677 (insn_must_be_last_in_group): Likewise.
15678 (force_new_group): Likewise.
15679 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15680 Initialize divide_cnt/vec_load_pendulum.
15681 (_rs6000_sched_context, rs6000_init_sched_context,
15682 rs6000_set_sched_context): Handle context save/restore of new
15685 2016-06-28 Richard Biener <rguenther@suse.de>
15687 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15688 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15689 COMPONENT_REF operand.
15690 (nonoverlapping_component_refs_p): Likewise.
15691 * stor-layout.c (start_bitfield_representative): Mark
15692 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15694 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15696 * Makefile.in: Don't cat ../stage_current if it does not exist.
15698 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15699 last argument is a bit-field.
15701 PR rtl-optimization/71673
15702 * internal-fn.c (expand_arith_overflow_result_store): Use
15703 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15704 expand_simple_binop.
15706 PR middle-end/66867
15707 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15708 expand_ifn_atomic_compare_exchange): New functions.
15709 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15710 * tree.h (build_call_expr_internal_loc): Rename to ...
15711 (build_call_expr_internal_loc_array): ... this. Fix up type of
15713 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15714 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15715 ATOMIC_COMPARE_EXCHANGE result.
15716 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15717 * gimple-fold.h (optimize_atomic_compare_exchange_p,
15718 fold_builtin_atomic_compare_exchange): New prototypes.
15719 * gimple-fold.c (optimize_atomic_compare_exchange_p,
15720 fold_builtin_atomic_compare_exchange): New functions..
15721 * tree-ssa.c (execute_update_addresses_taken): If
15722 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15723 of call when finding addressable vars, and if such var becomes
15724 non-addressable, call fold_builtin_atomic_compare_exchange.
15726 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
15729 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15730 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15732 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
15734 * config/rs6000/rs6000.md ('type' attribute): Add
15735 veclogical,veccmpfx,vecexts,vecmove insn types.
15736 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15737 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15738 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15739 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15740 *nabs<mode>2_hw): Change type to vecmove.
15741 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15742 *boolcc<mode>3_internal, *eqv<mode>3_internal,
15743 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15744 *ieee_128bit_vsx_abs<mode>2_internal,
15745 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15746 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15747 *ieee128_mtvsrd_32bit): Change type to veclogical.
15748 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15749 *movdi_internal32, *movdi_internal64): Update insn types.
15750 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15751 vsx_extract_<mode>): Change type to veclogical.
15752 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15753 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15754 *vsx_sign_extend_si_v2di): Change type to vecexts.
15755 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15756 type to veclogical.
15757 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15758 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15759 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15760 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15761 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15762 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15763 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15764 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15765 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15766 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15767 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15768 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15769 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15770 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15771 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15772 (ppc7450-vecsimple): Add veclogical, vecmove.
15773 (ppc7450-veccmp): Add veccmpfx.
15774 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15776 (ppc8540_vector_compare): Add veccmpfx.
15777 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15778 * config/rs6000/cell.md (cell-fp): Add fpsimple.
15779 (cell-vecsimple): Add veclogical, vecmove.
15780 (cell-veccmp): Add veccmpfx.
15781 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15782 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15784 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15785 * config/rs6000/power4.md (power4-fp): Add fpsimple.
15786 (power4-vecsimple): Add veclogical, vecmove.
15787 (power4-veccmp): Add veccmpfx.
15788 * config/rs6000/power5.md (power5-fp): Add fpsimple.
15789 * config/rs6000/power6.md (power6-fp): Add fpsimple.
15790 (power6-vecsimple): Add veclogical, vecmove.
15791 (power6-veccmp): Add veccmpfx.
15792 * config/rs6000/power7.md (power7-fp): Add fpsimple.
15793 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
15794 * config/rs6000/power8.md (power8-fp): Add fpsimple.
15795 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
15796 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
15797 * config/rs6000/titan.md (titan_fp): Add fpsimple.
15798 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
15800 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
15802 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
15805 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15806 OPTION_MASK_P9_DFORM_VECTOR.
15807 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
15808 disable -mpower9-dform-vector when using reload.
15809 (quad_address_p): Remove 'gpr_p' argument and all associated code.
15810 New 'strict' argument. Update all callers. Add strict addressing
15812 (rs6000_legitimate_offset_address_p): Remove call to
15813 virtual_stack_registers_memory_p.
15814 (rs6000_legitimize_reload_address): Add quad address support.
15815 (rs6000_legitimate_address_p): Move call to quad_address_p above
15816 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
15817 to account for new strict usage.
15818 (rs6000_output_move_128bit): Adjust quad_address_p args to account
15819 for new strict usage.
15820 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
15822 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
15829 * config/i386/i386.c (ix86_spill_class): Disable condition to
15830 always return NO_REGS.
15832 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
15834 * predict.c: Include gimple-pretty-print.h
15835 (predicted_by_loop_heuristics_p): Check also
15836 PRED_LOOP_EXIT_WITH_RECURSION
15837 (predict_loops): Find self recursive calls and use special purpose
15838 predictors for them; dump log about decisions.
15839 (pass_profile::execute): Dump info about #of iterations.
15840 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
15841 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
15843 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
15845 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
15846 output_asm_insn calls and shorten long lines. Output .CALL
15847 argument descriptor using pa_output_arg_descriptor. Add various
15848 inline $$dyncall and other optimizations.
15849 (pa_attr_length_indirect_call): Adjust ordering and lengths.
15851 2016-06-25 Jakub Jelinek <jakub@redhat.com>
15853 PR tree-optimization/71643
15854 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
15857 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
15858 leak a bitmap if dep_bb is NULL.
15860 PR tree-optimization/71631
15861 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
15862 to rewrite_expr_tree even if negate_result, move new_lhs var
15863 declaration and initialization earlier, for powi_result set afterwards
15864 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
15865 if new_lhs != lhs, and don't shadow gsi var.
15867 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15869 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
15870 Add in_loop parameter.
15871 (predict_loops): Add loop guard heuristics.
15872 * predict.def (PRED_LOOP_GUARD): New heuristics.
15874 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15876 * predict.c: Include ipa-utils.h
15877 (tree_bb_level_prediction): Predict recursive calls.
15878 (tree_estimate_probability_bb): Skip inexpensive calls for call
15880 * predict.def (PRED_RECURSIVE_CALL): New.
15882 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15884 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
15885 (BU_FLOAT128_1): Likewise.
15887 (COPYSIGNQ): Likewise.
15888 (RS6000_BUILTIN_NANQ): Likewise.
15889 (RS6000_BUILTIN_NANSQ): Likewise.
15890 (RS6000_BUILTIN_INFQ): Likewise.
15891 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
15892 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
15893 (TARGET_FOLD_BUILTIN): New #define.
15894 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
15895 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
15896 (rs6000_fold_builtin): New target hook implementation, handling
15897 folding of 128-bit NaNs and infinities.
15898 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
15899 entries are filled in to avoid problems during bootstrap
15900 self-test; define builtins for 128-bit NaNs and infinities.
15901 (rs6000_opt_mask): Add entry for float128.
15902 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
15903 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
15904 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
15905 (const_str_type_node): New #define.
15906 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
15907 to a define_expand that dispatches to either copysign<mode>3_soft
15908 or copysign<mode>3_hard.
15909 (copysign<mode>3_hard): Rename from copysign<mode>3.
15910 (copysign<mode>3_soft): New define_insn.
15911 * doc/extend.texi: Document new builtins.
15913 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15915 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
15916 PRIu64 instead of lu.
15918 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
15921 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
15922 copy the type name.
15924 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15926 PR tree-optimization/71647
15927 * omp-low.c (lower_rec_input_clauses): Convert
15928 omp_clause_aligned_alignment (c) to size_type_node for the
15929 last argument of __builtin_assume_aligned.
15931 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
15933 * configure.ac (calling ___tls_get_addr via GOT): New
15934 assembler/linker check.
15935 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
15936 assembler and linker supports calling ___tls_get_addr via GOT.
15937 Otherise, defined to 0.
15938 * config.in: Regenerated.
15939 * configure: Likewise.
15940 * config/i386/constraints.md (Yb): New constraint.
15941 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
15942 (REG_CLASS_NAMES): Likewise.
15943 (REG_CLASS_CONTENTS): Likewise.
15944 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
15945 the b constraint with the Yb constraint. Call ___tls_get_addr
15946 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
15948 (*tls_local_dynamic_base_32_gnu): Likewise.
15949 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
15950 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
15951 (*tls_local_dynamic_base_64_<mode>): Likewise.
15953 2016-06-24 Martin Liska <mliska@suse.cz>
15955 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
15956 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
15958 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
15959 argument to true if the expected number of iterations is
15962 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
15964 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
15965 assemble for 32bit target.
15966 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
15967 and $ld_ix86_gld_32_opt to link for 32bit target.
15968 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
15969 * configure: Regenerate.
15971 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15973 * config/arm/arm.c (int_log2): Delete definition and prototype.
15974 (shift_op): Use exact_log2 instead of int_log2.
15975 (vfp3_const_double_for_fract_bits): Likewise.
15977 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15979 * internal-fn.c (expand_arith_set_overflow): New function.
15980 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
15982 (expand_arith_overflow_result_store): Likewise. Handle precision
15983 smaller than mode precision.
15984 * tree-vrp.c (extract_range_basic): For imag part, handle
15985 properly signed 1-bit precision result.
15986 * doc/extend.texi (__builtin_add_overflow): Document that last
15987 argument can't be pointer to enumerated or boolean type.
15988 (__builtin_add_overflow_p): Document that last argument can't
15989 have enumerated or boolean type.
15991 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15992 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15994 * config/rs6000/predicates.md (splat_input_operand): Rework.
15995 Don't allow constants, since the insns that use this predicate
15996 don't support constants. Constants are handled by other insns
15997 that are created via combine. During and after register
15998 allocation, only allow indexed or indirect addresses, and not
15999 general addresses. Only allow modes supported by the hardware.
16000 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
16001 comment. Move check for using VSPLTIS<x> to a common location,
16002 instead of doing it in two different places.
16004 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
16006 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16007 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
16008 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
16009 signature_CENTAUR_ebx.
16011 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
16015 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
16016 (as_ix86_gas_32_opt): This.
16017 (ld_ix86_tls_ldm_opt): Renamed to ...
16018 (ld_ix86_gld_32_opt): This.
16019 (R_386_TLS_LDM reloc): Updated.
16020 (R_386_GOT32X reloc): New assembler/linker check.
16021 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
16022 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
16024 * config.in: Regenerated.
16025 * configure: Likewise.
16026 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
16027 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
16028 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
16029 if ix86_force_load_from_GOT_p returns true.
16030 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
16031 ix86_force_load_from_GOT_p returns true.
16032 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
16033 the external function address via the GOT slot.
16034 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
16035 HAVE_AS_IX86_GOT32X before returning false.
16036 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
16037 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
16039 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
16041 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
16043 2016-06-23 Andi Kleen <ak@linux.intel.com>
16045 * Makefile.in: Regenerate.
16046 * doc/install.texi: Document autoprofiledbootstrap.
16048 2016-06-23 Andi Kleen <ak@linux.intel.com>
16050 * config/i386/gcc-auto-profile: New file.
16052 2016-06-23 Martin Liska <mliska@suse.cz>
16054 PR middle-end/71619
16055 * predict.c (predict_loops): Revert the hunk that was removed
16058 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
16060 * config.gcc: Add support for arm*-*-phoenix* targets.
16061 * config/arm/t-phoenix: New.
16062 * config/phoenix.h: New.
16064 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
16065 H.J. Lu <hongjiu.lu@intel.com>
16068 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
16069 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
16070 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
16071 ix86_force_load_from_GOT_p returns true.
16072 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
16073 ix86_force_load_from_GOT_p returns true.
16074 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
16075 ix86_force_load_from_GOT_p returns true.
16076 (ix86_expand_move): Load the external function address via the
16077 GOT slot if ix86_force_load_from_GOT_p returns true.
16078 * config/i386/predicates.md (x86_64_immediate_operand): Return
16079 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
16080 (x86_64_zext_immediate_operand): Ditto.
16082 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
16084 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
16086 2016-06-22 David Malcolm <dmalcolm@redhat.com>
16089 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
16090 * diagnostic.c (pedwarn_at_rich_loc): New function.
16091 * spellcheck.h (best_match::best_match): Add a
16092 "best_distance_so_far" optional parameter.
16093 (best_match::set_best_so_far): New method.
16094 (best_match::get_best_distance): New accessor.
16095 (best_match::get_best_candidate_length): New accessor.
16097 2016-06-22 Nick Clifton <nickc@redhat.com>
16099 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
16100 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
16101 modes are accepted as well.
16102 (ucompare_loc_descriptor): Likewise.
16103 (minmax_loc_descriptor): Likewise.
16104 (clz_loc_descriptor): Likewise.
16105 (popcount_loc_descriptor): Likewise.
16106 (bswap_loc_descriptor): Likewise.
16107 (rotate_loc_descriptor): Likewise.
16108 (mem_loc_descriptor): Likewise.
16109 (loc_descriptor): Likewise.
16111 2016-06-22 David Malcolm <dmalcolm@redhat.com>
16113 * common.opt (fdiagnostics-parseable-fixits): New option.
16114 * diagnostic.c: Include "selftest.h".
16115 (print_escaped_string): New function.
16116 (print_parseable_fixits): New function.
16117 (diagnostic_report_diagnostic): Call print_parseable_fixits.
16118 (selftest::assert_print_escaped_string): New function.
16119 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
16120 (selftest::test_print_escaped_string): New function.
16121 (selftest::test_print_parseable_fixits_none): New function.
16122 (selftest::test_print_parseable_fixits_insert): New function.
16123 (selftest::test_print_parseable_fixits_remove): New function.
16124 (selftest::test_print_parseable_fixits_replace): New function.
16125 (selftest::diagnostic_c_tests): New function.
16126 * diagnostic.h (struct diagnostic_context): Add field
16127 "parseable_fixits_p".
16128 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
16129 -fdiagnostics-parseable-fixits.
16130 (-fdiagnostics-parseable-fixits): New option.
16131 * opts.c (common_handle_option): Handle
16132 -fdiagnostics-parseable-fixits.
16133 * selftest-run-tests.c (selftest::run_tests): Call
16134 selftest::diagnostic_c_tests.
16135 * selftest.h (selftest::diagnostic_c_tests): New prototype.
16137 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
16139 PR tree-optimization/71488
16140 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
16141 comparison of boolean vectors.
16142 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
16143 of boolean vectors using bitwise operations.
16145 2016-06-22 Andreas Schwab <schwab@suse.de>
16147 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
16148 Remove declaration.
16150 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
16152 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
16154 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
16156 * config/i386/i386.c (print_reg): Emit an error message on attempt to
16159 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16161 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
16162 * config/arm/arm-cores.def (cortex-a73): New entry.
16163 (cortex-a73.cortex-a35): Likewise.
16164 (cortex-a73.cortex-a53): Likewise.
16165 * config/arm/arm-tables.opt: Regenerate.
16166 * config/arm/arm-tune.md: Likewise.
16167 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
16168 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16169 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
16170 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16171 * doc/invoke.texi (ARM Options): Document cortex-a73,
16172 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
16174 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16176 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
16177 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
16178 (cortex-a73.cortex-a35): Likewise.
16179 (cortex-a73.cortex-a53): Likewise.
16180 * config/aarch64/aarch64-tune.md: Regenerate.
16181 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
16182 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
16185 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16187 * configure.ac (gcc_cv_as_compress_debug): Remove
16188 --compress-debug-sections as extra as switch.
16189 Handle gas --compress-debug-sections=type.
16190 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
16191 Handle gld --compress-debug-sections=type.
16192 * configure: Regenerate.
16194 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
16196 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
16198 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
16200 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
16201 (do_rewrite): likewise.
16203 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16205 * common/config/mep/mep-common.c: Remove.
16206 * config.gcc: Remove mep-* support.
16207 * config/mep/constraints.md: Remove.
16208 * config/mep/default.h: Remove.
16209 * config/mep/intrinsics.h: Remove.
16210 * config/mep/intrinsics.md: Remove.
16211 * config/mep/ivc2-template.h: Remove.
16212 * config/mep/mep-c5.cpu: Remove.
16213 * config/mep/mep-core.cpu: Remove.
16214 * config/mep/mep-default.cpu: Remove.
16215 * config/mep/mep-ext-cop.cpu: Remove.
16216 * config/mep/mep-intrin.h: Remove.
16217 * config/mep/mep-ivc2.cpu: Remove.
16218 * config/mep/mep-pragma.c: Remove.
16219 * config/mep/mep-protos.h: Remove.
16220 * config/mep/mep.c: Remove.
16221 * config/mep/mep.cpu: Remove.
16222 * config/mep/mep.h: Remove.
16223 * config/mep/mep.md: Remove.
16224 * config/mep/mep.opt: Remove.
16225 * config/mep/predicates.md: Remove.
16226 * config/mep/t-mep: Remove.
16227 * doc/install.texi: Remove mep-* documentation.
16228 * doc/md.texi: Likewise.
16230 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16232 * config.gcc: Remove support for avr-rtems.
16233 * config/avr/gen-avr-mmcu-specs.c: Likewise.
16234 * config/avr/rtems.h: Remove.
16235 * config/avr/t-rtems: Remove.
16237 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16239 * config.gcc: Remove m32r-rtems support.
16240 * config/m32r/rtems.h: Remove.
16242 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16244 * config.gcc: Remove h8300-rtems support.
16245 * config/h8300/rtems.h: Remove.
16246 * config/h8300/t-rtems: Remove.
16248 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16250 * config.gcc: Remove support for knetbsd.
16251 * configure.ac: Likewise.
16252 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
16253 * config/knetbsd-gnu.h: Remove.
16254 * configure: Regenerate.
16256 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16258 * config.gcc: Remove support for openbsd 2 and 3.
16259 * config/openbsd-oldgas.h: Remove.
16261 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16263 * config.gcc: Remove interix support.
16264 * config/i386/i386-interix.h: Remove.
16265 * config/i386/interix.opt: Remove.
16266 * config/i386/t-interix: Remove.
16267 * configure: Regenerate.
16268 * configure.ac: Remove interix support.
16269 * doc/install.texi: Remove interix documentation.
16271 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
16273 * config/rs6000/rs6000.h: Add conditional preprocessing directives
16274 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
16277 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16279 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
16280 they are both PLACEHOLDER_EXPRs.
16282 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16284 * stor-layout.c (layout_type): Move setting complex MODE to
16285 layout_type, instead of setting it ahead of time by the caller.
16286 * tree.c (build_complex_type): Likewise.
16288 2016-06-21 Martin Liska <mliska@suse.cz>
16290 * predict.c (force_edge_cold): Replace imposisble with
16293 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16295 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
16296 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
16298 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16300 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
16302 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
16303 Ilya Enkovich <ilya.enkovich@intel.com>
16306 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16307 New member function to convert V1TImode register to SUBREG
16308 TImode in debug insn.
16309 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
16310 after changing register mode to V1TImode.
16312 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
16314 * config/aarch64/aarch64-cores.def (vulcan): New core.
16315 * config/aarch64/aarch64-tune.md: Regenerate.
16316 * doc/invoke.texi: Document vulcan as an available option.
16318 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16320 * cse.c (canon_asm_operands): New function extracted from...
16321 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
16322 either standalone or member of a PARALLEL.
16324 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16327 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
16328 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
16329 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
16331 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16334 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
16335 constant addresses if can_create_pseudo_p.
16337 2016-06-21 Jakub Jelinek <jakub@redhat.com>
16339 PR tree-optimization/71588
16340 * tree-ssa-strlen.c (valid_builtin_call): New function.
16341 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
16344 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16346 PR middle-end/71581
16347 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
16348 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
16349 for conversion of scalar user var to complex type and use the
16350 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
16353 PR rtl-optimization/71591
16354 * toplev.c (toplev::run_self_tests): If no_backend, complain and
16355 don't run any tests.
16357 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
16360 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
16361 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
16362 space for PIC with non-v32 and the common non-PIC "jump".
16364 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16367 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
16368 returned values and add UN*/LTGT/*ORDERED cases with values matching
16369 D operand modifier on vcmp for AVX.
16371 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16373 * config/aarch64/aarch64.opt
16374 (mpc-relative-literal-loads): Rename internal option name.
16375 * config/aarch64/aarch64.c
16376 (aarch64_nopcrelative_literal_loads): Rename to
16377 aarch64_pcrelative_literal_loads.
16378 (aarch64_expand_mov_immediate): Likewise.
16379 (aarch64_secondary_reload): Likewise.
16380 (aarch64_can_use_per_function_literal_pools_p): Likewise.
16381 (aarch64_override_options_after_change_1): Rename and simplify logic.
16382 (aarch64_classify_symbol): Merge large model checks into switch,
16383 remove pc-relative load check.
16385 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16387 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
16388 costs relative to the cost of a register move.
16390 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16392 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
16393 (vcvt_n_f64_u64): Likewise.
16394 (vcvt_n_s64_f64): Likewise.
16395 (vcvt_n_u64_f64): Likewise.
16396 (vcvt_f64_s64): Likewise.
16397 (vrecpe_f64): Likewise.
16398 (vcvt_f64_u64): Likewise.
16399 (vrecps_f64): Likewise.
16401 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16403 * config/aarch64/aarch64.md
16404 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
16406 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
16408 * config/aarch64/aarch64-builtins.c
16409 (aarch64_types_binop_uss_qualifiers): Delete.
16410 (TYPES_BINOP_USS): Likewise.
16411 (aarch64_types_binop_sus_qualifiers): Likewise.
16412 (TYPES_BINOP_SUS): Likewise.
16413 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
16414 (TYPES_FCVTIMM_SUS): Likewise.
16415 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
16417 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
16418 (fcvtzs): Use SHIFTIMM rather than BINOP.
16419 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
16421 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16423 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
16424 costs relative to the cost of a register move.
16426 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16428 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
16429 Allow scalar/single vector modes to be tieable.
16431 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16433 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
16435 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16437 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
16439 * tree.h (TYPE_ALIGN): Likewise.
16441 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16444 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
16446 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16448 * config/avr/avr.c (avr_print_operand): Fix "format not a string
16449 literal" build warnings.
16450 (avr_print_operand_address): Dito.
16452 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
16455 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
16456 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
16458 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
16460 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
16462 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
16465 * reload1.c (reload): Pass 0 to finish_spills when called because
16466 update_eliminables_and_spill returns true and remove did_spill.
16467 (finish_spills): Adjust comment and document GLOBAL parameter.
16469 2016-06-17 DJ Delorie <dj@redhat.com>
16472 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
16473 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
16474 (umulqihi3_virt): Likewise.
16475 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
16476 (umulqihi3_real): Likewise.
16478 2016-06-17 Martin Liska <mliska@suse.cz>
16480 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
16482 2016-06-17 Martin Liska <mliska@suse.cz>
16484 * predict.def: PRED_LOOP_EXIT from 92 to 85.
16486 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
16488 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16490 (vaddq_f32): Likewise.
16491 (vmul_f32): Likewise.
16492 (vmulq_f32): Likewise.
16493 (vsub_f32): Likewise.
16494 (vsubq_f32): Likewise.
16496 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16498 PR tree-optimization/71347
16499 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16500 cost for all uses in group.
16502 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16504 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16505 insert gimple seq if it's not empty.
16507 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16509 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16511 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16512 rather than OFFSET.
16513 (comp_dr_with_seg_len_pair): Ditto.
16514 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
16515 struct dr_with_seg_len_pair against DR_OFFSET.
16516 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16517 DR_OFFSET directly.
16519 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
16521 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16523 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
16525 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16526 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16527 (pa_output_millicode_call): Likewise.
16528 (pa_output_call): Likewise.
16529 (pa_output_indirect_call): Likewise.
16530 (pa_asm_output_mi_thunk): Likewise.
16532 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16534 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16536 2016-06-16 Martin Liska <mliska@suse.cz>
16538 * predict.c (combine_predictions_for_insn): When we find a first
16539 match predictor, we should consider just predictors with
16540 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
16541 DS theory predictor.
16542 (combine_predictions_for_bb): Likewise.
16544 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16546 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16547 with base of reference to struct.
16549 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16551 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16553 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16556 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16557 progmem_swtable_section.
16558 (progmem_swtable_section): Remove.
16559 (avr_asm_function_rodata_section): Remove.
16560 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16561 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16563 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
16565 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16566 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16567 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16568 signature_CENTAUR_ebx.
16569 * config/i386/i386.c (ix86_option_override_internal): Add
16570 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16571 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16572 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16574 2016-06-16 Martin Liska <mliska@suse.cz>
16576 * predict.def: Add fortran loop preheader predictor.
16577 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16578 fold IFN_BUILTIN_EXPECT with a known constant argument.
16580 2016-06-16 Martin Liska <mliska@suse.cz>
16582 * predict.def: Add 'Fortran' to display text of all
16583 PRED_FORTRAN_* predictors.
16585 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16588 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16589 [IA64_BUILTIN_NANSQ]: Ditto.
16590 (ia64_fold_builtin): New function.
16591 (TARGET_FOLD_BUILTIN): New define.
16592 (ia64_init_builtins) Declare const_string_type node.
16593 Add __builtin_nanq and __builtin_nansq builtin functions.
16594 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16596 2016-06-16 Nick Clifton <nickc@redhat.com>
16598 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16599 MSP430_HWMULT_ prefix to enum values.
16600 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16601 * config/msp430/msp430.c: Update use of enum values.
16602 * config/msp430/msp430.md: Likewise.
16603 * config/msp430/msp430.opt: Likewise.
16605 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
16607 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16608 of comparsions in the last iteration.
16610 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16611 Joern Rennecke <joern.rennecke@embecosm.com>
16613 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16615 (arc_needs_pcl_p): Add GOTOFFPC.
16616 (arc_legitimate_pic_addr_p): Likewise.
16617 (arc_output_pic_addr_const): Likewise.
16618 (arc_legitimize_pic_address): Generate a pc-relative address using
16620 (arc_output_libcall): Use @pcl syntax.
16621 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16622 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16623 (*movsi_insn): Use @pcl syntax.
16624 (doloop_begin_i): Likewise.
16626 2016-06-16 Martin Liska <mliska@suse.cz>
16628 * predict.def: Define a new predictor.
16630 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16632 * config/arc/arc.opt (mtp-regno): Update text.
16634 2016-06-16 Renlin Li <renlin.li@arm.com>
16636 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16638 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16641 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16642 (setcc + and peephole2): Likewise.
16644 PR rtl-optimization/71532
16645 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16648 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16650 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16651 DImode constants with XXSPLTIB in vector registers.
16652 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16653 vsx_extract_<mode>_internal{1,2} into a single insn that handles
16654 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16655 extraction of the element at the top of the register as a scalar
16657 (vsx_extract_<mode>_internal1): Likewise.
16658 (vsx_extract_<mode>_internal2): Likewise.
16659 * config/rs6000/constraints.md (wi constraint): Remove a comment
16660 about DImode not being allowed in Altivec registers.
16661 (wB constraint): New constraint for constants that can be
16662 generated in Altivec registers with VSPLTISW/VUPKHSW.
16663 * config/rs6000/predicates.md (xxspltib_constant_split): Update
16665 (xxspltib_constant_nosplit): Likewise.
16666 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16667 support for -mupper-regs-di to enable DImode to go into Altivec
16669 (POWERPC_MASKS): Likewise.
16670 (power7 cpu): Likewise.
16671 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16672 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16673 for DImode being allowed in Altivec registers. Update wi/wj
16674 constraints. Set scalar_in_vmx_p flag.
16675 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16676 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
16677 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16678 (rs6000_opt_masks): Add -mupper-regs-di.
16679 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16680 direct move to use wi and not wj.
16681 (lfiwzx): Likewise.
16682 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16684 (floatunssi<mode>2_lfiwzx_mem): Likewise.
16685 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16686 any VSX register, instead of just Altivec registers, to allow
16687 either operand to be an Altivec register or both.
16688 (fixuns_trunc<mode>di2_fctiduz): Likewise.
16689 (movdi_internal32): Add support for -mupper-regs-di. Add support
16690 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
16691 the alternatives and attributes to be lined up to be easier to
16693 (movdi_internal64): Likewise.
16694 (64-bit DImode splitters): Change predicates to only split loading
16695 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
16696 load constants in ISA 3.0 or ISA 2.07 respectively.
16697 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16698 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
16699 mention -mcpu=power9 sets these options.
16700 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16703 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16706 * config/avr/avr.c (avr_set_current_function): Warn misspelled
16707 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16708 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16709 by default to warn misspelled interrupt/ signal handler.
16710 * doc/invoke.texi (AVR Options): Document it. Update description
16711 for -nodevicelib option.
16713 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16715 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16716 up parentheses. Use GET_MODE_UNIT_BITSIZE.
16717 (aarch64_<sur>shll2_n<mode>): Likewise.
16719 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
16721 PR middle-end/71529
16722 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16723 DECL_CONTEXT for copied arguments.
16725 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16727 PR tree-optimization/71483
16728 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16731 2016-06-15 Martin Liska <mliska@suse.cz>
16733 * predict.c (tree_predict_by_opcode): Call predict_edge_def
16734 instead of predict_edge w/o a probability.
16736 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16738 PR tree-optimization/71439
16739 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16742 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16744 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16745 register subregs in SET_SRC.
16747 2016-06-15 Richard Biener <rguenther@suse.de>
16749 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16750 store restrictions.
16752 2016-06-15 Richard Biener <rguenther@suse.de>
16754 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16755 not consider dependences between accesses that belong to the
16757 (vect_analyze_data_ref_dependences): Do not analyze read-read
16758 or self-dependences.
16760 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16762 * spellcheck-tree.c: Include spellcheck-tree.h rather than
16764 (find_closest_identifier): Reimplement in terms of
16765 best_match<tree,tree>.
16766 * spellcheck-tree.h: New file.
16767 * spellcheck.c (struct edit_distance_traits<const char *>): New
16769 (find_closest_string): Reimplement in terms of
16770 best_match<const char *, const char *>.
16771 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16772 overload to spellcheck-tree.h.
16773 (find_closest_identifier): Likewise.
16774 (struct edit_distance_traits<T>): New template.
16775 (class best_match): New class.
16777 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16779 * selftest-run-tests.c (selftest::run_tests): Call
16780 selftest::spellcheck_tree_c_tests.
16781 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16782 * spellcheck-tree.c: Include selftest.h and stringpool.h.
16783 (selftest::test_find_closest_identifier): New function.
16784 (selftest::spellcheck_tree_c_tests): New function.
16785 * spellcheck.c (selftest::test_find_closest_string): Verify that
16786 the order of the vec does not affect the results for this case.
16787 (selftest::test_data): New array.
16788 (selftest::test_metric_conditions): New function.
16789 (selftest::spellcheck_c_tests): Add a test of case-comparison.
16790 Call selftest::test_metric_conditions.
16792 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16794 * config/rs6000/rs6000-builtin.def (commentary): Typo.
16795 (BU_P9_MISC_1): Likewise.
16796 (BU_P9_64BIT_MISC_0): Likewise.
16797 (BU_P9_MISC_0): Likewise.
16799 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16801 * gcc-rich-location.c
16802 (gcc_rich_location::add_fixit_misspelled_id): New method.
16803 * gcc-rich-location.h
16804 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
16806 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
16808 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
16809 FreeBSD 11 and above.
16811 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
16813 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
16815 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16817 * expmed.h: Close parenthesis in "at your option" in copyright
16819 * lower-subreg.h: Likewise.
16821 2016-06-14 Richard Biener <rguenther@suse.de>
16823 PR middle-end/71526
16824 * genmatch.c (expr::gen_transform): Use in_type for comparisons
16827 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16829 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16831 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
16832 mask+shift version.
16833 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
16835 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
16836 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
16838 2016-06-14 Richard Biener <rguenther@suse.de>
16840 PR tree-optimization/71522
16841 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
16842 copying into float copying.
16844 2016-06-14 Jakub Jelinek <jakub@redhat.com>
16846 PR tree-optimization/71520
16847 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
16848 (replace_block_by): Move user labels from bb1 to bb2.
16850 2016-06-14 Richard Biener <rguenther@suse.de>
16852 PR middle-end/71310
16854 * expr.h (get_bit_range): Declare.
16855 * expr.c (get_bit_range): Export.
16856 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
16857 word_mode again to constrain the bitfield access.
16859 2016-06-14 Richard Biener <rguenther@suse.de>
16861 PR tree-optimization/71521
16862 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
16863 division int_const_binop against zero divisor.
16865 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16867 * config/i386/i386.md (signbittf2): New expander.
16868 * config/i386/sse.md (ptesttf2): New insn pattern.
16870 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16873 * input.c (selftest::test_reading_source_line): Avoid reading from
16874 __FILE__ by creating a tempfile with known content and reading
16877 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16879 * pretty-print.c (assert_pp_format_colored): Skip the test if
16881 (test_pp_format): Remove comment about GCC_COLORS.
16883 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16885 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
16886 * pretty-print.c (assert_pp_format_va): Add location param and use
16887 it with ASSERT_STREQ_AT.
16888 (assert_pp_format): Add location param and pass it to
16889 assert_pp_format_va.
16890 (assert_pp_format_colored): Likewise.
16891 (ASSERT_PP_FORMAT_1): New.
16892 (ASSERT_PP_FORMAT_2): New.
16893 (ASSERT_PP_FORMAT_3): New.
16894 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
16895 explicitly, or implicitly via the above macros.
16896 * selftest.c (selftest::pass): Use a selftest::location rather
16897 than file and line.
16898 (selftest::fail): Likewise. Print the function name.
16899 (selftest::fail_formatted): Likewise.
16900 (selftest::assert_streq): Use a selftest::location rather than
16902 * selftest.h (selftest::location): New struct.
16903 (SELFTEST_LOCATION): New macro.
16904 (selftest::pass): Accept a const location & rather than file
16906 (selftest::fail): Likewise.
16907 (selftest::fail_formatted): Likewise.
16908 (selftest::assert_streq): Likewise.
16909 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
16910 (ASSERT_FALSE): Likewise.
16911 (ASSERT_EQ): Likewise.
16912 (ASSERT_NE): Likewise.
16913 (ASSERT_STREQ): Likewise.
16914 (ASSERT_PRED1): Likewise.
16915 (ASSERT_STREQ_AT): New macro.
16917 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16919 * selftest.c (selftest::fail_formatted): New function.
16920 (selftest::assert_streq): New function.
16921 * selftest.h (selftests::fail_formatted): New decl.
16922 (selftest::assert_streq): New decl.
16923 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
16925 2016-06-13 Jeff Law <law@redhat.com>
16927 PR tree-optimization/71403
16928 * tree-ssa-threadbackward.c
16929 (convert_and_register_jump_thread_path): No longer accept reference
16930 to path. Do not pop items off the path anymore.
16931 (fsm_find_control_statement_thread_paths): Do not allow threading
16932 to a deeper loop nest. Pop the last item off the path here rather
16933 than in convert_and_register_jump_thread_path.
16935 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16936 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
16938 [AArch64] Emit division using the Newton series
16940 * config/aarch64/aarch64-protos.h
16941 (cpu_approx_modes): Add new member "division".
16942 (aarch64_emit_approx_div): Declare new function.
16943 * config/aarch64/aarch64.c
16944 (generic_approx_modes): New member "division".
16945 (exynosm1_approx_modes): Likewise.
16946 (xgene1_approx_modes): Likewise.
16947 (aarch64_emit_approx_div): Define new function.
16948 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
16949 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
16950 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
16951 * doc/invoke.texi (-mlow-precision-div): Describe new option.
16953 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16954 Wilco Dijkstra <wilco.dijkstra@arm.com>
16956 [AArch64] Emit square root using the Newton series
16958 * config/aarch64/aarch64-protos.h
16959 (aarch64_emit_approx_rsqrt): Replace with new function
16960 "aarch64_emit_approx_sqrt".
16961 (cpu_approx_modes): New member "sqrt".
16962 * config/aarch64/aarch64.c
16963 (generic_approx_modes): New member "sqrt".
16964 (exynosm1_approx_modes): Likewise.
16965 (xgene1_approx_modes): Likewise.
16966 (aarch64_emit_approx_rsqrt): Replace with new function
16967 "aarch64_emit_approx_sqrt".
16968 (aarch64_override_options_after_change_1): Handle new option.
16969 * config/aarch64/aarch64-simd.md
16970 (rsqrt<mode>2): Use new function instead.
16971 (sqrt<mode>2): New expansion and insn definitions.
16972 * config/aarch64/aarch64.md: Likewise.
16973 * config/aarch64/aarch64.opt
16974 (mlow-precision-sqrt): Add new option description.
16975 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
16977 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16979 [AArch64] Add more choices for the reciprocal square root approximation
16981 Allow a target to prefer such operation depending on the operation mode.
16983 * config/aarch64/aarch64-protos.h
16984 (AARCH64_APPROX_MODE): New macro.
16985 (AARCH64_APPROX_{NONE,ALL}): Likewise.
16986 (cpu_approx_modes): New structure.
16987 (tune_params): New member "approx_modes".
16988 * config/aarch64/aarch64-tuning-flags.def
16989 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
16990 * config/aarch64/aarch64.c
16991 (generic_approx_modes): New core "cpu_approx_modes" structure.
16992 (exynosm1_approx_modes): Likewise.
16993 (xgene1_approx_modes): Likewise.
16994 (generic_tunings): New member "approx_modes".
16995 (cortexa35_tunings): Likewise.
16996 (cortexa53_tunings): Likewise.
16997 (cortexa57_tunings): Likewise.
16998 (cortexa72_tunings): Likewise.
16999 (exynosm1_tunings): Likewise.
17000 (thunderx_tunings): Likewise.
17001 (xgene1_tunings): Likewise.
17002 (use_rsqrt_p): New argument for the mode and use new member from
17004 (aarch64_builtin_reciprocal): Devise mode from builtin.
17005 (aarch64_optab_supported_p): New argument for the mode.
17006 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
17008 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17010 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
17011 RS6000_BTM_MODULO flag into the set of flags that are considered
17012 to be part of the common configuration.
17014 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17016 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
17017 difference unsigned.
17018 (vec_absdb): New macro for vector absolute difference unsigned
17020 (vec_absdh): New macro for vector absolute difference unsigned
17022 (vec_absdw): New macro for vector absolute difference unsigned word.
17023 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
17024 (vadu<mode>3): New insn.
17025 (*p9_vadu<mode>3): New insn.
17026 * config/rs6000/rs6000-builtin.def (vadub): New built-in
17028 (vaduh): New built-in definition.
17029 (vaduw): New built-in definition.
17030 (vadu): New overloaded built-in definition.
17031 (vadub): New overloaded built-in definition.
17032 (vaduh): New overloaded built-in definition.
17033 (vaduw): New overloaded built-in definition.
17034 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17035 overloaded vector absolute difference unsigned functions.
17036 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17037 the ISA 3.0 vector absolute difference unsigned built-in functions.
17039 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
17041 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
17042 update shared_lookup_references only once after changing operands.
17044 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
17046 PR middle-end/71373
17047 * tree-nested.c (convert_nonlocal_omp_clauses)
17048 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
17050 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
17051 * tree.def (CASE_LABEL_EXPR): Likewise.
17053 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
17056 * input.c (test_builtins): Fix an assertion.
17058 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17060 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
17061 (paritysi2): Ditto.
17063 (isinf<mode>2): Ditto.
17065 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
17067 * ggc-tests.c (test_finalization): Only test need_finalization_p
17068 for GCC_VERSION >= 4003.
17070 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17072 * config/s390/vecintrin.h: Fix file description in comment.
17074 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17076 * config/s390/s390-builtin-types.def: Change builtin type naming
17077 scheme to match builtin-types.def.
17079 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
17081 * fold-const.c (optimize_minmax_comparison): Remove.
17082 (fold_comparison): Remove call to the above.
17083 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
17084 New transformations.
17086 2016-06-13 Alan Hayward <alan.hayward@arm.com>
17088 PR tree-optimization/71416
17089 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
17092 2016-06-13 Martin Liska <mliska@suse.cz>
17094 * predict.c (enum predictor_reason): Prefix enum with REASON_.
17095 (combine_predictions_for_insn): Likewise.
17096 (prune_predictions_for_bb): Likewise.
17097 (combine_predictions_for_bb): Likewise.
17099 2016-06-13 Richard Biener <rguenther@suse.de>
17101 PR tree-optimization/71505
17102 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
17103 assert match comment.
17105 2016-06-13 Marek Polacek <polacek@redhat.com>
17107 PR middle-end/71476
17108 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
17109 gimplify_switch_expr.
17110 (warn_switch_unreachable_r): New function.
17112 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17115 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
17118 2016-06-13 Richard Biener <rguenther@suse.de>
17120 PR middle-end/64516
17121 * fold-const.c (fold_unary_loc): Preserve alignment when
17122 folding a VIEW_CONVERT_EXPR into a MEM_REF.
17124 2016-06-13 Martin Liska <mliska@suse.cz>
17127 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
17128 w/ -fsanitize=bounds.
17130 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
17132 * config/i386/i386.c (ix86_init_builtins): Calculate
17133 FLOAT128_FTYPE_CONST_STRING function type only once.
17134 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
17135 built-in functions are available for x86-32 and x86-64 targets.
17137 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
17140 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
17141 New primitive type.
17142 (FLOAT128_FTYPE_CONST_STRING): New function type.
17143 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
17144 [IX86_BUILTIN_NANSQ]: Ditto.
17145 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17146 (ix86_init_builtin_types): Declare const_string_type_node.
17147 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
17149 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17150 * doc/extend.texi (x86 Built-in Functions): Document
17151 __builtin_nanq and __builtin_nansq.
17153 2016-06-11 Jiong Wang <jiong.wang@arm.com>
17156 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
17157 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
17158 length for pop patterns.
17159 (arm_attr_length_push_multi): Update comments.
17160 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
17162 (*pop_multiple_with_writeback_and_return): Likewise.
17163 (*pop_multiple_with_return): Likewise.
17165 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
17167 PR middle-end/71310
17168 * fold-const.c (optimize_bit_field_compare): Don't try to use
17169 word_mode unconditionally for reading the bit field, look at
17170 DECL_BIT_FIELD_REPRESENTATIVE instead.
17172 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
17174 PR middle-end/71478
17175 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
17176 vector integer type.
17178 2016-06-10 Jakub Jelinek <jakub@redhat.com>
17180 PR middle-end/71494
17181 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
17182 without LABEL_DECL, set *handled_ops_p to false instead of true.
17184 2016-06-10 Martin Sebor <msebor@redhat.com>
17187 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
17188 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
17189 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
17191 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
17192 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
17193 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
17194 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
17195 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
17196 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
17197 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
17198 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
17200 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17202 * config/arm/arm.h (pool_vector_label,
17203 return_used_this_function): Remove.
17205 2016-06-10 Jeff Law <law@redhat.com>
17207 PR tree-optimization/71335
17208 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
17209 zero length paths here.
17210 (convert_and_register_jump_thread_path): Remove hacks related to
17211 duplicated blocks in the jump thread path.
17212 (fsm_find_control_statement_thread_paths): Avoid putting the same
17213 block on the thread path twice, but ensure the thread path is
17214 unchanged from the caller's point of view.
17216 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17218 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
17219 * predict.def (PRED_LOOP_BRANCH): Remove.
17221 2016-06-10 David Malcolm <dmalcolm@redhat.com>
17223 * Makefile.in (OBJS): Add ggc-tests.o.
17224 (GTFILES): Add ggc-tests.c.
17225 * ggc-tests.c: New file.
17226 * selftest-run-tests.c (selftest::run_tests): Call
17227 selftest::ggc_tests_c_tests.
17228 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
17230 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
17232 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
17234 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
17237 * varasm.c (place_block_symbol): Adjust alignment for asan protected
17238 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
17240 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17242 * profile.c: Include cfgloop.h.
17243 (branch_prob): Compute estimated number of iterations.
17244 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
17245 recompute estimate number of iterations from profile.
17247 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17249 PR inline-asm/68843
17250 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
17251 must be grouped on top of stack. Don't force early clobber
17252 on ordinary reg outputs.
17254 2016-06-10 Richard Biener <rguenther@suse.de>
17256 * targhooks.c (default_builtin_vectorization_cost): Adjust
17257 vec_construct cost.
17259 2016-06-10 Richard Biener <rguenther@suse.de>
17261 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
17262 to fold the RHS to a constant if possible.
17264 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
17266 PR middle-end/71373
17267 * tree-nested.c (convert_nonlocal_omp_clauses)
17268 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
17269 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17270 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
17272 * gimplify.c (gimplify_adjust_omp_clauses): Discard
17274 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
17276 * omp-low.c (scan_sharing_clauses): Don't expect
17277 OMP_CLAUSE__CACHE_.
17279 2016-06-10 Alan Hayward <alan.hayward@arm.com>
17281 PR tree-optimization/71407
17282 PR tree-optimization/71416
17283 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
17284 BIT_FIELD_REF type.
17286 2016-06-10 Richard Biener <rguenther@suse.de>
17288 PR middle-end/71477
17289 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
17291 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
17293 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
17295 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
17296 Jiong Wang <jiong.wang@arm.com>
17298 PR rtl-optimization/70751
17299 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
17300 spilled into memory.
17302 2016-06-09 Jonathan Yong <10walls@gmail.com>
17305 2015-09-21 Jonathan Yong <10walls@gmail.com>
17307 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17308 sysroot/usr/lib/32api for additional win32 libraries,
17309 fixes failing Cygwin bootstrapping.
17311 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
17313 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
17316 2016-06-09 David Malcolm <dmalcolm@redhat.com>
17319 * pretty-print.c (pp_indent): Specify that %p is printed in a
17320 host-dependent manner.
17321 (test_pp_format): Remove the test for %p.
17323 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
17325 * config/mips/mips.c (mips_output_jump): Fix formatting.
17327 2016-06-09 Richard Biener <rguenther@suse.de>
17329 PR tree-optimization/71462
17330 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
17333 2016-06-09 Martin Liska <mliska@suse.cz>
17335 * predict.c (dump_prediction): Add new argument.
17336 (enum predictor_reason): New enum.
17337 (struct predictor_hash): New struct.
17338 (predictor_hash::hash): New function.
17339 (predictor_hash::equal): Likewise.
17340 (not_removed_prediction_p): New function.
17341 (prune_predictions_for_bb): Likewise.
17342 (combine_predictions_for_bb): Prune predictions.
17344 2016-06-09 Martin Liska <mliska@suse.cz>
17346 * predict.c (filter_predictions): New function.
17347 (remove_predictions_associated_with_edge): Use the filter
17349 (equal_edge_p): New function.
17351 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
17353 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
17354 Correct usage of @samp vs @option, add @samp where appropriate.
17355 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
17356 Add armv6s-m and document it, as it is no official ARM name.
17358 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17360 * ifcvt.c (struct noce_if_info): Add transform_name field.
17361 (noce_try_move): Set if_info->transform_name to the function name.
17362 (noce_try_ifelse_collapse): Likewise.
17363 (noce_try_store_flag): Likewise.
17364 (noce_try_inverse_constants): Likewise.
17365 (noce_try_store_flag_constants): Likewise.
17366 (noce_try_addcc): Likewise.
17367 (noce_try_store_flag_mask): Likewise.
17368 (noce_try_cmove): Likewise.
17369 (noce_try_cmove_arith): Likewise.
17370 (noce_try_minmax): Likewise.
17371 (noce_try_abs): Likewise.
17372 (noce_try_sign_mask): Likewise.
17373 (noce_try_bitop): Likewise.
17374 (noce_convert_multiple_sets): Likewise.
17375 (noce_process_if_block): Print if_info->transform_name to
17376 dump_file if transformation succeeded.
17378 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17380 * config/arm/cortex-a57.md (cortex_a57_alu):
17383 2016-06-08 Martin Sebor <msebor@redhat.com>
17384 Jakub Jelinek <jakub@redhat.com>
17388 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
17389 BUILT_IN_MUL_OVERFLOW_P): New builtins.
17390 * builtins.c: Include gimple-fold.h.
17391 (fold_builtin_arith_overflow): Handle
17392 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
17393 (fold_builtin_3): Likewise.
17394 * doc/extend.texi (Integer Overflow Builtins): Document
17395 __builtin_{add,sub,mul}_overflow_p.
17397 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
17399 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
17400 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
17402 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
17404 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
17405 Rewrite, looking one level down for records and arrays.
17407 2016-06-08 David Malcolm <dmalcolm@redhat.com>
17409 * pretty-print.c: Include "selftest.h".
17410 (pp_format): Fix comment.
17411 (identifier_to_locale): Likewise.
17412 (selftest::test_basic_printing): New function.
17413 (selftest::assert_pp_format): New function.
17414 (selftest::test_pp_format): New function.
17415 (selftest::pretty_print_c_tests): New function.
17416 * selftest-run-tests.c (selftest::run_tests): Call
17417 selftest::pretty_print_c_tests.
17418 * selftest.h (pretty_print_c_tests): New declaration.
17420 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17422 * invoke.texi (max-loop-headers-insns): Document.
17423 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
17424 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
17425 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
17427 2016-06-08 Richard Biener <rguenther@suse.de>
17429 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
17430 on strided SLP loads and fall back to scalar loads in case
17431 we can't chunk them.
17433 2016-06-08 Richard Biener <rguenther@suse.de>
17435 PR tree-optimization/71452
17436 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
17437 type used for the SSA rewrite has enough precision to cover
17438 the dynamic type of the location.
17440 2016-06-08 Jakub Jelinek <jakub@redhat.com>
17441 Richard Biener <rguenther@suse.de>
17444 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
17445 the same as DECL_P (base0) for indirect_base0. Use equality_code
17446 in one further place.
17448 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
17450 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
17451 to one word if the field is known to overlap other words.
17452 (extract_bit_field_1): Likewise.
17453 (store_split_bit_field): Remove compensating code.
17454 (extract_split_bit_field): Likewise.
17456 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
17460 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
17462 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17464 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
17466 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
17467 (arch64_addpv4sf): Delete.
17468 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
17469 "gen_aarch64_addpv4sf".
17470 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
17472 (vpadds_f32): Likewise.
17473 (vpaddq_f32): Likewise.
17474 (vpaddq_f64): Likewise.
17476 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17478 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
17480 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
17481 to VALLF. Rename to "fabd<mode>3".
17482 "*fabd_scalar<mode>3): Delete.
17483 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
17485 (vabdd_f64): Likewise.
17486 (vabd_f32): Likewise.
17487 (vabd_f64): Likewise.
17488 (vabdq_f32): Likewise.
17489 (vabdq_f64): Likewise.
17491 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17493 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17495 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17496 "aarch64_rsqrts<mode>".
17497 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17498 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
17500 (vrsqrtsd_f64): Likewise.
17501 (vrsqrts_f32): Likewise.
17502 (vrsqrts_f64): Likewise.
17503 (vrsqrtsq_f32): Likewise.
17504 (vrsqrtsq_f64): Likewise.
17506 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17508 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17510 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17511 "aarch64_rsqrte<mode>".
17512 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17513 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
17515 (vrsqrted_f64): Likewise.
17516 (vrsqrte_f32): Likewise.
17517 (vrsqrte_f64): Likewise.
17518 (vrsqrteq_f32): Likewise.
17519 (vrsqrteq_f64): Likewise.
17521 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17523 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17525 (fcvtzs): Likewise.
17526 (fcvtzu): Likewise.
17527 * config/aarch64/aarch64-simd.md
17528 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17529 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17530 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17532 (vcvt_n_f32_u32): Likewise.
17533 (vcvt_n_s32_f32): Likewise.
17534 (vcvt_n_u32_f32): Likewise.
17535 (vcvtq_n_f32_s32): Likewise.
17536 (vcvtq_n_f32_u32): Likewise.
17537 (vcvtq_n_f64_s64): Likewise.
17538 (vcvtq_n_f64_u64): Likewise.
17539 (vcvtq_n_s32_f32): Likewise.
17540 (vcvtq_n_s64_f64): Likewise.
17541 (vcvtq_n_u32_f32): Likewise.
17542 (vcvtq_n_u64_f64): Likewise.
17543 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17544 (VSDQ_SDI): Likewise.
17545 (fcvt_target): Support V4DI, V4SI and V2SI.
17546 (FCVT_TARGET): Likewise.
17548 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17550 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17551 (TYPES_BINOP_SUS): Likewise.
17552 (aarch64_simd_builtin_data): Update include file name.
17553 (aarch64_builtins): Likewise.
17554 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17555 for conversion between scalar float-point and fixed-point.
17557 (fcvtzs): Likewise.
17558 (fcvtzu): Likewise.
17559 * config/aarch64/aarch64.md
17560 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17561 pattern for conversion between scalar float to fixed-pointer.
17562 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17563 (UNSPEC_FCVTZS): New UNSPEC enumeration.
17564 (UNSPEC_FCVTZU): Likewise.
17565 (UNSPEC_SCVTF): Likewise.
17566 (UNSPEC_UCVTF): Likewise.
17567 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17569 (vcvtd_n_f64_u64): Likewise.
17570 (vcvtd_n_s64_f64): Likewise.
17571 (vcvtd_n_u64_f64): Likewise.
17572 (vcvtd_n_f32_s32): Likewise.
17573 (vcvts_n_f32_u32): Likewise.
17574 (vcvtd_n_s32_f32): Likewise.
17575 (vcvts_n_u32_f32): Likewise.
17576 * config/aarch64/iterators.md (fcvt_target): Support integer to float
17578 (FCVT_TARGET): Likewise.
17579 (FCVT_FIXED2F): New iterator.
17580 (FCVT_F2FIXED): Likewise.
17581 (fcvt_fixed_insn): New define_int_attr.
17583 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17585 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17586 some statements was removed.
17588 2016-06-08 Alan Hayward <alan.hayward@arm.com>
17590 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17591 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17592 (vect_can_advance_ivs_p): likewise.
17593 (vect_update_ivs_after_vectorizer): likewise.
17594 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17595 (vect_analyze_scalar_cycles_1): likewise.
17596 (vect_analyze_loop_operations): likewise.
17597 (report_vect_op): likewise.
17598 (vect_is_slp_reduction): likewise.
17599 (vect_is_simple_reduction): likewise.
17600 (get_initial_def_for_induction): likewise.
17601 (vect_transform_loop): likewise.
17602 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17603 (vect_recog_sad_pattern): likewise.
17604 (vect_recog_widen_sum_pattern): likewise.
17605 (vect_recog_widening_pattern): likewise.
17606 (vect_recog_divmod_pattern): likewise.
17607 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17608 (vect_analyze_slp_instance): likewise.
17609 (vect_transform_slp_perm_load): likewise.
17610 (vect_schedule_slp_instance): likewise.
17612 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17614 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17615 (return_prediction): PRED_CONST_RETURN predict return as not taken.
17616 * predict.def (PRED_CONTINUE): Change hitrate 50->67
17617 (PRED_LOOP_BRANCH): Document predictor as broken.
17618 (PRED_LOOP_EXIT): Change hitrate 91->92.
17619 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17620 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17621 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17622 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17623 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17624 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17625 (PRED_CALL): Chane hitrate 71->67.
17626 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17627 (PRED_GOTO): Document as unused right now.
17628 (PRED_CONST_RETURN): Change hitrate 67->69
17629 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17630 (PRED_NULL_RETURN): Change hitrate 91->90.
17631 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17632 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17633 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17635 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
17637 * config/rs6000/altivec.h: Add __builtin_vec_mul.
17638 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17639 special case Altivec builtin.
17640 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17641 VSX_BUILTIN_VEC_MUL (replaced with special case code).
17642 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17643 code for ALTIVEC_BUILTIN_VEC_MUL.
17644 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17645 for __builtin_vec_mul.
17647 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
17649 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17652 2016-06-07 David Malcolm <dmalcolm@redhat.com>
17654 * spellcheck.c (selftest::test_find_closest_string): New function.
17655 (spellcheck_c_tests): Call the above.
17657 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17659 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17661 2016-06-07 Jakub Jelinek <jakub@redhat.com>
17663 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17664 Yv=Yv,C alternatives.
17666 2016-06-07 Richard Biener <rguenther@suse.de>
17669 * common.opt (ffast-math): Make Optimization.
17671 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
17672 Prachi Godbole <prachi.godbole@imgtec.com>
17674 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17675 `fabs' and `fneg' type attributes.
17676 (p5600_fpu_fabs): Add `fmove' to the comment.
17678 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17680 * gimple.c: Include builtins.h
17681 (gimple_inexpensive_call_p): New function.
17682 * gimple.h (gimple_inexpensive_call_p): Declare.
17683 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17684 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17687 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
17689 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17690 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17691 warning_at_rich_loc, warning_n, pedwarn, permerror,
17692 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17693 sorry, fatal_error, internal_error, internal_error_no_backtrace):
17696 2016-06-07 Richard Biener <rguenther@suse.de>
17698 PR tree-optimization/71428
17699 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17700 BIT_FIELD_REF op vs. load.
17702 2016-06-07 Richard Biener <rguenther@suse.de>
17704 PR middle-end/71423
17705 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17708 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17710 * config/pa/pa.md (call): Generate indirect long calls to non-local
17711 functions on TARGET_64BIT.
17712 (call_value): Likewise.
17714 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17716 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17717 pattern and subsequent splitters.
17718 (call_val_reg_64bit_post_reload): Likewise.
17720 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17722 PR middle-end/71408
17723 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17724 propagate_op_to_single_use.
17726 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17728 PR middle-end/71281
17729 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17731 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
17733 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17734 (enum x86_dirflag_state): New enum.
17735 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17736 (machine_function): Remove needs_cld.
17737 (ix86_current_function_needs_cld): Remove.
17738 * config/i386/i386.c (ix86_set_func_type): Set
17739 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17740 (ix86_expand_prologue): Do not emit CLD here.
17741 (ix86_dirflag_mode_needed): New function.
17742 (ix86_dirflag_mode_entry): Ditto.
17743 (ix86_mode_needed): Handle X86_DIRFLAG entity.
17744 (ix86_mode_after): Ditto.
17745 (ix86_mode_entry): Ditto.
17746 (ix86_mode_exit): Ditto.
17747 (ix86_emit_mode_set): Ditto.
17748 * config/i386/i386.md (strmov_singleop): Set
17749 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17750 Do not set ix86_current_function_needs_cld.
17752 (strset_singleop): Ditto.
17754 (cmpstrnqi_nz_1): Ditto.
17755 (cmpstrnqi_1): Ditto.
17756 (strlenqi_1): Ditto.
17758 2016-06-06 Jakub Jelinek <jakub@redhat.com>
17760 PR tree-optimization/71259
17761 * tree-vect-slp.c (vect_get_constant_vectors): For
17762 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17763 one for constant op, and use COND_EXPR for non-constant.
17765 2016-06-06 David Malcolm <dmalcolm@redhat.com>
17767 * Makefile.in (OBJS): Add function-tests.o,
17768 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17769 selftest-run-tests.o.
17770 (OBJS-libcommon): Add selftest.o.
17771 (OBJS-libcommon-target): Add selftest.o.
17772 (all.internal): Add "selftest".
17773 (all.cross): Likewise.
17774 (selftest): New phony target.
17775 (s-selftest): New target.
17776 (selftest-gdb): New phony target.
17777 (COLLECT2_OBJS): Add selftest.o.
17778 * bitmap.c: Include "selftest.h".
17779 (selftest::test_gc_alloc): New function.
17780 (selftest::test_set_range): New function.
17781 (selftest::test_clear_bit_in_middle): New function.
17782 (selftest::test_copying): New function.
17783 (selftest::test_bitmap_single_bit_set_p): New function.
17784 (selftest::bitmap_c_tests): New function.
17785 * common.opt (fself-test): New.
17786 * diagnostic-show-locus.c: Include "selftest.h".
17787 (make_range): New function.
17788 (test_range_contains_point_for_single_point): New function.
17789 (test_range_contains_point_for_single_line): New function.
17790 (test_range_contains_point_for_multiple_lines): New function.
17791 (assert_eq): New function.
17792 (test_get_line_width_without_trailing_whitespace): New function.
17793 (selftest::diagnostic_show_locus_c_tests): New function.
17794 * et-forest.c: Include "selftest.h".
17795 (selftest::test_single_node): New function.
17796 (selftest::test_simple_tree): New function.
17797 (selftest::test_disconnected_nodes): New function.
17798 (selftest::et_forest_c_tests): New function.
17799 * fold-const.c: Include "selftest.h".
17800 (selftest::assert_binop_folds_to_const): New function.
17801 (selftest::assert_binop_folds_to_nonlvalue): New function.
17802 (selftest::test_arithmetic_folding): New function.
17803 (selftest::fold_const_c_tests): New function.
17804 * function-tests.c: New file.
17805 * gimple.c: Include "selftest.h".
17806 Include "gimple-pretty-print.h".
17807 (selftest::verify_gimple_pp): New function.
17808 (selftest::test_assign_single): New function.
17809 (selftest::test_assign_binop): New function.
17810 (selftest::test_nop_stmt): New function.
17811 (selftest::test_return_stmt): New function.
17812 (selftest::test_return_without_value): New function.
17813 (selftest::gimple_c_tests): New function.
17814 * hash-map-tests.c: New file.
17815 * hash-set-tests.c: New file.
17816 * input.c: Include "selftest.h".
17817 (selftest::assert_loceq): New function.
17818 (selftest::test_accessing_ordinary_linemaps): New function.
17819 (selftest::test_unknown_location): New function.
17820 (selftest::test_builtins): New function.
17821 (selftest::test_reading_source_line): New function.
17822 (selftest::input_c_tests): New function.
17823 * rtl-tests.c: New file.
17824 * selftest-run-tests.c: New file.
17825 * selftest.c: New file.
17826 * selftest.h: New file.
17827 * spellcheck.c: Include "selftest.h".
17828 (selftest::levenshtein_distance_unit_test_oneway): New function,
17829 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
17830 (selftest::levenshtein_distance_unit_test): Likewise.
17831 (selftest::spellcheck_c_tests): Likewise.
17832 * toplev.c: Include selftest.h.
17833 (toplev::run_self_tests): New.
17834 (toplev::main): Handle -fself-test.
17835 * toplev.h (toplev::run_self_tests): New.
17836 * tree.c: Include "selftest.h".
17837 (selftest::test_integer_constants): New function.
17838 (selftest::test_identifiers): New function.
17839 (selftest::test_labels): New function.
17840 (selftest::tree_c_tests): New function.
17841 * tree-cfg.c: Include "selftest.h".
17842 (selftest::push_fndecl): New function.
17843 (selftest::test_linear_chain): New function.
17844 (selftest::test_diamond): New function.
17845 (selftest::test_fully_connected): New function.
17846 (selftest::tree_cfg_c_tests): New function.
17847 * vec.c: Include "selftest.h".
17848 (selftest::safe_push_range): New function.
17849 (selftest::test_quick_push): New function.
17850 (selftest::test_safe_push): New function.
17851 (selftest::test_truncate): New function.
17852 (selftest::test_safe_grow_cleared): New function.
17853 (selftest::test_pop): New function.
17854 (selftest::test_safe_insert): New function.
17855 (selftest::test_ordered_remove): New function.
17856 (selftest::test_unordered_remove): New function.
17857 (selftest::test_block_remove): New function.
17858 (selftest::reverse_cmp): New function.
17859 (selftest::test_qsort): New function.
17860 (selftest::vec_c_tests): New function.c.
17861 * wide-int.cc: Include selftest.h and wide-int-print.h.
17862 (selftest::from_int <wide_int>): New function.
17863 (selftest::from_int <offset_int>): New function.
17864 (selftest::from_int <widest_int>): New function.
17865 (selftest::assert_deceq): New function.
17866 (selftest::assert_hexeq): New function.
17867 (selftest::test_printing <VALUE_TYPE>): New function template.
17868 (selftest::test_ops <VALUE_TYPE>): New function template.
17869 (selftest::test_comparisons <VALUE_TYPE>): New function template.
17870 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
17872 (selftest::wide_int_cc_tests): New function.
17874 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17876 PR middle-end/37780
17877 * ifcvt.c (noce_try_ifelse_collapse): New function.
17879 (noce_process_if_block): Call noce_try_ifelse_collapse.
17880 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
17881 (simplify_ternary_operation): Use the above to simplify
17882 conditional CLZ/CTZ expressions.
17884 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17886 PR middle-end/37780
17887 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
17888 define_insn_and_split.
17890 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17892 PR middle-end/37780
17893 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
17895 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
17898 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
17899 Implicitly clobber memory for basic asm with non-empty assembler
17900 string. Use targetm.md_asm_adjust also here.
17901 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
17902 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
17903 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
17904 non-empty assembler string.
17905 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
17906 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
17907 (decode_asm_operands): Handle basic asm in PARALLEL block.
17908 (extract_insn): Handle basic asm in PARALLEL block.
17909 * doc/extend.texi: Mention new behavior of basic asm.
17910 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
17911 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
17912 branch_needs_nop_p): Use asm_noperands.
17914 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
17916 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
17917 Include the M7 SPARC DFA scheduler.
17918 New attribute v3pipe.
17919 Annotate insns with v3pipe where appropriate.
17920 Define cpu_feature vis4.
17921 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
17922 Add (V8QI "8") to vbits.
17923 Add insns {add,sub}v8qi3
17924 Add insns ss{add,sub}v8qi3
17925 Add insns us{add,sub}{v8qi,v4hi}3
17926 Add insns {min,max}{v8qi,v4hi,v2si}3
17927 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
17928 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
17929 * config/sparc/niagara4.md: Add a comment explaining the
17930 discrepancy between the documented latenty numbers and the
17932 * config/sparc/niagara7.md: New file.
17933 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
17934 supports SPARC5 and VIS 4.0 instructions.
17935 * configure: Regenerate.
17936 * config.in: Likewise.
17937 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
17938 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
17939 TARGET_CPU_niagara7.
17940 (ASM_CPU64_DEFAULT_SPEC): Likewise.
17941 (CPP_CPU_SPEC): Handle niagara7.
17942 (ASM_CPU_SPEC): Likewise.
17943 * config/sparc/sparc-opts.h (processor_type): Add
17944 PROCESSOR_NIAGARA7.
17945 (mvis4): New option.
17946 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
17947 (AS_NIAGARA7_FLAG): Define.
17948 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
17949 (CPP_CPU64_DEFAULT_SPEC): Likewise.
17950 (CPP_CPU_SPEC): Handle niagara7.
17951 (ASM_CPU_SPEC): Likewise.
17952 * config/sparc/sparc.c (niagara7_costs): Define.
17953 (sparc_option_override): Handle niagara7 and adjust cache-related
17954 parameters with better values for niagara cpus. Also support VIS4.
17955 (sparc32_initialize_trampoline): Likewise.
17956 (sparc_use_sched_lookahead): Likewise.
17957 (sparc_issue_rate): Likewise.
17958 (sparc_register_move_cost): Likewise.
17959 (dump_target_flag_bits): Support VIS4.
17960 (sparc_vis_init_builtins): Likewise.
17961 (sparc_builtins): Likewise.
17962 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
17964 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
17966 * config/sparc/sparc.opt (sparc_processor_type): New value
17968 * config/sparc/visintrin.h (__attribute__): Prototypes for the
17970 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
17972 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
17975 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
17977 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
17979 2016-06-06 Richard Biener <rguenther@suse.de>
17981 PR tree-optimization/71398
17982 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
17985 2016-06-05 James Bowman <james.bowman@ftdichip.com>
17987 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
17988 ft32_expand_prolog, ft32_expand_epilogue):
17989 Handle pretend_args.
17990 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
17991 * config/ft32/ft32.md: Add pretend_returner.
17993 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
17996 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17997 Copy op1 RTX to avoid invalid sharing.
17998 (ix86_expand_vector_move_misalign): Ditto.
18000 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
18002 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
18005 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
18007 * predict.c (predicted_by_loop_heuristics_p): New function.
18008 (predict_iv_comparison): Use it.
18009 (predict_loops): Walk from innermost loops; do not predict edges
18010 leaving multiple loops multiple times; implement
18011 PRED_LOOP_ITERATIONS_MAX heuristics.
18012 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
18014 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
18016 * cfg.c (check_bb_profile): Do not report mismatched profiles when
18017 only edges out of BB are EH edges.
18019 2016-06-04 Martin Sebor <msebor@redhat.com>
18020 Marcin Baczyński <marbacz@gmail.com>
18023 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
18024 a void expression in a void function.
18026 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
18028 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
18029 aux; dump reasons of decisions.
18030 (should_duplicate_loop_header_p): Likewise.
18031 (do_while_loop_p): Likewise.
18032 (ch_base::copy_headers): Dump asi num insns duplicated.
18034 2016-06-04 Jakub Jelinek <jakub@redhat.com>
18036 PR tree-optimization/71405
18037 * tree-ssa.c (execute_update_addresses_taken): For clobber with
18038 incompatible type, build a new clobber with the right type instead
18039 of building a VIEW_CONVERT_EXPR around it.
18041 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
18043 PR tree-optimization/52171
18044 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
18045 by_pieces_ninsns instead of move_by_pieces_ninsns.
18047 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
18049 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
18050 for reg+reg addressing mode.
18052 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18054 * rs6000-c.c (c/c-tree.h): Add #include.
18055 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
18056 in C++ when found in the base position of vec_ld or vec_st.
18058 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
18060 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
18061 use of profile unless profile status is PROFILE_READ.
18062 * profile.c (compute_branch_probabilities): Set profile status
18063 only after reporting predictor hitrates.
18065 2016-06-03 Joseph Myers <joseph@codesourcery.com>
18069 * common.opt (ffp-int-builtin-inexact): New option.
18070 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
18071 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
18072 (ceil@var{m}2): Document dependence on this option.
18073 * ipa-inline-transform.c (inline_call): Handle
18074 flag_fp_int_builtin_inexact.
18075 * ipa-inline.c (can_inline_edge_p): Likewise.
18076 * config/i386/i386.md (rintxf2): Do not test
18077 flag_unsafe_math_optimizations.
18078 (rint<mode>2_frndint): New define_insn.
18079 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
18080 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
18081 for 387 instead of extending and truncating.
18082 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
18083 !flag_trapping_math instead of flag_unsafe_math_optimizations.
18084 Change to frndint<mode>2_<rounding>.
18085 (frndintxf2_<rounding>_i387): Likewise. Change to
18086 frndint<mode>2_<rounding>_i387.
18087 (<rounding_insn>xf2): Likewise.
18088 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
18089 !flag_trapping_math instead of flag_unsafe_math_optimizations for
18090 x87. Test TARGET_ROUND || !flag_trapping_math ||
18091 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
18092 SSE. Use ROUND_NO_EXC in constant operand of
18093 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
18094 for 387 instead of extending and truncating.
18096 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
18097 Julia Koval <julia.koval@intel.com>
18109 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
18110 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
18111 all registers, except for function return registers if there are
18112 no caller-saved registers.
18113 (ix86_set_func_type): New function.
18114 (ix86_set_current_function): Call ix86_set_func_type to set
18115 no_caller_saved_registers and func_type. Call reinit_regs if
18116 caller-saved registers are changed. Don't allow MPX, SSE, MMX
18117 nor x87 instructions in interrupt handler nor function with
18118 no_caller_saved_registers attribute.
18119 (ix86_function_ok_for_sibcall): Return false if there are no
18120 caller-saved registers.
18121 (type_natural_mode): Don't warn ABI change for MMX in interrupt
18123 (ix86_function_arg_advance): Skip for callee in interrupt handler.
18124 (ix86_function_arg): Return special arguments in interrupt handler.
18125 (ix86_promote_function_mode): Promote pointer to word_mode only
18126 for normal functions.
18127 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
18129 (ix86_epilogue_uses): New function.
18130 (ix86_hard_regno_scratch_ok): Likewise.
18131 (ix86_save_reg): Preserve all registers in interrupt handler
18132 after reload. Preserve all registers, except for function return
18133 registers, if there are no caller-saved registers after reload.
18134 (find_drap_reg): Always use callee-saved register if there are
18135 no caller-saved registers.
18136 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
18137 for interrupt handler.
18138 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
18139 Emit cld instruction if stringops are used in interrupt handler
18140 or interrupt handler isn't a leaf function.
18141 (ix86_expand_epilogue): Generate interrupt return for interrupt
18142 handler and pop the 'ERROR_CODE' off the stack before interrupt
18143 return in exception handler.
18144 (ix86_expand_call): Disallow calling interrupt handler directly.
18145 If there are no caller-saved registers, mark all registers that
18146 are clobbered by the call which returns as clobbered.
18147 (ix86_handle_no_caller_saved_registers_attribute): New function.
18148 (ix86_handle_interrupt_attribute): Likewise.
18149 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
18151 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
18152 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
18153 accumulation in interrupt function if stack may be realigned to
18155 (EPILOGUE_USES): New.
18156 (function_type): New enum.
18157 (machine_function): Add func_type and no_caller_saved_registers.
18158 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
18159 (interrupt_return): New pattern.
18160 * doc/extend.texi: Document x86 interrupt and
18161 no_caller_saved_registers attributes.
18163 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
18165 PR tree-optimization/52171
18166 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
18167 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
18168 Look for constant strings. Move some code to emit_block_cmp_hints
18170 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
18171 * defaults.h (COMPARE_MAX_PIECES): New macro.
18172 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
18173 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
18174 (clear_by_pieces_1): Don't declare. Move definition before use.
18175 (can_do_by_pieces): New static function.
18176 (can_move_by_pieces): Use it. Return bool.
18177 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
18178 OP. All callers changed. Handle COMPARE_BY_PIECES.
18179 (class pieces_addr); New.
18180 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
18181 pieces_addr::adjust, pieces_addr::increment_address,
18182 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
18184 (class op_by_pieces_d): New.
18185 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
18187 (class move_by_pieces_d, class compare_by_pieces_d,
18188 class store_by_pieces_d): New subclasses of op_by_pieces_d.
18189 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
18190 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
18191 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
18192 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
18193 compare_by_pieces_d::finish_mode): New member functions.
18194 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
18196 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
18197 (emit_block_cmp_hints): New function.
18198 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
18199 use the newly defined classes.
18200 * expr.h (by_pieces_constfn): New typedef.
18201 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
18202 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
18203 (move_by_pieces_ninsns): Don't declare.
18204 (can_move_by_pieces): Change return value to bool.
18205 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
18206 (compare_by_pieces_branch_ratio): New hook.
18207 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
18208 (by_pieces_ninsns): Declare.
18209 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
18211 (default_compare_by_pieces_branch_ratio): New function.
18212 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
18213 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
18214 * doc/tm.texi: Regenerate.
18215 * tree-ssa-strlen.c: Include "builtins.h".
18216 (handle_builtin_memcmp): New static function.
18217 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
18218 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
18220 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18222 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
18223 relevant stmts which are simple and invariant.
18224 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
18225 instead of simple and invariant
18227 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18229 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
18230 (vectorizable_reduction): Check for new relevant state.
18231 (vectorizable_live_operation): vectorize live stmts using
18232 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
18233 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
18234 (vect_stmt_relevant_p): Check for stmts which are only used live.
18235 (process_use): Use of a stmt does not inherit it's live value.
18236 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
18237 (vect_analyze_stmt): Check for new relevant state.
18238 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
18239 outside the loop, but not inside it.
18241 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18243 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
18244 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
18245 (vect_get_vec_def_for_operand): Split out code.
18247 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18249 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
18251 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18253 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
18255 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18257 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
18259 2016-06-03 Jakub Jelinek <jakub@redhat.com>
18261 PR middle-end/71387
18262 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
18263 to noreturn e->callee->decl that has void return type and void
18264 arguments, adjust gimple_call_fntype and remove lhs even if it had
18265 previously addressable type.
18267 2016-06-02 Jeff Law <law@redhat.com>
18269 PR tree-optimization/71328
18270 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
18271 error when checking for a jump back onto the copied path.
18273 2016-06-02 David Malcolm <dmalcolm@redhat.com>
18275 * config/microblaze/microblaze.c (get_branch_target): Add return
18276 NULL_RTX for the non-CALL_P case.
18277 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
18278 (insert_wic): Remove unused local "j".
18280 2016-06-02 Martin Liska <mliska@suse.cz>
18282 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
18284 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
18285 Julia Koval <julia.koval@intel.com>
18287 * function.c (assign_parm_setup_stack): Force source into a
18288 register if needed.
18289 * target.def (function_incoming_arg): Update documentation to
18290 allow arbitrary address computation based on hard register.
18291 * doc/tm.texi: Regenerated.
18293 2016-06-02 Martin Liska <mliska@suse.cz>
18295 * predict.c (combine_predictions_for_bb): Fix first match in
18296 cases where a first predictor contains more than one occurence
18297 in list of predictors. Take the best value in such case.
18299 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18301 PR rtl-optimization/71295
18302 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
18303 offset would go over the size of the inner mode reject it.
18305 2016-06-02 Jakub Jelinek <jakub@redhat.com>
18307 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
18308 x=x,x and v=v,m instead of x=x,m.
18310 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
18311 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
18312 alternative to v=rm,C.
18314 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
18315 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
18316 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
18317 instead of vex for the last two above mentioned alternatives.
18319 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18322 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
18324 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
18326 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
18328 2016-06-01 David Malcolm <dmalcolm@redhat.com>
18330 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
18331 from int to unsigned.
18333 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18335 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
18336 alternatives, eliminating preferred register class. Add support
18337 for the MTVSRDD instruction in ISA 3.0.
18338 (vsx_splat_v4si_internal): Use splat_input_operand instead of
18339 reg_or_indexed_operand.
18340 (vsx_splat_v4sf_internal): Likewise.
18342 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18345 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
18346 for loading up all 0's or all 1's.
18348 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
18350 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
18352 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
18354 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
18356 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
18357 * gcc.c (set_source_date_epoch_envvar): New function, sets
18358 the SOURCE_DATE_EPOCH environment variable to the current time.
18360 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18362 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
18363 the factor for live Phi nodes.
18365 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18367 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
18368 * tree-parloops.c (parallelize_loops): likewise.
18369 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
18370 tree_unswitch_outer_loop): likewise.
18372 2016-06-01 Jakub Jelinek <jakub@redhat.com>
18374 PR middle-end/71371
18375 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
18376 around creation of the temporary.
18378 2016-06-01 Richard Biener <rguenther@suse.de>
18380 PR tree-optimization/71366
18381 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
18382 (unloop_loops): Move removing edges here ...
18383 (try_unroll_loop_completely): ... from here.
18384 (try_peel_loop): ... and here.
18385 (tree_unroll_loops_completely_1): Track parent loops via
18386 bitmap of header BBs.
18387 (tree_unroll_loops_completely): Adjust for that.
18389 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18391 * config/rs6000/altivec.h (vec_slv): New macro.
18392 (vec_srv): New macro.
18393 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
18394 (UNSPEC_VSRV): New value.
18397 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
18398 (vsrv): New builtin definition.
18399 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
18400 define argument types for new builtin.
18401 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
18403 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
18406 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
18407 Jocelyn Mayer <l_indien@magic.fr>
18410 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
18411 detect processor family for signature_CENTAUR_ebx.
18412 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
18413 signature_CENTAUR_ebx.
18414 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
18415 <default>: Pass x86-64 for has_longmode.
18417 2016-06-01 Nathan Sidwell <nathan@acm.org>
18419 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
18422 2016-06-01 Richard Biener <rguenther@suse.de>
18424 PR tree-optimization/71261
18425 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
18426 of stmts successfully put in the bool pattern. Remove
18427 single-use restriction.
18428 (adjust_bool_pattern_cast): Add cast at the use site via the
18429 pattern def sequence.
18430 (adjust_bool_pattern): Remove recursion, maintain a hash-map
18431 of patterned defs. Use the pattern def seqence instead of
18432 multiple independent patterns.
18433 (sort_after_uid): New qsort compare function.
18434 (adjust_bool_stmts): New function to process stmts in the bool
18435 pattern in IL order.
18436 (vect_recog_bool_pattern): Adjust.
18437 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
18438 (ifcvt_walk_pattern_tree): Likewise.
18439 (stmt_is_root_of_bool_pattern): Likewise.
18440 (ifcvt_repair_bool_pattern): Likewise.
18441 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
18443 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18445 * loop-unroll.c (decide_unroll_constant_iterations,
18446 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
18447 likely upper bounds.
18448 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
18450 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
18452 * tree-core.h (enum omp_clause_code): Remove
18453 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
18455 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18457 * config/arm/sync.md (arm_store_exclusive<mode>):
18458 Use 'H' output modifier on operands[2] rather than creating a new
18459 entry in out-of-bounds memory of the operands array.
18460 (arm_store_release_exclusivedi): Likewise.
18462 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18464 * config/arm/arm.c (arm_fusion_enabled_p): New function.
18465 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
18466 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
18467 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18469 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18471 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
18472 into account live statements for mask producers.
18474 2016-06-01 Richard Biener <rguenther@suse.de>
18476 PR tree-optimization/71311
18477 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
18478 restrict to non-INTEGER_CST @0.
18480 2016-06-01 Richard Biener <rguenther@suse.de>
18482 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
18483 (relational patterns): Use :c to avoid pattern duplications.
18485 2016-06-01 Richard Biener <rguenther@suse.de>
18487 * genmatch.c (comparison_code_p): New predicate.
18488 (swap_tree_comparison): New function.
18489 (commutate): Add for_vec parameter to append new for entries.
18490 Support commutating relational operators by swapping it alongside
18492 (lower_commutative): Adjust.
18493 (dt_simplify::gen): Do not pass artificial operators to gen
18495 (decision_tree::gen): Do not add artificial operators as parameters.
18496 (parser::parse_expr): Verify operator commutativity when :c is
18497 applied. Allow :C to override this.
18498 * match.pd: Adjust patterns to use :C instead of :c where required.
18500 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
18502 PR tree-optimization/71077
18503 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18504 the combining step, use boolean_false_node and boolean_true_node
18505 as the designated false/true return values.
18507 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18509 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18510 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18511 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18514 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18516 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18517 of flags impliying the register renaming.
18518 * toplev.c (process_options): Do not imply flag_rename_registers with
18521 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18523 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18524 default implementation.
18526 2016-05-31 Nathan Sidwell <nathan@acm.org>
18528 * dwarf2out.c (cur_line_info_table): Add GTY marker.
18530 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18532 * config/sh/constraints.md (b): Remove constraint.
18533 * config/sh/predicates.md (arith_reg_operand): Remove
18535 * config/sh/sh-modes.def (PDI): Remove.
18536 * config/sh/sh.c (sh_target_reg_class,
18537 sh_optimize_target_register_callee_saved): Remove functions.
18538 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18539 (sh_expand_epilogue): Update comment.
18540 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18541 sh_secondary_reload): Remove TARGET_REGS related code.
18542 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18543 TARGET_REGISTER_P): Remove macros.
18544 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18545 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18546 TR1_REG, TR2_REG): Remove constants.
18547 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18549 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18551 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18552 define_expand patterns.
18553 (adddi3_compact): Rename to adddi3.
18554 (subdi3_compact): Rename to subdi3.
18555 (*negdi2): Rename to negdi2.
18556 (*abs<mode>2): Rename to abs<mode>2.
18558 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18560 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18561 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18562 (atomic_sub_fetchsi): ... this new pattern.
18563 (mvtc): Add CC_REG clobber.
18565 2016-05-31 Marek Polacek <polacek@redhat.com>
18567 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18569 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18571 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18572 aarch64_fusion_enabled_p to check for fusion capabilities.
18574 2016-05-31 Richard Biener <rguenther@suse.de>
18576 PR tree-optimization/71352
18577 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18578 minus one and a negate.
18580 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18582 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18583 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18585 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18586 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18587 Remove use of aarch64_simd_attr_length_move, set length attribute
18589 (*aarch64_be_movoi): Likewise.
18590 (*aarch64_be_movci): Likewise.
18591 (*aarch64_be_movxi): Likewise.
18593 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18595 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18596 It no longer does that.
18597 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18599 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
18601 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18602 attribute __unused__.
18604 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
18606 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18607 * config/arm/arm.c (arm_arch_thumb1): Define.
18608 (arm_option_override): Initialize arm_arch_thumb1.
18609 * config/arm/arm.h (arm_arch_thumb1): Declare.
18610 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18611 support Thumb-1 ISA.
18613 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
18616 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18617 `Yv' for scalar operand.
18619 2016-05-31 Tom de Vries <tom@codesourcery.com>
18621 PR tree-optimization/69068
18622 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18623 phis with more than two args.
18625 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
18627 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18628 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18631 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
18633 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18635 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18637 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18638 cpu_32, cpu_64, tune_32 and tune_64.
18639 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18641 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18643 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18645 2016-05-30 Andi Kleen <ak@linux.intel.com>
18647 * auto-profile.c (read_profile): Replace asserts with errors
18648 when file does not exist.
18649 * gcov-io.c (gcov_read_words): Dito.
18651 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18653 * tree-cfg.c (print_loop): Print likely upper bounds.
18655 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18657 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18658 * opts.c (default_options): Enable peel loops at -O3.
18659 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18660 (try_peel_loop): Do not re-peel already peeled loops;
18661 use likely upper bounds; fix profile updating.
18662 (pass_complete_unroll::execute): Initialize peeled_loops.
18664 2016-05-30 Martin Liska <mliska@suse.cz>
18666 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18667 computed costs by frequency of BB they belong to.
18668 (get_scaled_computation_cost_at): New function.
18670 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
18671 Marc Glisse <marc.glisse@inria.fr>
18673 PR tree-optimization/71289
18674 * match.pd (-1 / B < A, A > -1 / B): New transformations.
18676 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18678 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18680 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18682 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18683 for peeled copies; avoid underflow when updating estimates; correctly
18684 scale loop profile.
18686 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18688 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18689 r236875. Corrected oe3 to oe2 as obvious.
18691 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18693 PR middle-end/71269
18694 PR middle-end/71252
18695 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18696 that inserted stmt will not dominate stmts that defines its operand.
18697 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18698 (rewrite_expr_tree_parallel): Likewise.
18700 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18702 PR middle-end/71252
18703 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18704 all fields including stmt_to_insert are swapped.
18706 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18708 * predict.h (force_edge_cold): Declare.
18709 * predict.c (force_edge_cold): New function.
18710 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18712 (canonicalize_loop_induction_variables): Fix formating.
18714 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
18716 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18717 (visium_expand_copysign): Use gen_int_mode directly.
18718 (visium_compute_frame_size): Minor tweaks.
18720 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18722 * tree-vect-loop.c (vect_analyze_loop_2): Use
18723 likely_max_stmt_executions_int.
18725 2016-05-30 Tom de Vries <tom@codesourcery.com>
18727 PR tree-optimization/69067
18728 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18730 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
18733 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18734 New peepholes to remove unneeded fild/fistp pairs.
18735 (define_peephole2 atomic_loaddi_fpu): Ditto.
18737 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18739 * predict.c (maybe_hot_frequency_p): Avoid division.
18741 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
18743 * doc/install.texi: Use https for shop.fsf.org.
18745 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18747 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18748 likely_max_stmt_executions_int.
18750 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18752 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18753 likely_max_stmt_executions_int.
18755 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18757 * profile.c (compute_branch_probabilities): Do not report hitrates
18759 (branch_prob): Report hitrates here.
18760 * predict.c (gimple_predict_edge): Do not assert profile status;
18761 fix formatting issues.
18763 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18765 * predict.c (edge_predicted_by_p): New function.
18766 (predict_paths_for_bb): Do not put multiple predictions of the same type
18769 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18771 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18774 2016-05-28 Alan Modra <amodra@gmail.com>
18776 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18778 2016-05-28 Alan Modra <amodra@gmail.com>
18780 PR rtl-optimization/71275
18781 * ira.c (ira): Free dominance info.
18783 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
18785 * doc/sourcebuild.texi: New address for upstream Go repository.
18787 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18789 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18790 (TARGET_ARM_V7M): Likewise.
18792 2016-05-26 Jeff Law <law@redhat.com>
18794 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
18795 (thread_across_edge): Remove calls to find_jump_threads_backwards.
18796 * passes.def: Add jump threading passes before DOM/VRP.
18797 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
18798 argument to a basic block from an edge. Remove tests which are
18800 (pass_data_thread_jumps, class pass_thread_jumps): New.
18801 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
18802 (make_pass_thread_jumps): Likewise.
18803 * tree-pass.h (make_pass_thread_jumps): Declare.
18805 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
18807 * config/visium/visium-protos.h (split_double_move): Rename into...
18808 (visium_split_double_move): ...this.
18809 (visium_split_double_add): Declare.
18810 * config/visium/visium.c (split_double_move): Rename into...
18811 (visium_split_double_move): ...this.
18812 (visium_split_double_add): New function.
18813 (visium_expand_copysign): Renumber operands for consistency.
18814 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
18815 (DFmode move splitter): Likewise.
18816 (*addi3_insn): Split by means of visium_split_double_add.
18817 (*adddi3_insn_flags): Delete.
18818 (*plus_plus_sltu<subst_arith>): New insn.
18819 (*subdi3_insn): Split by means of visium_split_double_add.
18820 (subdi3_insn_flags): Delete.
18821 (*minus_minus_sltu<subst_arith>): New insn.
18822 (*negdi2_insn): Split by means of visium_split_double_add.
18823 (*negdi2_insn_flags): Delete.
18825 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
18827 * configure.ac: Treat a --with-headers option without argument
18828 the same as the default (i.e. consult sys-include directory).
18829 * configure: Regenerate.
18831 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18833 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
18834 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
18836 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
18837 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18839 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18842 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
18843 tree-stdarg analysis results.
18844 (aarch64_setup_incoming_varargs): Likewise.
18846 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18848 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
18849 va_list_gpr_counter_field and va_list_fpr_counter_field.
18851 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
18854 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
18855 * config/aarch64/aarch64.c
18856 (aarch64_cannot_change_mode_class): Remove function.
18857 * config/aarch64/aarch64-protos.h
18858 (aarch64_cannot_change_mode_class): Remove.
18860 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18862 * cfgloop.c (record_niter_bound): Record likely upper bounds.
18863 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
18864 get_likely_max_loop_iterations_int): New.
18865 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
18866 any_likely_upper_bound.
18867 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
18869 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
18870 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
18872 (unroll_loop_constant_iterations): Likewise.
18873 (unroll_loop_runtime_iterations): Likewise.
18874 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
18875 * lto-streamer-out.c (output_cfg): Likewise.
18876 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
18878 (canonicalize_loop_induction_variables): Dump likely upper bounds.
18879 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
18880 (likely_max_loop_iterations): New.
18881 (likely_max_loop_iterations_int): New.
18882 (likely_max_stmt_executions): New.
18883 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
18884 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
18885 likely_max_stmt_executions): Declare.
18887 2016-05-27 Marek Polacek <polacek@redhat.com>
18889 PR middle-end/71308
18890 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
18892 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18894 * config/s390/s390.md (2x risbg splitters): Use
18895 reg_overlap_mentioned_p instead of rtx_equal_p.
18897 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18899 * combine.c (make_compound_operation): Take known zero bits into
18900 account when checking for possible zero_extend.
18902 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18904 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
18905 Use const_int_operand for operand 2 predicate. Simplify expand code
18908 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
18910 PR middle-end/71279
18911 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
18914 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18916 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
18917 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
18918 that returns CC_SESWPmode and CC_ZESWPmode.
18919 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
18921 (aarch64_rtx_costs): Likewise.
18923 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18925 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
18926 for ISA 3.0 min/max support.
18927 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
18928 conditional move support.
18929 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
18930 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
18932 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
18933 conditional moves where the comparison type is different from move
18935 (fp_minmax): New code iterator for smin/smax.
18936 (minmax): New code attributes for min/max.
18937 (SMINMAX): Likewise.
18938 (smax<mode>3): Combine min, max insns into one insn using the
18939 fp_minmax code iterator. Add support for ISA 3.0 min/max
18940 instructions that don't need -ffast-math.
18941 (s<minmax><mode>3): Likewise.
18942 (smax<mode>3_vsx): Likewise.
18943 (smin<mode>3): Likewise.
18944 (s<minmax><mode>3_vsx): Likewise.
18945 (smin<mode>3_vsx): Likewise.
18946 (pre-VSX min/max splitters): Likewise.
18947 (s<minmax><mode>3_fpr): Likewise.
18948 (movsfcc): Rewrite floating point conditional moves to combine
18949 SFmode/DFmode into a single insn.
18950 (mov<mode>cc): Likewise.
18951 (movdfcc): Likewise.
18952 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
18953 SFDF2 iterators to handle all combinations.
18954 (fseldfsf4): Likewise.
18955 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
18956 (fseldfdf4): Likewise.
18957 (fselsfdf4): Likewise.
18958 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
18959 comparison instructions that set a 0/-1 mask, and use it for
18960 floating point conditional move via XXSEL.
18961 (fpmask<mode>): Likewise.
18962 (xxsel<mode>): Likewise.
18963 * config/rs6000/predicates.md (min_max_operator): Delete, no
18965 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
18966 instructions that generate a 0/-1 mask for use with XXSEL.
18967 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
18968 say whether floating point min/max is available, either through
18969 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
18970 (TARGET_MINMAX_DF): Likewise.
18972 2016-05-27 Alan Modra <amodra@gmail.com>
18974 PR rtl-optimization/71275
18975 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
18976 for update_equiv_regs and combine_and_move_insns.
18978 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
18980 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
18981 if_then_else or cond RTXes to calculate attribute value.
18982 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
18983 <attr "length_immediate>: Ditto.
18984 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
18985 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
18986 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
18987 <attr "type">: Ditto.
18988 <attr "prefix_data16">: Ditto.
18989 <attr "prefix_extra">: Ditto.
18990 <attr "length_immediate">: Ditto.
18991 <attr "prefix">: Ditto.
18992 (vec_set<mode>_0) <attr "isa">: Ditto.
18993 <attr "prefix_extra">: Ditto.
18994 <attr "length_immediate">: Ditto.
18995 <attr "prefix">: Ditto.
18996 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
18997 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
18998 (sse2_storelpd) <attr "prefix_data16">: Ditto.
18999 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
19000 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
19001 <attr "length_immediate">: Ditto.
19002 <attr "prefix">: Ditto.
19003 (sse2_movsd) <attr "length_immediate">: Ditto.
19004 <attr "prefix">: Ditto.
19005 (vec_concatv2df) <attr "isa">: Ditto.
19006 <attr "prefix">: Ditto.
19007 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
19008 (*vec_extractv2di_1) <attr "isa">: Ditto.
19009 <attr "type">: Ditto.
19010 <attr "length_immediate">: Ditto.
19011 <attr "prefix_rex">: Ditto.
19012 <attr "prefix_extra">: Ditto.
19013 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
19014 <attr "prefix_extra">: Ditto.
19015 <attr "length_immediate">: Ditto.
19016 (vec_concatv2di) <attr "isa">: Ditto.
19017 <attr "prefix_extra">: Ditto.
19018 <attr "length_immediate">: Ditto.
19019 <attr "prefix">: Ditto.
19021 2016-05-26 Martin Liska <mliska@suse.cz>
19023 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
19025 (operator+): Likewise.
19026 (operator-): Likewise.
19027 (comp_cost::operator+=): Likewise.
19028 (comp_cost::operator-=): Likewise.
19029 (comp_cost::operator/=): Likewise.
19030 (comp_cost::operator*=): Likewise.
19031 (operator<): Likewise.
19032 (operator==): Likewise.
19033 (operator<=): Likewise.
19034 (new_cost): Remove.
19035 (infinite_cost_p): Likewise.
19036 (add_costs): Likewise.
19037 (sub_costs): Likewise.
19038 (compare_costs): Likewise.
19039 (set_group_iv_cost): Use the newly introduced functions.
19040 (get_address_cost): Likewise.
19041 (get_shiftadd_cost): Likewise.
19042 (force_expr_to_var_cost): Likewise.
19043 (split_address_cost): Likewise.
19044 (ptr_difference_cost): Likewise.
19045 (difference_cost): Likewise.
19046 (get_computation_cost_at): Likewise.
19047 (determine_group_iv_cost_generic): Likewise.
19048 (determine_group_iv_cost_address): Likewise.
19049 (determine_group_iv_cost_cond): Likewise.
19050 (autoinc_possible_for_pair): Likewise.
19051 (determine_group_iv_costs): Likewise.
19052 (cheaper_cost_pair): Likewise.
19053 (iv_ca_recount_cost): Likewise.
19054 (iv_ca_set_no_cp): Likewise.
19055 (iv_ca_set_cp): Likewise.
19056 (iv_ca_cost): Likewise.
19057 (iv_ca_new): Likewise.
19058 (iv_ca_dump): Likewise.
19059 (iv_ca_narrow): Likewise.
19060 (iv_ca_prune): Likewise.
19061 (iv_ca_replace): Likewise.
19062 (try_add_cand_for): Likewise.
19063 (try_improve_iv_set): Likewise.
19064 (find_optimal_iv_set): Likewise.
19066 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
19068 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
19069 that internal functions will clobber all caller-saved registers.
19071 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
19073 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
19074 Return a better case_values_threshold when optimizing.
19076 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
19078 * config/aarch64/aarch64-simd.md (aarch64_combinez):
19079 Add ? to integer variant.
19080 (aarch64_combinez_be): Likewise.
19082 2016-05-26 Jakub Jelinek <jakub@redhat.com>
19084 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
19085 instead of x constraint.
19086 (vcvtps2ph256<mask_name>): Likewise.
19088 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
19089 alternative. Formatting fix.
19091 * config/i386/sse.md
19092 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
19094 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
19095 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
19096 maybe_evex prefix instead of vex.
19097 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
19098 EXT_REX_SSE_REG_P (op0) case in the splitter.
19100 2016-05-25 Jeff Law <law@redhat.com>
19102 PR tree-optimization/71272
19103 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
19104 Update comments. Add test for empty path.
19106 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
19108 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
19109 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
19110 special case builtin.
19111 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19112 code for ALTIVEC_BUILTIN_VEC_CMPNE.
19113 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19114 for __builtin_vec_cmpne.
19116 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
19118 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
19119 redundant test and bail out if the type of the new operand is not
19120 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
19122 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
19124 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
19125 (x_ix86_target_flags_explicit): Remove.
19126 * config/i386/i386.c (ix86_function_specific_save): Do not copy
19127 x_ix86_target_flags_explicit.
19128 (ix86_function_specific_restore): Ditto.
19130 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
19131 H.J. Lu <hongjiu.lu@intel.com>
19134 * common/config/i386/i386-common.c
19135 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
19136 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
19137 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
19138 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
19139 (-mgeneral-regs-only): Add new option.
19140 * config/i386/i386.c (ix86_option_override_internal): Don't enable
19141 x87 instructions if only general registers are allowed.
19142 (ix86_target_string): Add ix86_flags argument. Handle additional
19143 flags options through ix86_flags argument. Update all callers.
19144 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
19146 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19148 PR rtl-optimization/66940
19149 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
19150 decrementing desired_val will not overflow before performing these
19153 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
19155 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
19156 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
19157 * config/i386/i386.c (enum ix86_builtins): Add
19158 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
19159 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
19160 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
19161 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
19162 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
19163 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
19164 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
19165 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
19166 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
19167 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
19168 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
19169 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
19170 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
19171 __builtin_ia32_cvtps2dq512_mask.
19172 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
19173 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
19174 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
19175 * config/i386/sse.md
19176 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
19178 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
19179 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
19181 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
19182 (avx512f_vec_pack_sfix_v8df): New define_expand.
19183 (avx512f_roundpd512): Rename to ...
19184 (avx512f_round<castmode>512): ... this. Change iterator.
19185 (avx512f_roundps512_sfix): New define_expand.
19186 (round<mode>2_sfix): Change iterator.
19188 2016-05-25 Nick Clifton <nickc@redhat.com>
19190 * config/msp430/msp430.c (msp430_attr): Produce an error if a
19191 static interrupt handler is detected.
19192 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
19193 default linker script.
19194 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
19195 the low part of a symbolic pointer.
19197 2016-05-25 Richard Biener <rguenther@suse.de>
19199 PR tree-optimization/71261
19200 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
19201 interesting stmt instead of immediate uses when looking
19202 for the use operand to replace.
19204 2016-05-25 Martin Liska <mliska@suse.cz>
19206 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
19208 2016-05-25 Richard Biener <rguenther@suse.de>
19210 PR tree-optimization/71264
19211 * tree-vect-stmts.c (vect_init_vector): Properly deal with
19214 2016-05-25 Martin Liska <mliska@suse.cz>
19216 PR tree-optimization/71239
19217 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
19218 if DECL_SIZE is NULL.
19220 2016-05-25 Richard Biener <rguenther@suse.de>
19222 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
19223 * tree-if-conv.c (pass_data_if_conversion): Use it.
19225 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19227 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
19228 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
19229 * varpool.c (varpool_node::get_availability): Likewise.
19231 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19233 * config/rs6000/altivec.md (VNEG iterator): New iterator for
19234 VNEGW/VNEGD instructions.
19235 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
19236 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
19237 support for ISA 3.0 VNEGW/VNEGD instructions.
19239 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
19241 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
19242 pointers inside OACC_DATA regions.
19243 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
19244 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
19245 (gimplify_adjust_omp_clauses): Fix typo in comment.
19247 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19249 * config/rs6000/altivec.md (VParity): New mode iterator for vector
19250 parity built-in functions.
19251 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
19253 (p9v_parity<mode>2): Likewise.
19254 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
19256 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
19257 (parity<mode>2): ISA 3.0 expander for vector parity.
19258 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
19260 (BU_P9_64BIT_MISC_0): Likewise.
19261 (BU_P9_MISC_0): Likewise.
19262 (BU_P9V_AV_1): Likewise.
19263 (BU_P9V_AV_2): Likewise.
19264 (BU_P9V_AV_3): Likewise.
19265 (BU_P9V_AV_P): Likewise.
19266 (BU_P9V_VSX_1): Likewise.
19267 (BU_P9V_OVERLOAD_1): Likewise.
19268 (BU_P9V_OVERLOAD_2): Likewise.
19269 (BU_P9V_OVERLOAD_3): Likewise.
19270 (VCTZB): Add vector count trailing zeros support.
19274 (VPRTYBD): Add vector parity support.
19275 (VPRTYBQ): Likewise.
19276 (VPRTYBW): Likewise.
19277 (VCTZ): Add overloaded vector count trailing zeros support.
19278 (VPRTYB): Add overloaded vector parity support.
19279 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19280 overloaded vector count trailing zeros and parity instructions.
19281 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
19282 vector parity support.
19283 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
19284 trailing zeros support.
19285 (vec_cntlz): Likewise.
19286 (vec_vctzb): Likewise.
19287 (vec_vctzd): Likewise.
19288 (vec_vctzh): Likewise.
19289 (vec_vctzw): Likewise.
19290 (vec_vprtyb): Add ISA 3.0 vector parity support.
19291 (vec_vprtybd): Likewise.
19292 (vec_vprtybw): Likewise.
19293 (vec_vprtybq): Likewise.
19294 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19295 the ISA 3.0 vector count trailing zeros and vector parity built-in
19298 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19300 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
19301 when there is stmt_to_insert.
19303 2016-05-24 Martin Sebor <msebor@redhat.com>
19306 * tree.h (complete_or_array_type_p): New inline function.
19308 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19310 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
19311 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
19312 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
19314 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
19315 Limit 1st alternative to noavx isa, split 2nd alternative into one
19316 noavx and one avx alternative, use *x and Bm in the former and
19317 x and m in the latter.
19319 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
19320 of sse4 for the first alternative, drop %v from the template
19321 and d operand modifier. Split second alternative into one sse4_noavx
19322 and one avx alternative, use *x instead of *v in the former and v
19323 instead of *v in the latter.
19324 (*sse4_1_extractps): Use noavx isa instead of * for the first
19325 alternative, drop %v from the template. Split second alternative into
19326 one noavx and one avx alternative, use *x instead of *v in the
19327 former and v instead of *v in the latter.
19328 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
19329 with noavx and the last one with avx.
19330 (sse4_1_phminposuw): Guard first alternative with noavx isa,
19331 split the second one into one noavx and one avx alternative,
19332 use *x and Bm in the former and x and m in the latter one.
19333 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
19336 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
19337 first two alternatives to noavx, use *x instead of *v in the second
19338 one, add avx alternative without *.
19339 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
19340 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
19341 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
19343 2016-05-24 Jeff Law <law@redhat.com>
19345 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
19346 New function, extracted from...
19347 (fsm_find_control_statement_thread_paths): Here. Use the new function.
19348 Allow simple copies and constant initializations in the SSA chain.
19350 2016-05-24 Marek Polacek <polacek@redhat.com>
19353 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
19356 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19359 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
19360 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
19361 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
19362 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
19363 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
19365 2016-05-24 Richard Biener <rguenther@suse.de>
19367 PR tree-optimization/71240
19368 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
19371 2016-05-24 Richard Biener <rguenther@suse.de>
19373 PR tree-optimization/71230
19374 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
19376 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19378 * tree-vectorizer.h (vectorizable_comparison): Delete.
19379 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
19380 PURE_SLP_STMT check.
19381 * tree-vect-stmts.c (vectorizable_call): Likewise.
19382 (vectorizable_simd_clone_call): Likewise.
19383 (vectorizable_conversion): Likewise.
19384 (vectorizable_assignment): Likewise.
19385 (vectorizable_shift): Likewise.
19386 (vectorizable_operation): Likewise.
19387 (vectorizable_load): Likewise.
19388 (vectorizable_condition): Likewise.
19389 (vectorizable_store): Likewise. Assert that we don't have
19391 (vectorizable_comparison): Make static. Remove redundant
19392 PURE_SLP_STMT check.
19393 (vect_transform_stmt): Assert that we always have an slp_node
19396 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19398 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
19399 operands[2] against 1 with comparison against CONST1_RTX.
19400 (<shift>di3_neon): Likewise.
19401 * config/arm/predicates.md (const0_operand): Replace with comparison
19402 against CONST0_RTX.
19404 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19406 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
19407 operands[2] against 1 with comparison against CONST1_RTX.
19408 (ashrdi3): Likewise.
19409 (lshrdi3): Likewise.
19410 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
19412 (ashrsi3): Likewise.
19413 (lshrsi3): Likewise.
19414 (rotrsi3): Likewise.
19415 (define_split above *compareqi_eq0): Likewise.
19416 (define_split above "prologue"): Likewise.
19417 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
19418 * config/arm/predicates.md (shift_operator): Likewise.
19419 (shift_nomul_operator): Likewise.
19420 (sat_shift_operator): Likewise.
19421 (thumb1_cmp_operand): Likewise.
19422 (const_neon_scalar_shift_amount_operand): Replace manual range
19423 check with IN_RANGE.
19424 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
19425 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
19427 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19429 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
19430 with HOST_WIDE_INT_1.
19432 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
19433 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
19434 (arm_canonicalize_comparison): Likewise.
19435 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
19437 (thumb1_size_rtx_costs): Likewise.
19438 (vfp_const_double_index): Replace cast of 1 to unsigned
19439 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19440 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
19442 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
19443 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19444 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
19445 HOST_WIDE_INT with HOST_WIDE_INT_1.
19447 2016-05-24 Marek Polacek <polacek@redhat.com>
19449 * tree-cfg.h (should_remove_lhs_p): New predicate.
19450 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19451 * gimplify.c (gimplify_modify_expr): Likewise.
19452 * tree-cfg.c (verify_gimple_call): Likewise.
19453 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19454 * gimple-fold.c: Include "tree-cfg.h".
19455 (gimple_fold_call): Use should_remove_lhs_p.
19457 2016-05-24 Richard Biener <rguenther@suse.de>
19459 PR tree-optimization/71253
19460 * cfganal.h (control_dependences): Make robust against edge
19462 (control_dependences::control_dependences): Remove edge_list argument.
19463 (control_dependences::get_edge): Remove.
19464 (control_dependences::get_edge_src): Add.
19465 (control_dependences::get_edge_dest): Likewise.
19466 (control_dependences::m_el): Make a vector of edge src/dest index.
19467 * cfganal.c (control_dependences::find_control_dependence): Adjust.
19468 (control_dependences::control_dependences): Likewise.
19469 (control_dependences::~control_dependence): Likewise.
19470 (control_dependences::get_edge): Remove.
19471 (control_dependences::get_edge_src): Add.
19472 (control_dependences::get_edge_dest): Likewise.
19473 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
19475 (perform_tree_ssa_dce): Adjust.
19476 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
19478 (pass_loop_distribution::execute): Adjust. Do loop destroying
19479 conditional on changed.
19481 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19484 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
19485 return. Reindent transformation comment and mention the ARM state
19488 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19490 PR middle-end/71252
19491 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19492 after build_and_add_sum creates new use stmt.
19494 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19496 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19497 load_lanes/grouped_load classification comes first. Don't check
19498 whether the vectorization factor is a multiple of the group size
19501 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19503 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19504 GROUP_GAP for single-element interleaving.
19505 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19508 2016-05-24 Richard Biener <rguenther@suse.de>
19510 PR middle-end/70434
19512 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19513 bases which are accessed with non-invariant indices.
19514 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19515 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19517 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19519 PR middle-end/71170
19520 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19521 (add_to_ops_vec): Add stmt_to_insert.
19522 (add_repeat_to_ops_vec): Init stmt_to_insert.
19523 (insert_stmt_before_use): New.
19524 (transform_add_to_multiply): Remove mult_stmt insertion and add it
19526 (get_ops): Init stmt_to_insert.
19527 (maybe_optimize_range_tests): Likewise.
19528 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19529 (rewrite_expr_tree_parallel): Likewise.
19530 (reassociate_bb): Likewise.
19532 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19535 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19536 ISA 3.0 xxperm fusion alternative.
19537 (altivec_vperm_v8hiv16qi): Likewise.
19538 (altivec_vperm_<mode>_uns_internal): Likewise.
19539 (vperm_v8hiv4si): Likewise.
19540 (vperm_v16qiv8hi): Likewise.
19542 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19543 Kelvin Nilsen <kelvin@gcc.gnu.org>
19545 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19546 vpermr/xxpermr on ISA 3.0.
19547 (altivec_expand_vec_perm_le): Likewise.
19548 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19549 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19552 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
19554 * config/i386/i386.h (IS_STACK_MODE): Enable for
19555 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
19556 SSE_FLOAT_MODE_P macros.
19557 * config/i386/i386.c (ix86_preferred_reload_class): Use
19558 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19559 Cleanup regclass processing for CONST_DOUBLE_P.
19560 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19561 (ix86_rtx_costs): Remove redundant TARGET_80387 check
19562 with IS_STACK_MODE macro.
19563 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19565 (*movdf_internal): Use IS_STACK_MODE macro.
19566 (*movsf_internal): Ditto.
19568 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
19570 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19571 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19573 2016-05-23 Jeff Law <law@redhat.com>
19575 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19577 (fsm_find_control_statement_thread_paths): Call it.
19579 2016-05-23 Martin Jambor <mjambor@suse.cz>
19582 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19583 from_global_constant if t is not NULL.
19585 2016-05-23 Marek Polacek <polacek@redhat.com>
19588 * common.opt (Wswitch-unreachable): New option.
19589 * doc/invoke.texi: Document -Wswitch-unreachable.
19590 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19593 2016-05-23 Bin Cheng <bin.cheng@arm.com>
19595 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19596 TMR_INDEX is non-NULL.
19598 2016-05-23 Richard Biener <rguenther@suse.de>
19600 PR tree-optimization/71230
19601 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19602 (try_special_add_to_ops): ... here. Always test for single-use.
19604 2016-05-23 Martin Jambor <mjambor@suse.cz>
19606 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19607 default block if a PHI node in the original one would be resized.
19609 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19611 PR tree-optimization/58135
19612 * tree-vect-slp.c: When group size is not multiple
19613 of vector size, allow splitting of store group at
19616 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
19618 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19620 2016-05-22 Jakub Jelinek <jakub@redhat.com>
19622 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19623 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19624 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
19627 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19628 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19629 v constraint instead of x and vinserti32x4 insn.
19631 * config/i386/sse.md (i128vldq): New mode iterator.
19632 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19633 avx512dq and avx512vl alternatives.
19635 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19636 constraint, use maybe_evex prefix instead of vex.
19637 (vec_dupv4sf): Use v constraint instead of x for output
19638 operand except for noavx alternative, use Yv constraint
19639 instead of x for input. Use maybe_evex prefix instead of vex.
19640 (*vec_dupv4si): Likewise.
19641 (*vec_dupv2di): Likewise.
19643 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19645 PR middle-end/40921
19646 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19647 (linearize_expr_tree): Call try_special_add_to_ops.
19648 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19650 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19652 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19653 to computed stack_usage.
19655 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19658 * config/avr/avr.md (define_expand "mov<mode>"): If the source
19659 operand is subreg (symbol_ref) then move the symbol ref to register.
19661 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
19663 * tree.c (array_at_struct_end_p): Look through MEM_REF.
19665 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
19667 PR middle-end/71179
19668 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19671 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19673 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19674 ranges by calling get_single_symbol and tidy up. Look more closely
19675 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19677 2016-05-20 Jeff Law <law@redhat.com>
19679 * bitmap.c (bitmap_find_bit): Remove useless test.
19681 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19683 * function.c (thread_prologue_and_epilogue_insns): Commit the
19684 insertion of the epilogue.
19686 2016-05-20 Martin Jambor <mjambor@suse.cz>
19688 PR tree-optimization/70884
19689 * tree-sra.c (initialize_constant_pool_replacements): Do not check
19690 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19691 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19692 of constant pool data as a reason for scalarization.
19694 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19696 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19697 for naked functions.
19698 (thumb1_expand_prologue): Likewise.
19700 2016-05-20 Nathan Sidwell <nathan@acm.org>
19702 * config/nvptx/nptx.c (nvptx_option_override): Only set
19703 flag_toplevel_reorder, if not explicitly specified. Set
19704 flag_no_common, unless explicitly specified.
19706 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19708 * calls.c (can_implement_as_sibling_call_p): Mark param
19709 reg_parm_stack_space with ATTRIBUTE_UNUSED.
19711 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
19713 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19714 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19715 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19717 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19718 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19719 and CASE_CONST_ANY.
19721 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
19723 * config/nvptx/nvptx.md (sincossf3): New pattern.
19725 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19727 * calls.c (maybe_complain_about_tail_call): New function.
19728 (initialize_argument_information): Call
19729 maybe_complain_about_tail_call when clearing *may_tailcall.
19730 (can_implement_as_sibling_call_p): Call
19731 maybe_complain_about_tail_call when returning false.
19732 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19733 ensure try_tail_call is set. Call maybe_complain_about_tail_call
19734 if tail-call optimization fails.
19735 * cfgexpand.c (expand_call_stmt): Initialize
19736 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19737 * gimple-pretty-print.c (dump_gimple_call): Dump
19738 gimple_call_must_tail_p.
19739 * gimple.c (gimple_build_call_from_tree): Call
19740 gimple_call_set_must_tail with the value of
19741 CALL_EXPR_MUST_TAIL_CALL.
19742 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19743 (gimple_call_set_must_tail): New function.
19744 (gimple_call_must_tail_p): New function.
19745 * print-tree.c (print_node): Update printing of TREE_STATIC
19746 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19747 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19748 trailing comment listing applicable flags.
19749 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19751 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19753 * calls.c (expand_call): Move "Rest of purposes for tail call
19754 optimizations to fail" to...
19755 (can_implement_as_sibling_call_p): ...this new function, and
19756 split into multiple "if" statements.
19758 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19760 * cfgloop.h (expected_loop_iterations_unbounded,
19761 expected_loop_iterations): Unconstify.
19762 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19763 profile with known upper bound; return 3 when profile is absent.
19764 (expected_loop_iterations): Update.
19766 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19768 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19769 and get_max_loop_iterations_int.
19771 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19773 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19774 realistic upper bounds here.
19776 2016-05-20 Jakub Jelinek <jakub@redhat.com>
19779 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19780 calls if the LHS is variable length or has addressable type.
19781 If targets[0]->decl is a noreturn call with void return type and
19782 zero arguments, adjust fntype and remove lhs in that case.
19784 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
19786 PR tree-optimization/71079
19787 PR tree-optimization/71206
19788 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19790 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19792 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
19793 (get_vec_alignment_for_array_decl): Likewise.
19794 (get_vec_alignment_for_record_decl): Likewise.
19795 (increase_alignment::execute): Move code to find alignment to
19796 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
19797 (type_align_map): New hash_map.
19799 2016-05-20 Richard Guenther <rguenther@suse.de>
19801 PR tree-optimization/29756
19802 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
19803 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
19804 * fold-const.c (operand_equal_p): Likewise.
19805 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
19806 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
19807 * tree-inline.c (estimate_operator_cost): Likewise.
19808 * tree-pretty-print.c (dump_generic_node): Likewise.
19809 * tree-ssa-operands.c (get_expr_operands): Likewise.
19810 * cfgexpand.c (expand_debug_expr): Likewise.
19811 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19812 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
19813 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
19814 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
19815 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
19816 (execute_update_addresses_taken): Do it.
19818 2016-05-20 Richard Biener <rguenther@suse.de>
19820 PR tree-optimization/71185
19821 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
19822 register operations.
19824 2016-05-20 Richard Biener <rguenther@suse.de>
19826 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
19827 gimple_seq_add_seq_without_update.
19828 (release_bb_predicate): Assert we have no operands to free.
19829 (if_convertible_loop_p_1): Calculate post dominators later.
19830 Do not free BB predicates here.
19831 (combine_blocks): Do not recompute BB predicates.
19832 (version_loop_for_if_conversion): Save BB predicates around
19835 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19837 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
19838 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
19839 code. Ignore sibcalls on EDGE_IGNORE edges.
19840 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
19841 on edges for sibcalls that run without prologue. The rest of the
19842 function is combined from...
19843 (fix_fake_fallthrough_edge): ... this, and ...
19844 (try_shrink_wrapping): ... a part of this. Remove the bb_with
19845 function argument, make it a local variable.
19847 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
19849 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
19850 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
19851 for 32-bit mode and SEH for 64-bit.
19852 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
19853 TARGET_64BIT_DEFAULT.
19855 2016-05-19 Ryan Burn <contact@rnburn.com>
19857 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
19858 * gengtype.c (open_base_files): Add cilk.h to ifiles.
19860 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
19862 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
19863 force pending loads from memory.
19865 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
19867 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
19868 (UNSPEC_DARN_32): New unspec constant.
19869 (UNSPEC_DARN_RAW): New unspec constant.
19870 (darn_32): New instruction.
19871 (darn_raw): New instruction.
19872 (darn): New instruction.
19873 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
19874 support and documentation for this macro.
19875 (BU_P9_MISC_1): New macro definition.
19876 (BU_P9_64BIT_MISC_0): New macro definition.
19877 (BU_P9_MISC_0): New macro definition.
19878 (darn_32): New builtin definition.
19879 (darn_raw): New builtin definition.
19880 (darn): New builtin definition.
19881 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
19882 RS6000_BUILTIN_0 directives to surround each occurrence of
19883 #include "rs6000-builtin.def".
19884 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
19885 RS6000_BTM_64BIT flags to the returned mask, depending on
19887 (def_builtin): Correct an error in the assignments made to the
19888 debugging variable attr_string.
19889 (rs6000_expand_builtin): Add support for no-operand built-in
19891 (builtin_function_type): Remove fatal_error assertion that is no
19893 (rs6000_common_init_builtins): Add support for no-operand built-in
19895 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
19897 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
19899 (RS6000_BTM_64BIT): New macro definition.
19900 * doc/extend.texi: Document __builtin_darn (void),
19901 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
19904 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
19906 * tree-vect-loop.c (vect_analyze_loop_2): Use also
19907 max_loop_iterations_int.
19909 2016-05-19 Marek Polacek <polacek@redhat.com>
19911 PR tree-optimization/71031
19912 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
19913 condition and adjust the code a bit.
19915 2016-05-19 Martin Liska <mliska@suse.cz>
19917 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
19918 auto_vec instead of vec.
19920 2016-05-19 Martin Liska <mliska@suse.cz>
19922 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
19924 2016-05-19 Martin Liska <mliska@suse.cz>
19926 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
19928 2016-05-19 Martin Liska <mliska@suse.cz>
19930 * ipa-pure-const.c (set_function_state): Remove an existing
19932 (remove_node_data): Do not free it as it's released
19933 in set_function_state.
19935 2016-05-19 Martin Liska <mliska@suse.cz>
19937 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
19940 2016-05-19 Martin Liska <mliska@suse.cz>
19942 * omp-simd-clone.c (simd_clone_adjust): Release vector.
19944 2016-05-19 Martin Liska <mliska@suse.cz>
19946 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
19947 an auto_vec instead of re-creating it.
19949 2016-05-19 Martin Liska <mliska@suse.cz>
19951 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
19952 auto_vec instead of vec.
19954 2016-05-19 Martin Liska <mliska@suse.cz>
19956 * lto-section-in.c (lto_get_section_data): Call
19957 lto_check_version with additional argument.
19958 * lto-streamer.c (lto_check_version): Add new argument.
19959 * lto-streamer.h (lto_check_version): Likewise.
19961 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19963 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
19964 Don't add cost of inner memory when handling sign-extended loads.
19966 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
19968 PR rtl-optimization/71148
19969 * cse.c (cse_main): Free dominance info.
19970 (rest_of_handle_cse): Don't free dominance info.
19971 (rest_of_handle_cse2): Likewise.
19972 (rest_of_handle_cse_after_global_opts): Likewise.
19974 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19977 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
19978 NULL_TREE early if NEON is not available. Remove now redundant check
19979 in ARM_CHECK_BUILTIN_MODE.
19981 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
19984 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
19985 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
19986 * doc/cpp.texi: Document new macros.
19988 2016-05-19 Bin Cheng <bin.cheng@arm.com>
19990 PR tree-optimization/69848
19991 * tree-vect-loop.c (vectorizable_reduction): Don't factor
19992 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
19994 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19996 * function.c (thread_prologue_and_epilogue_insn): Move the
19997 "goto epilogue_done" one block later.
19999 2016-05-19 Richard Biener <rguenther@suse.de>
20001 PR tree-optimization/70729
20002 * passes.def: Move LIM pass before PRE. Remove no longer
20003 required copyprop and move first DCE out of the loop pipeline.
20005 2016-05-18 David Malcolm <dmalcolm@redhat.com>
20008 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
20009 (OBJS-libcommon-target): ...here.
20010 * opts-common.c: Include spellcheck.h.
20011 (cmdline_handle_error): Build a vec of valid options and use it
20012 to suggest provide hints for misspelled arguments.
20014 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20017 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
20018 lhs if it has TREE_ADDRESSABLE type.
20020 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
20023 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
20024 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
20026 2016-05-18 Martin Jambor <mjambor@suse.cz>
20029 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
20030 input for NOP_EXPR pass-through functions.
20031 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
20032 aggregate global constant VAR_DECLs in constant jump functions.
20034 2016-05-18 Martin Jambor <mjambor@suse.cz>
20037 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
20038 from TREE_READONLY parameters.
20040 2016-05-18 Martin Jambor <mjambor@suse.cz>
20043 * cgraph.h (cgraph_indirect_call_info): New field
20044 guaranteed_unmodified.
20045 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
20046 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20048 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
20049 pass the parameter value to ipa_find_agg_cst_for_param.
20050 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
20051 guaranteed_unmodified, store AA results there instead of bailing out
20053 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
20054 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
20055 (find_constructor_constant_at_offset): New function.
20056 (ipa_find_agg_cst_from_init): Likewise.
20057 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
20058 static initializers of contants, report back through a new paameter
20059 from_global_constant if that was the case.
20060 (try_make_edge_direct_simple_call): Also pass parameter value to
20061 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20063 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
20064 (ipa_read_indirect_edge_info): Likewise.
20065 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
20066 (ipa_load_from_parm_agg): Likewise.
20068 2016-05-18 Jiong Wang <jiong.wang@arm.com>
20070 PR rtl-optimization/71150
20071 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
20074 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20077 * config/rs6000/constraints.md (wE constraint): New constraint
20078 for a vector constant that can be loaded with XXSPLTIB.
20079 (wM constraint): New constraint for a vector constant of a 1's.
20080 (wS constraint): New constraint for a vector constant that can be
20081 loaded with XXSPLTIB and a vector sign extend instruction.
20082 * config/rs6000/predicates.md (xxspltib_constant_split): New
20083 predicates for wE/wS constraints.
20084 (xxspltib_constant_nosplit): Likewise.
20085 (easy_vector_constant): Add support for constants that can be
20086 loaded via XXSPLTIB.
20087 (all_ones_constant): New predicate for vector constant with all
20089 (splat_input_operand): Add support for ISA 3.0 word splat operations.
20090 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
20091 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
20092 instruction and possibly with a sign extension.
20093 (output_vec_const_move): Add support for XXSPLTIB. If we are
20094 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
20095 instead of XXLXOR/XXLORC.
20096 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
20098 (rs6000_legitimize_reload_address): Likewise.
20099 (rs6000_output_move_128bit): Use output_vec_const_move to emit
20101 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
20102 combine VSX_M and VSX_M2 into one iterator.
20103 (VSX_M2): Likewise.
20104 (VSINT_84): New iterators for loading constants with XXSPLTIB.
20105 (VSINT_842): Likewise.
20106 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
20107 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
20108 XXSPLTIB instruction.
20109 (xxspltib_<mode>_nosplit): Likewise.
20110 (xxspltib_<mode>_split): New insn to load up constants with
20111 XXSPLTIB and a sign extend instruction.
20112 (vsx_mov<mode>): Replace single move that handled all vector types
20113 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
20114 moves (when -mvsx-timode is in effect) into the main vector
20115 moves. Eliminate separate moves for <VSr> <VSa>, where the
20116 preferred register class (<VSr>) is listed first, and the
20117 secondary register class (<VSa>) is listed second with a '?' to
20118 discourage use. Prefer loading 0/-1 in any VSX register for ISA
20119 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
20120 that if the register was involved in a slow operation, the
20121 clear/set operation does not wait for the slow operation to
20122 finish. Adjust the length attributes for 32-bit mode. Use
20123 rs6000_output_move_128bit and drop the use of the string
20124 instructions for 32-bit movti when -mvsx-timode is in effect. Use
20125 spacing so that the alternatives and attributes don't generate
20126 long lines, and put things in columns, so that it is easier to
20127 match up the operands and attributes with the insn alternatives.
20128 (vsx_mov<mode>_64bit): Likewise.
20129 (vsx_mov<mode>_32bit): Likewise.
20130 (vsx_movti_64bit): Fold movti into normal vector moves.
20131 (vsx_movti_32bit): Likewise.
20132 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
20133 splat instructions.
20134 (vsx_splat_v4si_internal): Likewise.
20135 (vsx_splat_v4sf_internal): Likewise.
20136 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
20137 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
20138 extend vector elements.
20139 (vsx_sign_extend_hi_<mode>): Likewise.
20140 (vsx_sign_extend_si_v2di): Likewise.
20141 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
20143 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
20144 constraints. Add trailing period to wL documentation.
20146 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
20148 PR middle-end/71020
20149 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
20150 * tree-dfa.c (replace_abnormal_ssa_names): New function.
20151 * tree-call-cdce.c: Include tree-dfa.h.
20152 (can_guard_call_p): New function, extracted from...
20153 (can_use_internal_fn): ...here.
20154 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
20156 (shrink_wrap_one_built_in_call): Likewise.
20157 (use_internal_fn): Likewise.
20158 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
20159 and return void. Call replace_abnormal_ssa_names.
20160 (pass_call_cdce::execute): Check can_guard_call_p during the
20161 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
20162 will always change something.
20164 2016-05-18 Martin Jambor <mjambor@suse.cz>
20167 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
20168 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
20170 2016-05-18 Martin Jambor <mjambor@suse.cz>
20173 * ipa-inline.h (condition): New field size.
20174 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
20175 for comaprison and store it into the new condition.
20176 (evaluate_conditions_for_known_args): Use condition size to check
20177 access sizes for all but CHANGED conditions.
20178 (unmodified_parm_1): New parameter size_p, store access size into it.
20179 (unmodified_parm): Likewise.
20180 (unmodified_parm_or_parm_agg_item): Likewise.
20181 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
20182 (set_cond_stmt_execution_predicate): Extract access sizes and store
20183 them to conditions.
20184 (set_switch_stmt_execution_predicate): Likewise.
20185 (will_be_nonconstant_expr_predicate): Likewise.
20186 (will_be_nonconstant_predicate): Likewise.
20187 (inline_read_section): Stream condition size.
20188 (inline_write_summary): Likewise.
20190 2016-05-18 Richard Biener <rguenther@suse.de>
20192 * tree-ssa-loop-im.c (determine_max_movement): Properly add
20193 condition cost to PHI cost instead of total_cost.
20195 2016-05-18 Martin Liska <mliska@suse.cz>
20198 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
20201 2016-05-18 Richard Biener <rguenther@suse.de>
20203 * lto-streamer.h (LTO_major_version): Bump to 6.
20205 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20207 * function.c (make_split_prologue_seq, make_prologue_seq,
20208 make_epilogue_seq): New functions, factored out from...
20209 (thread_prologue_and_epilogue_insns): Here.
20211 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20213 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
20214 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
20215 of before. Add a comment.
20217 2016-05-18 Bin Cheng <bin.cheng@arm.com>
20219 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
20220 expression pointer, not pointer to the pointer.
20222 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20224 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
20225 (avx2_pbroadcast<mode>): Add another alternative with v instead
20226 of x constraints in it, using <pbroadcast_evex_isa> isa.
20227 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
20229 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
20230 constraint x instead of v in second alternative, add avx512bw
20233 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
20234 constraint x instead of v in second alternative, add avx512bw
20237 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
20238 constraint x instead of v in second alternative, add avx512bw
20241 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
20242 avx512bw alternative.
20244 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20246 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
20247 array to 128 chars.
20248 (define_insn "*andnottf3"): Ditto.
20249 (define_insn "*<code><mode>3"/any_logic): Ditto.
20250 (define_insn "*<code>tf3"/any_logic): Ditto.
20251 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
20252 operand to block AVX-512VL insn variant emit when it is not enabled.
20254 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20256 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
20257 constraint fot SF mode.
20259 2016-05-18 Petr Murzin <petr.murzin@intel.com>
20260 Kirill Yukhin <kirill.yukhin@intel.com>
20262 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
20264 (define_insn "rsqrt14<mode>"): Ditto.
20265 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20266 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
20267 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
20268 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
20269 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
20271 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
20272 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
20273 * config/i386/i386.c (ix86_print_operand): Expand check for size
20274 override codes for Intel syntax.
20276 2016-05-18 Richard Biener <rguenther@suse.de>
20278 PR tree-optimization/71168
20279 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
20280 initialization earlier.
20282 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
20284 * config/aarch64/aarch64-simd.md
20285 (aarch64_reduc_plus_internal<mode>): Rename to...
20286 (reduc_plus_scal): ...This, and remove previous implementation.
20288 2016-05-18 Richard Biener <rguenther@suse.de>
20290 * passes.def: Put late dse and cd_dce in canonical order.
20292 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
20294 * ipa-inline-transform.c (preserve_function_body_p): Look for
20295 first non-thunk clone.
20296 (save_function_body): Save into first non-thunk.
20297 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
20299 (lto_output_node): Inline thunks don't need body in every
20301 * lto-streamer-in.c: Do not fixup thunk clones.
20302 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
20304 * tree-inline.c (copy_bb): Be prepared for target node to be new after
20307 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20309 PR middle-end/63586
20310 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
20311 (reassociate_bb): Call transform_add_to_multiply.
20313 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20315 * config/aarch64/aarch64.c (all_extensions): Removed unused
20318 2016-05-17 Nathan Sidwell <nathan@acm.org>
20320 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
20321 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
20323 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
20325 PR tree-optimization/54579
20326 PR middle-end/55299
20327 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
20329 2016-05-17 Marek Polacek <polacek@redhat.com>
20332 * tree-inline.c (expand_call_inline): Call
20333 maybe_remove_unused_call_args.
20335 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
20337 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
20338 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
20339 * doc/md.texi (fmin@var{m}3): Likewise.
20341 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20343 * match.pd (X & C): New transformation.
20345 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20347 * match.pd (~X & Y): New transformation.
20349 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20351 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
20352 information for new SSA_NAME.
20353 (simplify_conversion_using_ranges): Get range through get_range_info
20354 instead of get_value_range.
20356 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20358 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
20359 Remove inline assembly.
20360 (vmvn_s16): Likewise.
20361 (vmvn_s32): Likewise.
20362 (vmvn_u8): Likewise.
20363 (vmvn_u16): Likewise.
20364 (vmvn_u32): Likewise.
20365 (vmvnq_s8): Likewise.
20366 (vmvnq_s16): Likewise.
20367 (vmvnq_s32): Likewise.
20368 (vmvnq_u8): Likewise.
20369 (vmvnq_u16): Likewise.
20370 (vmvnq_u32): Likewise.
20371 (vmvn_p8): Likewise.
20372 (vmvnq_p16): Likewise.
20374 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20376 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
20378 (vmul_n_s16): Likewise.
20379 (vmul_n_s32): Likewise.
20380 (vmul_n_u16): Likewise.
20381 (vmul_n_u32): Likewise.
20382 (vmulq_n_f32): Likewise.
20383 (vmulq_n_f64): Likewise.
20384 (vmulq_n_s16): Likewise.
20385 (vmulq_n_s32): Likewise.
20386 (vmulq_n_u16): Likewise.
20387 (vmulq_n_u32): Likewise.
20389 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20391 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
20392 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
20394 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20396 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
20397 to *aarch64_fma4_elt_from_dup<mode>.
20398 (*aarch64_fnma4_elt_to_128df): Rename to
20399 *aarch64_fnma4_elt_from_dup<mode>.
20400 * config/aarch64/arm_neon.h (vfma_n_f64): New.
20401 (vfms_n_f32): Likewise.
20402 (vfms_n_f64): Likewise.
20403 (vfmsq_n_f32): Likewise.
20404 (vfmsq_n_f64): Likewise.
20406 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
20408 * wide-int.h: Change fixed_wide_int_storage from class to struct.
20410 2016-05-17 Richard Biener <rguenther@suse.de>
20412 PR tree-optimization/71132
20413 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
20414 Only add control dependences for blocks in the loop.
20415 (build_rdg): Adjust.
20416 (generate_code_for_partition): Return whether loop should
20417 be destroyed and delay that.
20418 (distribute_loop): Likewise.
20419 (pass_loop_distribution::execute): Record loops to be destroyed
20420 and perform delayed destroying of loops.
20422 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20425 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
20427 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20429 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
20431 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
20434 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
20435 insertion point for instructions generated by validize_mem.
20437 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20439 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
20442 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20444 * config/aarch64/aarch64.c
20445 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
20446 rather than a macro.
20448 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20450 * doc/invoke.texi (AArch64 Options): Various updates.
20452 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20454 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
20455 into instrumentation thunks.
20456 * cif-code.def (CIF_CHKP): New.
20458 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
20460 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
20462 2016-05-16 Martin Jambor <mjambor@suse.cz>
20464 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
20465 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
20467 2016-05-16 Marek Polacek <polacek@redhat.com>
20469 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
20472 2016-05-16 Martin Jambor <mjambor@suse.cz>
20475 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
20476 the outlined kernel function.
20478 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
20480 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
20481 (ISA_HAS_DLSA): Ditto.
20483 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20485 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20487 2016-05-16 Nathan Sidwell <nathan@acm.org>
20489 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20490 (nvptx_name_replacement): Restore. Add comment.
20491 (write_fn_proto, write_fn_proto_from_insn,
20492 nvptx_output_call_insn): Restore
20493 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20495 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20497 * config/aarch64/aarch64.md
20498 (add<mode>3_compareC_cconly_imm): Remove use of %w.
20499 (add<mode>3_compareC_imm): Likewise.
20500 (<optab>si3_uxtw): Split into register and immediate variants.
20501 (andsi3_compare0_uxtw): Likewise.
20502 (and<mode>3_compare0): Likewise.
20503 (and<mode>3nr_compare0): Likewise.
20504 (stack_protect_test_<mode>): Don't use %x for memory operands.
20506 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20508 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20510 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20512 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20513 Split integer shifts into shift_reg and bfm.
20514 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20515 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20516 (ror<mode>3_insn): Likewise.
20517 (<optab>si3_insn_uxtw): Likewise.
20518 (<optab><mode>3_insn): Change to rotate_imm.
20519 (extr<mode>5_insn_alt): Likewise.
20520 (extrsi5_insn_uxtw): Likewise.
20521 (extrsi5_insn_uxtw_alt): Likewise.
20523 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20525 * doc/tm.texi: Regenerate.
20526 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20527 (TARGET_INVALID_RETURN_TYPE): Remove.
20528 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20529 TARGET_INVALID_RETURN_TYPE.
20530 * target.def (invalid_parameter_type): Remove.
20531 (invalid_return_type): Remove.
20533 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20535 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20536 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20538 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20540 (preserve_function_body_p): No need to preserve function body
20541 * cif-codes.def (CIF_THUNK): Remove.
20542 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20544 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20546 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20548 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20550 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20553 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20555 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20556 (inline_small_functions): Do not look for function symbol when
20559 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20561 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20564 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20565 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20566 Jiong Wang <jiong.wang@arm.com>
20568 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20569 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20570 Define __ARM_FP16_ARGS when appropriate.
20571 * config/arm/arm.c (arm_invalid_parameter_type): Remove
20573 (arm_invalid_return_type): Likewise.
20574 (TARGET_INVALID_PARAMETER_TYPE): Remove.
20575 (TARGET_INVALID_RETURN_TYPE): Remove.
20576 (aapcs_vfp_sub_candidate): Allow HFmode.
20577 (aapcs_vfp_allocate): Add comment. Support HFmode.
20578 (aapcs_vfp_allocate_return_reg): Likewise.
20579 (struct aapcs_cp_arg_layout): Slightly reword comments for
20580 is_return_candidate and allocate_return_reg.
20581 (output_mov_vfp): Update assert.
20582 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20584 (arm_invalid_parameter_type): Remove.
20585 (amr_invalid_return_type): Remove.
20586 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20587 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20588 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20590 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20592 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20593 * config/aarch64/arch64-protos.h
20594 (aarch64_legitimize_reload_address): Remove.
20595 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20598 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
20600 * configure.ac: Add ACX_NONCANONICAL_HOST.
20601 * configure: Regenerate.
20602 * Makefile.in: Set host_noncanonical.
20604 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
20607 * config/i386/i386.md (*movtf_internal): Before register allocation,
20608 do not allow FP constants for CM_MEDIUM memory model, allow only
20609 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20610 (*movxf_internal): Ditto.
20611 (*movdf_internal): Ditto.
20612 (*movsf_internal): Ditto.
20614 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20616 PR rtl-optimization/67483
20617 * combine.c (make_compound_operation): Don't call extract_left_shift
20618 with negative shift amounts.
20620 2016-05-13 Jakub Jelinek <jakub@redhat.com>
20623 * fold-const.c (fold_checksum_tree): Allow modification
20624 of TYPE_ALIAS_SET during folding.
20626 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20627 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20628 (ix86_split_to_parts): Likewise. Fix up formatting.
20630 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
20632 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20633 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20636 2016-05-13 Nathan Sidwell <nathan@acm.org>
20638 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20639 (nvptx_name_replacement): Delete.
20640 (write_fn_proto, write_fn_proto_from_insn,
20641 nvptx_output_call_insn): Remove nvptx_name_replacement call.
20642 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20643 * langhooks.c (add_builtin_funcction_common): Call
20644 targetm.mangle_decl_assembler_name.
20646 * config/nvptx/nvptx.c (write_fn_proto): Handle
20647 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20649 2016-05-13 Martin Liska <mliska@suse.cz>
20651 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20652 and PRIu64 in printf format.
20654 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20656 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20659 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20661 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20662 Change --param max-completely-peeled-times to
20663 --param max-completely-peel-times in dump file printing.
20665 2016-05-13 Richard Biener <rguenther@suse.de>
20667 PR tree-optimization/42587
20668 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20669 (find_bswap_or_nop_1): Likewise.
20670 (bswap_replace): Likewise.
20672 2016-05-13 Martin Liska <mliska@suse.cz>
20674 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20675 Initialize a variable with default value.
20677 2016-05-13 Martin Liska <mliska@suse.cz>
20679 * doc/invoke.texi: Enhance explanation of error recovery
20682 2016-05-13 Martin Liska <mliska@suse.cz>
20684 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20685 (struct cost_pair): Change inv_expr_id (int) to inv_expr
20686 (iv_inv_expr_ent *).
20687 (struct iv_inv_expr_ent): Comment struct fields.
20688 (sort_iv_inv_expr_ent): New function.
20689 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20690 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20691 a hash_map between iv_inv_expr_ent and number of usages.
20692 (niter_for_exit): Fix coding style.
20693 (tree_ssa_iv_optimize_init): Use renamed variable.
20694 (determine_base_object): Fix coding style.
20695 (alloc_iv): Likewise.
20696 (find_interesting_uses_outside): Likewise.
20697 (add_candidate_1): Likewise.
20698 (add_standard_iv_candidates): Likewise.
20699 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20700 (prepare_decl_rtl): Fix coding style.
20701 (get_address_cost): Likewise.
20702 (get_shiftadd_cost): Likewise.
20703 (force_expr_to_var_cost): Likewise.
20704 (compare_aff_trees): Likewise.
20705 (get_expr_id): Restructure the function.
20706 (get_loop_invariant_expr_id): Renamed to
20707 get_loop_invariant_expr.
20708 (get_computation_cost_at): Replace usage of inv_expr_id with
20710 (get_computation_cost): Likewise.
20711 (determine_group_iv_cost_generic): Likewise.
20712 (determine_group_iv_cost_address): Likewise.
20713 (iv_period): Fix coding style.
20714 (iv_elimination_compare_lt): Likewise.
20715 (may_eliminate_iv): Likewise.
20716 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
20718 (determine_group_iv_costs): Dump invariant expressions.
20719 (iv_ca_recount_cost): Use the newly added hash_map.
20720 (iv_ca_set_remove_invariants): Fix coding style.
20721 (iv_ca_set_add_invariants): Fix coding style.
20722 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20724 (iv_ca_set_cp): Likewise.
20725 (iv_ca_new): Initialize the newly added hash_map and remove
20726 initialization of fields.
20727 (iv_ca_free): Delete the hash_map.
20728 (iv_ca_dump): Dump invariant expressions.
20729 (iv_ca_extend): Fix coding style.
20730 (try_add_cand_for): Likewise.
20731 (create_new_ivs): Dump information about # of avg iterations and
20732 # of used invariant expressions.
20733 (rewrite_use_compare): Fix coding style.
20734 (free_loop_data): Set default value for max_inv_expr_id.
20736 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20738 * cse.c (rest_of_handle_cse): Use cleanup_cfg
20739 returned value cse_cfg_altered computation.
20740 (rest_of_handle_cse2): Likewise.
20741 (rest_of_handle_cse_after_global_opts): Likewise.
20743 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20746 * config/arm/arm.c (arm32_output_mi_thunk): New.
20747 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20748 to split Thumb1 vs TARGET_32BIT functionality.
20749 (arm_thumb1_mi_thunk): New.
20751 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20753 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20756 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20759 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20761 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
20763 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20764 (expand_builtin_trap): Emit a regular call.
20765 (set_builtin_user_assembler_name): Remove obsolete cases.
20766 * dse.c (scan_insn): Adjust.
20767 * except.c: Include calls.h.
20768 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20769 emit a regular call to setjmp.
20770 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20771 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20772 (emit_block_move_via_libcall): Delete.
20773 (block_move_fn): Delete.
20774 (init_block_move_fn): Likewise.
20775 (emit_block_move_libcall_fn): Likewise.
20776 (emit_block_op_via_libcall): New function.
20777 (set_storage_via_libcall): Tidy up and use memset builtin.
20778 (block_clear_fn): Delete.
20779 (init_block_clear_fn): Likewise.
20780 (clear_storage_libcall_fn): Likewise.
20781 (expand_assignment): Call emit_block_move_via_libcall.
20782 Do not include gt-expr.h.
20783 * expr.h (emit_block_op_via_libcall): Declare.
20784 (emit_block_copy_via_libcall): New inline function.
20785 (emit_block_move_via_libcall): Likewise.
20786 (emit_block_comp_via_libcall): Likewise.
20787 (block_clear_fn): Delete.
20788 (init_block_move_fn): Likewise.
20789 (init_block_clear_fn): Likewise.
20790 (emit_block_move_via_libcall): Likewise.
20791 (set_storage_via_libcall): Add default parameter value.
20792 * libfuncs.h (enum libfunc_index): Remove obsolete values.
20793 (abort_libfunc): Delete.
20794 (memcpy_libfunc): Likewise.
20795 (memmove_libfunc): Likewise.
20796 (memcmp_libfunc): Likewise.
20797 (memset_libfunc): Likewise.
20798 (setbits_libfunc): Likewise.
20799 (setjmp_libfunc): Likewise.
20800 (longjmp_libfunc): Likewise.
20801 (profile_function_entry_libfunc): Likewise.
20802 (profile_function_exit_libfunc): Likewise.
20803 (gcov_flush_libfunc): Likewise.
20804 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
20805 and DECL_VISIBILITY on the declaration.
20806 (init_optabs): Do not initialize obsolete libfuncs.
20807 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
20808 * tree-core.h (ECF_RET1): Define.
20809 (ECF_TM_PURE): Adjust.
20810 (ECF_TM_BUILTIN): Likewise.
20811 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
20812 (build_common_builtin_nodes): Initialize abort builtin.
20813 Add ECF_RET1 on memcpy, memmove and memset builtins.
20814 Pass final flags for alloca and alloca_with_align builtins.
20815 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
20817 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
20818 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
20819 set_storage_via_libcall and call emit_block_copy_via_libcall.
20821 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
20823 * config/i386/i386.md (*call_got_x32): Change operand 0 to
20824 DImode before it is passed to ix86_output_call_operand.
20825 (*call_value_got_x32): Ditto for operand 1.
20827 2016-05-12 Jiong Wang <jiong.wang@arm.com>
20829 PR rtl-optimization/70904
20830 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
20831 reload for wide mode.
20833 2016-05-12 Marek Polacek <polacek@redhat.com>
20836 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
20837 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
20838 * langhooks.h (incomplete_type_error): Likewise.
20839 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
20840 parameter, pass it down to incomplete_type_error.
20841 * tree.h (size_in_bytes): New inline overload.
20842 (size_in_bytes_loc): Renamed from size_in_bytes.
20844 2016-05-12 Richard Biener <rguenther@suse.de>
20846 PR tree-optimization/71059
20847 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
20848 nary before looking up or entering the expression into the VN
20850 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
20851 Make sure to re-use NARYs without result as inserted by
20854 2016-05-12 Richard Biener <rguenther@suse.de>
20856 PR tree-optimization/71062
20857 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
20859 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20860 vars_contains_restrict if the var is a restrict tag.
20861 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
20862 do not disambiguate pointers against it.
20863 (dump_points_to_solution): Re-structure and adjust for new
20864 vars_contains_restrict flag.
20865 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
20867 2016-05-12 Martin Liska <mliska@suse.cz>
20869 * doc/invoke.texi: Explain connection between
20870 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
20872 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
20874 PR tree-optimization/71006
20875 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20876 consider COND_EXPR as a mask producer.
20878 2016-05-12 Marek Polacek <polacek@redhat.com>
20881 * opts.c (common_handle_option): Detect missing argument for --help^.
20883 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20886 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
20887 when popping the PC and within an interrupt handler routine.
20888 Add missing tab to output of "ldmfd".
20889 (output_return_instruction): Output LDMFD with SP update rather
20890 than POP when returning from interrupt handler.
20892 2016-05-12 Jakub Jelinek <jakub@redhat.com>
20894 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
20895 TARGET_64BIT && TARGET_AVX512DQ.
20896 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
20897 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
20898 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
20899 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
20900 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
20901 (*vec_extractv4si_zext): Add avx512dq alternative.
20902 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
20903 use v instead of x constraint in other alternatives where possible.
20905 * config/i386/sse.md (sse2_loadld): Use v instead of x
20906 constraint in alternatives 0,1,4.
20908 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
20909 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
20910 v constraints instead of x and <pinsr_evex_isa> isa attribute.
20913 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
20914 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
20915 is not emitted unless TARGET_AVX512BW.
20916 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
20917 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
20918 for the result operand.
20920 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
20921 constraint instead of x in avx alternatives. Use maybe_evex instead
20924 * config/i386/constraints.md (Yv): New constraint.
20925 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
20926 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
20927 * config/i386/i386.md (avx512fvecmode): New mode attr.
20928 (*pushtf): Use v constraint instead of x.
20929 (*movtf_internal): Likewise. For TARGET_AVX512VL and
20930 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
20931 (*absneg<mode>2): Use Yv constraint instead of x constraint.
20932 (*absnegtf2_sse): Likewise.
20933 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
20934 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
20935 avx512f alternatives.
20936 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
20938 2016-05-12 Richard Biener <rguenther@suse.de>
20940 PR tree-optimization/71060
20941 * tree-data-ref.c (initialize_data_dependence_relation): Do not
20942 require exact match of DR_BASE_OBJECT but only matching address and
20945 2016-05-12 Richard Biener <rguenther@suse.de>
20947 PR tree-optimization/70986
20948 * cfganal.c: Include cfgloop.h.
20949 (dfs_find_deadend): Prefer to take edges exiting loops.
20951 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20953 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
20954 compile and run time.
20956 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
20959 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
20961 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
20963 * config/i386/i386.c (legitimize_pic_address): Use
20964 copy_to_suggested_reg instead of gen_movsi.
20966 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20968 * config/rs6000/predicates.md (quad_memory_operand): Move most of
20969 the code into quad_address_p and call it to share code with
20970 vsx_quad_dform_memory_operand.
20971 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
20973 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
20974 bit instead of being a separate word. Split -mpower9-dform into
20975 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20976 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
20977 for the register class supporting 128-bit quad word memory offsets.
20978 (mode_supports_vsx_dform_quad): Helper function to return if the
20979 register class uses quad word memory offsets.
20980 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
20981 (rs6000_debug_reg_global): Always print if we are using LRA or not.
20982 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
20983 instructions are enabled, set up the appropriate addr_masks for
20985 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
20986 -mpower9-dform-scalar, instead of -mpower9-dform.
20987 (rs6000_option_override_internal): Split -mpower9-dform into two
20988 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
20989 -mpower9-dform switch sets or clears both. If we are not using
20990 the LRA register allocator, do not enable -mpower9-dform-vector by
20991 default. If we are using LRA, enable -mpower9-dform-vector and
20992 -mvsx-timode if it is appropriate. Issue a warning if either
20993 -mpower9-dform-vector or -mvsx-timode are explicitly used without
20995 (quad_address_offset_p): New helper function to return if the
20996 offset is legal for quad word memory instructions.
20997 (quad_address_p): New function to determin if GPR or vector
20998 register quad word memory addresses are legal.
20999 (mem_operand_gpr): Validate quad word address offsets.
21000 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
21001 d-form (register + offset) instructions.
21002 (offsettable_ok_by_alignment): Likewise.
21003 (rs6000_legitimate_offset_address_p): Likewise.
21004 (legitimate_lo_sum_address_p): Likewise.
21005 (rs6000_legitimize_address): Likewise.
21006 (rs6000_legitimize_reload_address): Add more debug statements for
21008 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
21009 d-form instructions.
21010 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
21011 d-form instructions. Distinguish different cases in debug
21012 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
21013 d-form instructions.
21014 (rs6000_preferred_reload_class): Likewise.
21015 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
21016 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
21017 of the ISA 2.06 indexed memory instructions.
21018 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
21019 use them to save/restore the saved vector registers instead of
21020 using Altivec instructions.
21021 (rs6000_emit_epilogue): Likewise.
21022 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
21023 (rs6000_opt_masks): Split -mpower9-dform into
21024 -mpower9-dform-scalar and -mpower9-dform-vector.
21025 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
21027 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
21028 ISA 3.0 vector indexed memory instructions, and fold the code into
21029 the normal mov<mode> patterns.
21030 (p9_vecstore_<mode>): Likewise.
21031 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
21033 (vsx_movti_64bit): Likewise.
21034 (vsx_movti_32bit): Likewise.
21035 * config/rs6000/constraints.md (wO constraint): New constraint for
21036 ISA 3.0 vector d-form support.
21037 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
21038 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
21039 include -mpower9-dform-vector until we switch over to LRA.
21040 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
21041 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21042 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
21043 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21044 for -mpower9-dform and -mlra.
21045 * doc/md.texi (wO constraint): Document wO constraint.
21047 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
21049 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
21050 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
21051 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
21052 Move handling of non-insn arguments inline into the sole user:
21053 (output_trans_func): ...here.
21054 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
21055 in emitted function prototype.
21056 (output_internal_insn_latency_func): Ditto. Simplify.
21057 (output_internal_maximal_insn_latency_func): Ditto. Delete
21058 always-unused argument.
21059 (output_insn_latency_func): Ditto.
21060 (output_maximal_insn_latency_func): Ditto.
21062 2016-05-11 Richard Biener <rguenther@suse.de>
21064 PR tree-optimization/71055
21065 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
21066 sth with precision not equal to access size verify we don't chop
21069 2016-05-11 Richard Biener <rguenther@suse.de>
21072 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
21073 (dwarf2out_finish): Move retry_incomplete_types call ...
21074 (dwarf2out_early_finish): ... here.
21076 2016-05-11 Richard Biener <rguenther@suse.de>
21078 PR middle-end/71002
21079 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
21080 if the langhook insists on it.
21081 * fold-const.c (make_bit_field_ref): Add arg for the original
21082 reference and preserve its alias-set.
21083 (decode_field_reference): Take exp by reference and adjust it
21084 to the original memory reference.
21085 (optimize_bit_field_compare): Adjust callers.
21086 (fold_truth_andor_1): Likewise.
21087 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
21089 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
21091 PR middle-end/70807
21092 * cfgrtl.h (delete_insn_and_edges): Now return bool.
21093 * cfgrtl.c (delete_insn_and_edges): Likewise.
21094 * config/i386/i386.c (convert_scalars_to_vector): Remove
21096 * cse.c (cse_insn): Compute cse_cfg_altered.
21097 (delete_trivially_dead_insns): Likewise.
21098 (cse_cc_succs): Likewise.
21099 (rest_of_handle_cse): Free dominance info if required.
21100 (rest_of_handle_cse2): Likewise.
21101 (rest_of_handle_cse_after_global_opts): Likewise.
21103 2016-05-11 Alan Modra <amodra@gmail.com>
21105 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
21106 abi_v4_pass_in_fpr): New functions.
21107 (rs6000_function_arg_boundary): Exclude complex IBM long double
21108 from 64-bit alignment when ABI_V4.
21109 (rs6000_function_arg, rs6000_function_arg_advance_1,
21110 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
21112 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
21114 PR rtl-optimization/71028
21115 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
21116 jump with just a return in the fallthrough block if the branch
21117 block contains just a return as well.
21119 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
21121 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
21122 * match.pd ((X & Y) ^ Y): ... this.
21123 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
21124 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
21126 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21128 * read-md.c (require_char_ws): New function.
21129 (read_string): Simplify using require_char_ws.
21130 (handle_constants): Likewise.
21131 (handle_enum): Likewise.
21132 (handle_file): Likewise.
21133 * read-md.h (require_char_ws): New declaration.
21134 * read-rtl.c (read_conditions): Simplify using require_char_ws.
21135 (read_mapping): Likewise.
21136 (read_rtx_code): Likewise.
21137 (read_nested_rtx): Likewise.
21139 2016-05-10 James Norris <jnorris@codesourcery.com>
21141 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
21142 if offloading is enabled and -fopenacc or -fopenmp is specified.
21143 (CRTOFFLOADEND): Likewise.
21144 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
21145 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
21147 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
21149 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
21150 gotoff_operand code paths. Use copy_to_suggested_regs and
21151 expand_simple_binop where appropriate. Cleanup.
21153 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21156 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
21158 (dimode_scalar_chain::vector_const_cost): New.
21159 (dimode_scalar_chain::compute_convert_gain): Handle constants.
21160 (dimode_scalar_chain::convert_op): Likewise.
21161 (dimode_scalar_chain::convert_insn): Likewise.
21163 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21165 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
21166 unary operation, not a binary one.
21168 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21170 PR middle-end/70877
21171 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
21172 calls with type casted fndecl.
21174 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21176 PR tree-optimization/70786
21177 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
21178 * calls.c (initialize_argument_information): Bind bounds
21179 with corresponding args passed by reference.
21181 2016-05-10 Jakub Jelinek <jakub@redhat.com>
21184 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
21185 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
21186 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
21189 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21192 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
21193 code for a zero scale factor.
21194 (vsx_xvcvdpuxds_scale): Likewise.
21196 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21198 * diagnostic-show-locus.c (layout::layout): Call show_ruler
21199 if show_ruler_p was set on the context.
21200 (layout::show_ruler): New method.
21201 * diagnostic.h (struct diagnostic_context): Add field
21204 2016-05-10 Richard Biener <rguenther@suse.de>
21206 PR tree-optimization/71039
21207 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
21208 (chk_uses): New function.
21209 (propagate_with_phi): Verify we can safely replicate the lhs of an
21210 aggregate assignment on all incoming edges.
21212 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
21214 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
21216 (rx_atomic_sequence): New class.
21217 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
21218 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
21220 (rx_atomic_sequence::rx_atomic_sequence,
21221 rx_atomic_sequence::~rx_atomic_sequence): New functions.
21222 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
21223 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
21224 CTRLREG_INTB): New constants.
21225 (FETCHOP): New code iterator.
21226 (fethcop_name, fetchop_name2): New iterator code attributes.
21227 (QIHI): New mode iterator.
21228 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
21229 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
21230 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
21232 2016-05-10 Martin Liska <mliska@suse.cz>
21234 * tree-inline.c (remap_dependence_clique): Do not remap
21235 debugging statements.
21237 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21239 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
21240 ("*fixuns_truncdfdi2_z13")
21241 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
21242 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
21243 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
21245 2016-05-10 Richard Biener <rguenther@suse.de>
21247 PR tree-optimization/70497
21248 PR tree-optimization/28367
21249 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
21251 (visit_reference_op_load): ... here.
21252 (vn_reference_lookup_3): Use it to handle subreg-like accesses
21253 with simplified BIT_FIELD_REFs.
21254 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
21255 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
21258 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21260 * dwarf2out.c (add_abstract_origin_attribute): Adjust
21261 documentation comment. For BLOCK nodes, add a
21262 DW_AT_abstract_origin attribute that points to the DIE generated
21263 for the origin BLOCK.
21264 (gen_lexical_block_die): Call add_abstract_origin_attribute for
21265 blocks from inlined functions.
21267 2016-05-10 Alan Modra <amodra@gmail.com>
21270 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
21271 regrename modifying insns saving lr before __morestack call.
21272 * config/rs6000/rs6000.md (split_stack_return): Similarly for
21273 insns restoring lr after __morestack call.
21275 2016-05-09 Jakub Jelinek <jakub@redhat.com>
21277 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
21278 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
21280 * config/i386/sse.md (vec_interleave_high<mode>,
21281 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
21282 <avx512>_vpermt2var<mode>3_maskz): Likewise.
21284 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21286 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
21287 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
21288 parallel reassociation for power8 and forward.
21290 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
21292 * config/i386/i386.md (absneg splitters with general regs): Use
21293 general_reg_operand predicate.
21294 (btsq peephole2): Use x86_64_immediate_operand to check if new
21295 value is suitable for immediate operand. Generate emitted insn
21296 using RTL expressions.
21297 (btcq peephole2): Ditto.
21298 (btrq peephole2): Ditto. Generate correct immediate operand
21301 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21303 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
21306 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21308 * tree-affine.c (wide_int_constant_multiple_p): Add missing
21309 pointer dereference.
21311 2016-05-09 Richard Biener <rguenther@suse.de>
21313 PR tree-optimization/70985
21314 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
21315 op0 isn't a gimple register.
21317 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
21319 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
21320 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
21321 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
21322 (i6400_fpu_mult): New cpu units.
21323 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
21324 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
21325 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
21326 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
21327 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
21328 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
21329 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
21330 (i6400_msa_long_float4, i6400_msa_long_float5)
21331 (i6400_msa_long_float8, i6400_msa_fdiv_df)
21332 (i6400_msa_fdiv_sf): New reservations.
21333 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
21334 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
21335 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
21336 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
21337 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
21338 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
21339 (msa_short_cmp, msa_short_float2, msa_short_logic3)
21340 (msa_short_store4, msa_long_load, msa_short_store)
21341 (msa_long_logic, msa_long_float2, msa_long_float4)
21342 (msa_long_float5, msa_long_float8, msa_long_mult)
21343 (msa_long_fdiv, msa_long_div): New reservations.
21345 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
21346 Sameera Deshpande <sameera.deshpande@imgtec.com>
21347 Matthew Fortune <matthew.fortune@imgtec.com>
21348 Graham Stott <graham.stott@imgtec.com>
21349 Chao-ying Fu <chao-ying.fu@imgtec.com>
21351 * config.gcc: Add MSA header file for mips*-*-* target.
21352 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
21353 (Ubv8i, Urv8): New constraints.
21354 * config/mips/mips-ftypes.def: Add function types for MSA
21356 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
21357 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
21358 * config/mips/mips-msa.md: New file.
21359 * config/mips/mips-protos.h
21360 (mips_split_128bit_const_insns): New prototype.
21361 (mips_msa_idiv_insns): Likewise.
21362 (mips_split_128bit_move): Likewise.
21363 (mips_split_128bit_move_p): Likewise.
21364 (mips_split_msa_copy_d): Likewise.
21365 (mips_split_msa_insert_d): Likewise.
21366 (mips_split_msa_fill_d): Likewise.
21367 (mips_expand_msa_branch): Likewise.
21368 (mips_const_vector_same_val_p): Likewise.
21369 (mips_const_vector_same_bytes_p): Likewise.
21370 (mips_const_vector_same_int_p): Likewise.
21371 (mips_const_vector_shuffle_set_p): Likewise.
21372 (mips_const_vector_bitimm_set_p): Likewise.
21373 (mips_const_vector_bitimm_clr_p): Likewise.
21374 (mips_msa_vec_parallel_const_half): Likewise.
21375 (mips_msa_output_division): Likewise.
21376 (mips_ldst_scaled_shift): Likewise.
21377 (mips_expand_vec_cond_expr): Likewise.
21378 * config/mips/mips.c (enum mips_builtin_type): Add
21379 MIPS_BUILTIN_MSA_TEST_BRANCH.
21380 (mips_gen_const_int_vector_shuffle): New prototype.
21381 (mips_const_vector_bitimm_set_p): New function.
21382 (mips_const_vector_bitimm_clr_p): Likewise.
21383 (mips_const_vector_same_val_p): Likewise.
21384 (mips_const_vector_same_bytes_p): Likewise.
21385 (mips_const_vector_same_int_p): Likewise.
21386 (mips_const_vector_shuffle_set_p): Likewise.
21387 (mips_symbol_insns): Forbid loading symbols via immediate for
21389 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
21391 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
21393 (mips_lx_address_p): Add support load indexed address for MSA.
21394 (mips_address_insns): Add calculation of instructions needed for
21395 stores and loads for MSA.
21396 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
21397 CONST_VECTOR for MSA and let it fall through.
21398 (mips_ldst_scaled_shift): New function.
21399 (mips_subword_at_byte): Likewise.
21400 (mips_msa_idiv_insns): Likewise.
21401 (mips_legitimize_move): Validate MSA moves.
21402 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
21403 calculation of costs for MSA division.
21404 (mips_split_move_p): Check if MSA moves need splitting.
21405 (mips_split_move): Split MSA moves if necessary.
21406 (mips_split_128bit_move_p): New function.
21407 (mips_split_128bit_move): Likewise.
21408 (mips_split_msa_copy_d): Likewise.
21409 (mips_split_msa_insert_d): Likewise.
21410 (mips_split_msa_fill_d): Likewise.
21411 (mips_output_move): Handle MSA moves.
21412 (mips_expand_msa_branch): New function.
21413 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
21414 Reinstate 'y' modifier.
21415 (mips_file_start): Add MSA .gnu_attribute.
21416 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
21418 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
21419 (mips_class_max_nregs): Add register size for MSA supported mode.
21420 (mips_cannot_change_mode_class): Allow conversion between MSA
21421 vector modes and TImode.
21422 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
21424 (mips_secondary_reload_class): Force MSA loads/stores via memory.
21425 (mips_preferred_simd_mode): Add preffered modes for MSA.
21426 (mips_vector_mode_supported_p): Add MSA supported modes.
21427 (mips_autovectorize_vector_sizes): New function.
21428 (mips_msa_output_division): Likewise.
21429 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
21430 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
21431 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
21432 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
21433 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
21434 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
21435 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
21436 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
21437 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
21438 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
21439 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
21440 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
21441 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
21442 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
21443 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
21444 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
21445 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
21446 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
21447 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
21448 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
21449 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
21450 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
21451 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
21452 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
21453 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
21454 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
21455 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
21456 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
21457 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
21458 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
21459 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
21460 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
21461 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
21462 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
21463 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
21464 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
21465 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
21466 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
21467 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
21468 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
21469 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
21470 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
21471 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
21472 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
21473 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21474 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21475 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21476 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21477 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21478 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21479 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21480 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21481 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
21482 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
21483 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
21484 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
21485 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21486 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21487 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21488 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21489 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21490 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21491 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21492 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21493 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21494 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21495 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21496 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21497 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21498 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21499 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21500 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21501 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21502 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21503 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21504 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21505 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21506 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21507 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21508 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21509 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21510 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21511 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21512 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21513 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21514 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21515 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21516 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21517 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21518 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21519 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21520 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21521 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21522 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21523 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21524 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21525 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21526 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21527 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21528 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21529 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21530 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21531 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21532 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21533 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21534 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21535 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21536 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21537 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21538 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21539 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21540 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21541 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21542 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21543 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21544 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21545 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21546 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21547 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21548 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21549 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21550 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21551 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21552 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21553 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21554 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21555 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21556 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21557 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21558 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21559 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21560 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21561 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21562 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21563 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21564 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21565 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21566 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21567 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21568 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21569 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21570 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21571 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21572 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21573 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21574 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21575 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21576 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21577 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21578 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21579 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21581 (mips_get_builtin_decl_index): New array.
21582 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21583 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21584 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21585 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21586 (mips_init_builtins): Initialize mips_get_builtin_decl_index
21588 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21590 (mips_expand_builtin_insn): Prepare operands for
21591 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21592 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21593 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21594 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21595 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21596 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21597 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21598 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21599 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21600 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21601 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21602 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21603 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21604 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21605 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21606 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21607 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21608 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21609 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21610 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21611 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21612 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21613 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21614 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21615 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21616 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21617 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21618 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21619 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21620 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21621 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21622 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21623 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21624 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21625 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21626 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21627 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21628 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21629 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21630 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21631 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21632 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21633 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21634 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21635 These are set implicitly and an error is reported if overridden.
21636 (mips_expand_builtin_msa_test_branch): New function.
21637 (mips_expand_msa_shuffle): Likewise.
21638 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21639 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21640 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21641 (mips_expand_vec_unpack): Add support for MSA.
21642 (mips_expand_vector_init): Likewise.
21643 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21644 instead of const0_rtx.
21645 (mips_msa_vec_parallel_const_half): New function.
21646 (mips_gen_const_int_vector): Likewise.
21647 (mips_gen_const_int_vector_shuffle): Likewise.
21648 (mips_expand_msa_cmp): Likewise.
21649 (mips_expand_vec_cond_expr): Likewise.
21650 * config/mips/mips.h
21651 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21652 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21654 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21655 (ISA_HAS_MSA): New macro.
21656 (UNITS_PER_MSA_REG): Likewise.
21657 (BITS_PER_MSA_REG): Likewise.
21658 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21659 (MSA_REG_FIRST): New macro.
21660 (MSA_REG_LAST): Likewise.
21661 (MSA_REG_NUM): Likewise.
21662 (MSA_REG_P): Likewise.
21663 (MSA_REG_RTX_P): Likewise.
21664 (MSA_SUPPORTED_MODE_P): Likewise.
21665 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21666 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21667 * config/mips/mips.md: Include mips-msa.md.
21668 (alu_type): Add simd_add.
21669 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21670 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21671 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21672 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21673 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21674 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21675 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21676 simd_move, simd_load, simd_store. Choose "multi" for moves
21678 (qword_mode): New attribute.
21679 (insn_count): Add instruction count for quad moves.
21680 Increase the count for MIPS SIMD division.
21681 (UNITMODE): Add UNITMODEs for vector types.
21682 (addsub): New code iterator.
21683 * config/mips/mips.opt (mmsa): New option.
21684 * config/mips/msa.h: New file.
21685 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21687 * config/mips/mti-linux.h: Likewise.
21688 * config/mips/predicates.md
21689 (const_msa_branch_operand): New constraint.
21690 (const_uimm3_operand): Likewise.
21691 (const_uimm4_operand): Likewise.
21692 (const_uimm5_operand): Likewise.
21693 (const_uimm8_operand): Likewise.
21694 (const_imm5_operand): Likewise.
21695 (aq10b_operand): Likewise.
21696 (aq10h_operand): Likewise.
21697 (aq10w_operand): Likewise.
21698 (aq10d_operand): Likewise.
21699 (const_m1_operand): Likewise.
21700 (reg_or_m1_operand): Likewise.
21701 (const_exp_2_operand): Likewise.
21702 (const_exp_4_operand): Likewise.
21703 (const_exp_8_operand): Likewise.
21704 (const_exp_16_operand): Likewise.
21705 (const_vector_same_val_operand): Likewise.
21706 (const_vector_same_simm5_operand): Likewise.
21707 (const_vector_same_uimm5_operand): Likewise.
21708 (const_vector_same_uimm6_operand): Likewise.
21709 (const_vector_same_uimm8_operand): Likewise.
21710 (par_const_vector_shf_set_operand): Likewise.
21711 (reg_or_vector_same_val_operand): Likewise.
21712 (reg_or_vector_same_simm5_operand): Likewise.
21713 (reg_or_vector_same_uimm6_operand): Likewise.
21714 * doc/extend.texi (MIPS SIMD Architecture Functions): New
21716 * doc/invoke.texi (-mmsa): Document new option.
21718 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21720 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21721 * configure: Regenerate.
21722 * config.in: Regenerate.
21723 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21724 on -fvtable-verify.
21725 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21726 (ENDFILE_VTV_SPEC): Define.
21728 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
21730 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21731 registers in all interrupt handlers if necessary.
21732 (rl78_option_override): Add warning.
21733 (MUST_SAVE_MDUC_REGISTERS): New macro.
21734 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21735 * config/rl78/rl78.c (check_mduc_usage): New function.
21736 (mduc_regs): New structure to hold MDUC register data.
21737 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21738 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21739 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21740 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21741 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21742 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21744 2016-05-09 Bin Cheng <bin.cheng@arm.com>
21746 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21747 (tree-ssa-loop-niter.h): Ditto.
21748 (idx_within_array_bound, ref_within_array_bound): New functions.
21749 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21750 Factor out check on writable base object to ...
21751 (base_object_writable): ... here.
21753 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21755 * config/arm/arm.md (probe_stack): Add modes to set source
21758 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
21760 * regrename.c (base_reg_class_for_rename): New static function.
21761 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21763 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
21765 * cgraph.c (thunk_adjust): Export.
21766 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21767 * cgraphunit.c (thunk_adjust): Export.
21768 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21770 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21772 * tree-inline.c (expand_call_inline): Expand thunks inline.
21774 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
21777 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21778 (*sse2_vd_cvtss2sd): Ditto.
21779 * config/i386/i386.md
21780 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21781 Generate *sse2_vd_cvtsd2ss pattern.
21782 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21783 Generate *sse2_vd_cvtss2sd pattern.
21785 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21787 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21788 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
21791 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21793 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
21794 * config/sh/sh.c: Define and declare variables on first use throughout
21796 (current_function_interrupt): Change to bool type.
21797 (frame_insn): Rename to emit_frame_insn and update users.
21798 (push_regs): Use bool for 'interrupt_handler' argument.
21799 (save_schedule_s): Remove.
21800 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
21801 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
21802 targetm.asm_out.unaligned_op.di.
21803 (gen_far_branch): Remove redundant forward declaration.
21804 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
21805 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
21806 (sh_set_return_address, sh_function_ok_for_sibcall,
21807 scavenge_reg): Update comments.
21808 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
21809 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
21810 (sh_attr_renesas_p): Remove unnecessary parentheses.
21811 (branch_dest): Simplify.
21812 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
21813 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
21814 (CUMULATIVE_ARGS): Change macro to typedef.
21815 (current_function_interrupt): Change to bool type.
21816 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
21817 Surround with __cplusplus ifdef.
21818 (sh_compare_op0, sh_compare_op1): Remove.
21819 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
21821 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
21823 * config/arm/arm.md (arch): Add neon.
21824 (arch_enabled): Return yes for arch neon when TARGET_NEON.
21825 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
21826 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
21827 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
21828 attributes for alt renumbering. Mark alt 3 as non-predicable.
21829 (thumb2_movdf_vfp): Likewise.
21831 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
21833 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
21834 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
21835 (*andqi_1): Add preferred_for_speed attribute to disparage
21836 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
21837 (*<code>qi_1): Ditto.
21838 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
21839 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
21840 (*ashlqi3_1): Ditto.
21841 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
21842 Add preferred_for_size attribute to disparage alternative 0 and
21843 preferred_for_speed attribute to disparage alternative 1 for
21844 TARGET_PARTIAL_REG_STALL targets.
21846 2016-05-07 Tom de Vries <tom@codesourcery.com>
21848 PR tree-optimization/70956
21849 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
21852 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21854 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
21855 * config/sh/sh.c (sh_cbranch_distance): Implement it.
21856 * config/sh/sh.md (branch_zero): Remove define_attr.
21857 (define_delay): Disable delay slot if branch distance is one insn.
21859 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21861 * config/i386/i386.md (LEAMODE): New mode attribute.
21862 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
21863 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
21864 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
21865 operand 2 predicate.
21866 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
21867 (*lea<mode>_general_3): Ditto.
21868 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
21870 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21872 * genmddump.c (main): Convert argv from char ** to const char **.
21874 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21876 * coretypes.h (OVERRIDE): New macro.
21877 (FINAL): New macro.
21879 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
21881 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
21882 allow coalescing if the types are compatible.
21884 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21886 * pass_manager.h (pass_manager::register_pass_name): New method.
21887 (pass_manager::get_pass_by_name): New method.
21888 (pass_manager::create_pass_tab): New method.
21889 (pass_manager::m_name_to_pass_map): New field.
21890 * passes.c (name_to_pass_map): Delete global in favor of field
21891 "m_name_to_pass_map" of pass_manager.
21892 (register_pass_name): Rename from a function to...
21893 (pass_manager::register_pass_name): ...this method, updating
21894 for renaming of global "name_to_pass_map" to field
21895 "m_name_to_pass_map".
21896 (create_pass_tab): Rename from a function to...
21897 (pass_manager::create_pass_tab): ...this method, updating
21898 for renaming of global "name_to_pass_map" to field.
21899 (get_pass_by_name): Rename from a function to...
21900 (pass_manager::get_pass_by_name): ...this method.
21901 (enable_disable_pass): Convert use of get_pass_by_name to
21902 a method call, locating the pass_manager singleton.
21904 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21906 * genattr-common.c (main): Convert argv from char ** to const char **.
21907 * genattr.c (main): Likewise.
21908 * genattrtab.c (main): Likewise.
21909 * genautomata.c (initiate_automaton_gen): Likewise.
21911 * gencodes.c (main): Likewise.
21912 * genconditions.c (main): Likewise.
21913 * genconfig.c (main): Likewise.
21914 * genconstants.c (main): Likewise.
21915 * genemit.c (main): Likewise.
21916 * genenums.c (main): Likewise.
21917 * genextract.c (main): Likewise.
21918 * genflags.c (main): Likewise.
21919 * genmddeps.c (main): Likewise.
21920 * genopinit.c (main): Likewise.
21921 * genoutput.c (main): Likewise.
21922 * genpeep.c (main): Likewise.
21923 * genpreds.c (main): Likewise.
21924 * genrecog.c (main): Likewise.
21925 * gensupport.c (init_rtx_reader_args_cb): Likewise.
21926 (init_rtx_reader_args): Likewise.
21927 * gensupport.h (init_rtx_reader_args_cb): Likewise.
21928 (init_rtx_reader_args): Likewise.
21929 * gentarget-def.c (main): Likewise.
21930 * read-md.c (read_md_files): Likewise.
21931 * read-md.h (read_md_files): Likewise.
21933 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21935 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
21936 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
21937 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
21938 Remove unused predicate.
21939 (register_and_not_fp_reg_operand): Ditto.
21941 2016-05-06 Martin Liska <mliska@suse.cz>
21943 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
21944 instead of vec as the vector is local to the function.
21946 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21948 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
21949 avx512bw alternative.
21951 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
21952 before the ashr<mode>3 pattern.
21954 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
21955 v instead of x in vex or maybe_vex alternatives, use
21956 maybe_evex instead of vex in prefix.
21958 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
21959 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
21960 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
21961 in vex or maybe_vex alternatives, use maybe_evex instead of vex
21964 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
21965 v instead of x in vex or maybe_vex alternatives, use
21966 maybe_evex instead of vex in prefix.
21968 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
21969 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
21970 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
21971 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
21972 alternatives, use maybe_evex instead of vex in prefix.
21974 * config/i386/sse.md (vec_interleave_lowv4sf,
21975 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
21976 v instead of x in vex or maybe_vex alternatives, use
21977 maybe_evex instead of vex in prefix.
21979 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
21980 v instead of x in vex or maybe_vex alternatives, use
21981 maybe_evex instead of vex in prefix.
21983 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
21984 v constraint instead of x.
21986 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
21988 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
21989 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
21992 2016-05-06 Richard Biener <rguenther@suse.de>
21994 PR tree-optimization/70948
21995 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21996 Properly clobber all fields of va_list for __builtin_va_start.
21998 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
22001 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
22002 loop latch destination.
22004 2016-05-06 Martin Liska <mliska@suse.cz>
22006 * tree-ssa-uninit.c: Apply manual changes
22007 to the GNU coding style.
22008 (prune_uninit_phi_opnds): Rename from
22009 prune_uninit_phi_opnds_in_unrealizable_paths.
22011 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22013 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
22014 mspace): Remove deprecated options.
22015 * doc/invoke.texi (SH options): Remove -mspace.
22017 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22019 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
22021 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22023 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
22024 corresponding combine split pattern.
22026 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22029 * config/sh/predicates.md (long_displacement_mem_operand): New.
22030 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
22031 Add movi20, movi20s alternatives. Adjust length attribute for
22033 (movsi_ie): Allow for any FPU. Adjust length attribute for
22035 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
22036 attribute for alternatives.
22037 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
22038 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
22039 length attribute for alternatives.
22041 2016-05-06 Richard Biener <rguenther@suse.de>
22043 PR tree-optimization/70960
22044 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
22046 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22049 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
22050 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
22052 2016-05-06 Marek Polacek <polacek@redhat.com>
22055 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
22057 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
22060 * config/sh/sh.md (*rotcr): Add another variant.
22062 2016-05-06 Richard Biener <rguenther@suse.de>
22064 PR middle-end/70931
22065 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
22067 2016-05-06 Richard Biener <rguenther@suse.de>
22069 PR middle-end/70941
22070 * fold-const.c (split_tree): Always convert to the original type
22073 2016-05-06 Richard Biener <rguenther@suse.de>
22075 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
22076 (fwprop_addr): Likewise.
22078 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
22081 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
22083 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
22084 * config/i386/i386.md (push mem splitter): Use find_constant_src in
22085 the splitter condition.
22086 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
22087 the splitter condition.
22088 (FP float_extend load splitter): Ditto.
22090 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
22092 * config/i386/i386.md (peehole2 patterns): Change true_regnum
22093 to REGNO in all peephole2 patterns.
22094 (post-reload splitters): Change true_regnum to REGNO in
22095 post-reload splitters.
22096 (zero_extend splitters): Use general_reg_operand and
22097 nonimmediate_gr_operand predicates.
22099 2016-05-05 Jakub Jelinek <jakub@redhat.com>
22101 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
22102 v constraint instead of x.
22104 2016-05-05 Alan Modra <amodra@gmail.com>
22107 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
22108 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
22109 TARGET_NO_FP_IN_TOC for -mrelocatable.
22110 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
22111 TARGET_RELOCATABLE test.
22112 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22113 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22114 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22115 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22116 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22117 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22118 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22119 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22120 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
22121 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22123 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
22124 (rs6000_stack_info): Likewise.
22125 (rs6000_elf_asm_out_constructor): Likewise.
22126 (rs6000_elf_asm_out_destructor): Likewise.
22127 (rs6000_elf_declare_function_name): Likewise.
22128 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
22129 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
22132 2016-05-05 Alan Modra <amodra@gmail.com>
22134 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
22136 2016-05-05 Alan Modra <amodra@gmail.com>
22138 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
22139 out-of-line gpr restore for one or two regs if that would add
22142 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
22145 * config/i386/i386.md
22146 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
22147 Change to post-epilogue_completed late splitter. Use sse_reg_operand
22148 as operand 0 predicate.
22149 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
22151 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
22152 Ditto. Emit the pattern using RTX.
22154 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
22155 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
22156 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
22157 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
22159 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
22160 sse_reg_operand as operand 0 predicate.
22162 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
22163 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
22164 instead of gen_rtx_REG.
22165 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
22168 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22170 * function.c (emit_use_return_register_into_block): Delete.
22171 (gen_return_pattern): Delete.
22172 (emit_return_into_block): Delete.
22173 (active_insn_between): Delete.
22174 (convert_jumps_to_returns): Delete.
22175 (emit_return_for_exit): Delete.
22176 (thread_prologue_and_epilogue_insns): Delete all code dealing with
22177 simple_return for shrink-wrapped blocks.
22178 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
22179 end of blocks that need one.
22180 (get_unconverted_simple_return): Delete.
22181 (convert_to_simple_return): Delete.
22182 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
22183 (convert_to_simple_return): Ditto.
22185 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22187 * cfgcleanup.c (bb_is_just_return): New function.
22188 (try_optimize_cfg): Simplify jumps to return, branches to return,
22189 and branches around return.
22191 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22193 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
22194 branch to a return.
22196 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22200 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
22201 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
22202 assert flags & OEP_HASH_CHECK, instead of asserting it
22203 never happens. Handle TARGET_EXPR.
22204 * fold-const.c (operand_equal_p): For hash verification,
22205 or in OEP_HASH_CHECK into flags.
22207 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
22209 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
22211 (compute_samebase_partition_bases): Fix typo.
22213 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22215 * config/i386/sse.md (vec_interleave_highv8sf,
22216 vec_interleave_lowv8sf, vec_interleave_highv4df,
22217 vec_interleave_lowv4df): Remove constraints from expanders.
22219 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
22221 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22223 * tree-inline.c (expand_call_inline): Fix path dealing with
22224 making lhs of call statement undefined.
22226 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22228 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22229 Check availability on NODE, too.
22230 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
22231 (cgraph_node::call_for_symbol_and_aliases): Likewise.
22232 (varpool_node::call_for_symbol_and_aliase): Likewise.
22233 * ipa-pure-const.c (add_new_function): Analyze all bodies.
22234 (propagate_pure_const): Propagate across interposable functions, too.
22235 (skip_function_for_local_pure_const): Do not skip interposable bodies
22237 (pass_local_pure_const::execute): Update.
22239 2016-05-04 Marek Polacek <polacek@redhat.com>
22241 * doc/invoke.texi: Document -Wdangling-else.
22243 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22245 * config.gcc: Error out when conflicting multilib is detected. Do not
22246 loop over multilibs since no combination is legal.
22248 2016-05-04 Alan Modra <amodra@gmail.com>
22250 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
22251 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
22252 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22255 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
22257 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
22258 Clean up p5600 comments.
22260 2016-05-04 Richard Biener <rguenther@suse.de>
22262 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
22263 constructor simplifications.
22264 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
22266 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
22268 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
22269 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
22270 result.set_rtx is null instead of aborting.
22271 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
22273 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
22274 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
22275 *mov<mode>_store_postinc): New patterns.
22277 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
22279 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
22280 as commutative. Check both conversions are NOP.
22281 ((A & B) OP (C & B)): Remove.
22283 2016-05-04 Alan Modra <amodra@gmail.com>
22285 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
22287 2016-05-04 Alan Modra <amodra@gmail.com>
22290 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
22291 when cr2,3,4 are all fixed regs.
22293 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
22295 PR rtl-optimization/57193
22296 * opts.c (default_options_table): Revert OPT_frename_registers change.
22297 * doc/invoke.texi (-frename-registers, -O2): Likewise.
22299 2016-05-03 Martin Sebor <msebor@redhat.com>
22302 * builtins.c (fold_builtin_FILE): New function.
22303 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
22304 (fold_builtin_0): Call them.
22305 * gimplify.c (gimplify_call_expr): Remove the handling of
22306 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
22309 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
22310 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
22314 * doc/extend.texi (Function Names as Strings): Update __func__,
22315 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
22318 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22319 Richard Biener <rguenther@suse.de>
22321 PR tree-optimization/70916
22322 * tree-if-conv.c: Include cfganal.h.
22323 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
22324 and remove_fake_exit_edges around the optimization pass.
22326 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
22328 * cgraph.c (symbol_table::create_edge): Set inline_failed.
22329 (cgraph_edge::make_direct): Likewise.
22330 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
22331 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
22332 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
22333 (CIF_THUNK): New code.
22334 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
22335 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
22336 (compute_inline_parameters): Set inline_failed for thunks.
22337 (inline_analyze_function): Cleanup.
22338 * ipa-inline.c (can_inline_edge_p): Do not deal with
22339 call_stmt_cannot_inline_p.
22340 (can_early_inline_edge_p): Likewise.
22341 (early_inliner): Initialize inline_failed.
22342 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
22344 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
22346 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22347 from nonimm_ssenomem_operand.
22348 (nonimm_ssenomem_operand): New predicate.
22349 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
22350 as operand 0 predicate.
22351 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
22352 Disable unsupported alternatives using "enabled" attribute.
22353 Use register_ssemem_operand as operand 0 predicate.
22354 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
22356 2016-05-03 Marek Polacek <polacek@redhat.com>
22359 * input.c (expansion_point_location): New function.
22360 * input.h (expansion_point_location): Declare.
22362 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
22364 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
22365 occurence with frame_offset_ ones.
22367 2016-05-03 Alan Modra <amodra@gmail.com>
22369 PR rtl-optimization/70890
22370 * ira.c (combine_and_move_insns): When moving def_insn, remove
22371 equivs on use_insn.
22373 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
22375 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
22376 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
22377 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
22378 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
22380 2016-05-03 Alan Modra <amodra@gmail.com>
22382 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
22383 for SAVE_MULTIPLE/STORE_MULTIPLE.
22385 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22387 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
22388 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
22390 2016-05-03 Richard Biener <rguenther@suse.de>
22392 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
22394 (gimplify_arg): Likewise.
22395 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
22396 re-writing the result to a decl if required.
22397 (internal_get_tmp_var): Add allow_ssa parameter
22398 and override into_ssa with it.
22399 (get_formal_tmp_var): Adjust.
22400 (get_initialized_tmp_var): Add allow_ssa parameter.
22401 (gimplify_arg): Add allow_ssa parameter and avoid generating
22402 SSA names for the result false.
22403 (gimplify_call_expr): If the call may return twice do not
22404 gimplify parameters into SSA.
22405 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
22406 (gimplify_modify_expr): Adjust assert. For noreturn calls
22407 with a SSA name LHS adjust its def.
22408 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
22409 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
22410 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
22411 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
22412 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
22413 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
22414 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
22415 (optimize_target_teams): Do not allow SSA names for clause operands.
22416 (gimplify_expr): Likewise for where we mark the result addressable.
22417 * passes.def (pass_init_datastructures): Remove.
22418 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
22419 (rewrite_stmt): Likewise.
22420 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
22421 (replace_locals_op): Replace SSA names.
22422 (copy_gimple_seq_and_replace_locals): Init src_cfun.
22423 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
22424 * cgraph.c (release_function_body): Free CFG annotations only
22425 when we have a CFG. Simplify.
22426 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
22427 force_gimple_operand instead of get_initialized_tmp_var.
22428 * tree-pass.h (make_pass_init_datastructures): Remove.
22429 * tree-ssa.c (execute_init_datastructures): Remove.
22430 (pass_data_init_datastructures): Likewise.
22431 (class pass_init_datastructures): Likewise.
22432 (make_pass_init_datastructures): Likewise.
22433 * omp-low.c (create_omp_child_function): Init SSA data structures.
22434 (grid_expand_target_grid_body): Likewise.
22435 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
22436 name before adding it to names_to_release.
22437 (remove_bb): Always release SSA defs.
22438 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
22439 before dereferencing it.
22440 * cgraphunit.c (init_lowered_empty_function): Always
22441 int SSA data structures.
22442 * tree-ssanames.c (release_defs): Remove assert that we are in
22444 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
22446 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22447 Uros Bizjak <ubizjak@gmail.com>
22449 PR rtl-optimization/70467
22450 * config/i386/predicates.md (x86_64_hilo_int_operand,
22451 x86_64_hilo_general_operand): New predicates.
22452 * config/i386/constraints.md (Wd): New constraint.
22453 * config/i386/i386.md (mode attr di): Use Wd instead of e.
22454 (general_hilo_operand): New mode attr.
22455 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
22456 instead of <general_operand>.
22457 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
22458 x86_64_hilo_general_operand instead of <general_operand>.
22460 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22462 PR tree-optimization/70916
22463 * tree-if-conv.c (constant_or_ssa_name): Removed.
22464 (fold_build_cond_expr): Use is_gimple_val instead of
22465 constant_or_ssa_name.
22467 PR tree-optimization/70916
22468 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
22469 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
22472 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
22473 (optimize_atomic_bit_test_and): New function.
22474 (pass_fold_builtins::execute): Use it.
22475 * optabs.def (atomic_bit_test_and_set_optab,
22476 atomic_bit_test_and_complement_optab,
22477 atomic_bit_test_and_reset_optab): New optabs.
22478 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
22479 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
22480 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
22481 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
22482 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
22483 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
22484 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
22485 * doc/md.texi (atomic_bit_test_and_set@var{mode},
22486 atomic_bit_test_and_complement@var{mode},
22487 atomic_bit_test_and_reset@var{mode}): Document.
22488 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22489 atomic_bit_test_and_complement<mode>,
22490 atomic_bit_test_and_reset<mode>): New expanders.
22491 (atomic_bit_test_and_set<mode>_1,
22492 atomic_bit_test_and_complement<mode>_1,
22493 atomic_bit_test_and_reset<mode>_1): New insns.
22495 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
22497 PR rtl-optimization/70687
22498 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
22499 instead of unsigned HOST_WIDE_INT.
22501 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
22503 PR rtl-optimization/44281
22504 * hard-reg-set.h (struct target_hard_regs): New field
22505 x_fixed_nonglobal_reg_set.
22506 (fixed_nonglobal_reg_set): New macro.
22507 * reginfo.c (init_reg_sets_1): Initialize it.
22508 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22510 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22512 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22514 PR tree-optimization/56541
22515 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22516 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22517 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22518 (any_complicated_phi): new static variable.
22519 (aggressive_if_conv): delete.
22520 (if_convertible_phi_p): support phis with more than two arguments.
22521 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22522 critical pred edges.
22523 (ifcvt_split_critical_edges): support phis with more than two
22524 arguments by checking new parameter. only split critical edges
22526 (tree_if_conversion): handle simd pragma marked loop using new
22527 local variable aggressive_if_conv. check any_complicated_phi.
22529 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22531 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22534 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22536 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22539 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22541 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22542 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22543 define_insn_and_split.
22544 (mulsi3_i): New define_insn_and_split.
22545 (mulsi3_call): Convert to define_insn.
22546 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22547 Remove constraints.
22549 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22551 * machmode.h (mode_complex): Add support to give the complex mode
22553 (GET_MODE_COMPLEX_MODE): Likewise.
22554 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22555 stored by build_complex_type and gfc_build_complex_type instead of
22556 trying to figure out the appropriate mode based on the size. Raise
22557 an assertion error, if the type was not set.
22558 * genmodes.c (struct mode_data): Add field for the complex type of
22560 (blank_mode): Likewise.
22561 (make_complex_modes): Remember the complex mode created in the
22563 (emit_mode_complex): Write out the mode_complex array to map a
22564 type mode to the complex version.
22565 (emit_insn_modes_c): Likewise.
22566 * tree.c (build_complex_type): Set the complex type to use before
22567 calling layout_type.
22568 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22569 support for __float128 complex datatypes.
22570 (rs6000_hard_regno_mode_ok): Likewise.
22571 (rs6000_setup_reg_addr_masks): Likewise.
22572 (rs6000_complex_function_value): Likewise.
22573 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22574 __float128 and __ibm128 complex.
22575 (FLOAT128_IBM_P): Likewise.
22576 (ALTIVEC_ARG_MAX_RETURN): Likewise.
22577 * doc/extend.texi (Additional Floating Types): Document that
22578 -mfloat128 must be used to enable __float128. Document complex
22579 __float128 and __ibm128 support.
22581 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22584 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22585 char/short arguments promoted to int because of promote_prototypes.
22587 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22589 * config/i386/predicates.md (register_ssemem_operand): New predicate.
22590 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22591 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22592 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
22593 alternatives using "enabled" attribute. Use register_ssemem_operand
22594 as operand 1 predicate.
22595 (*cmpi<unord>xf_i387): Split XFmode pattern from
22596 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22597 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22598 *absneg<mode>2_i387. Disable unsupported alternatives using
22599 "enabled" attribute.
22600 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22602 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22604 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22606 (oacc_loop_process): Check mask for loop termination.
22608 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22610 * cif-code.def (CIF_THUNK): Add.
22611 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22614 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22616 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22617 (dump_inline_summary): Dump it.
22618 (fp_expression_p): New predicate.
22619 (estimate_function_body_sizes): Use it.
22620 (inline_merge_summary): Merge fp_expressions.
22621 (inline_read_section): Read fp_expressions.
22622 (inline_write_summary): Write fp_expressions.
22623 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22624 codegen boundary if either caller or callee is !fp_expressions.
22625 * ipa-inline.h (inline_summary): Add fp_expressions.
22626 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22627 to fp_expressions be sure the fp generation flags are updated.
22629 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22631 PR rtl-optimization/70467
22632 * cse.c (cse_insn): Handle no-op MEM moves after folding.
22634 PR rtl-optimization/70467
22635 * ipa-pure-const.c (check_call): Handle internal calls even in
22636 ipa mode like in local mode.
22638 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22640 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22642 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22644 * match.pd (X u< X, X u> X): New transformations.
22646 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22648 * flag-types.h (enum warn_strict_overflow_code): Move ...
22649 * coretypes.h: ... here.
22650 * fold-const.h (fold_overflow_warning): Declare.
22651 * fold-const.c (fold_overflow_warning): Make non-static.
22652 (fold_comparison): Move the transformation of X +- C1 CMP C2
22653 into X CMP C2 -+ C1 ...
22654 * match.pd: ... here.
22655 * gimple-fold.c (fold_stmt_1): Protect with
22656 fold_defer_overflow_warnings.
22658 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22660 * omp-low.c (struct oacc_loop): Add 'inner' field.
22661 (new_oacc_loop_raw): Initialize it to zero.
22662 (oacc_loop_fixed_partitions): Initialize it.
22663 (oacc_loop_auto_partitions): Partition outermost loop to outermost
22664 available partitioning.
22666 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22668 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22670 (umulsidi3): Likewise.
22671 (indirect_jump): Fix jump instruction assembly patterns.
22673 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
22676 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22677 (nvptx_function_value): Assert non-NULL cfun.
22679 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
22681 PR rtl-optimization/70886
22682 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22684 * cselib.h (rtx_equal_for_cselib_1): Declare.
22685 (rtx_equal_for_cselib_p: New inline function.
22686 * cselib.c (rtx_equal_for_cselib_p): Delete.
22687 (rtx_equal_for_cselib_1): Make public.
22689 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22691 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22692 (register_mixssei387nonimm_operand): Remove predicate.
22693 * config/i386/i386.md (*fop_<mode>_comm): Merge from
22694 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
22695 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
22696 for TARGET_MIX_SSE_I387 alternatives.
22697 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22698 Disable unsupported alternatives using "enabled" attribute. Use
22699 nonimm_ssenomem_operand as operand 1 predicate. Also check
22700 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22702 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22704 * tree.c (cst_and_fits_in_hwi): Simplify.
22706 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22708 * tree.h (wi::to_wide): New function.
22709 * expr.c (expand_expr_real_1): Use wi::to_wide.
22710 * fold-const.c (int_const_binop_1): Likewise.
22711 (extract_muldiv_1): Likewise.
22713 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22715 * wide-int.h: Update offset_int and widest_int documentation.
22716 (WI_SIGNED_SHIFT_RESULT): New macro.
22717 (wi::binary_shift): Define signed_shift_result_type for
22718 shifts on offset_int- and widest_int-like types.
22719 (generic_wide_int): Support <<= and >>= if << and >> are supported.
22720 * tree.h (int_bit_position): Use shift operators instead of wi::
22722 * alias.c (adjust_offset_for_component_ref): Likewise.
22723 * expr.c (get_inner_reference): Likewise.
22724 * fold-const.c (fold_comparison): Likewise.
22725 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22726 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22727 * tree-dfa.c (get_ref_base_and_extent): Likewise.
22728 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22729 (stmt_kills_ref_p): Likewise.
22730 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22731 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22732 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22733 (ao_ref_init_from_vn_reference): Likewise.
22735 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22737 * wide-int.h: Update offset_int and widest_int documentation.
22738 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22739 (wi::binary_traits): Allow ordered comparisons between offset_int and
22740 offset_int, between widest_int and widest_int, and between either
22741 of these types and basic C types.
22742 (operator <, <=, >, >=): Define for the same combinations.
22743 * tree.h (tree_int_cst_lt): Use comparison operators instead
22744 of wi:: comparisons.
22745 (tree_int_cst_le): Likewise.
22746 * gimple-fold.c (fold_array_ctor_reference): Likewise.
22747 (fold_nonarray_ctor_reference): Likewise.
22748 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22749 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22750 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22751 * tree-sra.c (completely_scalarize): Likewise.
22752 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22753 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22754 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22755 (check_for_binary_op_overflow): Likewise.
22756 (search_for_addr_array): Likewise.
22757 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22759 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22761 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22762 (arc_save_restore): Likewise.
22763 (arc_dwarf_register_span): Likewise.
22764 (arc_output_pic_addr_const): Initialize suffix variable.
22766 2016-05-02 Martin Liska <mliska@suse.cz>
22768 * symbol-summary.h (function_summary::function_summary):
22769 Remove checking assert for all cgraph nodes.
22770 (function_summary::get): Check summary_uid.
22771 (symtab_insertion): Check summary_uid.
22773 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22775 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22776 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22777 bmaskn instruction.
22778 (arc_dwarf_register_span): Remove enum keyword.
22779 (compact_memory_operand_p): New function.
22780 * config/arc/arc.h (reg_class): Add code density register classes.
22781 (REG_CLASS_NAMES): Likewise.
22782 (REG_CLASS_CONTENTS): Likewise.
22783 * config/arc/arc.md (*movqi_insn): Add code density instructions.
22784 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22785 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22786 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22787 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22789 (h, Rcd, Rsd, Rzd): New register constraints.
22790 (T): Use compact_memory_operand_p function.
22791 * config/arc/predicates.md (compact_load_memory_operand): Remove.
22793 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22795 * config/sh/sh.md (*negnegt, *movtt): Remove.
22797 2016-05-02 Marek Polacek <polacek@redhat.com>
22798 Tom de Vries <tom@codesourcery.com>
22800 PR tree-optimization/70700
22801 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
22802 bigger than FIRST_REF_NODE.
22804 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22807 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
22809 (prepare_cbranch_operands): Don't use scratch register. Assume that
22810 function is used when pseudos can be created.
22811 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
22812 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
22813 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
22814 define_expand. Allow it only when pseudos can be created.
22815 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
22817 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
22819 * config/i386/constraints.md (BC): Only allow -1 operands.
22820 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
22821 Add "enabled" attribute. Update XI mode attribute calculation.
22822 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
22823 (*movoi_internal_avx): Update XI mode attribute calculation.
22824 (*movti_internal): Ditto.
22826 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22828 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
22829 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
22831 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
22833 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
22834 statement on instruction code. Remove trailing spaces.
22835 (altivec_expand_stv_builtin): Likewise.
22837 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22839 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
22840 (TARGET_FPU_DOUBLE): Simplify.
22841 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
22842 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
22843 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
22844 with 'TARGET_FPU_DOUBLE'.
22845 * config/sh/sh.md: Likewise.
22847 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
22849 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
22850 SH_DIV_STR_FOR_SIZE): Remove.
22851 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
22852 SH_DIV_STR_FOR_SIZE): Remove.
22854 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22856 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
22857 logical_reg_operand): Delete.
22858 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
22859 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
22860 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
22861 match_operand and match_test.
22862 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
22863 variables on their first use. Return bool values.
22864 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
22865 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
22866 arith_reg_operand for input operand. Remove empty constraints.
22868 (*xorsi3_compact): Rename to xorsi3.
22869 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
22870 (*zero_extend<mode>si2_disp_mem): Update comment.
22873 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22875 * config/sh/t-sh: Remove SH5 support.
22876 * config.gcc: Likewise.
22877 * configure: Likewise.
22879 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22881 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
22883 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22885 * config/sh/sh.c (register_sh_passes, sh_option_override,
22886 sh_print_operand, prepare_move_operands,
22887 sh_can_follow_jump): Remove TARGET_SH1 checks.
22888 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
22889 PROMOTE_MODE): Likewise.
22890 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
22893 2016-04-30 Alan Modra <amodra@gmail.com>
22895 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
22896 restoring when fixed_reg_p, but allow out-of-line or stmw save.
22897 Check for user regs later to avoid unnecessary looping over regs.
22898 Merge user reg check with non-saved reg check. Don't force
22899 inline VR restore when static chain used.
22900 (rs6000_frame_related): Omit eh_frame info for user regs when
22902 (fixed_regs_p): Delete.
22904 2016-04-30 Alan Modra <amodra@gmail.com>
22906 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
22907 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
22910 2016-04-30 Alan Modra <amodra@gmail.com>
22913 * config/rs6000/rs6000.c (fixed_reg_p): New function.
22914 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
22917 2016-04-30 Alan Modra <amodra@gmail.com>
22919 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
22920 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
22921 flag_pic test for Darwin.
22923 2016-04-30 Alan Modra <amodra@gmail.com>
22925 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
22926 throw_calls_crossed.
22927 (REG_FREQ_CALLS_CROSSED): Delete.
22928 (REG_N_THROWING_CALLS_CROSSED): Delete.
22929 * regstat.c (regstat_bb_compute_ri): Don't calculate
22930 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
22931 (dump_reg_info): Don't print call cross frequency.
22932 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
22933 and REG_N_THROWING_CALLS_CROSSED.
22935 2016-04-30 Alan Modra <amodra@gmail.com>
22937 * regs.h (struct reg_info_t): Delete live_length.
22938 (REG_LIVE_LENGTH): Delete macro.
22939 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
22940 local_live, local_processed and local_live_last_luid params.
22941 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
22943 (regstat_compute_ri): Adjust for above. Don't set
22945 (dump_reg_info): Don't print live length.
22946 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
22947 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
22948 Localize loop_depth var.
22950 2016-04-30 Alan Modra <amodra@gmail.com>
22952 * ira.c (enum valid_equiv): New.
22953 (validate_equiv_mem): Return enum.
22954 (update_equiv_mem): Create replacement in more cases.
22955 (add_store_equivs): Update validate_equiv_mem call.
22957 2016-04-30 Alan Modra <amodra@gmail.com>
22959 * ira.c (combine_and_move_insns): Rather than scanning insns,
22960 use DF infrastucture to find use and def insns.
22962 2016-04-30 Alan Modra <amodra@gmail.com>
22964 ira.c (combine_and_move_insns): Move invariant conditions..
22965 (ira.c): ..to here. Call combine_and_move_insns before
22966 add_store_equivs. Call grow_reg_equivs later. Allocate
22967 req_equiv later using max_reg_num() rather than global max_regno.
22968 (contains_replace_regs): Delete.
22969 (add_store_equivs): Remove contains_replace_regs test.
22971 2016-04-30 Alan Modra <amodra@gmail.com>
22973 * ira.c (struct equiv_mem_data): New.
22974 (equiv_mem, equiv_mem_modified): Delete static vars.
22975 (validate_equiv_mem_from_store): Use "data" param to communicate..
22976 (validate_equiv_mem): ..from here.
22978 2016-04-30 Alan Modra <amodra@gmail.com>
22980 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
22982 (update_reg_equivs): ..here. Move allocation and freeing of
22983 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
22984 end_alias_analysis to..
22987 2016-04-30 Alan Modra <amodra@gmail.com>
22989 * ira.c (pdx_subregs): Delete.
22990 (struct equivalence): Add pdx_subregs field.
22991 (set_paradoxical_subreg): Remove pdx_subregs param. Update
22992 pdx_subregs access.
22993 (update_equiv_regs): Don't create or free pdx_subregs. Update
22994 pdx_subregs access.
22996 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22998 * config/rs6000/altivec.h: Change definitions of vec_xl and
23000 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
23001 (LD_ELEMREV_V2DI): New.
23002 (LD_ELEMREV_V4SF): New.
23003 (LD_ELEMREV_V4SI): New.
23004 (LD_ELEMREV_V8HI): New.
23005 (LD_ELEMREV_V16QI): New.
23006 (ST_ELEMREV_V2DF): New.
23007 (ST_ELEMREV_V2DI): New.
23008 (ST_ELEMREV_V4SF): New.
23009 (ST_ELEMREV_V4SI): New.
23010 (ST_ELEMREV_V8HI): New.
23011 (ST_ELEMREV_V16QI): New.
23014 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23015 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
23016 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
23017 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
23018 (altivec_expand_builtin): Add handling for
23019 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
23020 (rs6000_invalid_builtin): Add error-checking for
23021 RS6000_BTM_P9_VECTOR.
23022 (altivec_init_builtins): Define builtins used to implement vec_xl
23024 (rs6000_builtin_mask_names): Define power9-vector.
23025 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
23026 (RS6000_BTM_P9_VECTOR): Define.
23027 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
23028 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
23029 (vsx_ld_elemrev_v2df): Likewise.
23030 (vsx_ld_elemrev_v4sf): Likewise.
23031 (vsx_ld_elemrev_v4si): Likewise.
23032 (vsx_ld_elemrev_v8hi): Likewise.
23033 (vsx_ld_elemrev_v16qi): Likewise.
23034 (vsx_st_elemrev_v2df): Likewise.
23035 (vsx_st_elemrev_v2di): Likewise.
23036 (vsx_st_elemrev_v4sf): Likewise.
23037 (vsx_st_elemrev_v4si): Likewise.
23038 (vsx_st_elemrev_v8hi): Likewise.
23039 (vsx_st_elemrev_v16qi): Likewise.
23040 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
23043 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
23045 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
23047 (simplify_control_stmt_condition_1): ... here. Recurse into
23048 BIT_AND_EXPRs and BIT_IOR_EXPRs.
23050 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
23053 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
23054 (zero_extendqi<mode>2_dot): Revert earlier conversion from
23055 define_insn_and_split to define_insn.
23056 (zero_extendqi<mode>2_dot2): Same.
23057 (extendqi<mode>2_dot): Same.
23058 (extendqi<mode>2_dot2): Same.
23060 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23062 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
23063 (probe_stack): New expander.
23064 (probe_stack_<mode>): New insn pattern.
23066 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23068 * config/i386/i386.md
23069 (operations with memory inputs setting flags peephole2):
23070 Remove uneeded REG_P checks. Cleanup pattern generation.
23072 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
23074 * tree-vect-loop.c (vect_transform_loop): Fix
23075 nb_iterations_upper_bound computation for vectorized loop.
23077 2016-04-29 Marek Polacek <polacek@redhat.com>
23078 Jakub Jelinek <jakub@redhat.com>
23081 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
23082 TARGET_EXPR_SLOT as a base.
23084 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
23086 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
23087 with 'rCm2' constraints to limit possible immediate size.
23088 (*load_zeroextendqisi_update): Likewise.
23089 (*load_signextendqisi_update): Likewise.
23090 (*loadhi_update): Likewise.
23091 (*load_zeroextendhisi_update): Likewise.
23092 (*load_signextendhisi_update): Likewise.
23093 (*loadsi_update): Likewise.
23094 (*loadsf_update): Likewise.
23096 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23098 * config/i386/predicates.md (constm1_operand): Fix comparison.
23100 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23102 * testsuite/gcc.target/arc/ieee_eq.c: New test.
23104 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
23106 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
23107 remaining SH5 related settings.
23108 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
23109 shmedia_prepare_call_address): Delete.
23110 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
23111 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
23112 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
23113 UNSUPPORTED_SH2A): Remove m5 checks.
23114 (sh_divide_strategy_e): Remove SH5 division strategies.
23115 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
23116 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
23118 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23120 * config/s390/s390.c (s390_rtx_costs): Update documentation.
23122 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23124 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
23125 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
23126 Change lder to ldr.
23127 * config/s390/vector.md ("mov<mode>"): Likewise.
23129 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
23131 * config/s390/constraints.md ("U", "W"): Invoke
23132 s390_mem_constraint with "ZR" and "ZT".
23133 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
23134 addresses when using LRA. Accept also short displacements for S
23135 and T constraints. Do not check for long displacement target for
23136 S and T constraints.
23137 (s390_mem_constraint): Remove handling of U and W constraints.
23138 * config/s390/s390.md (various patterns): Remove the short
23139 displacement constraints (Q and R) if a long displacement
23140 constraint is present. Add longdisp as required CPU capability.
23141 * config/s390/vector.md: Likewise.
23142 * config/s390/vx-builtins.md: Likewise.
23144 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23147 * reload1.c (reload): Call finish_spills before
23148 restarting reload loop. Skip select_reload_regs
23149 if update_eliminables_and_spill returns true.
23151 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23153 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
23154 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
23155 (umulhisi3_imm): Update predicates and constraint letters.
23156 (umulhisi3_reg): Declare instruction as commutative.
23157 * config/arc/constraints.md (J12, J16): New constraints.
23158 * config/arc/predicates.md (short_unsigned_const_operand): New
23160 (arc_short_operand): Likewise.
23161 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
23163 2016-04-29 Richard Biener <rguenther@suse.de>
23165 PR tree-optimization/13962
23166 PR tree-optimization/65686
23167 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
23168 * tree-ssa-alias.c (ptrs_compare_unequal): New function
23169 using PTA to compare pointers.
23170 * match.pd: Add pattern for pointer equality compare simplification
23171 using ptrs_compare_unequal.
23173 2016-04-29 Richard Biener <rguenther@suse.de>
23175 * stor-layout.c (layout_type): Do not build a pointer-to-element
23178 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23180 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
23181 Use SWI mode iterator. Use general_reg_operand predicate.
23182 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
23183 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
23186 2016-04-29 Jakub Jelinek <jakub@redhat.com>
23188 PR middle-end/70843
23189 * fold-const.c (operand_equal_p): Don't verify hash value equality
23191 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
23194 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23197 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
23198 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
23199 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
23200 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
23201 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
23203 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23205 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
23206 to info. Don't initialize separate fields to 0. Clean up
23209 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23211 * config/i386/i386.md (peephole2s for operations with memory inputs):
23212 Use SWI mode iterator.
23213 (peephole2s for operations with memory outputs): Ditto.
23214 Do not check for stack checking probe.
23216 (probe_stack): Remove expander.
23218 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23219 Andrew Burgess <andrew.burgess@embecosm.com>
23221 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
23222 operands as 32-bits.
23224 2016-04-28 Jason Merrill <jason@redhat.com>
23226 * gdbinit.in: Skip line-map.h.
23228 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23229 Andrew Burgess <andrew.burgess@embecosm.com>
23231 * config/arc/arc.c (arc_conditional_register_usage): Take
23232 TARGET_RRQ_CLASS into account.
23233 (arc_print_operand): Support printing 'p' and 's' operands.
23234 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
23236 (TARGET_RRQ_CLASS): Define.
23237 (IS_POWEROF2_OR_0_P): Define.
23238 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
23240 (*tst_movb): New define_insn.
23241 (*tst): Avoid recognition if it could prevent '*tst_movb'
23242 combination; replace c/CnL with c/Chs alternative.
23243 (*tst_bitfield_tst): New define_insn.
23244 (*tst_bitfield_asr): New define_insn.
23245 (*tst_bitfield): New define_insn.
23246 (andsi3_i): Add Rrq variant.
23247 (extzv): New define_expand.
23248 (insv): New define_expand.
23249 (*insv_i): New define_insn.
23250 (*movb): New define_insn.
23251 (*movb_signed): New define_insn.
23252 (*movb_high): New define_insn.
23253 (*movb_high_signed): New define_insn.
23254 (*movb_high_signed + 1): New define_split pattern.
23255 (*mrgb): New define_insn.
23256 (*mrgb + 1): New define_peephole2 pattern.
23257 (*mrgb + 2): New define_peephole2 pattern.
23258 * config/arc/arc.opt (mbitops): New option for nps400, uses
23259 TARGET_NPS_BITOPS_DEFAULT.
23260 * config/arc/constraints.md (q): Make register class conditional.
23261 (Rrq): New register constraint.
23262 (Chs): New constraint.
23263 (Clo): New constraint.
23264 (Chi): New constraint.
23265 (Cbf): New constraint.
23266 (Cbn): New constraint.
23267 (C18): New constraint.
23268 (Cbi): New constraint.
23270 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23272 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
23274 (bitmap_intersection_of_preds): Ditto.
23275 (bitmap_union_of_succs): Ditto.
23276 (bitmap_union_of_preds): Ditto.
23277 * sbitmap.c (do_popcount): Delete.
23278 (BITMAP_DEBUGGING): Delete.
23279 (sbitmap_verify_popcount): Delete.
23280 (sbitmap_alloc): Don't initialize the popcount field.
23281 (sbitmap_alloc_with_popcount): Delete.
23282 (sbitmap_resize): Don't resize the popcount array.
23283 (sbitmap_vector_alloc): Don't initialize the popcount field.
23284 (bitmap_copy): Don't copy the popcount array.
23285 (bitmap_clear): Don't clear the popcount array.
23286 (bitmap_clear): Delete the popcount array handling.
23287 (bitmap_ior_and_compl): Delete the popcount assert.
23288 (bitmap_not): Ditto.
23289 (bitmap_and_compl): Ditto.
23290 (bitmap_and): Delete the popcount array handling.
23291 (bitmap_xor): Ditto.
23292 (bitmap_ior): Ditto.
23293 (bitmap_or_and): Delete the popcount assert.
23294 (bitmap_and_or): Ditto.
23295 (popcount_table): Delete.
23296 (sbitmap_elt_popcount): Delete.
23297 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
23298 (bitmap_set_bit): Delete the popcount assert.
23299 (bitmap_clear_bit): Ditto.
23300 (sbitmap_free): Don't free the popcount array.
23301 (sbitmap_alloc_with_popcount): Delete declaration.
23302 (sbitmap_popcount): Ditto.
23304 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23305 Andrew Burgess <andrew.burgess@embecosm.com>
23307 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
23308 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
23309 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
23310 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
23311 * config/arc/arc.opt (mcmem): New option.
23312 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
23313 supply length for r/m alternative.
23314 (*extendqisi2_ac): Likewise.
23315 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
23317 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
23318 (movhi_insn): Likewise.
23319 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
23320 (*zero_extendqihi2_i): Add r/Ucm alternative.
23321 (*zero_extendqisi2_ac): Likewise.
23322 (*zero_extendhisi2_i): Likewise.
23323 * config/arc/constraints.md (Uex): New memory constraint.
23324 (Ucm): New define_constraint.
23325 * config/arc/predicates.md (long_immediate_loadstore_operand):
23326 Return 0 for MEM with cmem_address address.
23327 (cmem_address_0): New predicates.
23328 (cmem_address_1): Likewise.
23329 (cmem_address_2): Likewise.
23330 (cmem_address): Likewise.
23332 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23334 * config/rs6000/rs6000.c (machine_function): Rename
23335 insn_chain_scanned_p to spe_insn_chain_scanned_p.
23336 (rs6000_stack_info): Adjust.
23338 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23339 Andrew Burgess <andrew.burgess@embecosm.com>
23341 * config/arc/constraints.md (Usd): Convert to define_constraint.
23345 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23348 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
23349 Add new peephole2 where the first insn is *mov<mode>_or instead of
23350 *mov<mode>_internal.
23352 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
23354 * tracer.c (bb_seen): Make static.
23356 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
23358 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
23359 support, setup defaults.
23360 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
23361 * config/arc/arc.c (arc_init): Add NPS400 support.
23362 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
23363 (TARGET_ARC700): NPS400 is also an ARC700.
23364 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
23366 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23369 * config/nds32/nds32.md (casesi): Don't access the operands array
23372 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23374 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
23375 (or $-1,reg peephole2): Ditto.
23376 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
23378 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23380 * doc/extend.texi (Common Function Attributes) [optimize]:
23381 Discourage use of the optimize attribute.
23383 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
23385 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
23386 special case builtin.
23387 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23388 ALTIVEC_BUILTIN_VEC_ADDE.
23389 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23390 support for ALTIVEC_BUILTIN_VEC_ADDE.
23391 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
23392 for __builtin_vec_adde.
23394 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23396 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
23397 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
23399 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23402 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23403 attributes): Document cilkplus_runtime.
23405 2016-04-28 Martin Jambor <mjambor@suse.cz>
23407 * tree-cfg.c (verify_expr): Verify that local declarations belong to
23408 this function. Call verify_expr on MEM_REFs and bases of other
23409 handled_components.
23411 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23413 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
23414 for WORD_REGISTER_OPERATIONS to runtime check.
23416 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23418 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
23420 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23422 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
23423 big-endian compilation.
23424 * config/arc/arc.md (addf3): Likewise.
23425 (subdf3): Likewise.
23426 (muldf3): Likewise.
23428 2016-04-28 Richard Biener <rguenther@suse.de>
23430 PR tree-optimization/70840
23431 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
23432 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
23433 Mark x * pow(x,c) -> pow(x,c+1) commutative.
23434 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
23436 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23438 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
23439 and explain why in a comment.
23441 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23443 * config/arc/arc.md (cpu_facility): Add fpx variant.
23444 (subdf3): Prohibit use reverse sub when assist operations option
23446 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
23447 instructions only when FPX is enabled.
23448 * testsuite/gcc.target/arc/trsub.c: New test.
23450 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23452 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
23453 mult_operator when calculating "type" attribute.
23454 (*fop_<mode>_1_i387): Ditto.
23455 (*fop_xf_1_i387): Ditto.
23456 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
23457 Use std::swap to swap operands. Use RTL expressions to generate
23460 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23461 Joern Rennecke <joern.rennecke@embecosm.com>
23463 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
23465 (emit_pic_move): Remove.
23466 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
23467 * config/arc/arc.c (emit_pic_move): Removed.
23468 (TARGET_HAVE_TLS): Define.
23469 (arc_conditional_register_usage): Test for arc_tp_regno.
23470 (arc_print_operand, arc_print_operand_address): Handle TLS
23472 (arc_needs_pcl_p): New function.
23473 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
23474 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
23475 (arc_raw_symbolic_reference_mentioned_p): Likewise.
23476 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
23477 (arc_legitimize_tls_address): Likewise.
23478 (DTPOFF_ZERO_SYM): Define.
23479 (arc_legitimize_pic_address): Make it static, handle TLS cases.
23480 (arc_output_pic_addr_const): Print TLS unspecs.
23481 (prepare_pic_move): New function, replaces emit_pic_move.
23482 (arc_legitimate_constant_p): Handle TLS unspecs.
23483 (arc_legitimate_address_p): Likewise.
23484 (arc_rewrite_small_data_p): Use assert for TLS constants.
23485 (prepare_move_operands): Use prepare_pic_move.
23486 (arc_legitimize_address): Legitimize tls addresses.
23487 (arc_epilogue_uses): Check for arc_tp_regno.
23488 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23489 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23491 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23493 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23494 %(arc_tls_extra_start_spec).
23495 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23496 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23498 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23499 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23500 (UNSPEC_TLS_OFF): Add.
23502 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23503 (get_thread_pointersi): New patterns.
23504 * config/arc/arc.opt (mtp-regno): New option.
23505 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23506 (move_dest_operand): Likewise.
23507 * configure: Regenerate.
23508 * configure.ac: Add arc*-*-* case to test for tls.
23509 * doc/invoke.texi (ARC options): Document mtp-regno.
23511 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23513 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23514 the new ARC HS SIMD instructions.
23515 (arc_preferred_simd_mode): New function.
23516 (arc_autovectorize_vector_sizes): Likewise.
23517 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23518 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23519 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23520 (arc_init_builtins): Add new SIMD builtin types.
23521 (arc_split_move): Handle 64 bit vector moves.
23522 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23523 (TARGET_PLUS_QMACW): Define.
23524 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23525 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23526 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23527 (VSUBADD4H): New builtins.
23528 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23529 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23531 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
23532 Matthias Klose <doko@debian.org>
23534 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23536 2016-04-28 Richard Biener <rguenther@suse.de>
23538 PR middle-end/70777
23539 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23542 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
23544 * common/config/sh/sh-common.c: Remove SH5 support.
23545 * config/sh/constraints.md: Likewise.
23546 * config/sh/config/sh/elf.h: Likewise.
23547 * config/sh/linux.h: Likewise.
23548 * config/sh/netbsd-elf.h: Likewise.
23549 * config/sh/predicates.md: Likewise.
23550 * config/sh/sh-c.c: Likewise.
23551 * config/sh/sh-protos.h: Likewise.
23552 * config/sh/sh.c: Likewise.
23553 * config/sh/sh.h: Likewise.
23554 * config/sh/sh.md: Likewise.
23555 * config/sh/sh.opt: Likewise.
23556 * config/sh/sync.md: Likewise.
23557 * config/sh/sh64.h: Delete.
23558 * config/sh/shmedia.h: Likewise.
23559 * config/sh/shmedia.md: Likewise.
23560 * config/sh/sshmedia.h: Likewise.
23561 * config/sh/t-netbsd-sh5-64: Likewise.
23562 * config/sh/t-sh64: Likewise.
23563 * config/sh/ushmedia.h: Likewise.
23565 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23567 * config/i386/i386.md (sign_extend to memory peephole2s): Use
23568 general_reg_operand instead of register_operand predicate.
23570 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23572 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23574 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
23576 * match.pd (A - B > A, A + B < A): New transformations.
23578 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
23580 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23581 which defaults to true. Emit an outer pair of parentheses only if
23582 EMIT_PARENS. When continuing a chain of && or || (or & or |),
23583 don't emit parentheses for the right-hand operand.
23585 2016-04-27 Jeff Law <law@redhat.com>
23587 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23589 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23591 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23592 (altivec_lvx_<mode>_internal): Document.
23593 (altivec_lvx_<mode>_2op): New define_insn.
23594 (altivec_lvx_<mode>_1op): Likewise.
23595 (altivec_lvx_<mode>_2op_si): Likewise.
23596 (altivec_lvx_<mode>_1op_si): Likewise.
23597 (altivec_stvx_<mode>): Remove.
23598 (altivec_stvx_<mode>_internal): Document.
23599 (altivec_stvx_<mode>_2op): New define_insn.
23600 (altivec_stvx_<mode>_1op): Likewise.
23601 (altivec_stvx_<mode>_2op_si): Likewise.
23602 (altivec_stvx_<mode>_1op_si): Likewise.
23603 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23604 Expand vec_ld and vec_st during parsing.
23605 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23607 (altivec_expand_stvx_be): Likewise.
23608 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23609 address-masking behavior in RTL.
23610 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23611 address-masking behavior in RTL.
23612 (altivec_expand_builtin): Change builtin code arguments for calls
23613 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23614 (insn_is_swappable_p): Avoid incorrect swap optimization in the
23615 presence of lvx/stvx patterns.
23616 (alignment_with_canonical_addr): New function.
23617 (alignment_mask): Likewise.
23618 (find_alignment_op): Likewise.
23619 (recombine_lvx_pattern): Likewise.
23620 (recombine_stvx_pattern): Likewise.
23621 (recombine_lvx_stvx_patterns): Likewise.
23622 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23623 stvx patterns from expand.
23624 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23626 (vector_altivec_store_<mode>): Likewise.
23628 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
23630 * config/aarch64/aarch64.md
23631 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23632 remove the "fp" attributes.
23633 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23634 add the "simd" attributes.
23635 (*movdf_aarch64): Likewise.
23636 (*movtf_aarch64): Remove the "fp" attributes.
23637 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23638 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23640 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23642 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23643 rtx to rtx_code_label *.
23644 * rtl.h (maybe_set_first_label_num): Likewise.
23646 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23648 * df-core.c (df_add_problem): Make the problem param be const.
23649 (df_remove_problem): Make local "problem" be const.
23650 * df-problems.c (problem_RD): Make const.
23651 (problem_LR): Likewise.
23652 (problem_LIVE): Likewise.
23653 (problem_MIR): Likewise.
23654 (problem_CHAIN): Likewise.
23655 (problem_WORD_LR): Likewise.
23656 (problem_NOTE): Likewise.
23657 (problem_MD): Likewise.
23658 * df-scan.c (problem_SCAN): Likewise.
23659 * df.h (struct df_problem): Make field "dependent_problem" be
23661 (struct dataflow): Likewise for field "problem".
23662 (df_add_problem): Make param const.
23664 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23666 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23667 inter-unit moves to/from vector registers are enabled. Do not disable
23670 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23672 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23673 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23675 (enum df_problem_id): ...this new enum.
23676 (struct df_problem): Convert field "id" from "int" to
23677 enum df_problem_id.
23679 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23681 * rtl.def: Update comment for "things in the instruction chain" to
23682 reflect the removal of the leading "i" field for INSN_UID in
23683 r210360. Fix bogus apostrophe.
23685 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23687 * config/i386/i386.md
23688 (lea arith with mem operand + setcc peephole2): Set operator mode.
23690 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
23693 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23694 (dimode_scalar_to_vector_candidate_p): This.
23695 (timode_scalar_to_vector_candidate_p): New function.
23696 (scalar_to_vector_candidate_p): Likewise.
23697 (timode_check_non_convertible_regs): Likewise.
23698 (timode_remove_non_convertible_regs): Likewise.
23699 (remove_non_convertible_regs): Likewise.
23700 (remove_non_convertible_regs): Renamed to ...
23701 (dimode_remove_non_convertible_regs): This.
23702 (scalar_chain::~scalar_chain): Make it virtual.
23703 (scalar_chain::compute_convert_gain): Make it pure virtual.
23704 (scalar_chain::mark_dual_mode_def): Likewise.
23705 (scalar_chain::convert_insn): Likewise.
23706 (scalar_chain::convert_registers): Likewise.
23707 (scalar_chain::add_to_queue): Make it protected.
23708 (scalar_chain::emit_conversion_insns): Likewise.
23709 (scalar_chain::replace_with_subreg): Likewise.
23710 (scalar_chain::replace_with_subreg_in_insn): Likewise.
23711 (scalar_chain::convert_op): Likewise.
23712 (scalar_chain::convert_reg): Likewise.
23713 (scalar_chain::make_vector_copies): Likewise.
23714 (scalar_chain::convert_registers): New pure virtual function.
23715 (class dimode_scalar_chain): New class.
23716 (class timode_scalar_chain): Likewise.
23717 (scalar_chain::mark_dual_mode_def): Renamed to ...
23718 (dimode_scalar_chain::mark_dual_mode_def): This.
23719 (timode_scalar_chain::mark_dual_mode_def): New function.
23720 (timode_scalar_chain::convert_insn): Likewise.
23721 (dimode_scalar_chain::convert_registers): Likewise.
23722 (scalar_chain::compute_convert_gain): Renamed to ...
23723 (dimode_scalar_chain::compute_convert_gain): This.
23724 (scalar_chain::replace_with_subreg): Renamed to ...
23725 (dimode_scalar_chain::replace_with_subreg): This.
23726 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23727 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23728 (scalar_chain::make_vector_copies): Renamed to ...
23729 (dimode_scalar_chain::make_vector_copies): This.
23730 (scalar_chain::convert_reg): Renamed to ...
23731 (dimode_scalar_chain::convert_reg ): This.
23732 (scalar_chain::convert_op): Renamed to ...
23733 (dimode_scalar_chain::convert_op): This.
23734 (scalar_chain::convert_insn): Renamed to ...
23735 (dimode_scalar_chain::convert_insn): This.
23736 (scalar_chain::convert): Call convert_registers.
23737 (convert_scalars_to_vector): Change to scalar_chain pointer to
23738 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23739 in 32-bit mode. Delete scalar_chain pointer. Call
23740 free_dominance_info in 64-bit mode.
23741 (pass_stv::gate): Remove TARGET_64BIT check.
23742 (ix86_option_override): Put the 64-bit STV pass before the CSE
23745 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
23747 * dwarf2out.h (struct dw_loc_descr_node): Remove the
23748 dw_loc_frame_offset field.
23749 * dwarf2out.c (new_loc_descr): Likewise.
23750 (resolve_args_picking_1): Turn the VISITED hash set into a
23751 FRAME_OFFSET hash map. Use it to associate a frame offset to
23752 visited nodes. Remove uses of the CHECKING_P macro.
23753 (resolve_args_picking): Update call to resolve_args_picking_1.
23755 2016-04-27 Martin Liska <mliska@suse.cz>
23757 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23758 (free_loop_data): Release vuses of groups.
23760 2016-04-27 Bin Cheng <bin.cheng@arm.com>
23762 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23763 instead of redundant use_id and boolean have_use_for.
23764 (struct iv_use): Change sub_id into group_id. Remove field next.
23765 Move fields: related_cands, n_map_members, cost_map and selected
23767 (struct iv_group): ... here. New structure.
23768 (struct iv_common_cand): Use structure declaration directly.
23769 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23770 (MAX_CONSIDERED_USES): Rename macro to ...
23771 (MAX_CONSIDERED_GROUPS): ... here.
23772 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23773 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23774 (dump_uses): Rename to ...
23775 (dump_groups): ... here. Update all uses.
23776 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23777 (find_induction_variables): Refactor format of dump information.
23778 (record_sub_use): Delete.
23779 (record_use): Update all uses.
23780 (record_group): New function.
23781 (record_group_use, find_interesting_uses_op): Call above functions.
23783 (find_interesting_uses_cond): Ditto.
23784 (group_compare_offset): New function.
23785 (split_all_small_groups): Rename to ...
23786 (split_small_address_groups_p): ... here. Update all uses.
23787 (split_address_groups): Update all uses.
23788 (find_interesting_uses): Refactor format of dump information.
23789 (add_candidate_1): Update all uses. Remove redundant check on iv,
23791 (add_candidate, record_common_cand): Remove redundant assert.
23792 (add_iv_candidate_for_biv): Update use.
23793 (add_iv_candidate_derived_from_uses): Update all uses.
23794 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
23795 (alloc_use_cost_map): Ditto.
23796 (set_use_iv_cost, get_use_iv_cost): Rename to ...
23797 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
23798 (determine_use_iv_cost_generic): Ditto.
23799 (determine_group_iv_cost_generic): Ditto.
23800 (determine_use_iv_cost_address): Ditto.
23801 (determine_group_iv_cost_address): Ditto.
23802 (determine_use_iv_cost_condition): Ditto.
23803 (determine_group_iv_cost_cond): Ditto.
23804 (determine_use_iv_cost): Ditto.
23805 (determine_group_iv_cost): Ditto.
23806 (set_autoinc_for_original_candidates): Update all uses.
23807 (find_iv_candidates): Update all uses. Refactor dump information.
23808 (determine_use_iv_costs): Ditto.
23809 (determine_iv_costs): Ditto.
23810 (iv_ca_cand_for_use): Rename to ...
23811 (iv_ca_cand_for_group): ... here. Update all uses.
23812 (iv_ca_add_use, iv_ca_add_group): Ditto.
23813 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
23814 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
23815 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
23816 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
23817 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
23818 (create_new_iv, adjust_iv_update_pos): Ditto.
23819 (rewrite_use_address): Delete.
23820 (rewrite_use_address_1): Rename to ...
23821 (rewrite_use_address): ... here.
23822 (rewrite_use_compare): Update all uses.
23823 (rewrite_use): Delete.
23824 (rewrite_uses): Rename to ...
23825 (rewrite_groups): ... here. Update all uses.
23826 (remove_unused_ivs, free_loop_data): Update all uses.
23827 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
23829 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23831 * rtlanal.c (nonzero_bits1): Convert preprocessor check
23832 for WORD_REGISTER_OPERATIONS to runtime check.
23834 2016-04-27 Richard Biener <rguenther@suse.de>
23837 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
23838 aggregate_value_p to determine if a function result is
23839 returned by reference.
23840 (ipa_pta_execute): Functions having their address taken are
23841 not automatically nonlocal.
23843 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23846 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
23847 * fold-const.c (operand_equal_p): If flag_checking and
23848 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
23849 and if it returns non-zero, assert iterative_hash_expr on both
23852 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23854 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
23856 2016-04-27 Nick Clifton <nickc@redhat.com>
23858 PR middle-end/49889
23859 * varasm.c (merge_weak): Generate an error if an attempt is made
23860 to convert a non-weak static function into a weak, public function.
23862 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23864 * params.def (MAX_PARTITION_SIZE): New param.
23865 * doc/invoke.texi: Document lto-max-partition.
23867 2016-04-27 Richard Biener <rguenther@suse.de>
23870 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
23871 function cummulating used_from_other_partition, externally_visible
23872 and force_output from aliases.
23873 (refered_from_nonlocal_var): Likewise.
23874 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
23875 node flags properly.
23877 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23879 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
23880 (-Wmemset-elt-size): New item.
23882 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
23885 * stor-layout.h (internal_reference_types): Delete.
23886 * stor-layout.c (reference_types_internal): Likewise.
23887 (internal_reference_types): Likewise.
23888 (layout_type) <REFERENCE_TYPE>: Adjust.
23890 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23893 * tree.h (inchash::add_expr): Add FLAGS argument.
23894 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
23895 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
23896 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
23897 Formatting fix. Adjust recursive calls. For tcc_comparison,
23898 if swap_tree_comparison (code) is smaller than code, hash that
23899 and arguments in the other order. Hash CONVERT_EXPR the same
23900 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
23901 of ADDR_EXPR of decl as the decl itself. Add or remove
23902 OEP_ADDRESS_OF from recursive flags as needed. For
23903 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
23904 operands commutatively and only the third one normally.
23905 For internal CALL_EXPR hash in CALL_EXPR_IFN.
23907 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
23909 * config/rtems.h (LIB_SPEC): Add -latomic.
23911 2016-04-27 Joel Sherrill <joel@rtems.org>
23913 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
23914 xilink.ld and flags not relevant to RTEMS.
23916 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23918 * toplev.c (backend_init_target): Avoid calling init_reload when using
23921 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23923 * reorg.c (try_merge_delay_insns): Declare i and j inside the
23924 for loops rather than one for the whole function.
23926 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23928 * match.pd (X + CST CMP X): New transformation.
23930 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23932 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
23933 * fold-const.c (fold_binary_loc): Remove 2 transformations
23934 superseded by match.pd.
23935 * match.pd (x+x -> x*2): Generalize to integers.
23937 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
23939 * config/i386/i386.md (operation on memory peephole): Duplicate an
23940 existing peephole and adapt it to match lea rather than an operation
23943 PR rtl-optimization/57193
23944 * opts.c (default_options_table): Add OPT_frename_registers at -O2
23946 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
23948 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23950 * tree-if-conv.c (any_pred_load_store): New static variable.
23951 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
23952 any_pred_load_store instead of and_mask_load_store.
23953 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
23954 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
23955 (combine_blocks, tree_if_conversion): Ditto.
23957 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23959 PR tree-optimization/70771
23960 PR tree-optimization/70775
23961 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
23962 virtual PHI nodes. Delete parameter.
23963 (if_convertible_loop_p_1): Delete argument to above function.
23964 (predicate_all_scalar_phis): Delete code handling single-argument
23966 (tree_if_conversion): Mark and update virtual SSA.
23968 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23971 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
23972 (x86_elf_aligned_common): Rename to ...
23973 (x86_elf_aligned_decl_common): ... this.
23974 Add decl arg. Switch to .lbss for largecomm object. Use
23975 LARGECOMM_SECTION_ASM_OP.
23976 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
23978 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
23979 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
23981 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23982 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
23984 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23987 * config/i386/i386.c (SECTION_LARGE): Define.
23988 (x86_64_elf_select_section): Set it for large data/bss sections.
23989 Only clear SECTION_WRITE for .lrodata.
23990 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
23992 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
23993 * varasm.c (default_elf_asm_named_section): Grow flagchars.
23994 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
23996 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
23997 * doc/tm.texi: Regenerate.
23999 2016-04-26 Jakub Jelinek <jakub@redhat.com>
24002 * configure.ac (--enable-checking): Document extra flag, for
24003 non-release builds default to --enable-checking=yes,extra.
24004 If misc checking and extra checking, define CHECKING_P to 2 instead
24006 * common.opt (fchecking=): Add.
24007 * doc/invoke.texi (-fchecking=): Document.
24008 * doc/install.texi: Document --enable-checking changes.
24009 * configure: Regenerated.
24010 * config.in: Regenerated.
24012 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24014 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
24015 attribute instead of which_alternative.
24016 * config/i386/sse.md (*mov<mode>_internal): Ditto.
24017 Use EXT_REX_SSE_REG_P where appropriate.
24019 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24021 * config/i386/predicates.md (const0_operand): Do not match
24022 const_wide_int code.
24023 (const1_operand): Ditto.
24025 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24027 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
24028 for SSE constm1 operands and TARGET_AVX512VL.
24029 (*movti_internal): Ditto.
24030 (*mov<mode>_or): Use constm1_operand predicate.
24031 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
24032 for SSE vector_all_ones operands and TARGET_AVX512VL.
24033 * config/i386/predicates.md (constm1_operand): New predicate.
24034 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
24035 emission of constant -1 load.
24037 2016-04-25 Jason Merrill <jason@redhat.com>
24039 * gdbinit.in: Skip is-a.h.
24041 * attribs.c (register_scoped_attributes): Fix logic.
24042 * attribs.h: Declare register_scoped_attributes.
24044 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24046 * config/rs6000/rs6000-builtin.def: Correct pasto error for
24047 stxvd2x and stxvw4x built-in functions.
24049 2016-04-25 DJ Delorie <dj@redhat.com>
24051 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
24052 (ashrhi3): Likewise.
24053 (lshrhi3): Likewise.
24055 2016-04-25 Richard Biener <rguenther@suse.de>
24057 PR tree-optimization/70780
24058 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
24059 wasn't visited yet.
24060 (compute_antic): Mark blocks with abnormal preds as visited as
24061 they have a final empty antic-in solution already.
24063 2016-04-25 Michael Collison <michael.collison@linaro.org>
24065 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
24067 2016-04-25 Michael Collison <michael.collison@linaro.org>
24069 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
24070 mode is VQI to improve mixed mode vectorization.
24071 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
24072 define_insn to match low half of signed vaddw.
24073 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
24074 define_insn to match high half of signed vaddw.
24075 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
24076 define_insn to match low half of unsigned vaddw.
24077 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
24078 define_insn to match high half of unsigned vaddw.
24079 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
24080 (arm_simd_check_vect_par_cnst_half_p): Likewise.
24081 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
24083 (arm_simd_check_vect_par_cnst_half_p): Likewise.
24084 * config/arm/predicates.md (vect_par_constant_high): Support
24085 big endian and simplify by calling
24086 arm_simd_check_vect_par_cnst_half
24087 (vect_par_constant_low): Likewise.
24089 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
24091 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
24092 predicate for operand 2.
24094 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
24095 H.J. Lu <hongjiu.lu@intel.com>
24097 * config/i386/i386-protos.h (standard_sse_constant_p): Add
24098 machine_mode argument.
24099 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
24100 constm1_rtx operands. For VOIDmode constants, get mode from
24101 pred_mode. Check mode size if the mode is supported by ABI.
24102 (standard_sse_constant_opcode): Do not use standard_constant_p.
24103 Strictly check ABI support for all-ones operands.
24104 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
24105 immediates. Update calls to standard_sse_constant_p.
24106 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
24107 (ix86_rtx_costs): Ditto.
24108 * config/i386/i386.md (*movxi_internal_avx512f): Use
24109 nonimmediate_or_sse_const_operand instead of vector_move_operand.
24110 Use (v,BC) alternative instead of (v,C). Use register_operand
24111 checks instead of MEM_P.
24112 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
24113 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
24114 isa attribute. Use register_operand checks instead of MEM_P.
24115 (*movti_internal): Use nonimmediate_or_sse_const_operand for
24116 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
24117 alternative and corresponding sse2 isa attribute.
24118 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
24119 to standard_sse_constant_p.
24120 (FP constant splitters): Ditto.
24121 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
24123 * config/i386/predicates.md (constm1_operand): Remove.
24124 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
24125 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
24126 vector_all_ones_operand instead of constm1_operand.
24128 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24130 * print-rtl.c (print_rtx_insn_vec): New function.
24131 * print-rtl.h: New prototype.
24132 * store-motion.c (struct st_expr): Make avail_stores a vector.
24133 (st_expr_entry): Adjust.
24134 (free_st_expr_entry): Likewise.
24135 (print_store_motion_mems): Likewise.
24136 (find_moveable_store): Likewise.
24137 (compute_store_table): Likewise.
24138 (delete_store): Likewise.
24139 (build_store_vectors): Likewise.
24141 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24143 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
24145 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24147 * vec.h (vec_safe_contains): New function.
24148 (vec::contains): Likewise.
24149 (vec::begin): Likewise.
24150 (vec::end): Likewise.
24152 2016-04-23 Jakub Jelinek <jakub@redhat.com>
24155 * cfgexpand.c (expand_stack_vars): Fix typo.
24157 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24159 * system.h (list, map, set, vector): Include conditionally.
24160 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
24161 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
24162 * ipa-icf.c (INCLUDE_LIST): Define.
24163 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
24164 * config/sh/sh.c (INCLUDE_VECTOR): Define.
24165 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
24166 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
24167 * cp/logic.cc (INCLUDE_LIST): Define.
24168 * fortran/trans-common.c (INCLUDE_MAP): Define.
24170 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24172 * auto-profile.c: Remove <string.h> include.
24173 * ipa-icf-gimple.c: Remove <list> include.
24174 * diagnostic.c: Remove <new> include.
24175 * genmatch.c: Likewise.
24176 * pretty-print.c: Likewise.
24177 * toplev.c: Likewise
24178 * c/c-objc-common.c: Likewise.
24179 * cp/error.c: Likewise.
24180 * fortran/error.c: Likewise.
24182 2016-04-22 Richard Biener <rguenther@suse.de>
24184 * lto-streamer-in.c (input_ssa_names): Do not allocate
24185 GIMPLE_NOP for all SSA names.
24186 * lto-streamer-out.c (output_ssa_names): Do not output
24187 SSA names that should have been released.
24189 2016-04-22 Richard Biener <rguenther@suse.de>
24191 PR tree-optimization/70740
24192 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
24195 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
24198 * config/i386/predicates.md (call_insn_operand): Replace
24199 sibcall_memory_operand with memory_operand.
24201 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
24203 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
24204 has_single_use() tests.
24205 (register_edge_assert_for_1): Likewise.
24206 (find_assert_locations_1): Check the liveness bitmap instead of
24207 checking has_single_use().
24209 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
24212 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
24213 Extract AVX-512BW constraint from AVX.
24215 2016-04-21 Richard Biener <rguenther@suse.de>
24217 PR tree-optimization/70725
24218 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
24219 for phi_convertible_by_degenerating_args.
24220 (predicate_all_scalar_phis): Handle single-argument PHIs.
24222 2016-04-21 Richard Biener <rguenther@suse.de>
24224 PR middle-end/70747
24225 * fold-const.c (fold_comparison): Return properly typed
24228 2016-04-21 Bin Cheng <bin.cheng@arm.com>
24230 PR tree-optimization/70715
24231 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
24232 after expanding BASE using expand_simple_operations.
24234 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24236 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
24237 New transformations.
24239 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24241 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
24243 2016-04-20 Jan Hubicka <jh@suse.cz>
24245 * ipa-inline.c (can_inline_edge_p): Pass caller info to
24246 ultiimate_alias_target.
24247 (update_callee_keys): Likewise.
24248 (lookup_recursive_calls): Likewise.
24249 (speculation_useful_p): Likewise.
24251 2016-04-20 Jan Hubicka <jh@suse.cz>
24254 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
24255 (set_nothrow_flag_1): ... this; handle interposition correctly;
24256 recurse on aliases and thunks.
24257 (cgraph_node::set_nothrow_flag): New.
24258 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
24259 functions compiled with non-call exceptions that binds to current
24261 (propagate_nothrow): Be safe WRT interposition.
24262 * cgraph.h (set_nothrow_flag): Update prototype.
24264 2016-04-18 Jan Hubicka <jh@suse.cz>
24266 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24267 max_loop_iterations_int.
24268 (tree_unswitch_outer_loop): Likewise.
24270 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24272 PR tree-optimization/69489
24273 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
24274 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
24275 Revise dump message.
24276 (if_convertible_bb_p): Remove check on edge count of basic block's
24279 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24281 PR tree-optimization/56625
24282 PR tree-optimization/69489
24283 * tree-data-ref.h (DR_INNERMOST): New macro.
24284 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
24285 hashing struct innermost_loop_behavior.
24286 (ref_DR_map): Remove.
24287 (innermost_DR_map): New map.
24288 (baseref_DR_map): Revise comment.
24289 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
24290 to innermost_DR_map accroding to its innermost loop behavior.
24291 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
24292 to its innermost loop behavior.
24293 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
24294 Add initialization for innermost_DR_map. Record memory reference
24295 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
24296 have innermost loop behavior.
24297 (if_convertible_loop_p): Remove release for ref_DR_map. Release
24300 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
24302 * config/i386/i386.md (*lea<mode>_general_1): Rename from
24303 *lea_general_1. Use explicit SWI12 mode interator.
24304 (*lea<mode>_general_2): Rename from *lea_general_2.
24305 Use explicit SWI12 mode interator.
24306 (*lea<mode>_general_3): Rename from *lea_general_3.
24307 Use explicit SWI12 mode interator.
24308 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
24309 Use explicit SWI12 mode interator.
24310 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
24311 Use explicit SWI48 mode interator.
24313 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24315 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
24316 Short-cut unaligned load and store cases. Handle all integer
24318 (ix86_expand_vector_move_misalign): Short-cut unaligned load
24319 and store cases. Call ix86_avx256_split_vector_move_misalign
24320 directly without checking mode class.
24322 2016-04-20 Andrew Pinski <apinski@cavium.com>
24323 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24326 * config/aarch64/aarch64.md (sibcall): Force call
24327 address to be DImode for ILP32.
24328 (sibcall_value): Likewise.
24330 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24332 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
24334 2016-04-20 Richard Biener <rguenther@suse.de>
24336 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
24337 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
24338 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
24339 (maybe_push_res_to_seq): Adjust.
24340 * gimple-fold.c (maybe_build_generic_op): Likewise.
24342 2016-04-20 Marek Polacek <polacek@redhat.com>
24344 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
24347 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
24349 * config/i386/sse.md (vec_unpacks_lo_hi): Always
24350 use kmovw to support AVX512F target.
24352 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24354 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
24356 2016-04-20 Marek Polacek <polacek@redhat.com>
24358 PR tree-optimization/70725
24359 * tree-if-conv.c (is_false_predicate): New function.
24360 (predicate_mem_writes): Use it.
24362 2016-04-20 Richard Biener <rguenther@suse.de>
24364 PR tree-optimization/70726
24365 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
24366 shift amounts from a pattern stmt operand.
24368 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24371 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
24372 stack_restore_from_fpr pattern when restoring r15.
24373 (s390_optimize_prologue): Strip away the memory barrier in the
24374 parallel when trying to get rid of restore insns.
24375 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
24376 definition for loading the stack pointer from an FPR. Compared to
24377 the normal move insn this pattern includes a full memory barrier.
24379 2016-04-19 Jakub Jelinek <jakub@redhat.com>
24381 PR middle-end/70680
24382 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
24383 implicitly linear or lastprivate iterator on the outer context.
24385 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24387 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
24389 * config/i386/i386.md (ssememalign): Removed.
24390 * config/i386/sse.md: Remove ssememalign attribute from patterns.
24392 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24395 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
24396 const short * to __builtin_ia32_loaddquhi512_mask.
24397 (_mm512_maskz_loadu_epi16): Likewise.
24398 (_mm512_mask_storeu_epi16): Pass short * to
24399 __builtin_ia32_storedquhi512_mask.
24400 (_mm512_mask_loadu_epi8): Pass const char * to
24401 __builtin_ia32_loaddquqi512_mask.
24402 (_mm512_maskz_loadu_epi8): Likewise.
24403 (_mm512_mask_storeu_epi8): Pass char * to
24404 __builtin_ia32_storedquqi512_mask.
24405 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
24406 const double * to __builtin_ia32_loadupd512_mask.
24407 (_mm512_mask_loadu_pd): Likewise.
24408 (_mm512_maskz_loadu_pd): Likewise.
24409 (_mm512_storeu_pd): Pass double * to
24410 __builtin_ia32_storeupd512_mask.
24411 (_mm512_mask_storeu_pd): Likewise.
24412 (_mm512_loadu_ps): Pass const float * to
24413 __builtin_ia32_loadups512_mask.
24414 (_mm512_mask_loadu_ps): Likewise.
24415 (_mm512_maskz_loadu_ps): Likewise.
24416 (_mm512_storeu_ps): Pass float * to
24417 __builtin_ia32_storeups512_mask.
24418 (_mm512_mask_storeu_ps): Likewise.
24419 (_mm512_mask_loadu_epi64): Pass const long long * to
24420 __builtin_ia32_loaddqudi512_mask.
24421 (_mm512_maskz_loadu_epi64): Likewise.
24422 (_mm512_mask_storeu_epi64): Pass long long *
24423 to __builtin_ia32_storedqudi512_mask.
24424 (_mm512_loadu_si512): Pass const int * to
24425 __builtin_ia32_loaddqusi512_mask.
24426 (_mm512_mask_loadu_epi32): Likewise.
24427 (_mm512_maskz_loadu_epi32): Likewise.
24428 (_mm512_storeu_si512): Pass int * to
24429 __builtin_ia32_storedqusi512_mask.
24430 (_mm512_mask_storeu_epi32): Likewise.
24431 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
24432 char * to __builtin_ia32_storedquqi256_mask.
24433 (_mm_mask_storeu_epi8): Likewise.
24434 (_mm256_mask_loadu_epi16): Pass const short * to
24435 __builtin_ia32_loaddquhi256_mask.
24436 (_mm256_maskz_loadu_epi16): Likewise.
24437 (_mm_mask_loadu_epi16): Pass const short * to
24438 __builtin_ia32_loaddquhi128_mask.
24439 (_mm_maskz_loadu_epi16): Likewise.
24440 (_mm256_mask_loadu_epi8): Pass const char * to
24441 __builtin_ia32_loaddquqi256_mask.
24442 (_mm256_maskz_loadu_epi8): Likewise.
24443 (_mm_mask_loadu_epi8): Pass const char * to
24444 __builtin_ia32_loaddquqi128_mask.
24445 (_mm_maskz_loadu_epi8): Likewise.
24446 (_mm256_mask_storeu_epi16): Pass short * to.
24447 __builtin_ia32_storedquhi256_mask.
24448 (_mm_mask_storeu_epi16): Pass short * to.
24449 __builtin_ia32_storedquhi128_mask.
24450 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
24451 const double * to __builtin_ia32_loadupd256_mask.
24452 (_mm256_maskz_loadu_pd): Likewise.
24453 (_mm_mask_loadu_pd): Pass onst double * to
24454 __builtin_ia32_loadupd128_mask.
24455 (_mm_maskz_loadu_pd): Likewise.
24456 (_mm256_mask_storeu_pd): Pass double * to
24457 __builtin_ia32_storeupd256_mask.
24458 (_mm_mask_storeu_pd): Pass double * to
24459 __builtin_ia32_storeupd128_mask.
24460 (_mm256_mask_loadu_ps): Pass const float * to
24461 __builtin_ia32_loadups256_mask.
24462 (_mm256_maskz_loadu_ps): Likewise.
24463 (_mm_mask_loadu_ps): Pass const float * to
24464 __builtin_ia32_loadups128_mask.
24465 (_mm_maskz_loadu_ps): Likewise.
24466 (_mm256_mask_storeu_ps): Pass float * to
24467 __builtin_ia32_storeups256_mask.
24468 (_mm_mask_storeu_ps): ass float * to
24469 __builtin_ia32_storeups128_mask.
24470 (_mm256_mask_loadu_epi64): Pass const long long * to
24471 __builtin_ia32_loaddqudi256_mask.
24472 (_mm256_maskz_loadu_epi64): Likewise.
24473 (_mm_mask_loadu_epi64): Pass const long long * to
24474 __builtin_ia32_loaddqudi128_mask.
24475 (_mm_maskz_loadu_epi64): Likewise.
24476 (_mm256_mask_storeu_epi64): Pass long long * to
24477 __builtin_ia32_storedqudi256_mask.
24478 (_mm_mask_storeu_epi64): Pass long long * to
24479 __builtin_ia32_storedqudi128_mask.
24480 (_mm256_mask_loadu_epi32): Pass const int * to
24481 __builtin_ia32_loaddqusi256_mask.
24482 (_mm256_maskz_loadu_epi32): Likewise.
24483 (_mm_mask_loadu_epi32): Pass const int * to
24484 __builtin_ia32_loaddqusi128_mask.
24485 (_mm_maskz_loadu_epi32): Likewise.
24486 (_mm256_mask_storeu_epi32): Pass int * to
24487 __builtin_ia32_storedqusi256_mask.
24488 (_mm_mask_storeu_epi32): Pass int * to
24489 __builtin_ia32_storedqusi128_mask.
24490 * config/i386/i386-builtin-types.def (PCSHORT): New.
24491 (PINT64): Likewise.
24492 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24493 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24494 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24495 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24496 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24497 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24498 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24499 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24500 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24501 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24502 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24503 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24504 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24505 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24506 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24507 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24508 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24509 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24510 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24511 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24512 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24513 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24514 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24515 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24516 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24517 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24518 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24519 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24520 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24521 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24522 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24523 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24524 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24525 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24526 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24527 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24528 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24529 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24530 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24531 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24532 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24533 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24534 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24535 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24536 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24537 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24538 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24539 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24540 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24542 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24543 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24545 (ix86_expand_vector_move_misalign): Likewise.
24546 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24547 to scalar function prototype for unaligned load/store builtins.
24548 (ix86_expand_special_args_builtin): Updated.
24549 * config/i386/sse.md (UNSPEC_LOADU): Removed.
24550 (UNSPEC_STOREU): Likewise.
24551 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24552 (VI_ULOADSTORE_F_AVX512VL): Likewise.
24553 (ssescalarsize): Handle V4TI, V2TI and V1TI.
24554 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24555 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24556 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24557 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24558 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24559 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24560 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24561 (<avx512>_storedqu<mode>_mask): Likewise.
24562 (*sse4_2_pcmpestr_unaligned): Likewise.
24563 (*sse4_2_pcmpistr_unaligned): Likewise.
24564 (*mov<mode>_internal): Renamed to ...
24565 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
24566 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24567 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24568 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24570 2016-04-19 Richard Biener <rguenther@suse.de>
24572 PR tree-optimization/70171
24573 * tree-ssa-phiprop.c: Include stor-layout.h.
24574 (phiprop_insert_phi): Handle the aggregate copy case.
24575 (propagate_with_phi): Likewise.
24577 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
24579 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24580 instead of simplify_gen_subreg (... , 0).
24581 (ix86_delegitimize_address): Ditto.
24582 (ix86_split_divmod): Ditto.
24583 (ix86_split_copysign_const): Ditto.
24584 (ix86_split_copysign_var): Ditto.
24585 (ix86_expand_args_builtin): Ditto.
24586 (ix86_expand_round_builtin): Ditto.
24587 (ix86_expand_special_args_builtin): Ditto.
24588 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24589 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24590 (udivmodqi4): Ditto.
24591 (absneg splitters): Ditto.
24592 (*jcc_bt<mode>_1): Ditto.
24594 2016-04-19 Richard Biener <rguenther@suse.de>
24596 PR tree-optimization/70724
24597 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24598 restoring out from ...
24599 (free_scc_vn): ... here.
24600 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24601 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24603 (pass_fre::execute): Restore SSA info.
24605 2016-04-19 Richard Biener <rguenther@suse.de>
24607 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24608 * gimple-walk.c (walk_gimple_op): Initialize it.
24609 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24610 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24611 remapping SSA names of defs.
24612 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24615 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
24617 PR middle-end/70689
24618 * lra-constraints.c (equiv_substition_p): New.
24619 (process_alt_operands): Use it.
24620 (swap_operands): Swap it.
24621 (curr_insn_transform): Update it.
24623 2016-04-18 Michael Matz <matz@suse.de>
24625 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24626 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24627 * tree-core.h (tree_type_common.align): Use bit-field.
24628 (tree_type_common.spare): New.
24629 (tree_decl_common.off_align): Make smaller.
24630 (tree_decl_common.align): Use bit-field.
24632 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24633 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24634 (scan_sharing_clauses): Ditto.
24635 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24636 (omp_finish_file): Ditto.
24637 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24638 (layout_decl): Ditto.
24639 (relayout_decl): Ditto.
24640 (finalize_record_size): Use SET_TYPE_ALIGN.
24641 (finalize_type_size): Ditto.
24642 (finish_builtin_struct): Ditto.
24643 (layout_type): Ditto.
24644 (initialize_sizetypes): Ditto.
24645 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24646 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24647 (lookup_field_for_decl): Use SET_DECL_ALIGN.
24648 (get_chain_field): Ditto.
24649 (get_trampoline_type): Ditto.
24650 (get_nl_goto_field): Ditto.
24651 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24653 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24654 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24655 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24656 (build_qualified_type): Use SET_TYPE_ALIGN.
24657 (build_aligned_type, build_range_type_1): Ditto.
24658 (build_atomic_base): Ditto.
24659 (build_common_tree_nodes): Ditto.
24660 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24661 (expand_one_stack_var_at): Ditto.
24662 * coverage.c (build_var): Use SET_DECL_ALIGN.
24663 * except.c (init_eh): Ditto.
24664 * function.c (assign_parm_setup_block): Ditto.
24665 * symtab.c (increase_alignment_1): Ditto.
24666 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24667 * tree-vect-stmts.c (ensure_base_align): Ditto.
24668 * varasm.c (align_variable): Ditto.
24669 (assemble_variable): Ditto.
24670 (build_constant_desc): Ditto.
24671 (output_constant_def_contents): Ditto.
24673 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24674 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24675 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24676 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24677 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24679 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
24682 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24683 replace %vmovsd with "%vmovq".
24684 (vec_concatv2df): Likewise.
24686 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
24688 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24689 (*vec_extractv2si_0): Ditto.
24690 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24691 (zero_extended_scalar_load_operand splitters): Ditto.
24692 (vec_extract splitters): Ditto.
24693 (*vec_extractv4si_0_zext): Ditto.
24694 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24695 and lowpart_subreg.
24696 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24697 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24698 (*sse4_1_extractps): Use lowpart_subreg.
24699 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24701 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24703 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24705 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24706 Mention Solaris 11 packaging changes.
24707 Update gas and gld requirements.
24708 Remove reference to pre-Solaris 10 bug.
24709 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24711 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24714 2016-04-17 Jan Hubicka <jh@suse.cz>
24716 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24717 max_loop_iterations_int.
24719 2016-04-18 Richard Biener <rguenther@suse.de>
24721 PR tree-optimization/43434
24722 * tree-ssa-structalias.c (struct vls_data): New.
24723 (visit_loadstore): Handle all pointer-based accesses.
24724 (compute_dependence_clique): Compute a bitmap of restrict tags
24725 assigned bases and pass it to visit_loadstore.
24727 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
24730 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24731 armv8.1-a and armv8.1-a+crc.
24733 2016-04-18 Richard Biener <rguenther@suse.de>
24735 PR tree-optimization/70701
24736 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24737 references after translating through a memcpy.
24739 2016-04-18 Richard Biener <rguenther@suse.de>
24741 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24742 (compute_antic): ... here. For partial antic use regular
24743 postorder and scrap iteration.
24744 (compute_partial_antic_aux): Remove unused return value.
24745 (init_pre): Do not allocate postorder.
24746 (fini_pre): Do not free postorder.
24748 2016-04-18 Richard Biener <rguenther@suse.de>
24750 PR middle-end/37870
24751 * expmed.c (extract_bit_field_1): Remove broken case
24752 using a wider MODE_INT mode.
24754 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
24756 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24757 unless compiling with at least GCC-4.8.
24759 2016-04-17 Jan Hubicka <jh@suse.cz>
24762 * graphite.c (graphite_finalize): Update call to
24763 tree_estimate_probability.
24764 * predict.h (tree_estimate_probability): Update prototype.
24766 2016-04-17 Jan Hubicka <jh@suse.cz>
24768 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24769 (tree_estimate_probability): Likewise.
24770 (pass_profile::execute): Update.
24771 (report_predictor_hitrates): New function.
24772 * profile.c (compute_branch_probabilities): Use it.
24773 * predict.h (report_predictor_hitrates): Declare.
24775 2016-04-17 Jan Hubicka <jh@suse.cz>
24778 * cgraph.h (cgraph_node::set_const_flag,
24779 cgraph_node::set_pure_flag): Update prototype to return bool;
24781 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24782 of interposable symbol are interposable, too.
24783 (cgraph_set_const_flag_1): Rename to ...
24784 (set_const_flag_1): ... this one; change to self recursive function
24785 instead of call_for_symbol_thunks_and_aliases. Handle correctly
24786 clearnig the flag in all variants and also virtual thunks of const
24787 functions are pure; track if any change was done.
24788 (cgraph_node::set_const_flag): Update.
24789 (struct set_pure_flag_info): New struct.
24790 (cgraph_set_pure_flag_1): Rename to ...
24791 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
24792 rather than pointer encoded flags; track if any changes was done;
24793 handle correctly clearning flag and setting flag of aliases already
24795 (cgraph_node::set_pure_flag): Update.
24796 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
24798 2016-04-17 Tom de Vries <tom@codesourcery.com>
24801 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
24802 backslash in label.
24804 2016-04-17 Tom de Vries <tom@codesourcery.com>
24806 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
24807 '{}<> ' as escape-for-record.
24809 2016-04-17 Tom de Vries <tom@codesourcery.com>
24811 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
24814 2016-04-17 Tom de Vries <tom@codesourcery.com>
24817 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
24818 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
24819 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
24820 * passes.c (finish_optimization_passes): Only call
24821 finish_graph_dump_file if dfi->graph_dump_initialized.
24822 (execute_function_dump, pass_init_dump_file): Use
24823 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
24825 2016-04-17 Tom de Vries <tom@codesourcery.com>
24827 PR tree-optimization/70256
24828 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
24829 (debug_varmap): New function.
24831 2016-04-17 Tom de Vries <tom@codesourcery.com>
24834 * passes.c (pass_manager::register_pass): Propagate pflags.
24836 2016-04-17 Tom de Vries <tom@codesourcery.com>
24839 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
24840 * passes.c (pass_manager::pass_manager): Declare and init p_start in
24841 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
24842 check if it's equal to p_start.
24843 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
24845 2016-04-15 Jan Hubicka <jh@suse.cz>
24848 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
24849 function does not bind to current def.
24850 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
24851 handle conservatively calls to functions that does not need to bind
24853 (check_call): Update call of worse_state.
24854 (ignore_edge_for_nothrow): Update.
24855 (ignore_edge_for_pure_const): Likewise.
24856 (propagate_pure_const): Update calls to worse_state.
24857 (skip_function_for_local_pure_const): Reformat comments.
24859 2016-04-15 Jan Hubicka <jh@suse.cz>
24862 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
24863 (cgraph_node::function_symbol): Likewise.
24864 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24865 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
24866 (symtab_node::ultimate_alias_target): Add REF parameter.
24867 (symtab_node::binds_to_current_def_p): Declare.
24868 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
24869 (cgraph_node::function_symbol): Likewise.
24870 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24871 (cgraph_node::get_availability): Likewise.
24872 (cgraph_edge::binds_to_current_def_p): New inline function.
24873 (varpool_node::get_availability): Add REF parameter.
24874 (varpool_node::ultimate_alias_target): Likewise.
24875 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
24876 (symtab_node::binds_to_current_def_p): Likewise.
24877 * varpool.c (varpool_node::get_availability): Likewise.
24879 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24882 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
24883 Fix mode size check.
24885 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24887 * BASE-VER: Set to 7.0.0.
24889 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
24891 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
24893 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24895 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
24896 architecture revisions.
24898 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
24900 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
24901 * config/i386/i386.c (ix86_using_red_zone): No longer static.
24902 * config/i386/i386.md (stack decrement to push peepholes): Guard
24903 with !x86_using_red_zone ().
24905 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24908 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
24909 to dump_generic_node.
24910 (NIY): Pass also flags to do_niy.
24912 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
24914 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
24915 (simd_clone_vector_of_formal_parm_types)
24916 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
24917 (simd_clone_mangle, simd_clone_create)
24918 (simd_clone_adjust_return_type, create_tmp_simd_array)
24919 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
24920 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
24921 (ipa_simd_modify_function_body, simd_clone_linear_addend)
24922 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
24923 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
24924 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
24925 * omp-simd-clone.c: ... this new file.
24926 (simd_clone_vector_of_formal_parm_types): Make it static.
24927 * Makefile.in (OBJS): Add omp-simd-clone.o.
24929 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24932 * config/i386/sse.md: Use proper memory operand modifiers.
24935 2016-04-15 Richard Biener <rguenther@suse.de>
24936 Alan Modra <amodra@gmail.com>
24938 PR tree-optimization/70130
24939 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
24940 when alignment stays not the same and no not use the realign
24943 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24946 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24947 direct move handlers for KFmode. Change TFmode handlers test from
24948 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
24950 2016-04-14 Jakub Jelinek <jakub@redhat.com>
24953 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
24954 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
24955 (inlined_polymorphic_ctor_dtor_block_p): Use it.
24956 * tree-ssa-live.c (remove_unused_scope_block_p): When
24957 in_ctor_dtor_block, avoid discarding not just BLOCKs with
24958 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
24959 block_ultimate_origin is FUNCTION_DECL.
24960 (remove_unused_locals): If current_function_decl is
24961 polymorphic_ctor_dtor_p, pass initial true to
24962 remove_unused_scope_block_p' is_ctor_dtor_block.
24964 2016-04-14 Martin Sebor <msebor@redhat.com>
24969 * doc/extend.texi (Variable Length): Revert.
24971 2016-04-14 Marek Polacek <polacek@redhat.com>
24972 Jan Hubicka <hubicka@ucw.cz>
24975 * tree.c (verify_type): Disable the canonical type of main variant
24978 2016-04-14 Jason Merrill <jason@redhat.com>
24980 * cfgexpand.c, expr.c: Revert previous change.
24982 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
24984 PR middle-end/70643
24985 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
24986 when building a mem ref for the incoming reduction variable.
24988 2016-04-14 Richard Biener <rguenther@suse.de>
24990 PR tree-optimization/70614
24991 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
24992 loop if the evolution dropped to chrec_dont_know.
24993 (interpret_condition_phi): Likewise.
24995 2016-04-14 Richard Biener <rguenther@suse.de>
24997 PR tree-optimization/70623
24998 * tree-ssa-pre.c (changed_blocks): Make global ...
24999 (compute_antic): ... local here. Move and fix worklist
25000 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
25001 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
25002 worklist handling, dump when ANTIC_IN changed.
25003 (compute_partial_antic_aux): Remove worklist handling.
25004 (init_pre): Do not compute post dominators. Add a comment about
25005 the CFG order chosen.
25006 (fini_pre): Do not free post dominators.
25008 2016-04-13 Martin Sebor <msebor@redhat.com>
25013 * doc/extend.texi (Variable Length): Document C++ specifics.
25015 2016-04-13 Jakub Jelinek <jakub@redhat.com>
25018 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
25019 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
25020 eh edges have been purged.
25023 * tree-sra.c (create_access_replacement,
25024 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
25026 * tree-pretty-print.c (dump_fancy_name): New function.
25027 (dump_decl_name, dump_generic_node): Use it.
25029 2016-04-13 Jason Merrill <jason@redhat.com>
25031 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
25032 * expr.c (expand_expr_real_1): Likewise.
25034 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
25036 * config/i386/i386.md (kunpckhi): Swap operands.
25037 (kunpcksi): Likewise.
25038 (kunpckdi): Likewise.
25039 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
25040 (vec_pack_trunc_<mode>): Likewise.
25042 2016-04-13 Jakub Jelinek <jakub@redhat.com>
25045 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
25047 PR middle-end/70633
25048 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
25049 gimplification turns some element into non-constant.
25052 * rtl.h (convert_memory_address_addr_space_1): New prototype.
25053 * explow.c (convert_memory_address_addr_space_1): No longer static,
25054 add NO_EMIT argument and don't call convert_modes if true, pass
25055 it down recursively, remove break after return.
25056 (convert_memory_address_addr_space): Adjust caller.
25057 * simplify-rtx.c (simplify_unary_operation_1): Call
25058 convert_memory_address_addr_space_1 instead of convert_memory_address,
25059 if it returns NULL, don't simplify.
25061 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
25064 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
25066 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25068 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25069 Bump the upper SIMDLEN limits, so that if the return type or
25070 characteristic type if the return type is void can be passed in
25071 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
25074 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
25077 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
25078 Do not use "=" constraint on an input constraint.
25079 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
25080 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
25081 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
25082 generates (neg (abs ...)) instead of (abs ...).
25084 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25086 PR rtl-optimization/70596
25087 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
25088 just invalidate LRA data and reset them. Adjust dump wording.
25090 2016-04-12 Martin Liska <mliska@suse.cz>
25093 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25095 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25097 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25098 max_loop_iterations_int.
25099 (tree_unswitch_outer_loop): Likewise.
25100 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25101 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25103 2016-04-12 Tom de Vries <tom@codesourcery.com>
25105 PR tree-optimization/68756
25106 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
25107 instead of new_name.
25109 2016-04-12 Jakub Jelinek <jakub@redhat.com>
25111 PR tree-optimization/70602
25112 * tree-sra.c (generate_subtree_copies): Don't write anything into
25113 constant pool decls.
25115 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
25116 regardless whether there are depend clauses or not.
25118 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25121 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
25122 target attribute and pragma from changing the -mfloat128
25123 and -mfloat128-hardware options.
25125 * doc/extend.texi (Additional Floating Types): Document PowerPC
25126 __float128 restrictions.
25128 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25131 * config/aarch64/driver-aarch64.c
25132 (aarch64_get_extension_string_for_isa_flags): New.
25133 (arch_extension): Rename to...
25134 (aarch64_arch_extension): ...This.
25135 (ext_to_feat_string): Rename to...
25136 (aarch64_extensions): ...This.
25137 (aarch64_core_data): Keep track of architecture extension flags.
25138 (cpu_data): Rename to...
25139 (aarch64_cpu_data): ...This.
25140 (aarch64_arch_driver_info): Keep track of architecture extension
25142 (get_arch_name_from_id): Rename to...
25143 (get_arch_from_id): ...This, change return type.
25144 (host_detect_local_cpu): Update and reformat for renames, handle
25145 extensions through common infrastructure.
25147 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25150 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
25151 track of a canonical flag name.
25152 (all_extensions): Likewise.
25153 (arch_to_arch_name): Also track extension flags enabled by the arch.
25154 (all_architectures): Likewise.
25155 (aarch64_parse_extension): Move to here.
25156 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
25158 (aarch64_rewrite_selected_cpu): Update for above change.
25159 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
25160 are handled, such that the single explicit value enabled by an
25161 extension is kept seperate from the implicit values it also enables.
25162 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
25164 (aarch64_parse_extension): New.
25165 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
25166 here to config/aarch64/aarch64-protos.h.
25167 (aarch64_parse_extension): Move from here to
25168 common/config/aarch64/aarch64-common.c.
25169 (aarch64_option_print): Update.
25170 (aarch64_declare_function_name): Likewise.
25171 (aarch64_start_file): Likewise.
25172 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
25173 the canonical flag for extensions.
25174 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
25177 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25179 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
25182 2016-04-09 Tom de Vries <tom@codesourcery.com>
25184 PR tree-optimization/68953
25185 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
25186 first to last subscript.
25188 2016-04-09 Jakub Jelinek <jakub@redhat.com>
25190 PR tree-optimization/70586
25191 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
25194 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
25198 PR tree-optimization/70373
25199 PR middle-end/70533
25200 PR middle-end/70534
25201 PR middle-end/70535
25202 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
25203 clauses for acc parallel reductions as necessary. Error on those
25205 * omp-low.c (scan_sharing_clauses): Don't install variables which
25206 are used in acc parallel reductions.
25207 (lower_rec_input_clauses): Remove dead code.
25208 (lower_oacc_reductions): Add support for reference reductions.
25209 (lower_reduction_clauses): Remove dead code.
25210 (lower_omp_target): Don't remap variables appearing in acc parallel
25212 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
25214 2016-04-08 Jakub Jelinek <jakub@redhat.com>
25216 PR middle-end/70593
25217 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
25218 with multiple SSA_NAME defs, force the outputs other than first
25219 to be live before calling live_track_process_def on each output.
25221 PR rtl-optimization/70574
25222 * fwprop.c (forward_propagate_and_simplify): Don't add
25223 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
25224 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
25225 paradoxical subregs within *loc.
25227 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
25229 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
25230 -ftree-parallelize-loops={0,1}.
25231 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25232 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25233 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25234 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25235 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25237 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
25240 * asan.c (instrument_derefs): If we get unknown location, extract it
25241 with EXPR_LOCATION.
25242 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
25244 2016-04-08 Tom de Vries <tom@codesourcery.com>
25246 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
25247 implicit firstprivate clause.
25249 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25252 * config/arm/thumb2.md (tst + branch-> lsls + branch
25253 peephole below *orsi_not_shiftsi_si): Require that condition
25254 register is dead after the peephole.
25255 (second peephole after the above): Likewise.
25257 2016-04-08 Alan Modra <amodra@gmail.com>
25260 * builtins.c (fold_builtin_classify): For IBM extended precision,
25261 look at just the high-order double to test for NaN.
25262 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
25263 test just the high double for Inf but both doubles for subnormal
25266 2016-04-07 Jakub Jelinek <jakub@redhat.com>
25268 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
25269 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
25270 node->simdclone->mask_mode != VOIDmode masks.
25271 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
25272 earlier, use it instead of node->simdclone.
25273 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25274 Set clonei->mask_mode.
25276 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25279 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
25280 Pass it through to cp_parser_already_scoped_statement.
25281 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
25282 it through to cp_parser_statement.
25283 (cp_parser_statement): Pass IF_P through to
25284 cp_parser_iteration_statement.
25285 (cp_parser_pragma): Adjust call to
25286 cp_parser_iteration_statement.
25288 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25291 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
25292 resolve a future -Wparentheses warning.
25293 * omp-low.c (scan_sharing_clauses): Likewise.
25294 * tree-parloops.c (eliminate_local_variables): Likewise.
25296 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
25298 PR rtl-optimization/70398
25299 * lra-constraints.c (process_address_1): Check zero scale and code
25300 for reloading with zero scale.
25302 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
25304 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
25305 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
25307 2016-04-06 Jakub Jelinek <jakub@redhat.com>
25309 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25310 Add support for AVX512F clones, include them by default for
25311 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
25312 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
25315 PR middle-end/70550
25316 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
25317 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
25318 firstprivate clauses.
25319 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
25320 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
25321 (lower_omp_target): Set TREE_NO_WARNING for
25322 non-addressable possibly uninitialized vars which are copied into
25323 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
25325 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
25327 * config/pa/predicates.md (integer_store_memory_operand): Accept
25328 REG+D operands with a large offset when reload_in_progress is true.
25329 (floating_point_store_memory_operand): Likewise.
25331 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25334 * match.pd (nested int casts): Limit to GIMPLE.
25336 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
25339 * ipa-devirt.c (maybe_record_node): Fix comment; use
25340 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
25342 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25344 PR rtl-optimization/70542
25345 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
25346 if there are any uses other than insn or debug insns.
25348 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
25349 Jakub Jelinek <jakub@redhat.com>
25351 PR tree-optimization/70509
25352 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
25353 Shift HOST_WIDE_INT_1U instead of 1.
25355 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
25357 PR tree-optimization/70509
25358 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
25359 of the vector base type for index.
25361 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
25364 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
25366 2016-04-05 Richard Biener <rguenther@suse.de>
25368 PR tree-optimization/70526
25369 * tree-sra.c (build_ref_for_offset): Use prev_base to
25370 extract the alias pointer type.
25372 2016-04-05 Richard Biener <rguenther@suse.de>
25374 * dse.c (struct store_info): Remove alias_set member.
25375 (struct read_info_type): Likewise.
25376 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
25377 spill_deleted, clear_alias_set_lookup): Remove.
25378 (get_group_info): Remove dead base == NULL_RTX case.
25379 (dse_step0): Remove initialization of removed variables.
25380 (delete_dead_store_insn): Reomve alias set dumping.
25381 (free_read_records): Remove alias_set handling.
25382 (canon_address): Remove alias_set_out parameter.
25383 (record_store): Remove spill_alias_set, it's always zero.
25384 (check_mem_read_rtx): Likewise.
25385 (dse_step2): Rename from ...
25386 (dse_step2_nospill): ... this. Adjust.
25387 (scan_stores): Rename from ...
25388 (scan_stores_nospill): ... this.
25389 (scan_reads): Rename from ...
25390 (scan_reads_nospill): ... this.
25391 (scan_stores_spill, scan_reads_spill): Remove.
25392 (dse_step3_scan): Remove for_spills argument which is always false.
25393 (dse_step3): Likewise.
25394 (dse_step5): Rename from ...
25395 (dse_step5_nospill): ... this. Remove alias_set handling.
25396 (rest_of_handle_dse): Adjust.
25398 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25401 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
25402 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
25403 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
25404 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
25406 2016-04-05 Richard Biener <rguenther@suse.de>
25408 PR middle-end/70499
25409 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
25410 non-register type temporaries into SSA.
25412 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
25415 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
25416 calls when sanitizing.
25417 (possible_polymorphic_call_target_p): Fix formatting.
25419 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25420 Jakub Jelinek <jakub@redhat.com>
25422 PR middle-end/70457
25423 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
25424 to ensure a call statement is compatible with a built-in's
25426 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
25429 2016-04-04 Richard Biener <rguenther@suse.de>
25431 PR rtl-optimization/70484
25432 * rtl.h (canon_output_dependence): Declare.
25433 * alias.c (canon_output_dependence): New function.
25434 * dse.c (record_store): Use canon_output_dependence rather
25435 than canon_true_dependence.
25437 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25440 * cgraph.h (symtab_node::copy_visibility_from): New function.
25441 * symtab.c (symtab_node::copy_visibility_from): New function.
25442 * ipa-visibility.c (optimize_weakref): New function.
25443 (function_and_variable_visibility): Use it.
25445 2016-04-04 Martin Liska <mliska@suse.cz>
25448 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
25449 value that is really in range handled by SBR instruction.
25450 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
25451 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
25452 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
25454 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
25458 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
25459 set, but not for SP_REG operands.
25461 2016-04-02 Martin Sebor <msebor@redhat.com>
25464 * fold-const.c (maybe_nonzero_address): New function.
25465 (fold_comparison): Call it. Fold equality and relational
25466 expressions involving null pointers.
25467 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
25469 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
25471 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
25472 the "Y" constraint (scalar FP 0.0 immediate).
25474 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
25475 Add the "const_double" to the list of operand constraints.
25477 2016-04-01 Jakub Jelinek <jakub@redhat.com>
25479 PR rtl-optimization/70467
25480 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
25481 If low word of the last operand is 0, just emit addition/subtraction
25484 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25487 * config/s390/s390.c (s390_expand_insv): Check for everything
25488 constant instead of just VOIDmode stuff.
25490 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25493 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25495 2016-04-01 Nathan Sidwell <nathan@acm.org>
25497 * tree.def (TRY_CATCH_EXPR): Correct documentation.
25499 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
25501 PR rtl-optimization/70461
25502 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25505 2016-03-31 Martin Liska <mliska@suse.cz>
25508 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25509 a tree value or an immediate integer value to a buffer
25510 that is eventually copied to a BRIG section.
25511 (emit_immediate_operand): Call the function here.
25512 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25513 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25514 of class' fields that are removed.
25515 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25516 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25517 m_brig_repr_size fields.
25519 2016-03-31 Martin Liska <mliska@suse.cz>
25522 * hsa-gen.c (hsa_function_representation::update_dominance): New
25524 (convert_addr_to_flat_segment): Likewise.
25525 (gen_hsa_memory_set): New alignment argument.
25526 (gen_hsa_ctor_assignment): Likewise.
25527 (gen_hsa_insns_for_single_assignment): Provide alignment
25528 to gen_hsa_ctor_assignment.
25529 (gen_hsa_insns_for_direct_call): Add new argument.
25530 (expand_lhs_of_string_op): New function.
25531 (expand_string_operation_builtin): Likewise.
25532 (expand_memory_copy): New function.
25533 (expand_memory_set): New function.
25534 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25535 (convert_switch_statements): Change signature.
25536 (generate_hsa): Use a return value of the function.
25537 (pass_gen_hsail::execute): Do not call
25538 convert_switch_statements here.
25539 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25540 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25541 (hsa_function_representation::update_dominance): New function.
25543 2016-03-31 Martin Liska <mliska@suse.cz>
25546 * hsa-brig.c (emit_directive_variable): Emit alignment
25547 according to hsa_symbol::m_align.
25548 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25549 (dump_hsa_symbol): Dump alignment of HSA symbols.
25550 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25551 (gen_hsa_addr_with_align): New function.
25552 (hsa_bitmemref_alignment): Use newly added function.
25553 (gen_hsa_insns_for_load): Likewise.
25554 (gen_hsa_insns_for_store): Likewise.
25555 (gen_hsa_memory_copy): New argument added.
25556 (gen_hsa_insns_for_single_assignment): Respect
25557 alignment for assignments processed via gen_hsa_memory_copy.
25558 (gen_hsa_insns_for_direct_call): Likewise.
25559 (gen_hsa_insns_for_return): Likewise.
25560 (gen_function_def_parameters): Set default alignment.
25561 * hsa.c (hsa_object_alignment): New function.
25562 (hsa_byte_alignment): Pasted function.
25563 * hsa.h (hsa_symbol::m_align): New field.
25565 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25567 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25568 scratch field for goto case.
25570 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
25572 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25574 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
25577 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25578 (scalar_chain::convert_insn): Call convert_op for reg
25579 moves to handle undefined registers.
25581 2016-03-31 Nathan Sidwell <nathan@acm.org>
25584 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25585 Assert we don't want to move backwards.
25587 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
25590 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25592 2016-03-31 Jakub Jelinek <jakub@redhat.com>
25594 PR rtl-optimization/70460
25595 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25596 with operand from REG_LABEL_OPERAND, instead substitute
25597 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25598 Don't do anything for REG_NON_LOCAL_GOTO jumps.
25600 2016-03-31 Martin Liska <mliska@suse.cz>
25602 * passes.c (execute_one_pass): Do not call
25603 todo_after for a discarded function.
25605 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25607 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25608 (no_cost, infinite_cost): Initialize the new field.
25609 (get_computation_cost_at): Record setup cost.
25610 (determine_use_iv_cost_address): Skip cost computation for sub
25611 uses if we can estimate it without losing accuracy.
25613 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25615 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25617 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25618 max_loop_iterations_int.
25619 (tree_unswitch_outer_loop): Likewise.
25620 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25621 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25623 2016-03-30 Richard Biener <rguenther@suse.de>
25625 PR middle-end/70450
25626 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25628 2016-03-30 Jakub Jelinek <jakub@redhat.com>
25631 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25632 in gen_blendm expander.
25634 2016-03-30 Nick Clifton <nickc@redhat.com>
25637 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25638 case where we are already provided with an SImode SUBREG.
25640 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
25643 * config/i386/i386.c (ix86_expand_epilogue): Properly check
25644 conflict between DRAP register and __builtin_eh_return.
25646 2016-03-30 Michael Matz <matz@suse.de>
25647 Richard Biener <rguenther@suse.de>
25650 * ipa-polymorphic-call.c (struct type_change_info): Change
25651 speculative to an unsigned allowing to limit the work we do.
25652 (csftc_abort_walking_p): New inline function..
25653 (check_stmt_for_type_change): Limit the number of may-defs
25654 skipped for speculative devirtualization to
25655 max-speculative-devirt-maydefs.
25656 * params.def (max-speculative-devirt-maydefs): New param.
25657 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25659 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
25662 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25665 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
25667 PR tree-optimization/59124
25668 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25669 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25671 2016-03-29 Jeff Law <law@redhat.com>
25673 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25675 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25677 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25680 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
25682 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25683 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25684 gcrt0.o if linking dynamically.
25686 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25689 * ipa-devirt.c (methods_equal_p): New function.
25690 (compare_virtual_tables): Use it.
25691 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25692 * cgraphclones.c (clone_function_name_1): Use
25693 symbol_table::symbol_suffix_separator.
25694 * coverage.c (build_var): Likewise.
25695 * symtab.c (symbol_table::symbol_suffix_separator): New.
25697 2016-03-29 Jakub Jelinek <jakub@redhat.com>
25699 PR rtl-optimization/70429
25700 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25701 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25702 mode != result_mode.
25705 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25707 PR tree-optimization/70405
25708 * ssa-iterators.h (num_imm_uses): Add missing braces.
25710 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
25712 PR rtl-optimization/68695
25713 * ira-color.c (allocno_copy_cost_saving): New.
25714 (improve_allocation): Use it.
25716 2016-03-29 Richard Henderson <rth@redhat.com>
25718 PR middle-end/70355
25719 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25721 2016-03-29 Richard Biener <rguenther@suse.de>
25723 PR middle-end/70424
25724 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25725 use alignment returned by get_pointer_alignment_1 if it is
25726 bigger than BITS_PER_UNIT.
25727 * builtins.c (get_pointer_alignment_1): Do not return true
25728 for alignment extracted from SSA info.
25730 2016-03-28 James Bowman <james.bowman@ftdichip.com>
25732 * config/ft32/ft32.opt (mnodiv): New.
25733 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25734 * doc/invoke.texi (FT32 Options -mnodiv): New.
25736 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
25739 * config/i386/i386.md (define_split, andn): Fix modes.
25741 2016-03-26 Richard Biener <rguenther@suse.de>
25742 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25745 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25747 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25748 as 2nd argument to cl_optimization_restore().
25750 2016-03-25 Richard Henderson <rth@redhat.com>
25753 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25754 * config/aarch64/aarch64-protos.h: Declare it.
25755 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25757 2016-03-25 Alan Modra <amodra@gmail.com>
25760 * config/rs6000/constraints.md (j): Simplify.
25761 * config/rs6000/predicates.md (easy_fp_constant): Exclude
25763 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25764 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25765 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25766 in all constraint alternatives.
25767 (movtd_64bit_nodm): Delete "j" constraint alternative.
25769 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25771 * tree-ssa-propagate.c: Enhance docs for
25772 SSA_PROP_NOT_INTERESTING.
25774 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25776 * doc/extend.texi: Fix typo in documentation to pure attribute.
25778 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
25781 * config/pa/pa.md (bswapdi2): Use a scratch register.
25783 2016-03-24 Richard Henderson <rth@redhat.com>
25785 PR middle-end/69845
25786 * fold-const.c (extract_muldiv_1): Correct test for multiplication
25789 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
25791 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
25792 using ix86_expand_binary_operator instead of gen_andsi3.
25794 2016-03-24 Richard Biener <rguenther@suse.de>
25796 PR tree-optimization/70396
25797 * tree-vect-stmts.c (vectorizable_comparison): Use
25798 get_vectype_for_scalar_type.
25800 2016-03-24 Richard Biener <rguenther@suse.de>
25802 PR middle-end/70370
25803 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
25804 with register bases.
25806 2016-03-24 Richard Biener <rguenther@suse.de>
25808 PR tree-optimization/70372
25809 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
25810 build_all_ones_cst to also handle vector types correctly.
25812 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25815 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
25818 2016-03-23 Marek Polacek <polacek@redhat.com>
25821 * doc/invoke.texi: Document -Wignored-attributes.
25823 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25825 PR tree-optimization/69042
25826 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
25827 parameter from 30 to 40.
25829 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25831 PR tree-optimization/69042
25832 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
25833 for use with constant offset stripped in base.
25835 2016-03-23 Richard Biener <rguenther@suse.de>
25837 PR middle-end/70251
25838 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
25839 mode compatibility check.
25840 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25842 2016-03-23 Jeff Law <law@redhat.com>
25844 PR tree-optimization/64058
25845 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
25847 (struct ssa_conflicts): Move up earlier in the file.
25848 (conflicts_, var_map_): New static variables.
25849 (initialize_conflict_count): New function to initialize the
25850 CONFLICT_COUNT field for each conflict pair.
25851 (compare_pairs): Lazily initialize the conflict count and use it
25852 as the first tie-breaker.
25853 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
25854 and wipe conflicts_ and map_ around the call to qsort. Remove
25855 special case for 2 coalesce pairs.
25856 * bitmap.c (bitmap_count_unique_bits): New function.
25857 (bitmap_count_bits_in_word): New function, extracted from
25859 (bitmap_count_bits): Use bitmap_count_bits_in_word.
25860 * bitmap.h (bitmap_count_unique_bits): Declare it.
25862 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
25865 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
25866 transparent alias chain for decl assembler name.
25867 * config/sol2.c (solaris_assemble_visibility): Likewise.
25869 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25871 * config/arm/arm1020e.md (1020call_op): Reduce reservation
25873 (v10_fdivs): Likewise.
25874 (v10_fdivd): Likewise.
25876 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25879 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
25880 to not call fclose twice on file.
25882 2016-03-23 Jakub Jelinek <jakub@redhat.com>
25884 PR tree-optimization/70354
25885 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
25886 oprnd0 is wider than oprnd1 and there is a cast from the wider
25887 type to oprnd1, mask it with the mask of the narrower type.
25890 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
25891 Optimize TARGET_STV splitters, if high or low word of last argument
25894 2016-03-22 Jeff Law <law@redhat.com>
25897 tree-ssa-threadbackward.c
25898 (fsm_find_control_statement_thread_paths): Correctly distinguish
25899 between old style jump threads vs FSM jump threads.
25901 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
25904 * config/i386/i386.c (scalar_chain::convert_op): Support
25905 uninitialized register usage case.
25907 2016-03-22 Richard Biener <rguenther@suse.de>
25909 PR middle-end/70251
25910 * genmatch.c (gen_transform): Adjust last parameter to a three-state
25912 (capture::gen_transform): ... to change behavior when substituting
25913 a condition into cond or not-cond expr context.
25914 (dt_simplify::gen_1): Adjust.
25915 * gimple-match-head.c: Include gimplify.h for unshare_expr.
25916 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
25917 last change and instead change to
25918 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
25919 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25921 2016-03-22 Anthony Green <green@moxielogic.com>
25923 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
25924 issue for moxiebox targets.
25925 (CC1PLUS_SPEC): Ditto.
25927 2016-03-22 Richard Biener <rguenther@suse.de>
25929 PR middle-end/70333
25930 * fold-const.c (extract_muldiv_1): Properly perform multiplication
25933 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25935 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
25937 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25940 * config/i386/i386.c (def_builtin): Handle
25941 OPTION_MASK_ISA_AVX512VL to be and-ed with other
25943 (const struct builtin_description bdesc_special_args[]):
25944 Remove duplicate ISA bits.
25946 2016-03-22 Jakub Jelinek <jakub@redhat.com>
25949 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
25950 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
25951 in a way that works also for AVX512BW.
25954 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
25955 instead of source if operands[1] is xmm16 and above and
25956 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
25957 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
25960 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
25961 on assign if (*from_p) is a comparison, set it to
25962 TREE_NO_WARNING (*from_p).
25964 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25966 PR middle-end/70326
25967 * lra.c (restore_scratches): Ignore deleted insns.
25969 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
25970 Jakub Jelinek <jakub@redhat.com>
25972 PR tree-optimization/70317
25973 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
25976 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
25979 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
25980 of ix86_expand_move.
25982 (movti): Use general_operand for operand 1 predicate.
25984 2016-03-21 Martin Liska <mliska@suse.cz>
25986 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
25988 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
25990 2016-03-21 Martin Liska <mliska@suse.cz>
25993 * ipa-icf.c (sem_function::parse): Skip static
25994 constructors and destructors.
25996 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25999 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
26000 function-like macro, peek following token(s) if it is followed
26001 by CPP_OPEN_PAREN token with optional padding in between, and
26002 if not, don't treat it like a macro.
26004 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
26005 Alexander Monakov <amonakov@ispras.ru>
26007 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
26008 for the stabs debug format.
26010 2016-03-21 Richard Biener <rguenther@suse.de>
26012 PR tree-optimization/70310
26013 * tree-vect-generic.c (expand_vector_condition): Fold the built
26016 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
26019 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
26020 Block third alternative for AVX-512VL target,
26022 2016-03-21 Martin Liska <mliska@suse.cz>
26025 * hsa-brig.c (emit_function_directives): Mark unemitted
26026 global variables for emission.
26027 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
26028 (get_symbol_for_decl): Likewise.
26029 * hsa.h (struct hsa_symbol): New flag.
26031 2016-03-21 Richard Biener <rguenther@suse.de>
26033 PR tree-optimization/70288
26034 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
26035 we do not estimate unsimplified all-constant conditionals or
26036 switches as optimized away.
26038 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
26040 PR rtl-optimization/69102
26041 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
26042 when we have a readonly dependency context.
26044 2016-03-18 Jeff Law <law@redhat.com>
26046 PR rtl-optimization/70263
26047 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
26048 (update_equiv_regs): When trying to move a store to after the insn
26049 that sets the source of the store, make sure the store occurs after
26050 the insn that sets the source of the store. When successful note
26051 the REG_EQUIV note created in the dump file.
26053 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
26054 Bernd Schmidt <bschmidt@redhat.com>
26056 * doc/extend.texi: Document more potential problems with basic asms.
26058 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
26060 PR rtl-optimization/70278
26061 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
26064 2016-03-18 Jason Merrill <jason@redhat.com>
26066 * calls.c (load_register_parameters): Fix zero size sibcall logic.
26068 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26070 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
26071 values to 128b regs.
26073 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26075 PR tree-optimization/70252
26076 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
26077 boolean vector has a proper number of elements.
26078 (supportable_narrowing_operation): Likewise.
26080 2016-03-18 Tom de Vries <tom@codesourcery.com>
26083 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
26085 2016-03-18 Jakub Jelinek <jakub@redhat.com>
26087 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
26088 instead of replace_rtx for DEBUG_INSNs.
26090 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26092 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
26093 load type reservations.
26095 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
26098 * config/pa/constraints.md: Revert 2015-02-13 change. Use
26099 define_constraint for "Q" and "T" constraints.
26101 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
26103 Tweak the pipeline model for Exynos M1
26105 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
26108 2016-03-17 David Malcolm <dmalcolm@redhat.com>
26111 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
26112 where one or both locations aren't within a line_map.
26114 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
26117 * opts.c (finish_options): Don't set flag_pie to the default if
26118 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
26121 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
26123 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
26124 true as ALL_REGS argument to replace_rtx.
26126 2016-03-17 Richard Biener <rguenther@suse.de>
26129 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
26132 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26135 * rtl.h (replace_rtx): Add ALL_REGS argument.
26136 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
26137 equality and assert mode is the same, instead of just rtx pointer
26139 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
26140 true as ALL_REGS argument to replace_rtx.
26142 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
26144 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
26145 for boolean vector with vector mode only.
26146 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26148 2016-03-17 Nick Clifton <nickc@redhat.com>
26151 * config/rx/rx.c (rx_print_integer): Print negative constants in
26154 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26157 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
26159 2016-03-16 Richard Henderson <rth@redhat.com>
26160 Richard Biener <rguenth@suse.de>
26162 PR middle-end/70240
26163 PR middle-end/68215
26165 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
26166 first operand as is_gimple_condexpr.
26168 PR middle-end/70240
26169 PR middle-end/68215
26171 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
26172 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
26173 Do not gimplify the result.
26174 (do_unop): Adjust call to tree_vec_extract.
26175 (do_binop): Likewise.
26176 (do_compare): Likewise.
26177 (do_plus_minus): Likewise.
26178 (do_negate): Likewise.
26179 (expand_vector_condition): Likewise.
26180 (do_cond): Likewise.
26182 2016-03-16 Richard Henderson <rth@redhat.com>
26185 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
26186 (aarch64_classify_address): Use it.
26187 (aarch64_legitimize_address): Force all subexpressions of PLUS
26188 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
26190 2016-03-16 Jakub Jelinek <jakub@redhat.com>
26191 Richard Biener <rguenth@suse.de>
26194 * rtlanal.c (replace_rtx): For REG, if from is a REG,
26195 return to even if only REGNO is equal, and assert
26198 2016-03-11 Jeff Law <law@redhat.com>
26200 PR rtl-optimization/70224
26201 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
26203 2016-03-16 Richard Henderson <rth@redhat.com>
26205 PR middle-end/70199
26206 * function.h (struct function): Add has_forced_label_in_static.
26207 * gimplify.c (force_labels_r): Set it.
26208 * lto-streamer-in.c (input_struct_function_base): Read it.
26209 * lto-streamer-out.c (output_struct_function_base): Write it.
26210 * tree-inline.c (has_label_address_in_static_1): Remove.
26211 (copy_forbidden): Remove fndecl parameter; test
26212 has_forced_label_in_static.
26213 (inline_forbidden_p): Update call to copy_forbidden.
26214 (tree_versionable_function_p): Likewise.
26215 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
26216 (chkp_versioning): Likewise.
26217 * tree-inline.h (copy_forbidden): Update decl.
26219 2016-03-16 Marek Polacek <polacek@redhat.com>
26222 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
26223 function being thunked if the result type doesn't have fixed size.
26224 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
26225 doesn't have fixed size.
26227 2016-03-16 Bin Cheng <bin.cheng@arm.com>
26229 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
26230 reporting malformed loop nest.
26232 2016-03-16 Tom de Vries <tom@codesourcery.com>
26235 * ipa-devirt.c (possible_polymorphic_call_targets): Move
26236 nodes.length () == 1 test to before first nodes[0] access.
26238 2016-03-16 Tom de Vries <tom@codesourcery.com>
26240 PR tree-optimization/68715
26241 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
26242 single_pred_p test.
26244 2016-03-16 Tom de Vries <tom@codesourcery.com>
26246 PR tree-optimization/68809
26247 * graphite-scop-detection.c (same_close_phi_node): Test if result types
26250 2016-03-16 Carlos O'Donell <carlos@redhat.com>
26251 Sandra Loosemore <sandra@codesourcery.com>
26253 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
26254 on leaf attribute. Mention ELF interposition problems.
26256 2016-03-16 Alan Modra <amodra@gmail.com>
26258 PR rtl-optimization/69195
26259 PR rtl-optimization/47992
26260 * ira.c (indirect_jump_optimize): Ignore artificial defs.
26263 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
26266 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
26268 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26270 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
26272 2016-03-15 Jakub Jelinek <jakub@redhat.com>
26274 PR rtl-optimization/70222
26275 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
26276 optimization if mode is different from result_mode, queue up masking
26277 of the result in outer_op. Formatting fix.
26279 PR middle-end/70239
26280 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26283 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26285 PR rtl-optimization/69032
26286 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
26287 looping backwards over basic block insns.
26289 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26292 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
26293 to non-speculative when propagating trap bits.
26295 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26297 PR rtl-optimization/63384
26298 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
26299 DEBUG_INSN_P insns.
26301 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26304 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
26305 factored out from ...
26306 (sched_analyze_insn): ... here.
26307 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
26308 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
26309 get_implicit_reg_pending_clobbers in it.
26310 (setup_id_reg_sets): Use setup_id_implicit_regs.
26311 (deps_init_id): Ditto.
26313 2016-03-15 Tom de Vries <tom@codesourcery.com>
26316 * cgraph.c (cgraph_node::get_body): Save, reset and restore
26318 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
26319 execute_function_dump.
26320 (execute_one_pass): Don't dump function if it will be dumped after ipa
26323 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26325 * genrecog.c (match_pattern_2): If pred is NULL don't call
26326 safe_predicate_mode on it.
26328 2016-03-14 Jakub Jelinek <jakub@redhat.com>
26330 PR middle-end/70219
26331 * lra-constraints.c (delete_move_and_clobber): Change assertion
26332 to also allow dregno == 0.
26334 2016-03-14 Richard Henderson <rth@redhat.com>
26337 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
26338 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
26339 (reassociate_bb): Use optimize_vec_cond_expr; avoid
26340 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
26343 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
26346 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
26348 (lra_create_live_ranges_1): initialize hard register biggest_mode to
26350 * lra-constraints.c (split_reg): For hard regs, try to find the
26351 biggest single-register mode used in the function.
26353 2016-03-14 Richard Biener <rguenther@suse.de>
26355 PR tree-optimization/56365
26356 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
26357 constants to compare against.
26359 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
26362 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
26363 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
26364 (define_split for the GPR case): Use int_reg_operand instead of
26365 gpc_reg_operand for the output.
26367 2016-03-14 Tom de Vries <tom@codesourcery.com>
26369 PR tree-optimization/70045
26370 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
26371 create_empty_if_region_on_edge argument.
26373 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
26375 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
26376 (STACK_CHECK_PROTECT): Likewise.
26377 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26378 (STACK_CHECK_PROTECT): Likewise.
26379 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26380 (STACK_CHECK_PROTECT): Likewise.
26381 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
26382 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
26383 (STACK_CHECK_PROTECT): Likewise.
26385 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
26387 PR rtl-optimization/69307
26388 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
26389 registers in modes that span more than one register.
26391 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
26394 * lra-constraints.c (delete_move_and_clobber): New.
26395 (remove_inheritance_pseudos): Use it.
26397 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
26400 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
26401 the libcall is LCT_THROW.
26402 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
26403 for the checking routine.
26405 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26408 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
26409 optimization if we have direct move.
26410 (roundu32<mode>2_fprs): Likewise.
26412 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
26415 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
26417 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
26418 Arguments swapped. All callers changed. Take reg_renumber into
26419 account, and Calculate and compare register ranges for hard regs.
26421 2016-03-11 Jeff Law <law@redhat.com>
26423 PR tree-optimization/70190
26424 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26425 Handle cases where we can not extract the taken edge, even though we
26426 found a constant value.
26428 PR tree-optimization/64058
26429 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
26430 (num_coalesce_pairs): Move up earlier in file.
26431 (find_coalesce_pair): Initialize the INDEX field for each pair
26433 (compare_pairs): No longer sort on the elements in each pair.
26434 Instead break ties with the index of the coalesce pair.
26436 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26439 * config/aarch64/aarch64-protos.h
26440 (aarch64_save_restore_target_globals): New prototype.
26441 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
26442 Call the above when popping pragma.
26443 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
26445 (aarch64_set_current_function): Rewrite using the above.
26447 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26449 PR tree-optimization/70177
26450 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
26451 (extract_ops_from_tree): ... this. In the 2 argument
26452 overload remove _1 suffix.
26453 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
26454 (extract_ops_from_tree): ... this.
26455 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
26457 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
26458 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
26459 extract_ops_from_tree instead of 2 operand one.
26461 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
26463 PR tree-optimization/70013
26464 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
26465 for constant-pool entries.
26467 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26469 PR rtl-optimization/70174
26470 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
26471 followed by gen_lowpart on force_reg instead of just gen_lowpart.
26473 PR tree-optimization/70169
26474 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
26475 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
26478 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26479 Jakub Jelinek <jakub@redhat.com>
26482 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
26483 of uninitialized values.
26485 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26487 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26489 ("*trunctddd2"): New pattern definition.
26490 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26493 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26495 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26496 definitions for BFP and DFP rounding modes.
26497 ("fixuns_truncdddi2", "fixuns_trunctddi2")
26498 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26499 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26500 ("fix_trunctf<mode>2"): Use the new constants instead of magic
26503 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26505 * config/s390/constraints.md: Adjust comment.
26506 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
26507 s390_decompose_addrstyle_without_index.
26508 * config/s390/predicates.md (shift_count_or_setmem_operand):
26509 Rename to setmem_operand.
26510 * config/s390/s390-protos.h
26511 (s390_decompose_shift_count): Rename to
26512 s390_decompose_addrstyle_without_index.
26513 * config/s390/s390.c (s390_decompose_shift_count)
26514 (s390_mem_constraint, print_shift_count_operand)
26515 (print_operand_address, print_operand): Rename
26516 s390_decompose_shift_count to
26517 s390_decompose_addrstyle_without_index and rename
26518 print_shift_count_operand to print_addrstyle_operand troughout the
26520 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26521 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26522 Rename shift_count_or_setmem_operand to setmem_operand.
26523 * config/s390/vx-builtins.md ("vec_insert<mode>")
26524 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26527 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26530 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26531 Handle overlapping retval and newval.
26533 2016-03-10 Nick Clifton <nickc@redhat.com>
26536 * config/aarch64/aarch64.c
26537 (aarch64_override_options_after_change_1): When forcing
26538 flag_omit_frame_pointer to be true, use a special value that can
26539 be detected if this function is called again, thus preventing
26540 flag_omit_leaf_frame_pointer from being forced to be false.
26542 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26544 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26545 Set x_flag_omit_leaf_frame_pointer when handling
26546 -momit-leaf-frame-pointer.
26548 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26551 * cgraph.c (cgraph_node::dump): Dump split_part and
26552 indirect_call_target.
26553 * cgraph.h (cgraph_node): Add indirect_call_target flag.
26554 * ipa.c (has_addr_references_p): Cleanup.
26555 (is_indirect_call_target_p): New.
26556 (walk_polymorphic_call_targets): Do not mark virtuals that may be
26557 called indirectly as local.
26558 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26560 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26563 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26564 on cxa_pure_virtual.
26566 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26569 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26571 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26574 * tree.c (need_assembler_name_p): Only record main variant type names.
26576 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26579 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26580 Always define to 0 or 1.
26581 (TARGET_FIX_ERR_A53_843419): New macro.
26582 * config/aarch64/aarch64-elf-raw.h
26583 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26584 * config/aarch64/aarch64-linux.h: Likewise.
26585 * config/aarch64/aarch64.c
26586 (aarch64_override_options_after_change_1): Do not default
26587 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26589 (aarch64_attributes): Handle fix-cortex-a53-843419.
26590 (aarch64_can_inline_p): Likewise.
26591 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26593 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
26594 Jakub Jelinek <jakub@redhat.com>
26596 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26597 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26598 DECL_COMMONS if flag_unconstrained_commons is set.
26599 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26600 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26601 (funconstrained-commons): Document.
26603 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26605 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26606 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26608 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
26610 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26611 has a proper number of elements.
26613 2016-03-10 Alan Modra <amodra@gmail.com>
26615 PR rtl-optimization/69195
26616 PR rtl-optimization/47992
26617 * ira.c (recorded_label_ref): Delete.
26618 (update_equiv_regs): Return void.
26619 (indirect_jump_optimize): New function.
26620 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26621 before regstat_compute_ri. Don't rebuild_jump_labels here.
26622 Delete update_regstat.
26624 2016-03-10 Richard Biener <rguenther@suse.de>
26626 PR tree-optimization/70128
26627 * tree-ssa-structalias.c (set_uids_in_ptset): Set
26628 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26630 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26632 PR tree-optimization/70152
26633 * tree-sra.c (replace_removed_params_ssa_names): Copy over
26634 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26637 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26638 instead of gen_sse2_loadlpd.
26639 * config/i386/sse.md (*vec_concatv2df): Rename to...
26640 (vec_concatv2df): ... this.
26642 PR tree-optimization/70127
26643 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26645 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26649 * diagnostic-show-locus.c (compatible_locations_p): New function.
26650 (layout::layout): Sanitize ranges using compatible_locations_p.
26652 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26656 * diagnostic-show-locus.c (layout_range::layout_range): Replace
26657 location_range param with three const expanded_locations * and a
26659 (layout::layout): Replace call to
26660 rich_location::lazily_expand_location with get_expanded_location.
26661 Extract the range and perform location expansion here, passing
26662 the results to the layout_range ctor.
26663 * diagnostic.c (source_range::debug): Delete.
26664 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26665 of rich_location::get_expanded_location.
26666 * gcc-rich-location.c (get_range_for_expr): Delete.
26667 (gcc_rich_location::add_expr): Reimplement to avoid the
26668 rich_location::add_range overload that took a location_range,
26669 passing a location_t instead.
26671 2016-03-09 Richard Biener <rguenther@suse.de>
26672 Jakub Jelinek <jakub@redhat.com>
26674 PR tree-optimization/70138
26675 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26676 Also skip vect_double_reduction_def.
26678 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26681 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26682 if the operand is "m".
26684 2016-03-09 Nathan Sidwell <nathan@acm.org>
26686 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26688 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26690 * config/i386/i386.c (processor_target_table): Fix cost table
26691 intialization order for znver1.
26693 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26695 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26696 - becuase -> because.
26697 * ipa-reference.c (ignore_module_statics): Likewise.
26698 * cgraph.c (cgraph_node::get_body): Likewise.
26699 * ipa-inline.c (early_inliner): Likewise.
26700 * ipa-devirt.c (types_same_for_odr): Likewise.
26701 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26702 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26704 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26706 * tree-ssa-math-opts.c: Fix typo in comment.
26708 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26711 * config/i386/i386.c (scalar_chain::make_vector_copies,
26712 scalar_chain::convert_reg): Call end_sequence in between
26713 get_insns and emit_conversion_insns rather than after both
26716 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
26719 * config/i386/i386.h (machine_function): Add
26720 pc_thunk_call_expanded flag.
26721 (ix86_pc_thunk_call_expanded): New define.
26722 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26723 (*set_got): Rename insn pattern from set_got.
26724 (*set_got_labelled): Rename inst pattern from set_got_labelled.
26725 * config/i386/i386.c (ix86_compute_frame_layout): Use
26726 ix86_pc_thunk_call_expanded to prevent red-zone.
26728 2016-03-07 Martin Jambor <mjambor@suse.cz>
26730 * hsa.h (hsa_get_ctor_statements): Declare.
26731 (hsa_get_dtor_statements): Likewise.
26732 (hsa_get_kernel_dispatch_type): Likewise.
26733 * hsa.c (hsa_get_ctor_statements): New function.
26734 (hsa_get_dtor_statements): Likewise.
26735 (hsa_get_kernel_dispatch_type): Likewise.
26736 * hsa-brig.c (hsa_cdtor_statements): Removed.
26737 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26738 hsa_get_dtor_statements.
26739 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26740 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26742 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
26744 * config/arm/arm-cores.def (cortex-r8): New.
26745 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26746 * config/arm/arm-tune.md: Likewise.
26747 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26749 2016-03-07 Martin Sebor <msebor@redhat.com>
26751 PR rtl-optimization/19705
26752 * doc/invoke.texi (Options That Control Optimization): Clarify
26753 -fno-branch-count-reg.
26755 2016-02-26 Richard Biener <rguenther@suse.de>
26756 Jeff Law <law@redhat.com>
26758 PR tree-optimization/69740
26759 * cfghooks.c (remove_edge): Request loop fixups if we delete
26760 an edge that might turn an irreducible loop into a natural
26762 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26763 Move after definition of loops_state_clear.
26765 2016-03-07 Bin Cheng <bin.cheng@arm.com>
26767 PR rtl-optimization/69052
26768 * rtlanal.c (commutative_operand_precedence): Set higher precedence
26771 2016-03-07 Tom de Vries <tom@codesourcery.com>
26773 PR tree-optimization/70116
26774 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26775 is_tm_ending stmts and ubsan/asan internal functions.
26776 (find_duplicate): Use it. Don't test is_tm_ending here.
26778 2016-03-07 Richard Biener <rguenther@suse.de>
26780 PR tree-optimization/70115
26781 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26782 (propagate_constants_for_unrolling): Use replace_uses_by.
26784 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
26786 PR middle-end/69916
26787 * omp-low.c (struct oacc_loop): Add ifns.
26788 (new_oacc_loop_raw): Initialize it.
26789 (finish_oacc_loop): Clear mask & flags if no ifns.
26790 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
26791 (oacc_loop_xform_loop): Add ifns arg & adjust.
26792 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
26794 2016-03-07 Richard Henderson <rth@redhat.com>
26797 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
26798 (insert_value_copy_on_edge): Likewise.
26800 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26802 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
26804 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26807 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
26809 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26811 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
26813 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26815 Fix sseimul type attribute.
26816 * config/i386/znver1.md
26817 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
26818 znver1_sseimul_avx256_load) : Fix the type attribute.
26819 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
26820 pipe usage and latency.
26822 2016-03-05 Jakub Jelinek <jakub@redhat.com>
26825 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
26826 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
26829 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26832 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
26834 PR rtl-optimization/69941
26835 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
26836 the reg share its mode.
26838 2016-03-04 Jeff Law <law@redhat.com>
26840 PR tree-optimization/69196
26841 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26842 If the both SSA_NAMEs are anonymous, then consider them unassociated
26843 and include the PHI in the statement count.
26845 2016-03-05 Tom de Vries <tom@codesourcery.com>
26847 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
26848 construct in oacc routine. Check for oacc region in oacc routine.
26850 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26853 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
26854 2016-02-22 changes, instead don't recurse if RECUR is already true.
26855 Don't change *dynamic_check if RECUR. Adjust recursive caller
26856 to pass true to the new argument.
26857 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
26860 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
26861 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
26863 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
26865 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26867 PR rtl-optimization/57676
26868 * lra-assigns.c (lra_assign): Guard test for maximum iterations
26869 with flag_checking.
26871 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
26873 * tree-vect-patterns.c (search_type_for_mask): Handle
26874 comparison of booleans.
26876 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26878 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
26882 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
26883 all other ops that have dw_val_class_die_ref operands,
26884 and DW_OP_GNU_entry_value.
26886 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26888 PR rtl-optimization/69904
26889 * config/arm/arm.c (arm_cannot_copy_insn_p):
26890 Return true for load-exclusive instructions.
26892 2016-03-03 Jakub Jelinek <jakub@redhat.com>
26895 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
26896 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
26897 the pattern no matter if it is used just by non-pattern, pattern
26899 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
26900 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26901 oprnd1 def_stmt is in pattern, don't look through it.
26903 2016-03-03 Marek Polacek <polacek@redhat.com>
26905 PR middle-end/70050
26906 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
26908 2016-03-03 Martin Liska <mliska@suse.cz>
26910 PR tree-optimization/70043
26911 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
26912 previous statement if we see a debug statement.
26914 2016-03-03 Richard Biener <rguenther@suse.de>
26916 PR tree-optimization/55936
26917 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
26918 parameter and guard unsafe equivalence use.
26919 (vrp_evaluate_conditional_warnv_with_ops): Always use
26920 safe equivalences but not via the quadratic compare_names
26923 2016-03-03 Michael Collison <michael.collison@linaro.org>
26926 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
26927 for operand 1 to s_register_operand. Change predicate for operand
26928 2 to arm_not_immediate_operand.
26930 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
26932 * doc/tm.texi: Regenerated.
26934 2016-03-02 Richard Henderson <rth@redhat.com>
26937 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
26938 simplification when all args are positive non-fixed registers.
26940 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26942 * target.def (lra_p): Specify that new ports should use LRA.
26944 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26947 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
26948 gimplify_type_sizes the type they refer to.
26949 (omp_notice_variable): Handle reference vars to VLAs.
26950 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
26951 reference to VLA decls in the second pass instead of first pass.
26953 2016-03-02 Tom de Vries <tom@codesourcery.com>
26955 PR tree-optimization/68659
26956 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
26957 new_expr == NULL_TREE.
26958 (get_new_name): Handle ADDR_EXPR.
26960 2016-03-02 Bin Cheng <bin.cheng@arm.com>
26962 PR rtl-optimization/69052
26963 * loop-invariant.c (canonicalize_address): New function.
26964 (inv_can_prop_to_addr_use): Check validity of address expression
26965 which is canonicalized by above function.
26967 2016-03-02 Alan Modra <amodra@gmail.com>
26970 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
26973 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26976 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
26977 (*movhi_internal): Put mask moves from and to memory separately
26978 from moves from/to GPRs.
26980 2016-03-02 Richard Biener <rguenther@suse.de>
26982 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
26983 GENERIC expressions in GIMPLE.
26985 2016-03-02 Richard Biener <rguenther@suse.de>
26987 * config/i386/i386.c (type_natural_mode): Fix typo.
26989 2016-03-02 Nick Clifton <nickc@redhat.com>
26991 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
26993 2016-03-02 Richard Biener <rguenther@suse.de>
26994 Uros Bizjak <ubizjak@gmail.com>
26997 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
26999 2016-03-02 Richard Biener <rguenther@suse.de>
27001 PR middle-end/67278
27002 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
27004 2016-03-02 Marek Polacek <polacek@redhat.com>
27007 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
27008 "is promoted to" warning.
27010 2016-03-01 DJ Delorie <dj@redhat.com>
27012 * config.gcc: Deprecate mep-*.
27014 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
27016 PR middle-end/70025
27017 * lra-constraints.c (regno_val_use_in): New.
27018 (match_reload): Use it instead of regno_use_in.
27020 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
27022 PR rtl-optimization/70007
27023 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
27024 references present in REG_EQUAL notes attached to non-SET patterns.
27026 2016-03-01 Jeff Law <law@redhat.com>
27028 PR tree-optimization/69196
27029 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27030 Appropriately clamp the number of statements to copy when the
27031 thread path does not traverse a loop backedge.
27033 PR tree-optimization/69196
27034 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27035 Do count some PHIs in the thread path against the insn count. Decrease
27036 final statement count by one as the control statement in the last
27037 block will get removed. Remove special cased code for handling PHIs
27040 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
27043 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
27044 asm dialect alternatives to explicit GOTPCREL calls.
27046 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
27049 * ira.c (do_reload): Issue warning for generic stack checking here...
27050 * reload1.c (reload): ...instead of here and streamline it.
27052 2016-03-01 Nick Clifton <nickc@redhat.com>
27054 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
27056 2016-03-01 Richard Biener <rguenther@suse.de>
27058 PR tree-optimization/69983
27059 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
27060 types and fall back to operand_equal_p.
27062 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27065 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27067 * config/s390/constraints.md ("jm8"): New constraint.
27068 * config/s390/predicates.md ("const_int_8bitset_operand"): New
27070 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
27072 ("*setmem_long<setmem_and>"): New pattern.
27073 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
27075 ("*setmem_long_31z<setmem_and>"): New pattern.
27076 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
27077 New substitution rules with the required attributes.
27080 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27083 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27085 * gensupport.c (process_substs_on_one_elem): Split loop to
27086 complete mark_operands_used_in_match_dup on all expressions in the
27088 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27089 and remove function.
27091 2016-03-01 Richard Biener <rguenther@suse.de>
27093 PR middle-end/70022
27094 * fold-const.c (fold_indirect_ref_1): Fix range checking for
27095 vector BIT_FIELD_REF extract.
27097 2016-03-01 Richard Biener <rguenther@suse.de>
27099 PR tree-optimization/69994
27100 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
27102 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
27104 PR tree-optimization/69956
27105 * tree-vect-stmts.c (supportable_widening_operation): Support
27106 multi-step conversion of boolean vectors.
27107 (supportable_narrowing_operation): Likewise.
27109 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27111 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
27114 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27116 * config/s390/subst.md (DSI_VI): New mode iterator.
27117 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
27118 * config/s390/vector.md ("vec_set<mode>"): Move expander before
27119 the insn definition.
27120 ("*vec_set<mode>"): Change predicate and add alternative to
27121 support only either register or const_int operands as element
27123 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
27125 ("vec_extract<mode>"): New expander.
27126 ("*vec_extract<mode>"): New insn definition supporting reg and
27127 const_int element selectors.
27128 ("*vec_extract<mode>_plus"): New insn definition supporting
27129 reg+const_int element selectors.
27130 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
27131 following expander+insn definition.
27132 ("<vec_shifts_name><mode>3"): New expander.
27133 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
27135 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27137 * config/s390/s390.md ("*tabort_1"): Change predicate to
27138 nonmemory_operand. Add a second alternative to cover
27139 register as well as const int operands.
27140 ("*tabort_1_plus"): New pattern definition.
27142 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27144 * config/s390/s390.md ("*ashrdi3_cc_31")
27145 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
27146 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
27147 Merge insn definitions into ...
27148 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27149 New pattern definition.
27150 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
27151 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
27152 ("*ashr<mode>3_and"): Merge insn definitions into ...
27153 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27154 New pattern definition.
27155 * config/s390/subst.md ("addr_style_op_cc_subst")
27156 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
27157 substitutions patterns plus attributes.
27158 Add ashiftrt to SUBST iterator.
27160 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27162 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
27163 op2 to nonmemory_operand.
27164 ("*<shift>di3_31", "*<shift>di3_31_and"):
27165 Merge into single pattern definition ...
27166 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
27167 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
27168 pattern definition ...
27169 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
27170 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
27173 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27175 * config/s390/predicates.md (const_int_6bitset_operand): New
27177 * config/s390/s390.md: Include subst.md.
27178 ("rotl<mode>3"): New expander.
27179 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
27181 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
27182 * config/s390/subst.md: New file.
27184 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27186 * config/s390/s390.md ("op_type", "atype", "length" attributes):
27187 Remove RRR type. It doesn't really exist.
27188 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
27190 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
27191 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
27192 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
27193 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
27194 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
27195 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
27196 `enabled' attribute.
27198 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27200 * gensupport.c (process_substs_on_one_elem): Split loop to
27201 complete mark_operands_used_in_match_dup on all expressions in the
27203 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27204 and remove function.
27206 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27209 * config/sparc/sparc.c (NWORDS_UP): Rename to...
27210 (CEIL_NWORDS): ...this. Use CEIL macro.
27211 (compute_fp_layout): Adjust to above renaming.
27212 (function_arg_union_value): Likewise.
27213 (sparc_arg_partial_bytes): Likewise.
27214 (sparc_function_arg_advance): Likewise.
27216 2016-02-29 Jeff Law <law@redhat.com>
27218 PR tree-optimization/70005
27219 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
27220 where an object with a boolean range is compared against a value
27223 PR tree-optimization/69999
27224 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
27225 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
27228 2016-02-29 Richard Biener <rguenther@suse.de>
27230 PR tree-optimization/69994
27231 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
27232 (get_unary_op): Look through nop conversions.
27233 (ops_equal_values_p): New function, look for equality diregarding
27235 (eliminate_plus_minus_pair): Use ops_equal_values_p
27236 (repropagate_negates): Do not use get_unary_op here.
27238 2016-02-29 Martin Liska <mliska@suse.cz>
27240 * system.h: Poison ENABLE_CHECKING macro.
27242 2016-02-29 Martin Liska <mliska@suse.cz>
27244 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
27245 is presented in dump flags.
27246 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27247 (hsa_regalloc): Likewise.
27249 2016-02-19 Richard Biener <rguenther@suse.de>
27251 PR tree-optimization/69980
27252 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
27253 permutation of those we need to keep.
27255 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27258 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
27259 (NWORDS_UP): ...this
27260 (init_cumulative_args): Minor tweaks.
27261 (sparc_promote_function_mode): Likewise.
27262 (scan_record_type): Delete.
27263 (traverse_record_type): New function template.
27264 (classify_data_t): New structure type.
27265 (classify_registers): New inline function.
27266 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
27267 exhausted. Instantiate traverse_record_type on classify_registers and
27268 deal with the case of a structure passed in slot #15 with no FP field
27270 (assign_data_t): New structure type.
27271 (compute_int_layout): New static function.
27272 (compute_fp_layout): Likewise.
27273 (count_registers): New inline function.
27274 (assign_int_registers): New static function.
27275 (assign_fp_registers): Likewise.
27276 (assign_registers): New inline function.
27277 (function_arg_record_value_1): Delete.
27278 (function_arg_record_value_2): Likewise.
27279 (function_arg_record_value_3): Likewise.
27280 (function_arg_record_value): Adjust to above changes. Instantiate
27281 traverse_record_type on count_registers to first count the number of
27282 registers to be used and then on assign_registers to assign them.
27283 (function_arg_union_value): Adjust to above renaming.
27284 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
27285 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
27286 case of a structure passed in slot #15
27287 (sparc_function_arg_advance): Likewise.
27288 (function_arg_padding): Minor tweak.
27290 2016-02-29 Richard Biener <rguenther@suse.de>
27292 PR tree-optimization/69720
27293 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
27294 the adjustment_def path for possibly vectorized defs.
27295 (vect_create_epilog_for_reduction): Handle vectorized initial
27298 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
27300 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
27302 2016-02-27 Jeff Law <law@redhat.com>
27305 2016-02-26 Richard Biener <rguenther@suse.de>
27306 Jeff Law <law@redhat.com>
27308 PR tree-optimization/69740
27309 * cfghooks.c (remove_edge): Request loop fixups if we delete
27310 an edge that might turn an irreducible loop into a natural
27313 2016-02-27 Jakub Jelinek <jakub@redhat.com>
27315 PR rtl-optimization/69896
27316 * tree-vect-generic.c (get_compute_type): Avoid single element
27319 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
27321 Rename the AArch64 tuning option and related functions to enable the
27322 Newton series for the reciprocal square root to reflect its
27323 approximative characteristic.
27325 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
27326 function to "aarch64_emit_approx_rsqrt".
27327 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
27328 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
27329 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
27330 (xgene1_tunings): Likewise.
27331 (use_rsqrt_p): Likewise.
27332 (aarch64_emit_swrsqrt): Use new function name.
27333 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
27334 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
27335 text explaining this option.
27336 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
27338 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27341 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27342 complain about -mallow-movmisalign without -mvsx if
27343 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
27345 2016-02-26 Joel Sherrill <joel@rtems.org>
27347 * config.gcc: Add x86_64-*-rtems*.
27348 * config/i386/rtems-64.h: New file.
27350 2016-02-26 Joel Sherrill <joel@rtems.org>
27352 * config.gcc: Add aarch64-*-rtems*.
27353 * config/aarch64/rtems.h: New file.
27355 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
27358 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
27359 shift amount using %h. Add comment.
27361 2016-02-26 Richard Biener <rguenther@suse.de>
27362 Jeff Law <law@redhat.com>
27364 PR tree-optimization/69740
27365 * cfghooks.c (remove_edge): Request loop fixups if we delete
27366 an edge that might turn an irreducible loop into a natural
27369 2016-02-26 Martin Jambor <mjambor@suse.cz>
27371 PR middle-end/69920
27372 * tree-sra.c (sra_modify_assign): Do not remove loads of
27373 uninitialized aggregates to SSA_NAMEs.
27375 2016-02-26 Richard Henderson <rth@redhat.com>
27378 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
27379 pseudo in case the target rtx matches the source of the left
27382 2016-02-26 Martin Jambor <mjambor@suse.cz>
27385 * hsa.h (hsa_type_packed_p): Declare.
27386 * hsa.c (hsa_type_packed_p): New function.
27387 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
27389 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
27390 * hsa-brig.c (emit_basic_insn): Likewise.
27392 2016-02-26 Martin Jambor <mjambor@suse.cz>
27395 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
27397 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
27399 2016-02-26 Martin Jambor <mjambor@suse.cz>
27401 * hsa.h (is_a_helper): New overload for hsa_op_immed for
27402 hsa_op_with_type operands.
27403 (hsa_unsigned_type_for_type): Declare.
27404 * hsa.c (hsa_unsigned_type_for_type): New function.
27405 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
27406 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
27407 the finalizer. Do not emit extra move.
27409 2016-02-26 Martin Jambor <mjambor@suse.cz>
27411 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
27412 atomic operations in private segment.
27414 2016-02-26 Martin Jambor <mjambor@suse.cz>
27416 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
27417 statements to wi->info. Also disallow omp simd constructs.
27418 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
27419 for not gridifying. Dump special string for omp_for.
27421 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27424 * config/aarch64/aarch64.c (aarch64_set_current_function):
27425 Save/restore target globals when switching to
27426 target_option_default_node.
27428 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27431 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
27432 Return 0 if !SHIFT_COUNT_TRUNCATED.
27434 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27435 Eric Botcazou <ebotcazou@adacore.com>
27437 PR rtl-optimization/69891
27438 * dse.c (scan_insn): If we can't figure out memset arguments
27439 or they are non-constant, call clear_rhs_from_active_local_stores.
27441 2016-02-26 Martin Liska <mliska@suse.cz>
27443 * doc/extend.texi: Mention clog10, clog10f an clog10l
27444 in Builtins section.
27446 2016-02-26 Martin Liska <mliska@suse.cz>
27448 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
27450 (resolve_args_picking_1): Likewise.
27451 * dwarf2out.h (struct GTY): Likewise.
27453 2016-02-26 Martin Liska <mliska@suse.cz>
27455 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
27456 with flag_checking.
27457 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27459 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27460 Martin Liska <mliska@suse.cz>
27462 * doc/install.texi: Mention --enable-valgrind-annotations.
27464 2016-02-26 Richard Biener <rguenther@suse.de>
27466 PR tree-optimization/69551
27467 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
27468 looking through aliases adjust DECL_PT_UID to refer to the
27469 ultimate alias target.
27471 2016-02-25 Martin Liska <mliska@suse.cz>
27473 PR middle-end/69919
27474 * alloc-pool.c (after_memory_report): New variable.
27475 * alloc-pool.h (base_pool_allocator ::release): Do not use
27476 the infrastructure if after_memory_report.
27477 * toplev.c (toplev::main): Mark after memory report.
27479 2016-02-25 Richard Biener <rguenther@suse.de>
27481 PR tree-optimization/48795
27482 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
27484 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
27487 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
27488 offloading is enabled and -fopenacc or -fopenmp is specified.
27489 (CRTOFFLOADEND): Likewise.
27490 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27491 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27492 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27493 (offload_objects_file_name): New static var.
27494 (tool_cleanup): Remove offload_objects_file_name file.
27495 (find_offloadbeginend): Replace with ...
27496 (find_crtoffloadtable): ... this.
27497 (run_gcc): Remove offload_argc and offload_argv.
27498 Get offload_objects_file_name from -foffload-objects=... option.
27499 Read names of object files with offload from this file, pass them to
27500 compile_images_for_offload_targets. Don't call find_offloadbeginend and
27501 don't pass offloadbegin and offloadend to the linker. Don't pass
27502 offload non-LTO files to the linker, because now they're not claimed.
27504 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
27507 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27508 on builtin_unreachable.
27510 2016-02-25 Jakub Jelinek <jakub@redhat.com>
27512 PR rtl-optimization/69896
27513 * regcprop.c: Include cfgrtl.h.
27514 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27515 than remembered mode, either delete it (if noop_move_p), or
27516 treat like copy_p but not noop_p instruction.
27518 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27521 * dwarf2out.c (gen_variable_die): Work around buggy LTO
27522 - allow NULL decl for Fortran DW_TAG_common_block variables.
27524 2016-02-24 Jason Merrill <jason@redhat.com>
27526 * common.opt (flifetime-dse): Add -flifetime-dse=1.
27528 2016-02-24 Richard Biener <rguenther@suse.de>
27529 Jakub Jelinek <jakub@redhat.com>
27531 PR middle-end/69760
27532 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27533 conditionally executed ops to well-defined overflow behavior.
27535 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27537 PR middle-end/69915
27538 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27541 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27543 PR rtl-optimization/69886
27544 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27545 argument. Use it when checking validity of set instructions.
27546 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27547 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27549 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27550 * store-motion.c (find_moveable_store): Update
27551 can_assign_to_reg_without_clobbers_p callsite.
27553 2016-02-24 Richard Biener <rguenther@suse.de>
27555 PR middle-end/68963
27556 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27558 (record_nonwrapping_iv): Do not fall back to the low/high bound
27559 for non-constant IV bases if the stmt is not always executed.
27561 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27563 * config/arm/arm-cores.def (cortex-a32): New entry.
27564 * config/arm/arm-tables.opt: Regenerate.
27565 * config/arm/arm-tune.md: Regenerate.
27566 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27567 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27568 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27569 for -mcpu and -mtune.
27571 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27574 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27575 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27576 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27577 (atomic_loaddi_1): Delete.
27578 (atomic_loaddi): Rewrite expander using the above changes.
27580 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27583 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27586 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27587 Richard Biener <rguenth@suse.de>
27589 PR middle-end/69909
27590 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27591 set_mem_attributes if tem is SSA_NAME which got expanded
27594 2016-02-24 Richard Biener <rguenther@suse.de>
27596 PR tree-optimization/69907
27597 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27598 end of permutations for BB vectorization.
27600 2016-02-24 Christian Bruel <christian.bruel@st.com>
27602 * config/arm/arm-c.c (arm_option_override): Initialize
27603 target_option_current_node.
27604 * config/arm/arm.c (arm_pragma_target_parse): Replace
27605 build_target_option_node call by target_option_current_node.
27606 Set target_option_current_node.
27609 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27612 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27613 define_insn_and_split to define_insn.
27614 (zero_extendqi<mode>2_dot2): Same.
27615 (extendqi<mode>2_dot): Same.
27616 (extendqi<mode>2_dot2): Same.
27618 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27620 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27621 and add bypass for AES{D,E} and AESMC pairs.
27622 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27625 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27627 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27628 series for reciprocal square root in Exynos M1.
27630 2016-02-23 Martin Sebor <msebor@redhat.com>
27633 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27634 __builtin_alloca_with_align.
27636 2016-02-23 Richard Henderson <rth@redhat.com>
27638 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27639 (ix86_register_pragmas): Remove __seg_tls.
27640 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27641 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27642 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27643 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27644 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27645 * doc/extend.texi (__seg_tls): Remove item.
27647 2016-02-23 Richard Biener <rguenther@suse.de>
27649 * alloc-pool.h (struct allocation_object): Make id member
27650 conditional on CHECKING_P again.
27651 (get_instance): Adjust.
27652 (base_pool_allocator): Likewise.
27654 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
27656 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27657 (parallelize_loops): In OpenACC kernels mode, set n_threads to
27659 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27661 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27663 2016-02-23 Richard Biener <rguenther@suse.de>
27665 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27666 * bitmap.h (struct bitmap_usage): Likewise.
27667 (bitmap_move): Declare.
27668 * bitmap.c (register_overhead): Take size_t argument.
27669 (bitmap_move): New function.
27670 * df-problems.c (df_rd_transfer_function): Use bitmap_move
27671 to properly account overhead.
27672 * tree.c (free_node): Use tree_size.
27674 2016-02-23 Jakub Jelinek <jakub@redhat.com>
27677 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27678 when inverting comparison.
27681 * common.opt (Wunreachable-code): Add Warning flag.
27683 2016-02-23 Mark Wielaard <mjw@redhat.com>
27684 Jakub Jelinek <jakub@redhat.com>
27687 * cgraphunit.c (check_global_declaration): Check main_input_filename
27688 and DECL_SOURCE_FILE are not NULL.
27690 2016-02-23 Martin Jambor <mjambor@suse.cz>
27692 PR tree-optimization/69666
27693 * tree-sra.c (sra_modify_assign): Do not attempt to create
27694 default_def replacements for unscalarizable regions.
27696 2016-02-20 Mark Wielaard <mjw@redhat.com>
27699 * cgraphunit.c (check_global_declaration): Check level of
27700 warn_unused_const_variable and main_input_filename.
27701 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27702 (-Wunused-variable): For C implies -Wunused-const-variable=1.
27703 (-Wunused-const-variable): Explain levels 1 and 2.
27705 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27708 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27709 identical arguments. Formatting and spelling fixes.
27712 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27717 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27718 and m68k-devices.def.
27719 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27720 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27722 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
27724 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27725 and HImode registers.
27727 2016-02-22 Richard Biener <rguenther@suse.de>
27729 PR tree-optimization/69882
27730 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27731 preserve permutations present because of gaps.
27732 (vect_supported_load_permutation_p): Always continue checking
27733 permutations after vect_attempt_slp_rearrange_stmts.
27735 2016-02-22 Bin Cheng <bin.cheng@arm.com>
27737 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27738 min_profitable_estimate, rather than min_profitable_iters.
27740 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27743 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27744 SImode for last match_operand.
27746 2016-02-22 Martin Liska <mliska@suse.cz>
27748 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27749 return bitsize - 1 as the return value.
27751 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
27755 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27756 Handle negative shift counts.
27757 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27758 force_reg on the shift constant.
27759 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
27760 (lshrsi3_d): Handle negative shift counts.
27762 2016-02-22 Richard Biener <rguenther@suse.de>
27763 Tom de Vries <tom@codesourcery.com>
27765 * graph.c: Include dumpfile.h.
27766 (print_graph_cfg): Split into three overloads.
27767 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27769 2016-02-22 Tom de Vries <tom@codesourcery.com>
27771 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27774 2016-02-22 Richard Biener <rguenther@suse.de>
27777 * ipa-inline-transform.c (inline_call): When not updating
27778 overall summaries adjust self size by the growth estimate.
27779 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27780 hash-set, do not update overall summaries here. Renamed from ...
27781 (inline_to_all_callers): ... this which is now wrapping the
27782 above and performing delayed overall summary update.
27783 (early_inline_small_functions): Delay updating of the overall
27786 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
27788 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27791 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27794 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
27795 :%* in %:gt() argument.
27796 (greater_than_spec_func): Adjust for expecting only numbers,
27797 if there are more than two numbers, compare the last two.
27799 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
27801 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
27802 -Wnarrowing with -std.
27804 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27807 * expr.c (store_field): Don't use bit-field path if exp is
27808 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
27809 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
27810 and the assignment can be performed by bitwise copy. Formatting
27813 PR middle-end/69838
27814 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
27815 call copy_reg_eh_region_note_forward on before and/or after sequences
27816 and remove note from insn if it no longer can throw.
27819 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
27820 if TARGET_AVX512BW.
27822 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27824 * config/s390/vector.md: Add missing commutative operand markers
27825 to the patterns which qualify for one.
27826 * config/s390/vx-builtins.md: Likewise.
27828 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27830 * config/s390/vector.md (VI, VI_QHS): Add single element vector
27831 types to mode iterators.
27832 (vec_double): ... and mode attribute.
27833 * config/s390/vx-builtins.md (non_vec_int): Likewise.
27835 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27837 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
27838 Change the predicate of op2 from nonimmediate to general and let
27839 reload fix it if necessary.
27841 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27843 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
27845 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27847 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
27850 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27852 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
27853 * config/s390/s390.c (s390_expand_vec_movstr): New function.
27854 * config/s390/s390.md ("movstr<P:mode>"): Call
27855 s390_expand_vec_movstr.
27857 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27859 * config/s390/s390.md: Add missing output modifier for operand 1
27860 to print it as address properly.
27862 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27864 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
27865 * config/s390/2964.md: New file.
27866 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
27867 of insn grouping attributes depending on the CPU level.
27868 (s390_get_unit_mask): New function.
27869 (s390_sched_score): Remove the OOO from the scheduling macros.
27870 Add loop to calculate a score for the instruction mix.
27871 (s390_sched_reorder): Likewise plus improve debug output.
27872 (s390_sched_variable_issue): Rename macros as above. Calculate
27873 the unit distances after actually scheduling an insn. Improve
27875 (s390_sched_init): Clear last_scheduled_unit_distance array.
27876 * config/s390/s390.md: Include 2964.md.
27878 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27881 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
27882 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
27883 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
27884 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
27885 *avx512f_<code>v8div16qi2_mask_1): New insns.
27887 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27890 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
27893 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
27894 earlyclobber from target. Use wF constraint for fused memory
27896 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
27898 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27899 Martin Liska <mliska@suse.cz>
27902 * cfgexpand.c (asan_sanitize_stack_p): New function.
27903 (partition_stack_vars): Use the function.
27904 (expand_stack_vars): Likewise.
27905 (defer_stack_allocation): Likewise.
27906 (expand_used_vars): Likewise.
27908 2016-02-18 Richard Biener <rguenther@suse.de>
27910 PR middle-end/69553
27911 * fold-const.c (operand_equal_p): Properly compare offsets for
27912 IMAGPART_EXPR and ARRAY_REF.
27914 2016-02-18 Nick Clifton <nickc@redhat.com>
27918 * config/arm/arm.c (arm_option_override_internal): Disable
27919 interworking if the target does not support thumb instructions.
27920 (arm_reload_in_hi): Handle the case where a register to register
27921 move needs reloading because there is no simple pattern to handle
27923 (arm_reload_out_hi): Likewise.
27925 2016-02-18 Richard Biener <rguenther@suse.de>
27927 PR middle-end/69854
27928 * match.pd: Don't use fold_binary or fold_unary for folding
27931 2016-02-17 Jakub Jelinek <jakub@redhat.com>
27934 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
27935 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
27936 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
27937 warn on gimple_no_warning_p statements.
27939 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
27941 * doc/extend.texi (C++ Attributes): Correct description of
27942 warn_unused type attribute.
27944 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27946 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
27947 correct instruction.
27949 2016-02-17 Richard Biener <rguenther@suse.de>
27951 PR rtl-optimization/69609
27952 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
27953 (find_traces_1_round): When ending a trace update cached priority
27955 (bb_to_key): Use cached priority when available.
27956 (copy_bb): Initialize cached priority.
27957 (reorder_basic_blocks_software_trace_cache): Likewise.
27959 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27962 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
27964 (aarch64_comparison_operator): Break overly long line into two.
27965 (aarch64_comparison_operation): Likewise.
27966 * config/aarch64/aarch64.md (cstorecc4): Use
27967 aarch64_comparison_operator_mode instead of
27968 aarch64_comparison_operator.
27969 (cstore<mode>4): Likewise.
27970 (aarch64_cstore<mode>): Likewise.
27971 (*cstoresi_insn_uxtw): Likewise.
27972 (cstore<mode>_neg): Likewise.
27973 (*cstoresi_neg_uxtw): Likewise.
27975 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27978 * config/arm/predicates.md (arm_comparison_operator_mode):
27980 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
27981 instead of arm_comparison_operator.
27982 (*mov_negscc): Likewise.
27983 (*mov_notscc): Likewise.
27984 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
27985 (*thumb2_mov_negscc): Likewise.
27986 (*thumb2_mov_negscc_strict_it): Likewise.
27987 (*thumb2_mov_notscc): Likewise.
27988 (*thumb2_mov_notscc_strict_it): Likewise.
27990 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
27992 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
27993 Add missing return.
27995 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
27997 * config/visium/visium.c (machine_libfunc_index): New enum.
27998 (machine_libfuncs): New structure.
27999 (visium_libfuncs): New static variable.
28000 (TARGET_INIT_LIBFUNCS): Define to...
28001 (visium_init_libfuncs): ...this. New function.
28002 (expand_block_move_4): Use the appropriate libfunc.
28003 (expand_block_move_2): Likewise.
28004 (expand_block_move_1): Likewise.
28005 (expand_block_set_4): Likewise.
28006 (expand_block_set_2): Likewise.
28007 (expand_block_set_1): Likewise.
28008 (visium_trampoline_init): Likewise.
28010 2016-02-17 Nick Clifton <nickc@redhat.com>
28012 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
28013 TI's devices.csv file as of March 2016.
28015 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
28018 * opts-global.c (handle_common_deferred_options): Introduce and
28019 initialize two global variables to remember command-line options
28020 specifying a stack-limiting register.
28021 * opts.h: Add extern declarations of the two new global variables.
28022 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
28023 variable based on the values of the two new global variables.
28025 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28028 * common.opt (Wnonnull-compare): New warning.
28029 * doc/invoke.texi (-Wnonnull): Remove text about comparison
28030 of arguments against NULL.
28031 (-Wnonnull-compare): Document.
28032 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
28033 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
28034 * passes.def (pass_warn_nonnull_compare): Add.
28035 * gimple-ssa-nonnull-compare.c: New file.
28037 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28039 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
28040 AARCH64_EXTRA_TUNE_RECIP_SQRT.
28042 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28044 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
28045 reciprocal sqrt for -mlow-precision-recip-sqrt.
28047 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28048 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28050 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
28051 always use lane loads to construct non-constant vectors.
28053 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
28055 * config/aarch64/aarch64.md
28056 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
28057 constraints for operand 3.
28058 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
28060 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28061 Richard Biener <rguenther@suse.de>
28063 PR tree-optimization/69820
28064 * tree-vect-patterns.c (type_conversion_p): Return false if
28065 *orig_type is unsigned single precision or boolean.
28066 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
28069 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28071 PR rtl-optimization/69764
28072 PR rtl-optimization/69771
28073 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
28074 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
28076 2016-02-16 Richard Biener <rguenther@suse.de>
28078 PR tree-optimization/69776
28079 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
28081 (indirect_refs_may_alias_p): Likewise.
28082 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
28083 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
28084 according to tbaa_p.
28085 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
28086 (optimize_stmt): For redundant store discovery do not allow tbaa.
28088 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
28090 PR tree-optimization/69714
28091 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
28092 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
28094 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
28096 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
28097 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
28098 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
28099 * config/arc/arc.c (arc_init): Check FPU options.
28100 (get_arc_condition_code): Handle new CC_FPU* modes.
28101 (arc_select_cc_mode): Likewise.
28102 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
28103 register pair only. Allow access for ARCv2 accumulator.
28104 (gen_compare_reg): Whenever we have FPU support use FPU compare
28106 (arc_reorg): Don't generate brcc insns when FPU compare
28107 instructions are involved.
28108 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
28109 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
28110 floating point emulation.
28111 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
28112 (REVERSE_CONDITION): Add new CC_FPU* modes.
28113 (TARGET_FP_SP_BASE): Define.
28114 (TARGET_FP_DP_BASE): Likewise.
28115 (TARGET_FP_SP_FUSED): Likewise.
28116 (TARGET_FP_DP_FUSED): Likewise.
28117 (TARGET_FP_SP_CONV): Likewise.
28118 (TARGET_FP_DP_CONV): Likewise.
28119 (TARGET_FP_SP_SQRT): Likewise.
28120 (TARGET_FP_DP_SQRT): Likewise.
28121 (TARGET_FP_DP_AX): Likewise.
28122 * config/arc/arc.md (ARCV2_ACC): New constant.
28123 (type): New fpu type attribute.
28124 (SDF): Conditional iterator.
28125 (cstore<mode>, cbranch<mode>): Change expand condition.
28126 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
28127 handles FPU/FPX cases as well.
28128 * config/arc/arc.opt (mfpu): New option.
28129 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
28131 (adddf3, muldf3, subdf3): Removed.
28132 * config/arc/predicates.md (proper_comparison_operator): Recognize
28134 * config/arc/fpu.md: New file.
28135 * doc/invoke.texi (ARC Options): Document mfpu option.
28137 2016-02-16 Richard Biener <rguenther@suse.de>
28139 PR rtl-optimization/69291
28140 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
28141 noce_operand_ok check.
28143 2016-02-16 Tom de Vries <tom@codesourcery.com>
28146 * omp-low.c (simd_clone_create): Remove call to
28147 symtab->call_cgraph_insertion_hooks.
28149 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28151 PR tree-optimization/69802
28152 * tree-ssa-reassoc.c (update_range_test): If op is
28153 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
28154 op == 1 test of precision 1 integral op, otherwise handle
28155 that case as op itself. Fix up formatting.
28156 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
28159 2016-02-16 Richard Biener <rguenther@suse.de>
28161 PR tree-optimization/69586
28162 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
28163 types for conversion sources.
28165 2016-02-16 Richard Biener <rguenther@suse.de>
28167 PR middle-end/69801
28168 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
28169 mask OEP_ADDRESS_OF.
28171 2016-02-16 Alan Modra <amodra@gmail.com>
28174 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
28175 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28176 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
28178 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
28179 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
28180 (p8_fmrgow_<mode>): Likewise.
28181 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
28183 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
28184 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
28185 to use movdi_internal64. Remove op0_di.
28186 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
28188 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
28190 Add support for the FCCMP insn types
28192 * config/aarch64/aarch64.md (fccmp): Change insn type.
28193 (fccmpe): Likewise.
28194 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
28195 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
28196 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
28197 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
28198 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
28199 * config/arm/types.md (fccmps): Add new insn type.
28200 (fccmpd): Likewise.
28202 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
28204 * alias.c (get_alias_set): Fix a typo in comment.
28206 2016-02-15 Richard Biener <rguenther@suse.de>
28208 PR tree-optimization/69595
28209 * match.pd: Complete range test simplification to true.
28211 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
28213 PR rtl-optimization/69648
28214 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
28215 pic_offset_table_rtx.
28217 PR rtl-optimization/69752
28218 * ira.c (update_equiv_regs): When looking for more than a single SET,
28219 also take other side effects into account.
28221 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28223 * config/s390/s390.c (s390_function_profiler): Add a new sequence
28224 for z900+ CPUs in 31-bit mode.
28226 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28228 * common/config/s390/s390-common.c (s390_supports_split_stack):
28230 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
28231 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
28232 * config/s390/s390.c (struct machine_function): New field
28233 split_stack_varargs_pointer.
28234 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
28235 in s390_emit_prologue.
28236 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
28238 (morestack_ref): New global.
28239 (SPLIT_STACK_AVAILABLE): New macro.
28240 (s390_expand_split_stack_prologue): New function.
28241 (s390_live_on_entry): New function.
28242 (s390_va_start): Use split-stack vararg pointer if appropriate.
28243 (s390_asm_file_end): Emit the split-stack note sections.
28244 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
28245 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
28246 (UNSPECV_SPLIT_STACK_CALL): New unspec.
28247 (UNSPECV_SPLIT_STACK_DATA): New unspec.
28248 (split_stack_prologue): New expand.
28249 (split_stack_space_check): New expand.
28250 (split_stack_data): New insn.
28251 (split_stack_call): New expand.
28252 (split_stack_call_*): New insn.
28253 (split_stack_cond_call): New expand.
28254 (split_stack_cond_call_*): New insn.
28256 2016-02-15 Richard Biener <rguenther@suse.de>
28258 PR tree-optimization/69783
28259 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28260 Add trivially correct cases.
28262 2016-02-15 Tom de Vries <tom@codesourcery.com>
28265 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
28267 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
28269 2016-02-15 Richard Biener <rguenther@suse.de>
28271 PR tree-optimization/69776
28272 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
28273 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
28274 indicate whether we can use TBAA to disambiguate against stores.
28275 Use alias-set zero if not.
28276 (visit_reference_op_store): Do not use TBAA when looking up
28278 * tree-ssa-pre.c (compute_avail): Use TBAA here.
28279 (eliminate_dom_walker::before_dom_children): But not when looking
28280 up redundant stores.
28282 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
28284 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
28286 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28288 * config/i386/znver1.md
28289 (znver1_pop, znver1_pop_mem,
28290 znver1_load_imov_double_store,
28291 znver1_load_imov_direct_store,
28292 znver1_load_imov_direct_load,
28293 znver1_load_imov_double_load): Add new.
28294 (znver1_insn, znver1_insn_load): Add icmov type.
28295 (znver1_sseavx_fma,
28296 znver1_sseavx_fma_load,
28298 znver1_avx256_fma_load): Fix pipe usage.
28300 2016-02-14 Alan Modra <amodra@gmail.com>
28303 * reload.c (find_reloads_address_1): For pre/post-inc/dec
28304 with an invalid hard reg, reload just the reg not the entire
28305 pre/post-inc/dec address expression.
28307 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28310 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
28311 fixed R1_REG scratch reg.
28312 (sibcall_value_pcrel_fdpic): Likewise.
28314 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28318 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
28320 2016-02-12 Walter Lee <walt@tilera.com>
28322 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
28323 * config/tilegx/t-tilegx: Likewise.
28325 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28328 * diagnostic-show-locus.c (struct line_span): New struct.
28329 (layout::get_first_line): Delete.
28330 (layout::get_last_line): Delete.
28331 (layout::get_num_line_spans): New member function.
28332 (layout::get_line_span): Likewise.
28333 (layout::print_heading_for_line_span_index_p): Likewise.
28334 (layout::get_expanded_location): Likewise.
28335 (layout::calculate_line_spans): Likewise.
28336 (layout::m_first_line): Delete.
28337 (layout::m_last_line): Delete.
28338 (layout::m_line_spans): New field.
28339 (layout::layout): Update comment. Replace m_first_line and
28340 m_last_line with m_line_spans, replacing their initialization
28341 with a call to calculate_line_spans.
28342 (diagnostic_show_locus): When printing source lines and
28343 annotations, rather than looping over a single span
28344 of lines, instead loop over each line_span within
28345 the layout, with an inner loop over the lines within them.
28346 Call the context's start_span callback when changing line spans.
28347 * diagnostic.c (diagnostic_initialize): Initialize start_span.
28348 (diagnostic_build_prefix): Break out the building of the location
28349 part of the string into...
28350 (diagnostic_get_location_text): ...this new function, rewriting
28351 it from nested ternary expressions to a sequence of "if"
28353 (default_diagnostic_start_span_fn): New function.
28354 * diagnostic.h (diagnostic_start_span_fn): New typedef.
28355 (diagnostic_context::start_span): New field.
28356 (default_diagnostic_start_span_fn): New prototype.
28358 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28361 * gcc.c (driver::finalize): Fix cleanup of "specs".
28363 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28367 * gcc.c (driver::driver): Initialize m_option_suggestions.
28368 (driver::~driver): Clean up m_option_suggestions.
28369 (suggest_option): Convert to...
28370 (driver::suggest_option): ...this, and split out into
28371 driver::build_option_suggestions and find_closest_string.
28372 (driver::build_option_suggestions): New function, from
28373 first half of suggest_option. Special-case
28374 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
28375 the sanitizer_opts array. For options of enum types, add the
28376 various enum values to the candidate strings.
28377 (driver::handle_unrecognized_options): Remove "const".
28378 * gcc.h (driver::handle_unrecognized_options): Likewise.
28379 (driver::build_option_suggestions): New decl.
28380 (driver::suggest_option): New decl.
28381 (driver::m_option_suggestions): New field.
28382 * opts-common.c (add_misspelling_candidates): New function.
28383 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
28384 and make non-static.
28385 * opts.h (sanitizer_opts): New array decl.
28386 (add_misspelling_candidates): New function decl.
28387 * spellcheck.c (find_closest_string): New function.
28388 * spellcheck.h (find_closest_string): New function decl.
28390 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28392 PR rtl-optimization/69764
28393 PR rtl-optimization/69771
28394 * optabs.c (expand_binop_directly): For shift_optab_p, force
28395 convert_modes with VOIDmode if xop1 has VOIDmode.
28397 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
28400 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
28401 to correctly determine instrumentation thunks.
28403 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28406 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
28407 type by reference, force lhs on the call.
28410 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
28411 Compute retval and retbnd early in all cases if split_part_return_p
28412 and return_bb is not EXIT. Remove all clobber stmts and reset
28413 all debug stmts that refer to SSA_NAMEs defined in split part,
28414 except if it is retval, in that case replace the old retval with the
28415 lhs of the call to the split part.
28417 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28420 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28422 PR middle-end/66726
28423 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28424 whose result is used in PHI.
28425 (maybe_optimize_range_tests): Likewise.
28426 (final_range_test_p): Likweise.
28428 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28430 PR middle-end/66726
28431 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28432 whose result is used in PHI.
28433 (maybe_optimize_range_tests): Likewise.
28434 (final_range_test_p): Likweise.
28436 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28438 * cgraph.c: Spelling fixes - behaviour -> behavior and
28439 neighbour -> neighbor.
28440 * target.def: Likewise.
28441 * sel-sched.c: Likewise.
28442 * config/mips/mips.c: Likewise.
28443 * config/arc/arc.md: Likewise.
28444 * config/arm/cortex-a57.md: Likewise.
28445 * config/arm/arm.c: Likewise.
28446 * config/arm/neon.md: Likewise.
28447 * config/arm/arm-c.c: Likewise.
28448 * config/vms/vms-c.c: Likewise.
28449 * config/s390/s390.c: Likewise.
28450 * config/i386/znver1.md: Likewise.
28451 * config/i386/i386.c: Likewise.
28452 * config/ia64/hpux-unix2003.h: Likewise.
28453 * config/msp430/msp430.md: Likewise.
28454 * config/rx/rx.c: Likewise.
28455 * config/rx/rx.md: Likewise.
28456 * config/aarch64/aarch64-simd.md: Likewise.
28457 * config/aarch64/aarch64.c: Likewise.
28458 * config/nvptx/nvptx.c: Likewise.
28459 * config/bfin/bfin.c: Likewise.
28460 * config/cris/cris.opt: Likewise.
28461 * config/rs6000/rs6000.c: Likewise.
28462 * target.h: Likewise.
28463 * spellcheck.c: Likewise.
28464 * ira-build.c: Likewise.
28465 * tree-inline.c: Likewise.
28466 * builtins.c: Likewise.
28467 * lra-constraints.c: Likewise.
28468 * explow.c: Likewise.
28469 * hwint.h: Likewise.
28470 * targhooks.c: Likewise.
28471 * tree-vect-data-refs.c: Likewise.
28472 * expr.c: Likewise.
28473 * doc/tm.texi: Likewise.
28474 * doc/extend.texi: Likewise.
28475 * doc/install.texi: Likewise.
28476 * doc/md.texi: Likewise.
28477 * tree-ssa-tail-merge.c: Likewise.
28478 * sched-int.h: Likewise.
28479 * match.pd: Likewise.
28480 * sched-ebb.c: Likewise.
28481 * target.def (omit_struct_return_reg): Likewise.
28482 * gimple-ssa-isolate-paths.c: Likewise.
28483 (find_implicit_erroneous_behaviour): Renamed to...
28484 (find_implicit_erroneous_behavior): ... this.
28485 (find_explicit_erroneous_behaviour): Renamed to...
28486 (find_explicit_erroneous_behavior): ... this.
28487 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28489 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
28491 PR rtl-optimization/64682
28492 PR rtl-optimization/69567
28493 PR rtl-optimization/69737
28494 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28495 in I2 as well, just lose it.
28497 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28499 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28501 (aarch64_last_printed_tune_string): Likewise.
28502 (aarch64_declare_function_name): Only output .arch assembler
28503 directive if it will be different from the previously output
28504 directive. Same for .tune comment but only if -dA is set.
28505 (aarch64_start_file): New function.
28506 (TARGET_ASM_FILE_START): Define.
28508 2016-02-11 David Malcolm <dmalcolm@redhat.com>
28511 * Makefile.in (PLUGIN_HEADERS): Add params.list.
28513 2016-02-11 Jakub Jelinek <jakub@redhat.com>
28516 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28517 -Wmaybe-uninitialized warning.
28519 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
28522 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28524 2016-02-11 Richard Biener <rguenther@suse.de>
28526 PR rtl-optimization/69291
28527 * ifcvt.c (noce_try_store_flag_constants): Do not allow
28528 subexpressions affected by changing the result.
28530 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
28533 * lra-constraints.c (curr_insn_transform): Find in/out operands
28534 for secondary memory moves. Update dups.
28536 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
28538 PR tree-optimization/69652
28539 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28540 to nested loop, did source re-formatting, skip debug statements,
28541 add check on statement with volatile operand, remove dead scalar
28544 2016-02-10 Jakub Jelinek <jakub@redhat.com>
28545 Patrick Palka <ppalka@gcc.gnu.org>
28549 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28550 calls if the return type is TREE_ADDRESSABLE.
28551 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28552 * ipa-split.c (split_function): Fix doubled "we" in comment.
28553 Use void return type for the split part even if
28554 !split_point->split_part_set_retval.
28556 2016-02-10 Bin Cheng <bin.cheng@arm.com>
28558 PR tree-optimization/68021
28559 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28560 when computing the value of biv cand by itself.
28562 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28564 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28565 (cortexa57_tunings): Likewise.
28566 (cortexa72_tunings): Likewise.
28567 (arch_macro_fusion_pair_p): Add support for AES fusion.
28568 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28569 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28570 Allow virtual registers before reload so early scheduling works.
28571 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28572 correct latency and pipeline.
28573 (cortex_a57_crypto_complex): Likewise.
28574 (cortex_a57_crypto_xor): Likewise.
28575 (define_bypass): Add AES bypass.
28577 2016-02-10 Richard Biener <rguenther@suse.de>
28579 PR tree-optimization/69726
28580 * passes.def: Add DCE pass before late uninit.
28581 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28582 really fixup if-conversions job.
28584 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28586 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28587 (arm_cortex_a57_tune): Likewise.
28588 (aarch_macro_fusion_pair_p): Add support for AES fusion.
28589 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28591 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
28593 * timevar.def (TV_PHASE_DBGINFO): Delete.
28594 (TV_PHASE_CHECK_DBGINFO): Likewise.
28595 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28597 2016-02-10 Richard Biener <rguenther@suse.de>
28599 PR tree-optimization/69719
28600 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28601 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28603 2016-02-09 Andrew Pinski <apinski@cavium.com>
28606 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28607 get_vcond_mask_icode returns false.
28609 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28612 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28613 an ADDIS that adds a pointer to a large constant that sets the
28614 upper16 bits with a load operation.
28616 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28619 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28621 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28623 (vzipq_s16): Likewise.
28624 (vzipq_s32): Likewise.
28625 (vzipq_f32): Likewise.
28626 (vzipq_u8): Likewise.
28627 (vzipq_u16): Likewise.
28628 (vzipq_u32): Likewise.
28629 (vzipq_p8): Likewise.
28630 (vzipq_p16): Likewise.
28632 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28635 * config/arm/arm.c (neon_endian_lane_map): New function.
28636 (neon_vector_pair_endian_lane_map): New function.
28637 (arm_evpc_neon_vuzp): Allow for big endian lane order.
28638 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28640 (vuzpq_s16): Likewise.
28641 (vuzpq_s32): Likewise.
28642 (vuzpq_f32): Likewise.
28643 (vuzpq_u8): Likewise.
28644 (vuzpq_u16): Likewise.
28645 (vuzpq_u32): Likewise.
28646 (vuzpq_p8): Likewise.
28647 (vuzpq_p16): Likewise.
28649 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
28652 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28655 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
28657 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28658 truncate const_int operand 1 to QImode.
28660 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
28662 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28663 corresponding to an abnormal edge.
28665 2016-02-09 Tom de Vries <tom@codesourcery.com>
28667 PR tree-optimization/69599
28668 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28670 (find_func_aliases_for_builtin_call, find_func_clobbers)
28671 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
28674 2016-02-09 Richard Biener <rguenther@suse.de>
28676 PR tree-optimization/69715
28677 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28678 LHS on calls as non-rewritable.
28680 2016-02-09 Tom de Vries <tom@codesourcery.com>
28683 * lto-wrapper.c (append_diag_options): New function.
28684 (compile_offload_image): Call append_diag_options.
28686 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
28689 * doc/extend.texi (Flag Output Operands): Correct sectioning.
28690 Minor copy-edit to fix verb tenses.
28692 2016-02-08 Jakub Jelinek <jakub@redhat.com>
28694 PR tree-optimization/69209
28695 * ipa-split.c (split_function): If split part is not
28696 returning retval, retval has gimple type but is not
28697 gimple value, force it into a SSA_NAME first.
28699 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
28701 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28704 2016-02-08 Jason Merrill <jason@redhat.com>
28707 * convert.c (convert_to_integer_1): Check dofold on truncation
28709 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28710 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28711 Rename from *_nofold.
28712 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28713 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28715 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
28718 * tree.c (build_common_tree_nodes): Remove short_double argument.
28719 All callers changed.
28720 * tree.h (build_common_tree_nodes): Adjust declaration.
28721 * doc/invoke.texi (-fshort-double): Remove documentation.
28722 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28723 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28724 * lto-wrapper.c (merge_and_complain, append_compiler_options)
28725 (append_linker_options): Don't handle OPT_fshort_double.
28727 PR rtl-optimization/68730
28728 * lra-remat.c (insn_to_cand_activation): New static variable.
28729 (lra_remat): Allocate and free it.
28730 (create_cand): New arg activation. Initialize a field in
28731 insn_to_cand_activation if it is nonnull.
28732 (create_cands): Pass the activation insn to create_cand when making
28733 a candidate involving an output reload. Reorganize code a little.
28734 (do_remat): Keep track of active status of candidates in a separate
28737 2016-02-08 Richard Biener <rguenther@suse.de>
28739 PR tree-optimization/69719
28740 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28741 Properly use absolute of the difference of the two offsets to
28742 compare or adjust the segment length.
28744 2016-02-08 Richard Biener <rguenther@suse.de>
28745 Jeff Law <law@redhat.com>
28748 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28749 types for anonymous SSA names.
28751 2016-02-08 Richard Biener <rguenther@suse.de>
28753 PR rtl-optimization/69274
28754 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28756 2016-02-08 Jeff Law <law@redhat.com>
28758 PR tree-optimization/65917
28759 * tree-ssa-dom.c (record_temporary_equivalences): Record both
28760 equivalences from if (x == y) style conditionals.
28761 (loop_depth_of_name): Remove.
28762 (record_equality): Remove loop depth check.
28763 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28764 (const_and_copies::record_const_or_copy_raw): New member function.
28765 * tree-ssa-scopedtables.c
28766 (const_and_copies::record_const_or_copy_raw): New, factored out of
28767 (const_and_copies::record_const_or_copy): Call new member function.
28769 2016-02-05 Jeff Law <law@redhat.com>
28771 PR tree-optimization/68541
28772 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28773 (count_stmts_in_block): New function.
28774 (poor_ifcvt_candidate_code): Likewise.
28775 (is_feasible_trace): Add some heuristics to determine when path
28776 splitting is profitable.
28777 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28778 is a diamond with a single exit.
28780 2016-02-05 Martin Sebor <msebor@redhat.com>
28783 * doc/invoke.texi: Update -Wplacement-new to take an optional
28786 2016-02-06 Richard Henderson <rth@redhat.com>
28789 * tree.c (tree_nop_conversion_p): Do not strip casts into or
28790 out of non-standard address spaces.
28792 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28794 PR rtl-optimization/69691
28795 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
28797 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
28799 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
28800 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
28801 (*ieee128_mfvsrd_64bit): Likewise.
28802 (*ieee128_mfvsrd_32bit): Likewise.
28804 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
28808 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28810 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28811 instrumented_version.
28813 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
28815 * doc/invoke.texi (Optimize Options): In table of --param options
28816 rename second occurrence of tracer-min-branch-ratio to
28817 tracer-min-branch-probability, rename
28818 tracer-min-branch-ratio-feedback to
28819 tracer-min-branch-probability-feedback and clarify description,
28820 rename sched-spec-state-edge-prob-cutoff to
28821 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
28822 to selsched-insns-to-rename, rename lto-minpartition to
28823 lto-min-partition, delete reorder-blocks-duplicate and
28824 reorder-blocks-duplicate-feedback.
28826 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28828 * config/s390/s390.c (s390_register_info_set_ranges): Remove
28831 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
28833 * doc/extend.texi: S/390: Correct some typos.
28835 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28837 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
28839 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28842 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
28843 (s390_register_info_gprtofpr): Use new macros above.
28844 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
28846 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
28847 its name. Adjust restore and save gpr ranges.
28848 (s390_register_info_set_ranges): New function.
28849 (s390_register_info): Use new macros above. Call
28850 s390_register_info_set_ranges.
28851 (s390_optimize_register_info): Likewise.
28852 (s390_hard_regno_rename_ok): Use new macros.
28853 (s390_hard_regno_scratch_ok): Likewise.
28854 (s390_emit_epilogue): Likewise.
28855 (s390_can_use_return_insn): Likewise.
28856 (s390_optimize_prologue): Likewise.
28857 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
28859 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28862 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
28864 (ix86_option_override_internal): Disable TARGET_STV even for
28865 -m{incoming,preferred}-stack-boundary=3.
28867 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28869 * config.gcc: Mark deprecated rtems targets as obsolete.
28871 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
28873 PR rtl-optimization/64682
28874 PR rtl-optimization/69567
28875 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
28876 before I2 only if the register is both used and set in I2.
28878 2016-02-04 DJ Delorie <dj@redhat.com>
28880 * config/msp430/msp430.c (msp430_start_function): Add function type.
28882 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28885 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
28887 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
28889 PR rtl-optimization/69577
28891 2015-10-29 Richard Henderson <rth@redhat.com>
28895 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
28896 sse check to the exact conditions of PR 67609.
28898 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
28901 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
28902 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
28903 not allowed into the traditional Altivec registers.
28904 (movtd_64bit_nodm): Likewise.
28905 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
28907 2016-02-04 David Malcolm <dmalcolm@redhat.com>
28909 * config/aarch64/cortex-a57-fma-steering.c
28910 (aarch64_register_fma_steering): Remove "static" from arguments
28913 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
28916 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
28917 twice when complex.
28919 2016-02-04 Mike Frysinger <vapier@gentoo.org>
28921 * doc/invoke.texi: Delete -mno-fma4.
28923 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
28925 PR rtl-optimization/69577
28926 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
28927 (find_subregs_of_mode): Update accordingly. Iterate over partial
28930 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
28932 * config/arm/arm-protos.h (neon_reinterpret): Remove.
28933 * config/arm/arm.c (neon_reinterpret): Remove.
28934 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
28935 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
28936 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
28937 vreinterpretti): Remove.
28938 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
28939 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
28940 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
28941 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
28942 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
28943 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
28944 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
28945 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
28946 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
28947 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
28948 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
28949 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
28950 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
28951 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
28952 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
28953 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
28954 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
28955 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
28956 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
28957 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
28958 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
28959 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
28960 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
28961 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
28962 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
28963 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
28964 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
28965 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
28966 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
28967 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
28968 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
28969 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
28970 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
28971 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
28972 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
28973 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
28974 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
28975 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
28976 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
28977 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
28978 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
28979 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
28980 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
28981 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
28982 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
28983 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
28984 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
28985 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
28986 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
28987 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
28988 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
28989 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
28990 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
28991 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
28992 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
28993 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
28994 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
28995 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
28996 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
28997 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
28998 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
28999 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
29000 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
29001 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
29002 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
29003 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
29004 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
29005 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
29006 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
29007 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
29008 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
29009 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
29010 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
29011 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
29012 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
29013 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
29014 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
29015 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
29016 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
29017 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
29018 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
29019 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
29020 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
29021 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
29022 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
29023 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
29024 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
29025 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
29026 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
29027 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
29028 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
29029 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
29030 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
29031 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
29032 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
29033 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
29034 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
29035 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
29036 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
29037 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
29038 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
29039 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
29040 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
29042 2016-02-04 Martin Liska <mliska@suse.cz>
29045 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
29046 that are gimple_store_p.
29047 (maybe_instrument_call): Likewise.
29049 2016-02-04 Bin Cheng <bin.cheng@arm.com>
29051 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
29052 register scaling out of memory reference and comment why.
29054 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29058 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
29059 folding the source of a SET.
29061 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29065 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
29066 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
29068 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
29072 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
29075 2016-02-04 Christian Bruel <christian.bruel@st.com>
29077 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
29078 * config/arm/arm.c (arm_set_current_function): Likewise.
29080 2016-02-04 Jakub Jelinek <jakub@redhat.com>
29081 Ilya Enkovich <enkovich.gnu@gmail.com>
29082 H.J. Lu <hongjiu.lu@intel.com>
29085 * config/i386/i386.c (convert_scalars_to_vector): Remove
29086 stack alignment fixes.
29087 (ix86_option_override_internal): Disable TARGET_STV if stack
29088 might not be aligned enough.
29089 (ix86_minimum_alignment): Assert that TARGET_STV is false.
29091 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
29093 * config/i386/x86-tune.def: Disable default prefetching
29096 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29097 Vladimir Makarov <vmakarov@redhat.com>
29100 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
29101 in validating fused toc addresses.
29103 2016-02-03 Jakub Jelinek <jakub@redhat.com>
29106 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
29107 range->m_caret fields if range->m_show_caret_p is false.
29110 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29111 Force oldval into register if it does not satisfy reg_or_short_operand
29112 predicate. Fix up formatting.
29114 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
29115 Alexandre Oliva <aoliva@redhat.com>
29118 * lra-constraints.c (simplify_operand_subreg): Check additionally
29119 address validity after potential reloading.
29120 (process_address_1): Check insns validity. In case of failure do
29123 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
29126 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
29129 2016-02-02 Jakub Jelinek <jakub@redhat.com>
29131 * wide-int.cc (canonize_uhwi): New function.
29132 (wi::divmod_internal): Use it.
29134 2016-02-02 James Norris <jnorris@codesourcery.com>
29136 * gimplify.c (omp_notice_variable): Add usage check.
29138 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
29140 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
29141 like LE, GE, LT, GT when emitting relational operator.
29143 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29145 * ira-costs.c (find_costs_and_classes): Add extra argument.
29146 * target.def (ira_change_pseudo_allocno_class): Add parameter.
29147 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
29148 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
29149 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
29150 Add best_class parameter, and return it if not ALL_REGS.
29151 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
29153 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
29154 Update target hook.
29156 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29158 * config/aarch64/aarch64.c
29159 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
29160 (aarch64_ira_change_pseudo_allocno_class): New function.
29162 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
29165 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
29167 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29169 * config/avr/avr.c (avr_option_override): Set
29170 PARAM_ALLOW_STORE_DATA_RACES to 1.
29172 2016-02-02 Richard Biener <rguenther@suse.de>
29174 PR tree-optimization/69595
29175 * match.pd: Add range test simplifications to true/false.
29177 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
29179 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
29180 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
29183 2016-02-02 Richard Biener <rguenther@suse.de>
29185 PR tree-optimization/69606
29186 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
29187 info on the result before moving a stmt.
29189 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
29191 PR middle-end/68542
29192 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
29193 branch with vector comparison.
29194 * config/i386/sse.md (VI48_AVX): New mode iterator.
29195 (define_expand "cbranch<mode>4): Add support for conditional branch
29196 with vector comparison.
29197 * tree-vect-loop.c (optimize_mask_stores): New function.
29198 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
29199 has_mask_store field of vect_info.
29200 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
29201 vectorized loops having masked stores after vec_info destroy.
29202 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
29203 correspondent macros.
29204 (optimize_mask_stores): Add prototype.
29206 2016-02-02 Alan Modra <amodra@gmail.com>
29209 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
29212 2016-02-02 Alan Modra <amodra@gmail.com>
29215 * config/rs6000/rs6000.c (need_toc_init): New var, set it
29216 whenever toc_label_name used.
29217 (rs6000_file_start): Don't set up toc section here,
29218 (rs6000_output_function_epilogue): do so here instead,
29219 (rs6000_xcoff_file_start): and here.
29220 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
29221 (load_toc_aix_di): Likewise.
29223 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29225 PR rtl-optimization/69592
29226 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
29227 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
29228 (num_sign_bit_copies_binary_arith_p): New inline function.
29229 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
29231 2016-02-01 Jeff Law <law@redhat.com>
29233 PR tree-optimization/69580
29234 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
29235 * tree-ssa-threadbackward.c
29236 (fsm_find_control_statement_thread_paths): Do not try to walk
29237 through large PHI nodes.
29239 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29241 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
29242 when count is incremented above limit, don't analyze further
29245 * omp-low.c (oacc_parse_default_dims): Avoid
29246 -Wsign-compare warning, make sure value fits into int
29247 rather than just unsigned int.
29249 2016-02-01 Bin Cheng <bin.cheng@arm.com>
29251 PR tree-optimization/67921
29252 * fold-const.c (split_tree): New parameters. Convert pointer
29253 type variable part to proper type before negating.
29254 (fold_binary_loc): Pass new arguments to split_tree.
29256 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
29258 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
29259 (nvptx_goacc_validate_dims): Extend to handle global defaults.
29260 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
29261 * doc/tm.texti: Rebuilt.
29262 * doc/invoke.texi (fopenacc-dim): Document.
29263 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
29264 (append_compiler_options): Likewise.
29265 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
29266 (oacc_parse_default_dims): New.
29267 (oacc_validate_dims): Add USED arg. Select non-unity default when
29269 (oacc_loop_fixed_partitions): Return mask of used partitions.
29270 (oacc_loop_auto_partitions): Emit dump info.
29271 (oacc_loop_partition): Return mask of used partitions.
29272 (execute_oacc_device_lower): Parse default dimension arg. Adjust
29273 loop partitioning and validation calls.
29275 2016-02-01 Richard Biener <rguenther@suse.de>
29277 PR middle-end/69556
29278 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
29280 2016-02-01 Richard Biener <rguenther@suse.de>
29282 PR tree-optimization/69574
29283 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
29284 of asserting return chrec_dont_know.
29286 2016-02-01 Martin Liska <mliska@suse.cz>
29288 * mem-stats-traits.h: Add copyright header.
29289 * mem-stats.h: Likewise.
29291 2016-02-01 Richard Biener <rguenther@suse.de>
29293 PR tree-optimization/69579
29294 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
29295 Do not propagate through abnormal PHI results.
29297 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
29299 * postreload.c (reload_cse_simplify): Remove dead code.
29301 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29303 PR rtl-optimization/69570
29304 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
29305 if there is more than one set, not if there is a single set.
29307 2016-02-01 Richard Henderson <rth@redhat.com>
29310 * combine.c (make_compound_operation): When looking through a
29311 subreg, make sure to re-extend to the width of the outer mode.
29313 2016-01-30 Jakub Jelinek <jakub@redhat.com>
29315 PR tree-optimization/69546
29316 * wide-int.cc (wi::divmod_internal): For unsigned division
29317 where both operands fit into uhwi, if o1 is 1 and o0 has
29318 msb set, if divident_prec is larger than bits per hwi,
29319 clear another quotient word and return 2 instead of 1.
29320 Similarly for remainder with msb in HWI set, if dividend_prec
29321 is larger than bits per hwi.
29323 2016-01-29 Martin Jambor <mjambor@suse.cz>
29325 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
29326 Use short lowercase names.
29327 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
29328 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
29329 acq_rel one. Protect warning agains segfaults if
29330 get_memory_order_name returns NULL.
29331 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
29332 with release semantics. Do not warn if get_memory_order already did.
29333 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
29334 semantics. Fix check for relaxed or acquire semantics. Do not warn
29335 if get_memory_order already did.
29337 2016-01-29 Sebastian Pop <s.pop@samsung.com>
29339 * doc/install.texi: Document that isl-0.16 is supported.
29341 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
29344 * config/i386/constraints.md (Bm): Describe as special memory
29346 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
29347 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29348 * genpreds.c (struct constraint_data): Add is_special_memory.
29349 (have_special_memory_constraints, special_memory_start): New
29351 (special_memory_end): Ditto.
29352 (add_constraint): Add new arg is_special_memory. Add code to
29353 process its true value. Update have_special_memory_constraints.
29354 (process_define_constraint): Pass the new arg.
29355 (process_define_register_constraint): Ditto.
29356 (choose_enum_order): Process special memory.
29357 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
29358 function insn_extra_special_memory_constraint.
29359 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29360 * gensupport.c (process_rtx): Process
29361 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29362 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
29363 * ira-lives.c (single_reg_class): Use
29364 insn_extra_special_memory_constraint.
29365 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
29366 * lra-constraints.c (process_alt_operands): Ditto.
29367 (curr_insn_transform): Use insn_extra_special_memory_constraint.
29368 * recog.c (asm_operand_ok, preprocess_constraints): Process
29370 * reload.c (find_reloads): Ditto.
29371 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
29372 * stmt.c (parse_input_constraint): Use
29373 insn_extra_special_memory_constraint.
29375 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29378 * lra-splill.c (lra_final_code_change): Revert r229087 by
29379 removing all sub-registers.
29381 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
29384 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
29386 2016-01-29 Jakub Jelinek <jakub@redhat.com>
29389 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
29390 SSE1, copy target into the temporary reg first before recursing
29393 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29395 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
29398 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29400 * ginclude/stdarg.h: Test __cplusplus instead of
29401 __GXX_EXPERIMENTAL_CXX0X__.
29403 2016-01-29 Richard Biener <rguenther@suse.de>
29405 PR tree-optimization/69547
29406 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
29407 Do not mark clobbers necessary.
29408 (mark_all_reaching_defs_necessary_1): Likewise.
29410 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29412 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
29413 declaration name with %qs and print it in both error messages.
29414 Also fix indentation.
29416 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29419 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
29420 trailing blank line from error message.
29422 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29425 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
29428 2016-01-29 Richard Biener <rguenther@suse.de>
29430 PR middle-end/69537
29431 * match.pd: Allow all integral types when simplifying a
29432 widening or sign-changing conversion.
29434 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29436 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
29437 back to setting codegen_error to fail codegen.
29439 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
29442 * config/i386/constraints.md (C): Only accept constant zero operand.
29443 (BC): New constraint.
29444 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
29445 instead of C constraint.
29446 * doc/md.texi (Machine Constraints): Update description
29449 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
29452 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
29454 2016-01-28 Jakub Jelinek <jakub@redhat.com>
29456 PR middle-end/69542
29457 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
29460 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
29462 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
29463 branches if using guessed profile.
29465 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
29467 * graphite-optimize-isl.c (optimize_isl): Fix dump.
29469 2016-01-28 Richard Henderson <rth@redhat.com>
29472 * config/aarch64/aarch64-modes.def (CC_Cmode): New
29473 * config/aarch64/aarch64-protos.h: Update.
29474 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
29475 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
29476 (aarch64_get_condition_code_1): Handle CC_Cmode.
29477 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
29478 (*add<mode>3_compareC_cconly_imm): New.
29479 (*add<mode>3_compareC_cconly): New.
29480 (*add<mode>3_compareC_imm): New.
29481 (add<mode>3_compareC): New.
29482 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
29483 to be first. Use aarch64_carry_operation.
29484 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
29485 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29486 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29487 (subti3): Use subdi3_compare1.
29488 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29489 (sub<mode>3_compare1): New.
29490 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29491 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29492 (*subsi3_carryin_uxtw): Likewise.
29493 (*ngc<mode>, *ngcsi_uxtw): Likewise.
29494 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29495 * config/aarch64/iterators.md (DWI): New.
29496 * config/aarch64/predicates.md (aarch64_carry_operation): New.
29497 (aarch64_borrow_operation): New.
29499 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29501 * graphite-optimize-isl.c (optimize_isl): Print a different debug
29502 message when isl does not return a valid schedule.
29504 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29506 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29507 Remove comments from class declarations: they are already in the code
29510 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29512 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29514 (ternary_op_to_tree): Same.
29515 (unary_op_to_tree): Same.
29516 (nary_op_to_tree): Same.
29517 (gcc_expression_from_isl_expr_op): Same.
29518 (gcc_expression_from_isl_expression): Same.
29519 (graphite_create_new_loop): Same.
29520 (graphite_create_new_loop_guard): Same.
29521 (build_iv_mapping): Same.
29522 (graphite_create_new_guard): Same.
29523 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29524 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29526 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29528 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29529 instead of setting codegen_error to fail codegen.
29531 2016-01-28 Jason Merrill <jason@redhat.com>
29533 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29535 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29537 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29538 Remove CONST_INT_P check in CCMP cost calculation.
29540 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29542 * config/aarch64/aarch64.c (generic_vector_cost):
29543 Set vec_permute_cost.
29544 (cortexa57_vector_cost): Likewise.
29545 (exynosm1_vector_cost): Likewise.
29546 (xgene1_vector_cost): Likewise.
29547 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29548 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29549 Add vec_permute_cost entry.
29551 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29553 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29555 (add<mode>3_compare0): Likewise.
29556 (addsi3_compare0_uxtw): Likewise.
29557 (add<mode>3nr_compare0): Likewise.
29558 (compare_neg<mode>): Likewise.
29559 (<optab><mode>3): Likewise.
29561 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
29563 * tree-vect-stmts.c (vectorizable_comparison): Add
29564 NULL check for vectype.
29566 2016-01-28 Richard Biener <rguenther@suse.de>
29568 PR tree-optimization/69466
29569 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29570 Account for PHIs we couldn't duplicate.
29572 2016-01-28 Martin Liska <mliska@suse.cz>
29575 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29576 instead of ENABLE_VALGRIND_CHECKING.
29578 2016-01-27 Richard Henderson <rth@redhat.com>
29581 * lra-remat.c (subreg_regs): New.
29582 (dump_candidates_and_remat_bb_data): Dump it.
29583 (operand_to_remat): Reject if operand in subreg_regs.
29584 (set_bb_regs): Collect subreg_regs.
29585 (lra_remat): Init and free subreg_regs. Compute
29586 calculate_local_reg_remat_bb_data before create_cands.
29588 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
29591 * config/i386/i386.c (ix86_update_stack_boundary): Don't
29592 change stack_alignment_needed for __tls_get_addr call.
29594 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
29596 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29598 2016-01-27 Jeff Law <law@redhat.com>
29600 PR tree-optimization/68398
29601 PR tree-optimization/69196
29602 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29603 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29604 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29605 Only count PHIs in the last block in the path. The others will
29606 const/copy propagate away. Add heuristic to allow more irreducible
29607 subloops to be created when it is likely profitable to do so.
29609 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29610 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
29611 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
29613 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29616 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29617 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29618 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29619 * tree-streamer-in.c: Include asan.h.
29620 (streamer_get_builtin_tree): For builtins in sanitizer
29621 range call initialize_sanitizer_builtins and retry.
29623 2016-01-27 Ian Lance Taylor <iant@google.com>
29625 * common.opt (fkeep-gc-roots-live): New undocumented option.
29626 * tree-ssa-loop-ivopts.c (add_candidate_1): If
29627 -fkeep-gc-roots-live, skip pointers.
29628 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29631 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
29634 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29635 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29637 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
29640 * configure.ac: NetBSD provides SSP in its C library.
29641 * configure: Updated.
29643 2016-01-27 Richard Biener <rguenther@suse.de>
29645 PR tree-optimization/69166
29646 * tree-vect-loop.c (vect_is_simple_reduction): Always check
29647 reduction code for commutativity / associativity.
29649 2016-01-27 Martin Jambor <mjambor@suse.cz>
29651 PR tree-optimization/69355
29652 * tree-sra.c (analyze_access_subtree): Correct hole detection when
29653 total_scalarization fails.
29655 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
29657 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29660 2016-01-27 Christian Bruel <christian.bruel@st.com>
29663 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29664 Move arm_reset_previous_fndecl and set_target_option_current_node in
29665 the conditional part. Call save_restore_target_globals.
29666 * config/arm/arm.c (arm_set_current_function):
29667 Refactor to better support #pragma target and attribute mix.
29668 Call save_restore_target_globals.
29669 * config/arm/arm-protos.h (save_restore_target_globals): New function.
29671 2016-01-27 Martin Liska <mliska@suse.cz>
29673 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29674 reference for an HSA kernel and its host function.
29676 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29678 PR tree-optimization/69399
29679 * wide-int.h (wi::lrshift): For larger precisions, only
29680 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29682 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
29684 * config/arc/predicates.md (proper_comparison_operator): Reject
29685 constant-constant comparison.
29687 2016-01-26 Tom de Vries <tom@codesourcery.com>
29689 PR tree-optimization/69110
29690 * tree-data-ref.c (initialize_data_dependence_relation): Handle
29691 DR_NUM_DIMENSIONS == 0.
29693 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29694 Sebastian Pop <s.pop@samsung.com>
29696 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29697 isl_ast_op_cond and isl_ast_op_select.
29698 (gcc_expression_from_isl_expr_op): Same.
29700 2016-01-26 Jason Merrill <jason@redhat.com>
29703 * tree.c (recompute_constructor_flags): Split out from
29705 (verify_constructor_flags): New.
29706 * tree.h: Declare them.
29708 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
29710 PR rtl-optimization/69217
29711 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29712 are no TYPE_FIELDS set for the record type.
29714 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29717 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29718 toc_label_name unconditionally.
29719 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29720 SYMBOL_REF string. Use toc_label_name instead of constructing
29722 (rs6000_elf_declare_function_name): Use toc_label_name instead of
29723 constructing LCTOC1.
29725 2016-01-26 Martin Sebor <msebor@redhat.com>
29728 * doc/extend.texi (Common Type Attributes): Move text that talks about
29729 attribute packed from attribute aligned to the section discussing
29730 the former attribute for clarity.
29732 2016-01-26 Richard Henderson <rth@redhat.com>
29734 PR middle-end/60908
29735 * trans-mem.c (tm_region_init): Mark entry block as visited.
29737 2016-01-26 David Malcolm <dmalcolm@redhat.com>
29740 * diagnostic-show-locus.c (layout::print_source_line): Replace
29741 call to pp_newline with call to layout::print_newline.
29742 (layout::print_annotation_line): Likewise.
29743 (layout::move_to_column): Likewise.
29744 (layout::print_any_fixits): After printing any fixits, print a
29745 trailing newline, if necessary.
29746 (layout::print_newline): New method, resetting any colorization
29748 (diagnostic_show_locus): Move the pp_newline to before the
29749 early bailout. Remove dummy block enclosing the layout instance.
29750 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29751 of pp_newline_and_flush with pp_flush.
29752 (diagnostic_append_note): Delete use of pp_newline.
29753 (diagnostic_append_note_at_rich_loc): Delete.
29754 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29755 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29756 when newline characters are added to the buffer.
29758 2016-01-26 Michael Matz <matz@suse.de>
29760 * configure.ac (ac_cv_std_swap_in_utility): New test.
29761 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29762 * configure: Regenerate.
29763 * config.in: Regenerate.
29765 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
29767 * config/arc/arc.md (cstoresi4): Force operand into register.
29768 (arcset<code>): Fix predicate.
29769 (arcsetltu): Likewise.
29770 (arcsetgeu): Likewise.
29771 (arcsethi): Likewise.
29772 (arcsetls): Likewise.
29774 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29776 PR tree-optimization/69483
29777 * gimple-fold.c (canonicalize_constructor_val): Return NULL
29778 if base has error_mark_node type.
29780 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
29783 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29784 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29786 (vget_lane_f16): Handle big-endian.
29787 (vgetq_lane_f16): Likewise.
29788 (vset_lane_f16): Likewise.
29789 (vsetq_lane_f16): Likewise.
29790 * config/arm/iterators.md (VQXMOV): Add V8HF.
29791 (VDQ): Add V4HF and V8HF.
29792 (V_reg): Handle V4HF and V8HF.
29793 (Is_float_mode): Likewise.
29794 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
29795 neon_vdup_nv8hf): New patterns.
29796 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
29797 Use VD_LANE iterator.
29798 (neon_vld1_dup<mode>): Use VQ2 iterator.
29800 2016-01-26 Nathan Sidwell <nathan@acm.org>
29802 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
29803 (set_oacc_fn_attrib): Add IS_KERNEL arg.
29804 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
29805 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
29806 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
29807 (oacc_validate_dims): Add LEVEL arg, don't return level.
29808 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
29809 oacc_validate_dims.
29810 (execute_oacc_device_lower): Adjust, add more dump output.
29811 * tree-ssa-loop.c (gate_oacc_kernels): Use
29812 oacc_fn_attrib_kernels_p.
29813 * tree-parloops.c (create_parallel_loop): Adjust
29814 set_oacc_fn_attrib call.
29816 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29819 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
29820 (append_compiler_options): Handle -fcilkplus.
29821 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
29823 2016-01-26 Nick Clifton <nickc@redhat.com>
29826 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
29827 been marked as DECL_ONE_ONLY but we do not the means to make it
29828 so, then do not allow it to bind locally.
29830 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29833 * opts.h (parse_sanitizer_options): New prototype.
29834 * opts.c (sanitizer_opts): New array.
29835 (parse_sanitizer_options): New function.
29836 (common_handle_option): Use parse_sanitizer_options.
29838 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
29841 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
29842 alignment adjustment to ...
29843 (ix86_update_stack_boundary): Here. Don't over-align stack for
29845 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
29846 if __tls_get_addr is called.
29848 2016-01-26 Christian Bruel <christian.bruel@st.com>
29850 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
29852 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
29854 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
29856 2016-01-26 Richard Biener <rguenther@suse.de>
29858 PR middle-end/69467
29859 * match.pd: Guard X * CST CMP 0 pattern with single_use.
29861 2016-01-26 Richard Biener <rguenther@suse.de>
29863 PR tree-optimization/69452
29864 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
29865 (move_computations_dom_walker::before_dom_children): Rename
29867 (move_computations_worker): This.
29868 (move_computations): Perform an RPO rather than a DOM walk.
29870 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29873 * combine.c (combine_instructions): For REG_EQUAL note with
29874 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
29875 to the underlying register.
29876 * doc/rtl.texi (REG_EQUAL): Document the behavior of
29877 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
29879 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
29882 * config/aarch64/aarch64-builtins.c
29883 (aarch64_init_simd_builtin_types): Do not set structural
29884 equality to __Poly{8,16,64,128}_t types.
29886 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
29888 PR tree-optimization/69400
29889 * wide-int.cc (wi_pack): Take the precision as argument and
29890 perform canonicalization here rather than in the callers.
29891 Use the main loop to handle all full-width HWIs. Add a
29892 zero HWI if in_len isn't a full result.
29893 (wi::divmod_internal): Update accordingly.
29894 (wi::mul_internal): Likewise. Simplify.
29896 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29897 Sebastian Pop <s.pop@samsung.com>
29899 * graphite-poly.c (apply_poly_transforms): Simplify.
29900 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
29901 (print_isl_map): Same.
29902 (print_isl_union_map): Same.
29903 (print_isl_schedule): New.
29904 (debug_isl_schedule): New.
29905 * graphite-dependences.c (scop_get_reads): Do not call
29906 isl_union_map_add_map that is undocumented isl functionality.
29907 (scop_get_must_writes): Same.
29908 (scop_get_may_writes): Same.
29909 (scop_get_original_schedule): Remove.
29910 (scop_get_dependences): Do not call isl_union_map_compute_flow that
29911 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
29912 (compute_deps): Remove.
29913 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
29914 (debug_schedule_ast): New.
29915 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
29916 set_separate_option.
29917 (graphite_regenerate_ast_isl): Add dump.
29918 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
29919 from scop->transformed_schedule.
29920 (graphite_regenerate_ast_isl): Add more dump.
29921 * graphite-optimize-isl.c (optimize_isl): Set
29922 scop->transformed_schedule. Check whether schedules are equal.
29923 (apply_poly_transforms): Move here.
29924 * graphite-poly.c (apply_poly_transforms): ... from here.
29925 (free_poly_bb): Static.
29926 (free_scop): Static.
29927 (pbb_number_of_iterations_at_time): Remove.
29928 (print_isl_ast): New.
29929 (debug_isl_ast): New.
29930 (debug_scop_pbb): New.
29931 * graphite-scop-detection.c (print_edge): Move.
29932 (print_sese): Move.
29933 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
29934 (build_scop_scattering): Remove.
29935 (create_pw_aff_from_tree): Assert instead of bailing out.
29936 (add_condition_to_pbb): Remove unused code, do not fail.
29937 (add_conditions_to_domain): Same.
29938 (add_conditions_to_constraints): Remove.
29939 (build_scop_context): New.
29940 (add_iter_domain_dimension): New.
29941 (build_iteration_domains): Initialize pbb->iterators.
29942 Call add_conditions_to_domain.
29945 (index_outermost_in_loop): New.
29946 (index_pbb_in_loop): New.
29947 (outermost_pbb_in): New.
29948 (add_in_sequence): New.
29949 (add_outer_projection): New.
29950 (outer_projection_mupa): New.
29951 (add_loop_schedule): New.
29952 (build_schedule_pbb): New.
29953 (build_schedule_loop): New.
29954 (embed_in_surrounding_loops): New.
29955 (build_schedule_loop_nest): New.
29956 (build_original_schedule): New.
29957 (build_poly_scop): Call build_original_schedule.
29958 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
29959 (free_poly_dr): Remove.
29960 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
29961 (free_poly_bb): Remove.
29962 (debug_loop_vec): Remove.
29963 (print_isl_ast): Declare.
29964 (debug_isl_ast): Declare.
29965 (scop_do_interchange): Remove.
29966 (scop_do_strip_mine): Remove.
29967 (scop_do_block): Remove.
29968 (flatten_all_loops): Remove.
29969 (optimize_isl): Remove.
29970 (pbb_number_of_iterations_at_time): Remove.
29971 (debug_scop_pbb): Declare.
29972 (print_schedule_ast): Declare.
29973 (debug_schedule_ast): Declare.
29974 (struct scop): Remove schedule. Add original_schedule,
29975 transformed_schedule.
29976 (free_gimple_poly_bb): Remove.
29977 (print_generated_program): Remove.
29978 (debug_generated_program): Remove.
29979 (unify_scattering_dimensions): Remove.
29980 * sese.c (print_edge): ... here.
29981 (print_sese): ... here.
29982 (debug_edge): ... here.
29983 (debug_sese): ... here.
29984 * sese.h (print_edge): Declare.
29985 (print_sese): Declare.
29986 (dump_edge): Declare.
29987 (dump_sese): Declare.
29989 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29990 Sebastian Pop <s.pop@samsung.com>
29992 * Makefile.in: Set ISLVER in site.exp.
29994 2016-01-25 Jakub Jelinek <jakub@redhat.com>
29996 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
29997 DECL_VALUE_EXPR of new_var even for the non-array case. Look
29998 through DECL_VALUE_EXPR for expansion.
30000 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
30002 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
30003 the frame info after reload completed.
30005 2016-01-25 Jeff Law <law@redhat.com>
30007 PR tree-optimization/69196
30008 PR tree-optimization/68398
30009 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
30010 tree-ssa-threadupdate.c.
30011 (determine_bb_domination_status): Prototype
30012 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
30013 (determine_bb_domination_status): No longer static.
30014 (valid_jump_thread_path): Remove code to detect characteristics
30015 of the jump thread path not associated with correctness.
30016 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
30017 Correct test for thread path length. Count PHIs for real operands as
30018 statements that need to be copied. Do not count ASSERT_EXPRs.
30019 Look at all the blocks in the thread path. Compute and selectively
30020 filter thread paths based on threading through the latch, threading
30021 a multiway branch or crossing a multiway branch.
30023 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30025 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
30026 decl with __attribute__ ((unused)) annotation.
30028 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
30031 * tree-vect-stmts.c (vectorizable_condition): Check vectype
30032 of operands is compatible with a statement vectype.
30034 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
30036 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
30037 improve wording for mixed storage order support.
30039 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
30041 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
30042 (vcvt_u64_f64): Likewise.
30043 (vcvta_s64_f64): Likewise.
30044 (vcvta_u64_f64): Likewise.
30045 (vcvtm_s64_f64): Likewise.
30046 (vcvtm_u64_f64): Likewise.
30047 (vcvtn_s64_f64): Likewise.
30048 (vcvtn_u64_f64): Likewise.
30049 (vcvtp_s64_f64): Likewise.
30050 (vcvtp_u64_f64): Likewise.
30052 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
30054 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
30055 (arc_init): Check validity mll64 option.
30056 (arc_save_restore): Use double load/store instruction.
30057 (arc_expand_movmem): Likewise.
30058 (arc_split_move): Don't split if we have double load/store
30059 instructions. Returns a boolean.
30060 (arc_process_double_reg_moves): Change function to return boolean
30061 instead of a sequence of instructions.
30062 (arc_dwarf_register_span): New function.
30063 * config/arc/arc-protos.h (arc_split_move): Change prototype.
30064 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
30065 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
30066 (*movdf_insn): Likewise.
30067 * config/arc/arc.opt (mll64): New option.
30068 * config/arc/predicates.md (even_register_operand): New predicate.
30069 * doc/invoke.texi (ARC Options): Add mll64 documentation.
30071 2016-01-25 Richard Biener <rguenther@suse.de>
30074 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
30075 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
30077 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
30079 2016-01-25 Richard Biener <rguenther@suse.de>
30081 PR tree-optimization/69376
30082 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
30084 (VN_INFO_ANTI_RANGE_P): New inline.
30085 (VN_INFO_RANGE_TYPE): Likewise.
30086 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
30087 SSA_NAME_ANTI_RANGE_P.
30088 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
30089 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30090 Properly query VN_INFO_RANGE_TYPE.
30092 2016-01-25 Nick Clifton <nickc@redhat.com>
30095 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
30097 2016-01-23 Tom de Vries <tom@codesourcery.com>
30099 PR tree-optimization/69426
30100 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
30103 2016-01-23 Jakub Jelinek <jakub@redhat.com>
30105 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
30106 "the the" with "the" in the comments.
30107 * ipa-devirt.c (build_type_inheritance_graph,
30108 update_type_inheritance_graph): Likewise.
30109 * tree.c (build_function_type_list_1): Likewise.
30110 * cfgloopmanip.c (scale_loop_profile): Likewise.
30111 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
30112 * gimple-ssa-split-paths.c
30113 (find_block_to_duplicate_for_splitting_paths): Likewise.
30114 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
30115 * expr.c (convert_move): Likewise.
30116 * var-tracking.c (vt_stack_adjustments): Likewise.
30117 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
30118 * tree-vrp.c (test_for_singularity): Likewise.
30120 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
30121 directly instead of building a temporary tree.
30124 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
30125 remove <algorithm> include.
30127 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30130 * config/i386/i386.c: Include dojump.h.
30131 (expand_small_movmem_or_setmem,
30132 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
30134 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
30135 if dynamic_check != -1.
30137 2016-01-21 Jeff Law <law@redhat.com>
30139 PR middle-end/69347
30140 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
30141 record_temporary_equivalences. Rewritten to avoid unnecessary calls
30142 into dominated_by_p.
30143 (cprop_into_successor_phis): Avoid unnecessary tests.
30145 2016-01-22 Richard Henderson <rth@redhat.com>
30148 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
30149 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
30151 2016-01-22 Michael Matz <matz@suse.de>
30153 * system.h (string, algorithm): Include only conditionally.
30154 (new): Include always under C++.
30155 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
30156 * final.c (toplevel): Ditto.
30157 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
30158 * genconditions.c (write_header): Make gencondmd.c define
30160 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
30162 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
30163 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
30165 2016-01-22 Christian Bruel <christian.bruel@st.com>
30168 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
30170 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30173 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
30174 define_insn_and_split. Ensure operands[1] and operands[0] do not
30175 get assigned the same register.
30177 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
30179 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
30181 2016-01-22 Christian Bruel <christian.bruel@st.com>
30183 * config/arm/arm-c.c (arm_pragma_target_parse):
30184 Remove warn_builtin_macro_redefined overwrite.
30186 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30188 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
30189 flag_non_call_exceptions compatibility.
30191 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30194 * dwarf2out.c (add_child_die_after): New function.
30195 (dwarf_qual_info_t): New type.
30196 (dwarf_qual_info): New variable.
30197 (qualified_die_p): New function.
30198 (modified_type_die): For -fdebug-types-section, ensure
30199 canonical order of qualifiers. Put qualified DIEs adjacent
30200 to the corresponding non-qualified type DIE and search there
30201 for existing qualified DIEs.
30203 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30205 * doc/extend.texi (scalar_storage_order type attribute): Document
30206 restriction on type punning and aliasing, and remove future tense.
30208 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
30211 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
30214 2016-01-21 Jeff Law <law@redhat.com>
30216 PR middle-end/69347
30217 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
30218 useless call to record_temporary_equivalences.
30219 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
30220 allocate 10 slots in the bb_path vector and let it grow as needed.
30221 (fsm_find_control_statement_thread_paths): Similarly for the next_path
30224 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30226 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
30228 * configure: Regenerate.
30230 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
30232 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
30233 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
30235 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
30237 PR middle-end/66178
30238 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
30239 drop EXPAND_INITIALIZER.
30240 * rtl.h (contains_symbolic_reference_p): Declare.
30241 * rtlanal.c (contains_symbolic_reference_p): New function.
30242 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
30243 a subtraction into a NOT if symbolic constants are involved.
30245 2016-01-21 Anton Blanchard <anton@samba.org>
30246 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30249 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
30251 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30254 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30256 * config/microblaze/microblaze.c
30257 (get_branch_target): New.
30258 (insert_wic_for_ilb_runout): New.
30260 (microblaze_machine_dependent_reorg): New.
30261 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
30262 * config/microblaze/microblaze.md
30263 (UNSPEC_IPREFETCH): Define.
30264 (iprefetch): New pattern
30265 * config/microblaze/microblaze.opt
30266 (mxl-prefetch): New flag.
30268 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30270 * config/microblaze/microblaze.h
30271 (FIXED_REGISTERS): Update in macro.
30272 (CALL_USED_REGISTERS): Update in macro.
30274 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
30276 PR rtl-optimization/68920
30277 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
30280 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
30282 PR rtl-optimization/68990
30283 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
30284 pseudo instead of inheritance ones.
30286 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30287 Nick Clifton <nickc@redhat.com>
30291 * config/mips/mips.c (mips_compute_frame_info): Initialise
30292 args_size and hard_frame_pointer_offset fields of the frame
30293 structure before calling mips_global_pointer.
30295 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30297 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
30299 * configure: Regenerate.
30301 2016-01-21 Richard Biener <rguenther@suse.de>
30303 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
30305 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30307 * config/s390/s390.c (s390_asm_declare_function_size): Add code
30308 to actually emit the .size directive.
30310 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
30311 Jakub Jelinek <jakub@redhat.com>
30315 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
30316 args array size by one to avoid buffer overflow.
30318 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30320 * config/s390/s390.md (pool_section_start): Use switch_to_section
30321 to select proper read-only data section instead of hardcoding
30323 (pool_section_end): Use switch_to_section to match the above.
30325 2016-01-21 Richard Biener <rguenther@suse.de>
30327 PR tree-optimization/69378
30328 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
30329 (set_ssa_val_to): Use it for dominance checks taking into
30330 account not executable edges.
30332 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30335 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
30336 for bitsize instead of GET_MODE_PRECISION (mode).
30338 2016-01-20 Martin Sebor <msebor@redhat.com>
30341 * extend.texi (__sync Builtins): Clarify the semantics of
30342 __sync_fetch_and_OP built-ins on pointers.
30343 (__atomic Builtins): Same.
30345 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30346 Sebastian Pop <s.pop@samsung.com>
30348 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
30349 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
30350 (is_valid_rename): Same.
30351 (translate_isl_ast_to_gimple::get_rename): Same.
30352 (translate_isl_ast_to_gimple::rename_all_uses): Same.
30353 (translate_isl_ast_to_gimple::rename_uses): Same.
30354 (get_new_name): Check for close_phi nodes.
30355 (copy_loop_phi_args): Use phi_node_kind.
30356 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
30357 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
30359 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30360 Sebastian Pop <s.pop@samsung.com>
30362 Revert commit r229783.
30363 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
30364 Remove use of parameter_rename_map.
30365 (copy_def): Remove.
30366 (copy_internal_parameters): Remove.
30367 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
30368 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
30369 (free_sese_info): Do not free parameter_rename_map.
30370 (set_rename): Do not use parameter_rename_map.
30371 (rename_uses): Update call to set_rename.
30372 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
30373 * sese.h (parameter_rename_map_t): Remove.
30374 (struct sese_info_t): Remove field parameter_rename_map.
30376 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30377 Sebastian Pop <s.pop@samsung.com>
30379 * graphite-isl-ast-to-gimple.c: Fix comment.
30380 * graphite-scop-detection.c (defined_in_loop_p): New.
30381 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
30382 names defined in loop.
30384 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30385 Sebastian Pop <s.pop@samsung.com>
30387 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
30388 Discard unstructured if-then-else regions.
30390 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30391 Sebastian Pop <s.pop@samsung.com>
30393 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
30394 (cleanup_loop_iter_dom): Remove.
30395 (build_loop_iteration_domains): Remove.
30396 (build_scop_context): Remove.
30397 (build_scop_iteration_domain): Remove.
30398 (add_loop_constraints): New.
30399 (build_iteration_domains): New.
30400 (build_poly_scop): Call build_iteration_domains.
30402 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30403 Sebastian Pop <s.pop@samsung.com>
30405 * graphite-scop-detection.c
30406 (scop_detection::harmful_loop_in_region): Free dom and loops.
30407 (scop_detection::loop_body_is_valid_scop): Free bbs.
30409 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30410 Sebastian Pop <s.pop@samsung.com>
30412 * graphite-scop-detection.c (record_loop_in_sese): New.
30413 (gather_bbs::before_dom_children): Call record_loop_in_sese.
30414 (build_scops): Remove call to build_sese_loop_nests.
30415 * sese.c (sese_record_loop): Remove.
30416 (build_sese_loop_nests): Remove.
30417 (new_sese_info): Remove region->loops.
30418 (free_sese_info): Same.
30419 * sese.h (sese_contains_loop): Same.
30420 (build_sese_loop_nests): Remove.
30421 (sese_contains_loop): Remove.
30423 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30424 Sebastian Pop <s.pop@samsung.com>
30426 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
30427 loop_is_valid_in_scop.
30428 (scop_detection::harmful_stmt_in_region): Renamed
30429 harmful_loop_in_region.
30430 Call loop_is_valid_in_scop.
30432 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30433 Sebastian Pop <s.pop@samsung.com>
30435 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
30438 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30439 Sebastian Pop <s.pop@samsung.com>
30441 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
30442 * graphite.h (struct poly_bb): Remove field is_reduction.
30443 (PBB_IS_REDUCTION): Remove.
30445 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30446 Sebastian Pop <s.pop@samsung.com>
30448 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
30449 (add_pdr_constraints): Same.
30450 (scop_get_reads): Same.
30451 (scop_get_must_writes): Same.
30452 (scop_get_may_writes): Same.
30453 (scop_get_original_schedule): Same.
30454 (extend_schedule): Same.
30455 (apply_schedule_on_deps): Same.
30456 (carries_deps): Same.
30457 (compute_deps): Same.
30458 (scop_get_dependences): Same.
30459 * graphite-isl-ast-to-gimple.c
30460 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
30461 * graphite-optimize-isl.c (get_schedule_for_band): Same.
30462 (get_schedule_for_band_list): Same.
30463 (get_schedule_map): Same.
30464 (apply_schedule_map_to_scop): Same.
30465 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30466 (build_loop_iteration_domains): Same.
30467 (add_condition_to_pbb): Same.
30468 (add_param_constraints): Same.
30469 (pdr_add_memory_accesses): Same.
30470 (pdr_add_data_dimensions): Same.
30472 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30474 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
30477 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30479 * common.opt (feliminate-dwarf2-dups): Replace references to
30480 "DWARF 2" with just "DWARF".
30481 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
30482 * doc/extend.texi: Likewise.
30483 * doc/cpp.texi: Likewise.
30484 * doc/invoke.texi: Likewise.
30485 (Option Summary): Add -gdwarf to list of Debugging Options.
30486 (Debugging Options): Document -gdwarf.
30487 * doc/contrib.texi: Spell "DWARF" like that.
30489 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30491 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30492 warning. Fix up formatting.
30494 PR middle-end/67653
30495 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30496 attempt to mark memory input operand addressable and
30497 call prepare_gimple_addressable in that case. Don't adjust
30498 input_location for diagnostics, use error_at instead.
30500 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
30502 * config/rs6000/ppc-auxv.h: New file.
30503 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30504 (cpu_is): Likewise.
30505 (cpu_supports): Likewise.
30506 * config/rs6000/rs6000.c: include "ppc-auxv.h".
30507 (cpu_is_info): New variable.
30508 (cpu_supports_info): Likewise.
30509 (tcb_verification_symbol): Likewise.
30510 (cpu_builtin_p): Likewise.
30511 (cpu_expand_builtin): New function.
30512 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30513 (rs6000_init_builtins): Likewise.
30514 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30515 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30516 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30517 * configure: Regenerate.
30518 * config.in: Likewise.
30519 * doc/extend.texi (PowerPC Built-in Functions): Document
30520 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30522 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
30525 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30527 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30530 2016-01-20 Richard Henderson <rth@redhat.com>
30536 * tree.c (tm_define_builtin): New.
30537 (find_tm_vector_type): New.
30538 (build_tm_vector_builtins): New.
30539 (build_common_builtin_nodes): Call it.
30541 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
30543 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30544 (arm_fp_ok): Likewise.
30545 (arm_fp): Likewise.
30546 (arm_crypto): Likewise.
30548 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30549 Richard Biener <rguenther@suse.de>
30551 PR tree-optimization/69328
30552 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30553 vectors have same number of elements.
30554 (vectorizable_condition): Fix masked version recognition.
30556 2016-01-20 Richard Biener <rguenther@suse.de>
30558 PR tree-optimization/69345
30559 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30560 (VN_INFO_PTR_INFO): Likewise.
30561 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30562 info when it is equal between non-dominating SSA names.
30563 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30564 Make sure to look at original SSA infos.
30566 2016-01-20 Jeff Law <law@redhat.com>
30569 * config/m68k/predicates.md (pow2_m1_operand): New predicate
30571 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30572 (pc_or_label_operand): New predicate.
30573 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30574 tests for small integers that are 2^n - 1.
30576 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
30578 * doc/invoke.texi (Options Summary): Add '.' after @xref.
30580 2016-01-19 Jeff Law <law@redhat.com>
30582 PR middle-end/69347
30583 * tree-ssa-threadbackwards.c
30584 (fsm_find_control_statement_thread_paths): Do not try to lookup
30585 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30587 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30589 * doc/lto.texi: Remove text that says only Gold has linker plugin
30592 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
30594 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30595 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30596 the DIE accordingly.
30597 (modified_type_die): Add REVERSE parameter and pass it recursively,
30598 as well as to base_type_die. Adjust presence check accordingly.
30599 (base_type_for_mode): Adjust call to modified_type_die.
30600 (add_type_attribute): Add REVERSE parameter and pass it to
30602 (generic_parameter_die): Adjust call to add_type_attribute.
30603 (add_scalar_info): Likewise.
30604 (add_subscript_info): Likewise.
30605 (gen_array_type_die): Likewise.
30606 (gen_descr_array_type_die): Likewise.
30607 (gen_entry_point_die): Likewise.
30608 (gen_enumeration_type_die): Likewise.
30609 (gen_formal_parameter_die): Likewise.
30610 (gen_subprogram_die): Likewise.
30611 (gen_variable_die ): Likewise.
30612 (gen_const_die): Likewise.
30613 (gen_field_die): Likewise.
30614 (gen_pointer_type_die): Likewise.
30615 (gen_reference_type_die): Likewise.
30616 (gen_ptr_to_mbr_type_die): Likewise.
30617 (gen_inheritance_die): Likewise.
30618 (gen_subroutine_type_die): Likewise.
30619 (gen_typedef_die): Likewise.
30620 (force_type_die): Adjust call to modified_type_die.
30622 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
30624 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30625 flow throughout the file. Fix broken link to Objective-C 2.0
30627 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30630 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30632 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30634 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30637 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30638 (maybe_record_node): Record cxa_pure_virtual as the only possible
30639 target if there are not ohter candidates.
30640 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30642 2016-01-19 Richard Biener <rguenther@suse.de>
30644 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30645 (get_memory_order): Likewise.
30647 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
30649 * tree-vect-stmts.c (vectorizable_store): Check
30652 2016-01-19 David Malcolm <dmalcolm@redhat.com>
30655 * gcc.c (driver::decode_argv): Add call to
30656 init_opts_obstack before init_options_struct.
30657 * opts.c (init_opts_obstack): Remove idempotency.
30658 (init_options_struct): Replace call to init_opts_obstack
30659 with a gcc_assert to verify that it has already been called.
30660 * toplev.c (toplev::main): Add call to init_opts_obstack before
30661 calls to init_options_struct.
30662 (toplev::finalize): Move cleanup of opts_obstack next to
30663 cleanup of save_decoded_options, clearing the latter, and
30664 save_decoded_options_count.
30666 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30669 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30670 attribute to unconditional. Remove %? from output template.
30672 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30673 Jiong Wang <jiong.wang@arm.com>
30675 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30676 generated from different expand order.
30678 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30680 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30681 Add support for CCMP costing.
30683 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30685 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30686 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30687 (fccmpe<mode>): Likewise.
30688 (fcmp): Rename to fcmp and globalize pattern.
30690 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30691 (aarch64_gen_ccmp_next): Add FP support.
30693 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30695 * target.def (gen_ccmp_first): Update documentation.
30696 (gen_ccmp_next): Likewise.
30697 * doc/tm.texi (gen_ccmp_first): Update documentation.
30698 (gen_ccmp_next): Likewise.
30699 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30700 expand_ccmp_expr_1. Improve comments.
30701 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30702 (ccmp_ior<mode>): Remove pattern.
30703 (cmp<mode>): Remove expand.
30704 (cmp): Globalize pattern.
30705 (cstorecc4): Use cc_register.
30706 (mov<mode>cc): Remove ccmp_cc_register check.
30707 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30708 Simplify after removal of CC_DNE/* modes.
30709 (aarch64_ccmp_mode_to_code): Remove.
30710 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
30711 In 'k' case use integer as condition.
30712 (aarch64_nzcv_codes): Remove inverted cases.
30713 (aarch64_code_to_ccmode): Remove.
30714 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
30715 comparison with CC register to be used in folowing CCMP/branch/CSEL.
30716 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30717 pattern. Return the comparison with CC register. Invert conditions
30718 when bitcode is OR.
30719 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30720 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30722 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30724 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30725 instrumented_version.
30727 2016-01-19 Richard Biener <rguenther@suse.de>
30729 PR tree-optimization/69336
30730 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30731 handled components with get_ref_base_and_extent.
30732 (equal_mem_array_ref_p): Adjust.
30734 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30737 * shrink-wrap.c: Include valtrack.h.
30738 (move_insn_for_shrink_wrap): Add DEBUG argument. If
30739 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30740 in between insn and where it will be moved to. Call
30741 dead_debug_insert_temp.
30742 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
30743 first and dead_debug_local_finish at the end.
30744 For uses and defs bitmap, handle all regs in between REGNO and
30745 END_REGNO, not just the first one.
30747 2016-01-19 Richard Biener <rguenther@suse.de>
30749 PR tree-optimization/69352
30750 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30751 (equal_mem_array_ref_p): Constrain size and max size properly.
30752 Compare the reverse flag.
30754 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
30756 * ira.c (ira): Update regstat data if we deleted insns.
30758 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30760 PR rtl-optimization/68955
30761 PR rtl-optimization/64557
30762 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30763 here. Fix up formatting.
30764 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30766 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30769 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30770 assume that the node has body.
30771 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30774 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30776 * lto-streamer-out.c (lto_output): Do not stream instrumentation
30779 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30781 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30782 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30784 2016-01-19 Martin Jambor <mjambor@suse.cz>
30785 Martin Liska <mliska@suse.cz>
30786 Michael Matz <matz@suse.de>
30788 * Makefile.in (OBJS): Add new source files.
30789 (GTFILES): Add hsa.c.
30790 * common.opt (disable_hsa): New variable.
30791 (-Whsa): New warning.
30792 * config.in (ENABLE_HSA): New.
30793 * configure.ac: Treat hsa differently from other accelerators.
30794 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
30795 $enable_offloading.
30796 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
30797 * doc/install.texi (Configuration): Document --with-hsa-runtime,
30798 --with-hsa-runtime-include, --with-hsa-runtime-lib and
30799 --with-hsa-kmt-lib.
30800 * doc/invoke.texi (-Whsa): Document.
30801 (hsa-gen-debug-stores): Likewise.
30802 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
30803 to invoke offload compiler for hsa acclerator.
30804 * opts.c (common_handle_option): Determine whether HSA offloading
30805 should be performed.
30806 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
30807 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
30808 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
30809 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
30810 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
30811 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
30812 GF_OMP_FOR_KIND_GRID_LOOP.
30813 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
30814 (pp_gimple_stmt_1): Likewise.
30815 * gimple-walk.c (walk_gimple_stmt): Likewise.
30816 * gimple.c (gimple_build_omp_grid_body): New function.
30817 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
30818 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
30819 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
30820 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
30821 GF_OMP_TEAMS_GRID_PHONY.
30822 (gimple_statement_omp_single_layout): Updated comments.
30823 (gimple_build_omp_grid_body): New function.
30824 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
30825 (gimple_omp_for_grid_phony): New function.
30826 (gimple_omp_for_set_grid_phony): Likewise.
30827 (gimple_omp_parallel_grid_phony): Likewise.
30828 (gimple_omp_parallel_set_grid_phony): Likewise.
30829 (gimple_omp_teams_grid_phony): Likewise.
30830 (gimple_omp_teams_set_grid_phony): Likewise.
30831 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
30832 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
30833 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
30834 (BUILT_IN_GOMP_TARGET): Updated type.
30835 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
30836 (adjust_for_condition): New function.
30837 (get_omp_for_step_from_incr): Likewise.
30838 (extract_omp_for_data): Moved parts to adjust_for_condition and
30839 get_omp_for_step_from_incr.
30840 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
30841 (fixup_child_record_type): Bail out if receiver_decl is NULL.
30842 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
30843 (scan_omp_parallel): Do not create child functions for phony
30845 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
30846 (scan_omp_1_op): Checking assert we are not remapping to
30847 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
30848 (parallel_needs_hsa_kernel_p): New function.
30849 (expand_parallel_call): Register apprpriate parallel child
30850 functions as HSA kernels.
30851 (grid_launch_attributes_trees): New type.
30852 (grid_attr_trees): New variable.
30853 (grid_create_kernel_launch_attr_types): New function.
30854 (grid_insert_store_range_dim): Likewise.
30855 (grid_get_kernel_launch_attributes): Likewise.
30856 (get_target_argument_identifier_1): Likewise.
30857 (get_target_argument_identifier): Likewise.
30858 (get_target_argument_value): Likewise.
30859 (push_target_argument_according_to_value): Likewise.
30860 (get_target_arguments): Likewise.
30861 (expand_omp_target): Call get_target_arguments instead of looking
30862 up for teams and thread limit.
30863 (grid_expand_omp_for_loop): New function.
30864 (grid_arg_decl_map): New type.
30865 (grid_remap_kernel_arg_accesses): New function.
30866 (grid_expand_target_kernel_body): New function.
30867 (expand_omp): Call it.
30868 (lower_omp_for): Do not emit phony constructs.
30869 (lower_omp_taskreg): Do not emit phony constructs but create for them
30870 a temporary variable receiver_decl.
30871 (lower_omp_taskreg): Do not emit phony constructs.
30872 (lower_omp_teams): Likewise.
30873 (lower_omp_grid_body): New function.
30874 (lower_omp_1): Call it.
30875 (grid_reg_assignment_to_local_var_p): New function.
30876 (grid_seq_only_contains_local_assignments): Likewise.
30877 (grid_find_single_omp_among_assignments_1): Likewise.
30878 (grid_find_single_omp_among_assignments): Likewise.
30879 (grid_find_ungridifiable_statement): Likewise.
30880 (grid_target_follows_gridifiable_pattern): Likewise.
30881 (grid_remap_prebody_decls): Likewise.
30882 (grid_copy_leading_local_assignments): Likewise.
30883 (grid_process_kernel_body_copy): Likewise.
30884 (grid_attempt_target_gridification): Likewise.
30885 (grid_gridify_all_targets_stmt): Likewise.
30886 (grid_gridify_all_targets): Likewise.
30887 (execute_lower_omp): Call grid_gridify_all_targets.
30888 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
30889 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
30890 (tree_omp_clause): Added union field dimension.
30891 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
30892 * tree.c (omp_clause_num_ops): Added number of arguments of
30893 OMP_CLAUSE__GRIDDIM_.
30894 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
30895 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
30896 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
30897 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
30898 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
30899 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
30900 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
30901 * tree-pass.h (make_pass_gen_hsail): Declare.
30902 (make_pass_ipa_hsa): Likewise.
30903 * ipa-hsa.c: New file.
30904 * lto-section-in.c (lto_section_name): Add hsa section name.
30905 * lto-streamer.h (lto_section_type): Add hsa section.
30906 * timevar.def (TV_IPA_HSA): New.
30907 * hsa-brig-format.h: New file.
30908 * hsa-brig.c: New file.
30909 * hsa-dump.c: Likewise.
30910 * hsa-gen.c: Likewise.
30913 * toplev.c (compile_file): Call hsa_output_brig.
30914 * hsa-regalloc.c: New file.
30916 2016-01-18 Jeff Law <law@redhat.com>
30918 PR tree-optimization/69320
30919 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
30920 ranged object, do nothing if the RHS constant is not [0..1].
30921 (optimize_stmt): Comparing a boolean ranged object against a
30922 constant outside [0..1] results in a compile-time constant.
30924 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
30927 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
30929 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30930 (Option Summary): Update to reflect new section and moved options.
30931 (C++ Dialect Options): Move -fstats to new section.
30932 (Debugging Options): Move all dump, statistics, and other GCC
30933 developer options to new section. Rewrite section introduction
30934 and re-order remaining options to put the more basic ones first.
30935 (Optimization Options): Move -fira-verbose and -flto-report* to
30937 (Developer Options): New section incorporating moved options.
30938 * doc/cppopts.texi (-dM): Update cross-reference.
30940 2016-01-18 Richard Henderson <rth@redhat.com>
30943 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
30944 operands to pseudo only if CSE is expected. Split long immediate
30945 operands only after reload, and for the stack pointer.
30946 (*add<GPI>3_pluslong): Remove.
30947 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
30948 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
30949 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
30950 (*add<GPI>3 peepholes): New.
30951 (*add<GPI>3 splitters): New.
30952 * config/aarch64/constraints.md (Upl): New.
30953 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
30955 2016-01-18 Richard Biener <rguenther@suse.de>
30957 PR tree-optimization/69297
30958 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
30960 (vect_bb_vectorization_profitable_p): Clear visited flag again.
30962 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
30964 PR middle-end/68542
30965 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
30966 of mixind vector and scalar types.
30967 (fold_relational_const): Add handling of vector
30968 comparison with boolean result.
30969 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
30970 comparison of vector operands with boolean result for EQ/NE only.
30971 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
30972 (verify_gimple_cond): Likewise.
30973 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
30976 2016-01-18 Joseph Myers <joseph@codesourcery.com>
30978 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
30981 2016-01-18 Richard Biener <rguenther@suse.de>
30983 PR middle-end/69308
30984 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
30986 2016-01-18 Tom de Vries <tom@codesourcery.com>
30988 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
30990 2016-01-18 Tom de Vries <tom@codesourcery.com>
30992 * omp-low.c (set_oacc_fn_attrib): Make extern.
30993 * omp-low.h (set_oacc_fn_attrib): Declare.
30994 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
30995 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
30996 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
30997 Add and handle function parameter oacc_kernels_p.
30998 (find_reduc_addr, get_omp_data_i_param): New function.
30999 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
31000 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
31001 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
31002 Calculate dominance info. Skip loops that are not in a kernels region
31003 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
31004 (pass_parallelize_loops::execute): Call parallelize_loops with
31005 oacc_kernels_p argument.
31006 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
31007 New member function.
31008 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
31009 * passes.def: Add argument to pass_parallelize_loops instantation.
31011 2016-01-18 Tom de Vries <tom@codesourcery.com>
31013 * tree-parloops.c (pass_parallelize_loops::execute): Allow
31014 pass_parallelize_loops to be run outside the loop pipeline.
31016 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31018 * tree-scalar-evolution.c (follow_copies_to_constant): New.
31019 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
31021 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31024 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
31025 using get_ref_base_and_extent.
31026 (equal_mem_array_ref_p): New.
31027 (hashable_expr_equal_p): Add call to previous.
31029 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
31032 * tree-sra.c (disqualified_constants, constant_decl_p): New.
31033 (sra_initialize): Allocate disqualified_constants.
31034 (sra_deinitialize): Free disqualified_constants.
31035 (disqualify_candidate): Update disqualified_constants when appropriate.
31036 (create_access): Scan for constant-pool entries as we go along.
31037 (scalarizable_type_p): Add check against type_contains_placeholder_p.
31038 (maybe_add_sra_candidate): Allow constant-pool entries.
31039 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
31040 (initialize_constant_pool_replacements): New.
31041 (sra_modify_assign): Avoid mangling assignments created by previous,
31042 and don't generate writes into constant pool.
31043 (sra_modify_function_body): Call initialize_constant_pool_replacements.
31045 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
31047 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
31048 andnot instruction.
31049 (scalar_chain::convert_op): Likewise.
31050 * config/i386/i386.md (*andndi3_doubleword): New.
31052 2016-01-18 Richard Biener <rguenther@suse.de>
31054 PR tree-optimization/69170
31055 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
31056 building a vector from scalar results of a pattern stmt.
31058 2016-01-18 Jakub Jelinek <jakub@redhat.com>
31060 * haifa-sched.c (autopref_multipass_init): Work around
31061 -Wmaybe-uninitialized warning.
31063 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
31065 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
31066 against the constant 0.
31068 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31070 PR tree-optimization/68799
31071 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
31072 look up phi candidates in the statement-candidate map.
31073 (phi_add_costs): Likewise.
31074 (record_phi_increments): Likewise.
31075 (phi_incr_cost): Likewise.
31076 (ncd_with_phi): Likewise.
31077 (all_phi_incrs_profitable): Likewise.
31079 2016-01-17 Jakub Jelinek <jakub@redhat.com>
31081 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
31082 -Wmaybe-uninitialized warning.
31084 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
31086 * doc/invoke.texi (Invoking GCC): Add new section to menu.
31087 (Option Summary): Update to reflect new section and moved options.
31088 (C++ Dialect Options): Move -fvtable-verify and related options.
31089 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
31090 and profiling-related options.
31091 (Optimization Options): Move profile generation options and
31092 -fstack-protector and related options.
31093 (Instrumentation Options): New section incorporating moved options.
31094 (Code Generation Options): Move -finstrument-functions and
31095 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
31097 2016-01-16 Tom de Vries <tom@codesourcery.com>
31099 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
31101 2016-01-16 Tom de Vries <tom@codesourcery.com>
31103 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
31105 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
31107 * hash-table.h (hash_table::empty): Turn into an inline wrapper
31108 that checks whether the table is already empty. Rename the
31109 original implementation to...
31110 (hash_table::empty_slot): ...this new private function.
31112 2016-01-15 David Malcolm <dmalcolm@redhat.com>
31114 PR diagnostic/68899
31115 * diagnostic-show-locus.c (layout::print_source_line): Move x
31116 offset of line until after call to
31117 get_line_width_without_trailing_whitespace.
31119 2016-01-15 Jeff Law <law@redhat.com>
31121 PR tree-optimization/69270
31122 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
31123 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
31124 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
31125 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
31126 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
31127 ssa_name_has_boolean_range and constant_boolean_node.
31129 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
31131 PR rtl-optimization/69030
31132 * lra-spills.c (remove_pseudos): Check nrefs and make the function
31134 (spill_pseudos): Delete debug insn for dead pseudo.
31135 (lra_spill): Initiate spill_hard_reg and slots memory separately.
31137 2016-01-15 Jiong Wang <jiong.wang@arm.com>
31139 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
31141 (TYPES_UNOPUS): Likewise.
31142 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
31143 builtin type, from UNOP to UNOPUS.
31144 (lbtruncuv4sf): Likewise.
31145 (lbtruncuv2df): Likewise.
31146 (lrounduv2sf): Likewise.
31147 (lrounduv4sf): Likewise.
31148 (lrounduv2df): Likewise.
31149 (lroundusf): Likewise.
31150 (lroundusf): Likewise.
31151 (lceiluv2sf): Likewise.
31152 (lceiluv4sf): Likewise.
31153 (lceiluv2df): Likewise.
31154 (lceilusf): Likewise.
31155 (lceiludf): Likewise.
31156 (lflooruv2sf): Likewise.
31157 (lflooruv4sf): Likewise.
31158 (lflooruv2df): Likewise.
31159 (lfloorusf): Likewise.
31160 (lfloorudf): Likewise.
31161 (lfrintnuv2sf): Likewise.
31162 (lfrintnuv4sf): Likewise.
31163 (lfrintnuv2df): Likewise.
31164 (lfrintnusf): Likewise.
31165 (lfrintnudf): Likewise.
31166 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
31168 (vcvtq_u32_f32): Likewise.
31169 (vcvtq_u64_f64): Likewise.
31170 (vcvta_u32_f32): Likewise.
31171 (vcvtaq_u32_f32): Likewise.
31172 (vcvtaq_u64_f64): Likewise.
31173 (vcvtm_u32_f32): Likewise.
31174 (vcvtmq_u32_f32): Likewise.
31175 (vcvtmq_u64_f64): Likewise.
31176 (vcvtn_u32_f32): Likwise.
31177 (vcvtnq_u32_f32): Likewise.
31178 (vcvtnq_u64_f64): Likewise.
31179 (vcvtp_u32_f32): Likewise.
31180 (vcvtpq_u32_f32): Likewise.
31181 (vcvtpq_u64_f64): Likewise.
31182 (vcvtmd_u64_f64): Likewise.
31183 (vcvtms_u32_f32): Likewise.
31184 (vcvtad_u64_f64): Likewise.
31185 (vcvtas_u32_f32): Likewise.
31186 (vcvtnd_u64_f64): Likewise.
31187 (vcvtns_u32_f32): Likewise.
31188 (vcvtpd_u64_f64): Likewise.
31189 (vcvtps_u32_f32): Likewise.
31191 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31193 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
31194 CSEL of zero_extended registers.
31196 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31198 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31199 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
31201 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31203 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
31204 false when argument string is not found in the attributes table
31207 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
31210 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
31211 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
31212 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
31213 precision estimate.
31215 2016-01-15 Richard Biener <rguenther@suse.de>
31217 PR tree-optimization/66856
31218 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
31219 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
31220 (vect_create_new_slp_node): Increment stmt reference count.
31221 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
31222 an SLP tree before swapping operands.
31223 (vect_build_slp_tree): Likewise.
31224 (destroy_bb_vec_info): Free stmt info after SLP instances.
31225 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
31226 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
31227 (STMT_VINFO_NUM_SLP_USES): New macro.
31229 2016-01-15 Richard Biener <rguenther@suse.de>
31232 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
31233 (add_linkage_name): ... here.
31234 (gen_typedef_die): Use add_linkage_name_raw instead of
31235 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
31238 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
31240 * gimplify.c (oacc_default_clause): Decode reference and pointer
31241 types for both kernels and parallel regions.
31243 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
31245 PR middle-end/69246
31246 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
31248 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31250 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
31251 (convert_scalars_to_vector): Likewise.
31253 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
31255 * doc/extend.texi (Type Traits): Fix grammar.
31257 2016-01-15 Martin Jambor <mjambor@suse.cz>
31259 * tree-inline.c (remap_decl): Use existing dclarations if
31260 remapping a type and prevent_decl_creation_for_types.
31261 (replace_locals_stmt): Do an initial remapping of non-VLA typed
31262 decls first. Do real remapping with
31263 prevent_decl_creation_for_types set.
31264 * tree-inline.h (copy_body_data): New field
31265 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
31268 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31270 * config/s390/s390.opt (mmvcle): More verbose help text.
31272 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31274 * config/s390/s390.opt: Add period to -mzvector option text.
31276 2016-01-15 Richard Biener <rguenther@suse.de>
31278 PR tree-optimization/68961
31279 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
31280 of invariants in stores again.
31282 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31284 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
31286 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31288 * config/i386/i386.c (ix86_expand_branch): Don't split
31289 DI mode xor instruction to SI mode.
31291 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31294 * ipa-icf.c (sem_function::merge): Virtual functions may become
31295 reachable even if they address is not taken and there are no
31298 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31300 * lto-streamer-out.c (subtract_estimated_size): New function.
31301 (get_symbol_initial_value): Use it.
31303 2016-01-15 Christian Bruel <christian.bruel@st.com>
31306 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
31307 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
31308 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
31309 use add_builtin_function_ext_scope instead of add_builtin_function.
31310 (neon_set_p, neon_crypto_set_p): Remove.
31311 (arm_init_builtins): Always call arm_init_neon_builtins and
31312 arm_init_crypto_builtins.
31313 (arm_expand_builtin): Check that builtins are allowed for the arch.
31314 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
31315 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
31316 arm_init_neon_builtins call.
31318 2016-01-15 Richard Biener <rguenther@suse.de>
31320 PR tree-optimization/69117
31321 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
31322 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
31323 of the leader conservatively.
31324 (free_scc_vn): Restore original SSA name infos.
31326 2016-01-14 Jeff Law <law@redhat.com>
31328 PR tree-optimization/69270
31329 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
31330 single bit of precision, verify it's also unsigned.
31331 (record_edge_info): Use constant_boolean_node rather than fold_convert
31332 to convert boolean_true/boolean_false to the right type.
31334 2016-01-14 Richard Henderson <rth@redhat.com>
31337 * loop-doloop.c (record_reg_sets): New.
31338 (doloop_optimize): Reject the transform if the sequence
31339 clobbers registers live at the end of the loop block.
31340 (doloop_optimize_loops): Enable df_live if needed.
31342 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31344 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
31345 * config/rs6000/rs6000.c: Likewise.
31346 * config/rs6000/rs6000.h: Likewise.
31347 * config/rs6000/rs6000.md: Likewise.
31348 * doc/extend.texi: Likewsie.
31350 2016-01-14 Jeff Law <law@redhat.com>
31352 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
31355 2016-01-14 Richard Henderson <rth@redhat.com>
31359 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
31360 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
31361 instead of builtin_decl_declared_p to test for declaration.
31363 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
31365 * doc/loop.texi (Loop Analysis and Representation): Document
31366 loop_depth function.
31368 2016-01-14 Tom de Vries <tom@codesourcery.com>
31370 PR tree-optimization/68773
31371 * omp-low.c (expand_omp_target): Don't set force_output.
31372 * varpool.c (varpool_node::get_create): Same.
31373 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
31374 offload_funcs with force_output.
31376 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31379 * lra-eliminations.c (move_plus_up): Don't change anything if either
31380 the outer or inner subreg mode is not MODE_INT.
31381 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
31382 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
31384 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31386 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
31387 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
31388 reduc_uplus_@var{m}): Remove.
31389 * expr.c (expand_expr_real_2): Remove expansion path for
31390 reduc_[us](min|max|plus) optabs.
31391 * optabs-tree.c (scalar_reduc_to_vector): Remove.
31392 * optabs-tree.h (scalar_reduc_to_vector): Remove.
31393 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
31394 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
31395 * tree-vect-loop.c (vectorizable_reduction): Remove test for
31396 reduc_[us](min|max|plus) optabs.
31398 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31400 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
31401 (reduc_plus_scal_v2sf): New.
31402 (reduc_smax_v2sf): Rename to...
31403 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
31404 (reduc_smin_v2sf): Rename to...
31405 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
31407 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
31409 * alias.c (compare_base_symbol_refs): New function.
31410 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
31413 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31415 PR middle-end/68146
31416 PR tree-optimization/69155
31417 * tree-complex.c: Include cfganal.h.
31418 (phis_to_revisit): New variable.
31419 (extract_component): Add phiarg_p argument. Assert that returned
31420 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
31421 (update_phi_components): Partly rewrite to use loop over real/imag
31422 components instead of code duplication. If extract_component returns
31423 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
31424 create_tmp_reg into the PHI node instead, and mention the phi triplet
31425 in phis_to_revisit.
31426 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
31427 in phis_to_revisit at the end.
31429 2016-01-14 Richard Biener <rguenther@suse.de>
31431 PR tree-optimization/68060
31432 * tree-vect-loop.c (vect_is_simple_reduction): Check the
31433 outer loop reduction is only used in the inner loop before
31434 detecting a double reduction.
31436 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31439 * combine.c (expand_field_assignment): Punt if compute_mode is
31440 unsupported scalar mode.
31442 2016-01-14 Richard Biener <rguenther@suse.de>
31444 PR tree-optimization/66856
31445 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
31446 SLP node only if it built successfully.
31447 (vect_analyze_slp_instance): Adjust.
31449 2016-01-14 Jeff Law <law@redhat.com>
31451 PR tree-optimization/69270
31452 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
31453 (record_edge_info): Use it. Convert boolean_{true,false}_node
31454 to the type of op0.
31456 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
31459 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
31460 use block_ultimate_origin
31461 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
31463 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31465 * doc/invoke.texi (Submodel Options): Rename section to
31466 "Machine-Dependent Options" to better reflect its content.
31467 Rewrite introductory text to remove archaic CPU names.
31470 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31472 * doc/invoke.texi (Code Gen Options): Move section up in file,
31473 before target-specific options. Update menu and option summary
31474 to reflect the new section ordering.
31476 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31478 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
31479 (C++ Dialect Options): Add cross-reference to -std option.
31480 * doc/standards.texi (C++ Language): Document C++14 support.
31482 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31484 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
31485 for pack/unpack functions for __ibm128.
31486 (PACK_IF): Likewise.
31487 (UNPACK_IF): Likewise.
31489 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31490 support for __ibm128 pack/unpack functions.
31491 (rs6000_invalid_builtin): Likewise.
31492 (rs6000_init_builtins): Likewise.
31493 (rs6000_opt_masks): Likewise.
31495 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31496 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31498 (RS6000_BTM_COMMON): Likewise.
31500 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31501 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31502 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31503 128-bit floating point. Add support for the double values to be
31504 in Altivec registers for TF/IF packing and unpacking, but restrict
31505 TD packing sub-fields to be FPR registers. Don't allow overlapped
31506 register support for packing. Allow pack inputs to be memory
31507 locations. Don't build generator functions for unpack<mode>_dm
31508 and unpack<mode>_nodm.
31509 (unpack<mode>_dm): Likewise.
31510 (unpack<mode>_nodm): Likewise.
31511 (pack<mode>): Likewise.
31513 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31514 built-in functions to pack/unpack explicit __ibm128 values.
31515 (__builtin_unpack_ibm128): Likewise.
31517 * doc/extend.texi (PowerPC Built-in Functions): Document
31518 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31520 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
31523 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31524 Add new arg loc and pass it down as context.
31525 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31526 to the location to use for the warning.
31527 (check_function_arguments): New arg loc. All callers changed. Pass
31528 it to check_function_nonnull.
31529 * c-common.h (check_function_arguments): Adjust declaration.
31531 2016-01-13 Jakub Jelinek <jakub@redhat.com>
31533 PR tree-optimization/69156
31534 * gimple.c (validate_type): Removed.
31535 (gimple_builtin_call_types_compatible_p): Use
31536 useless_type_conversion_p instead of validate_type.
31537 * value-prof.c (gimple_stringop_fixed_value): Fold
31538 icall_size to correct type.
31540 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31542 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31545 2016-01-13 Richard Henderson <rth@redhat.com>
31548 * target.def (builtin_tm_load, builtin_tm_store): Remove.
31549 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31550 (ix86_builtin_tm_store): Remove.
31551 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31552 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31553 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31554 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31555 * doc/tm.texi: Rebuild.
31557 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31558 (BUILT_IN_TM_MEMCPY_RTWN): New.
31559 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31560 fallback from vector to integer helpers.
31561 (build_tm_load): Handle vector types directly, instead of
31563 (build_tm_store): Likewise.
31564 (expand_assign_tm): Prepare for register types not handled by
31565 the above. Copy them to memory and use memcpy.
31566 * tree.c (tm_define_builtin): New.
31567 (find_tm_vector_type): New.
31568 (build_tm_vector_builtins): New.
31569 (build_common_builtin_nodes): Call it.
31571 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
31573 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31574 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
31576 2016-01-13 Tom de Vries <tom@codesourcery.com>
31578 PR tree-optimization/69169
31579 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31580 handled_struct_type param.
31581 (create_variable_info_for, intra_create_variable_infos): Call
31582 create_variable_info_for_1 with extra arg.
31584 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
31586 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31587 and "armv8.1-a+crc" entries.
31589 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
31592 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31593 Change first operand predicate from register_or_constm1_operand
31594 to register_operand.
31595 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31596 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31597 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31598 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31599 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31600 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31601 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31602 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31603 comparison with constm1_rtx from vec_prefetch_gen part.
31605 2016-01-13 Richard Biener <rguenther@suse.de>
31607 PR tree-optimization/69013
31608 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31609 Exchange assert for a test.
31611 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31614 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31616 2016-01-13 Richard Biener <rguenther@suse.de>
31618 PR tree-optimization/69242
31619 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31620 assert with a check.
31622 2016-01-13 Richard Biener <rguenther@suse.de>
31624 PR tree-optimization/69186
31625 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31626 Properly guard vect_update_misalignment_for_peel call.
31628 2016-01-12 Jeff Law <law@redhat.com>
31630 PR tree-optimization/pr67755
31631 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31632 "need_profile_correction".
31633 (thread_block_1): Initialize new field to false by default. If we
31634 have multiple thread paths through a common joiner to different
31635 final targets, then set new field to true.
31636 (compute_path_counts): Only do count adjustment when it's really
31639 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31641 * doc/invoke.texi (Spec Files): Move section down in file, past
31642 all command-line option descriptions.
31644 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31646 PR middle-end/54809
31647 * doc/gty.texi: Remove documentation of mark_hook.
31648 * gengtype.c (struct write_types_data): Remove code to support
31649 mark_hook attribute.
31650 (walk_type): Likewise.
31651 (write_func_for_structure): Likewise.
31653 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31655 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31656 Directory Options, and -specs= to Overall Options.
31657 (Overall Options): Adjust similarly. Reorder to group related
31658 options together. Make -specs= cross-reference the spec file details.
31659 (Directory Options): Adjust similarly.
31661 2016-01-12 Jeff Law <law@redhat.com>
31663 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31665 2016-01-12 Olivier Hainque <hainque@adacore.com>
31667 * gcc.c (spec_undefvar_allowed): New global.
31668 (process_command): Set to true when running for --version or --help,
31670 (getenv_spec_function): When the variable is not defined, use the
31671 variable name as the variable value if we're allowed not to issue
31674 2016-01-12 Bin Cheng <bin.cheng@arm.com>
31676 PR tree-optimization/68911
31677 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31678 information computed for expression "init + nit * step".
31680 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31682 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
31683 about name of GCC executable. Remove deleted node from menu.
31684 (Directory Options) <-B>: Remove cross-reference to deleted node.
31685 (Target Options): Delete section.
31687 2016-01-12 Christian Bruel <christian.bruel@st.com>
31690 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31691 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31693 2016-01-12 Jakub Jelinek <jakub@redhat.com>
31696 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31697 aligned_mem is properly set for AVX512-VL floating point masked
31701 * ifcvt.c (cond_exec_process_if_block): When removing the last
31702 insn from then_bb, remove also any possible barriers that follow it.
31704 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
31708 * config/i386/iamcu.h (SIZE_TYPE): New macro.
31709 (PTRDIFF_TYPE): Likewise.
31710 (WCHAR_TYPE): Likewise.
31711 (WCHAR_TYPE_SIZE): Likewise.
31712 (STDINT_LONG32): Likewise.
31714 2016-01-12 Richard Biener <rguenther@suse.de>
31716 PR tree-optimization/69053
31717 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31718 convert initial value for cond reductions.
31720 2016-01-12 Richard Biener <rguenther@suse.de>
31722 PR tree-optimization/69007
31723 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31724 widen_sum after dot_prod and sad.
31726 2016-01-12 Richard Biener <rguenther@suse.de>
31728 PR tree-optimization/69168
31729 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31730 pattern stmt SLP type.
31731 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31732 end up unused so cope with that case.
31734 2016-01-12 Richard Biener <rguenther@suse.de>
31736 PR tree-optimization/69157
31737 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31738 stmts def type only during analyze phase.
31739 (vectorizable_call): Likewise.
31740 (vectorizable_simd_clone_call): Likewise.
31741 (vectorizable_conversion): Likewise.
31742 (vectorizable_assignment): Likewise.
31743 (vectorizable_shift): Likewise.
31744 (vectorizable_operation): Likewise.
31745 (vectorizable_store): Likewise.
31746 (vectorizable_load): Likewise.
31748 2016-01-12 Richard Biener <rguenther@suse.de>
31750 PR tree-optimization/69174
31751 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31753 (vectorizable_load): Properly compute the number of loads needed
31754 for permuted strided SLP loads and do not spuriously assign
31755 to SLP_TREE_VEC_STMTS.
31757 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
31759 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31760 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31761 (MD_EXEC_PREFIX): Remove.
31762 (MD_STARTFILE_PREFIX) Removee.
31763 (FILE_NAME_ABSOLUTE_P): Remove.
31764 (CPP_SPEC): Do not read macros from sys/version.h.
31765 (LINK_COMMAND_SPEC): Remove.
31766 (LOCAL_INCLUDE_DIR): Remove.
31767 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31768 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31769 (POST_LINK_SPEC): Define to invoke stubify after linker
31770 (LIBSTDCXX): Remove define
31771 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31772 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31773 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31774 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31775 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31776 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31777 (i386_djgpp_asm_named_section): Add propotype of new procedure
31779 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31780 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31781 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31782 in config/i386/djgpp.h).
31783 (STANDARD_STARTFILE_PREFIX_2): Define identical to
31784 STANDARD_STARTFILE_PREFIX_1.
31785 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31786 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31787 installation errors.
31788 (MAX_OFILE_ALIGNMENT): Define to 128.
31789 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
31791 * config/i386/djgpp.c: New file. Add implementation of
31792 i386_djgpp_asm_named_section.
31794 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
31796 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
31797 Add rule for building djgpp.o.
31799 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31801 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
31802 (rtx_is_swappable_p): Reductions are swappable.
31803 (insn_is_swappable_p): V2DF reductions are swappable.
31805 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
31807 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
31808 reloads for other unsupported memory operands.
31810 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31811 Jim Wilson <jim.wilson@linaro.org>
31814 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
31815 copy_to_mode_reg instead of force_reg.
31817 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31820 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
31821 TARGET_80387 is true.
31823 2016-01-11 Jakub Jelinek <jakub@redhat.com>
31826 * lra-eliminations.c (move_plus_up): Only move plus up
31827 if subreg of the constant can be simplified into constant
31828 and use the simplified subreg of the constant instead of
31829 the original constant.
31831 * fold-const.c (fold_convertible_p): Don't return true
31832 for conversion of VECTOR_TYPE to same sized integral type.
31833 (fold_convert_loc): Fix up formatting. Fold conversion of
31834 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
31835 instead of NOP_EXPR.
31837 PR tree-optimization/69214
31838 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
31839 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31842 PR tree-optimization/69207
31843 * tree-vect-slp.c (vect_get_constant_vectors): For
31844 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
31845 fold_convertible_p to vector_type's element type, and always
31846 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
31848 2016-01-11 Richard Biener <rguenther@suse.de>
31850 PR tree-optimization/69173
31851 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
31852 fixup the cycle if all stmts are in a pattern.
31854 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
31856 PR middle-end/68999
31857 * alias.c (base_alias_check): Move check for addresses with
31858 alignment ANDs before the call for compare_base_decls.
31859 (memrefs_conflict_p): Return -1 for different decls
31860 that went through alignment adjustments.
31862 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31864 PR rtl-optimization/68796
31865 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
31866 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
31867 and QImode comparisons against zero with CC_NZmode.
31868 * config/aarch64/iterators.md (short_mask): New mode_attr.
31870 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31872 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
31873 (<avx512>_store<mode>_mask): Likewise.
31875 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
31876 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31878 PR rtl-optimization/68841
31879 * ifcvt.c (struct noce_if_info): Add orig_x field.
31880 (bbs_ok_for_cmove_arith): Add to_rename parameter.
31881 Don't record conflicts on to_rename if it's present.
31882 Allow memory destinations in sets.
31883 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
31884 blocks, passing orig_x to the checks.
31885 (noce_process_if_block): Set if_info->orig_x appropriately.
31887 2016-01-11 Tom de Vries <tom@codesourcery.com>
31889 PR tree-optimization/69069
31890 * tree-parloops.c (create_parallel_loop): Add missing phi args.
31892 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
31894 PR rtl-optimization/68920
31895 * config/i386/i386.c (ix86_option_override_internal): Restrict number
31896 of conditional moves for RTL if-conversion to 1 for
31897 TARGET_ONE_IF_CONV_INSN.
31898 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
31899 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
31900 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
31901 parameter to restirct number of conditional moves for
31903 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
31904 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
31907 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
31910 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
31911 onepart vars. Fix typo in comment. Fix reversed condition in
31913 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
31916 * var-tracking.c (dump_onepart_variable_differences): New.
31917 (dataflow_set_different): If a detailed dump is requested,
31918 delay early returns and dump differences between onepart
31919 variables present before and after, and added variables.
31921 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
31924 * expr.c (expand_expr_real_1): For boolean vector constants
31925 with a scalar mode use const_scalar_mask_from_tree.
31926 (const_scalar_mask_from_tree): New.
31927 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
31928 assigned to a mask type to handle constants.
31930 2016-01-11 Martin Jambor <mjambor@suse.cz>
31933 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
31934 useless parameters if we cannot change function signature.
31936 2016-01-11 Martin Jambor <mjambor@suse.cz>
31939 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
31942 2016-01-11 Tom de Vries <tom@codesourcery.com>
31944 PR tree-optimization/69109
31945 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
31948 2016-01-11 Tom de Vries <tom@codesourcery.com>
31950 PR tree-optimization/69108
31951 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
31952 res is not used in a phi.
31954 2016-01-11 Yury Gribov <y.gribov@samsung.com>
31957 * common.opt (frandom-seed): Fix parameter name.
31958 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
31960 2016-01-11 Tom de Vries <tom@codesourcery.com>
31962 PR tree-optimization/69058
31963 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
31966 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
31968 * config/arc/arc.opt (mdiv-rem): Add period to the end.
31969 (mcode-density): Likewise.
31971 2016-01-10 Tom de Vries <tom@codesourcery.com>
31973 PR tree-optimization/69062
31974 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
31975 (parallelize_loops): Don't paralelize loop that has phi with address
31978 2016-01-10 Tom de Vries <tom@codesourcery.com>
31980 PR tree-optimization/69039
31981 * tree-parloops.c (try_create_reduction_list): Only allow single exit
31984 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
31986 PR middle-end/68743
31987 * match.pd: Require target has function_c99_misc before doing
31988 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
31990 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
31992 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
31994 * configure: Regenerate.
31996 2016-01-09 Jakub Jelinek <jakub@redhat.com>
31998 PR middle-end/50865
31999 PR tree-optimization/69097
32000 * fold-const.h (expr_not_equal_to): New prototype.
32001 * fold-const.c: Include stringpool.h and tree-ssanames.h.
32002 (expr_not_equal_to): New function.
32003 * match.pd (X % -Y is the same as X % Y): Don't optimize
32004 unless X is known not to be equal to minimum or Y is known
32005 not to be equal to -1.
32006 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
32007 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
32008 (simplify_stmt_using_ranges): Adjust caller.
32009 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
32010 substitute_and_fold.
32012 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
32014 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
32017 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32019 PR tree-optimization/69167
32020 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
32021 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
32023 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
32025 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
32026 Richard Biener <rguenther@suse.de>
32028 PR tree-optimization/68707
32029 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
32030 instances that can be handled via vect_load_lanes.
32032 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
32034 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
32035 if we can't determine address equivalence.
32036 * alias.c (compare_base_decl): Update for changed return value of
32037 symtab_node::equal_address_to.
32039 2016-01-08 Jason Merrill <jason@redhat.com>
32043 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
32044 * expr.c (store_field): Not here.
32045 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
32046 call with TREE_ADDRESSABLE type.
32047 * tree-cfg.c (verify_gimple_call): Adjust.
32049 2016-01-08 Olivier Hainque <hainque@adacore.com>
32051 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
32054 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
32056 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
32057 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
32058 (reduc_smin_v2sf): Rename to...
32059 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
32060 (reduc_splus_v2sf): Rename to...
32061 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
32063 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32065 PR tree-optimization/69162
32066 * gimplify.c (gimplify_va_arg_expr): Encode original type of
32067 valist argument in another argument.
32068 (gimplify_modify_expr): Adjust for the above change. Cleanup.
32069 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
32070 to determine the va_list type, build a MEM_REF instead of
32071 build_fold_indirect_ref.
32073 PR tree-optimization/69172
32074 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
32077 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
32079 PR tree-optimization/67781
32080 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
32081 and cmpnop in two steps: first the ones not accessed in original
32082 gimple expression in a endian independent way and then the ones not
32083 accessed in the final result in an endian-specific way.
32085 2016-01-08 Jakub Jelinek <jakub@redhat.com>
32087 PR tree-optimization/69083
32088 * tree-vect-slp.c (vect_get_constant_vectors): For
32089 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
32090 element type. If op is fold_convertible_p to vector_type's element
32091 type, use NOP_EXPR instead of VCE.
32093 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
32095 PR rtl-optimization/67778
32096 PR rtl-optimization/68634
32097 PR rtl-optimization/68909
32098 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
32099 block from the stack until done with it. Remove a superfluous
32100 bitmap set. Remove a superfluous bitmap test.
32102 2016-01-07 Martin Sebor <msebor@redhat.com>
32105 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
32106 constraint on the type of arguments.
32108 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
32110 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
32111 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
32112 unaligned_access on the gcc_options set.
32113 * config/arm/arm.c (arm_option_override_internal): Use
32114 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
32116 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
32119 * config/i386/i386.c (ix86_frame_pointer_required): Enable
32120 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
32122 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
32125 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32128 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32129 depending on frame_pointer_needed before remaining integer and SSE
32130 registers are saved.
32132 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
32135 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
32137 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
32140 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
32141 Use the "xBm" constraint.
32142 (float<sseintvecmodelower><mode>2<mask_name><round_name):
32144 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
32145 (sse_cvtsi2ssq<round_name>): Likewise.
32146 (sse_cvtss2si<round_name>): Likewise.
32147 (sse_cvtss2siq<round_name>): Likewise.
32148 (sse2_cvtsi2sdq<round_name>): Likewise.
32149 (sse2_cvtsd2si<round_name>): Likewise.
32150 (sse2_cvtsd2siq<round_name>): Likewise.
32151 * config/i386/subst.md (round_nimm_scalar_predicate): New
32154 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
32156 PR middle-end/67639
32157 * varasm.c (make_decl_rtl): Mark invalid register vars as
32160 PR rtl-optimization/66206
32161 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
32162 All callers changed.
32164 2016-01-07 Jakub Jelinek <jakub@redhat.com>
32166 PR tree-optimization/69141
32167 * tree-ssa-pre.c: Include langhooks.h.
32168 (eliminate_dom_walker::before_dom_children): Use
32169 lang_hooks.decl_printable_name instead of
32170 cgraph_node::get ()->name ().
32172 PR middle-end/68960
32173 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
32174 it and DECL_ALIGN too.
32176 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
32178 * config/mips/mips-ftypes.def: Sort to lexicographical order.
32180 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32183 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32184 depending on frame_pointer_needed before remaining integer and SSE
32185 registers are saved.
32187 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32189 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
32190 mode iterator with VSX_M2.
32191 (*p9_vecstore_<mode>): Likewise.
32192 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
32193 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
32194 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
32195 (define_split for VSX_LE128 stores): Likewise.
32196 (define_peephole2 for TImode LE swaps): Likewise.
32197 (define_split for VSX_LE128 post-reload stores): Likewise.
32199 2016-01-06 Marek Polacek <polacek@redhat.com>
32202 * convert.c (convert_to_integer_1): Adjust call to
32203 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
32204 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
32205 EXPR instead of ARG.
32206 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
32208 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32211 * doc/extend.texi (RL78 Variable Attributes): New section.
32213 2016-01-05 Marek Polacek <polacek@redhat.com>
32216 * builtins.c (get_memmodel): Use expansion point location rather than
32217 the input location. Call warning_at rather than warning.
32218 (expand_builtin_atomic_compare_exchange): Likewise.
32219 (expand_builtin_atomic_load): Likewise.
32220 (expand_builtin_atomic_store): Likewise.
32221 (expand_builtin_atomic_clear): Likewise.
32223 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32226 * config/i386/i386.c (ix86_expand_vector_logical_operator):
32227 Replace nonimmediate_operand with vector_operand.
32228 * config/i386/predicates.md (vector_operand): New predicate.
32229 (general_vector_operand): Replace nonimmediate_operand with
32231 * config/i386/sse.md: Replace nonimmediate_operand with
32232 vector_operand and m constraint with Bm constraint on SSE
32233 patterns with 16-byte memory operand.
32234 * config/i386/subst.md (round_nimm_predicate): Replace
32235 nonimmediate_operand with vector_operand.
32236 (round_saeonly_nimm_predicate): Likewise.
32237 (round_saeonly_nimm_scalar_predicate): New.
32239 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32242 * config/i386/constraints.md (Bm): New constraint.
32243 * config/i386/predicates.md (vector_memory_operand): New
32245 * config/i386/sse.md: Replace xm with xBm in plusminus and
32246 any_logic patterns.
32248 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32251 * doc/extend.texi (V850 Function Attributes): New section.
32252 (V850 Variable Attributes): New section.
32254 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32257 * doc/extend.texi (MicroBlaze Function Attributes): Document
32258 interrupt_handler and fast_interrupt attributes.
32260 2016-01-05 Sergei Trofimovich <siarheit@google.com>
32263 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
32264 for local symbolic operands.
32265 * config/ia64/predicates.md (local_symbolic_operand64): New
32268 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32270 PR rtl-optimization/68651
32271 * combine.c (combine_simplify_rtx): Canonicalize x + x into
32274 2016-01-05 Nathan Sidwell <nathan@acm.org>
32276 * alias.c (compare_base_decls): Use symtab_node::get.
32278 2016-01-05 Nick Clifton <nickc@redhat.com>
32281 * ira-costs.c (copy_cost): Initialise the t_icode field of the
32282 secondary_reload_info structure.
32285 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
32286 decls if weak support is available.
32288 2016-01-04 Martin Sebor <msebor@redhat.com>
32290 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
32292 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32294 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
32295 OPTION_MASK_P9_DFORM.
32297 * config/rs6000/constraints.md (wo constraint): New constraint for
32300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
32302 (rs6000_init_hard_regno_mode_ok): Likewise.
32304 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
32307 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
32308 expanders not to have constraints. Add support for ISA 3.0 xxperm
32309 instruction. Add support for fusing xxlor with xxperm.
32310 (altivec_vperm_<mode>_internal): Likewise.
32311 (altivec_vperm_v8hiv16qi): Likewise.
32312 (altivec_vperm_<mode>v16q): Likewise.
32313 (altivec_vperm_<mode>_uns): Likewise.
32314 (vperm_v8hiv4si): Likewise.
32315 (vperm_v16qiv8hi): Likewise.
32317 * doc/md.texi (RS/6000 constraints): Document wo constraint.
32319 2016-01-04 Jakub Jelinek <jakub@redhat.com>
32321 Update copyright years.
32323 * gcc.c (process_command): Update copyright notice dates.
32324 * gcov-dump.c (print_version): Ditto.
32325 * gcov.c (print_version): Ditto.
32326 * gcov-tool.c (print_version): Ditto.
32327 * gengtype.c (create_file): Ditto.
32328 * doc/cpp.texi: Bump @copying's copyright year.
32329 * doc/cppinternals.texi: Ditto.
32330 * doc/gcc.texi: Ditto.
32331 * doc/gccint.texi: Ditto.
32332 * doc/gcov.texi: Ditto.
32333 * doc/install.texi: Ditto.
32334 * doc/invoke.texi: Ditto.
32336 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32338 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
32339 modes larger than TImode as TImode if NEON is not enabled.
32341 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32344 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
32345 mode for %f0-%f31 only if TARGET_FPU.
32347 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32350 * config/sparc/sparc.c (scan_record_type): Take into account subfields
32351 to compute the PACKED_P predicate.
32352 (function_arg_record_value): Minor tweaks.
32354 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32356 * doc/install.texi (--with-multilib-list): Describe the meaning of the
32357 option for arm*-*-* targets.
32359 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
32361 * doc/extend.texi (Common Function Attributes): Move docs for
32362 MSP430-specific attributes to....
32363 (MSP430 Function Attributes): ...here. Delete the redundant
32364 entries and copy-edit the remaining text.
32365 (MSP430 Variable Attributes): Use uniform format for index
32366 entries and add a cross-reference to the corresponding function
32369 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
32371 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
32373 (x86 Options): Likewise.
32375 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32379 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
32380 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
32381 to corresponding attribute.
32383 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32385 * doc/extend.texi (Common Function Attributes) <noplt>: Move
32386 to correct alphabetization of table. Copy-edit and correct
32388 <stack_protect>: Likewise.
32389 <target_clones>: Likewise.
32391 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
32392 Correct punctuation.
32393 (Code Gen Options) <-fno-plt>: Copy-edit.
32395 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32398 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
32399 SI values. Explicitly convert SI to DI and vice-versa.
32401 2016-01-01 Jakub Jelinek <jakub@redhat.com>
32403 PR tree-optimization/69070
32404 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
32405 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
32408 * ubsan.c (ubsan_instrument_float_cast): Call
32409 initialize_sanitizer_builtins.
32412 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
32414 Copyright (C) 2016 Free Software Foundation, Inc.
32416 Copying and distribution of this file, with or without modification,
32417 are permitted in any medium without royalty provided the copyright
32418 notice and this notice are preserved.