1 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/s390/s390.c (s390_excess_precision): New.
4 (TARGET_C_EXCESS_PRECISION): Define.
6 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
8 * config/i386/i386.c (ix86_excess_precision): New.
9 (TARGET_C_EXCESS_PRECISION): Define.
11 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
13 * target.def (excess_precision): New hook.
14 * target.h (flt_eval_method): New.
15 (excess_precision_type): Likewise.
16 * targhooks.c (default_excess_precision): New.
17 * targhooks.h (default_excess_precision): New.
18 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
19 * doc/tm.texi: Regenerate.
21 2016-11-23 Martin Sebor <msebor@redhat.com>
24 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
25 set the minimum number of bytes for an unknown string to zero.
27 2016-11-23 Martin Jambor <mjambor@suse.cz>
28 Martin Liska <mliska@suse.cz>
30 * hsa-builtins.def: New file.
31 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
32 * builtins.def: Include hsa-builtins.def.
33 (DEF_HSA_BUILTIN): New macro.
34 * dumpfile.h (OPTGROUP_OPENMP): Define.
35 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
36 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
37 GF_OMP_FOR_GRID_GROUP_ITER.
38 (gimple_omp_for_grid_phony): Added checking assert.
39 (gimple_omp_for_set_grid_phony): Likewise.
40 (gimple_omp_for_grid_intra_group): New function.
41 (gimple_omp_for_set_grid_intra_group): Likewise.
42 (gimple_omp_for_grid_group_iter): Likewise.
43 (gimple_omp_for_set_grid_group_iter): Likewise.
44 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
45 previosuly only distribute loop was permitted.
46 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
47 (grid_get_kernel_launch_attributes): Support multiple HSA grid
49 (grid_expand_omp_for_loop): Likewise and also support standalone
50 distribute constructs. New parameter INTRA_GROUP, updated both users.
51 (grid_expand_target_grid_body): Support standalone distribute
53 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
54 (pass_data_expand_omp_ssa): Likewise.
55 (pass_data_omp_device_lower): Likewsie.
56 (pass_data_lower_omp): Likewise.
57 (pass_data_diagnose_omp_blocks): Likewise.
58 (pass_data_oacc_device_lower): Likewise.
59 (pass_data_omp_target_link): Likewise.
60 (grid_lastprivate_predicate): New function.
61 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
63 (lower_omp_for): Support standalone distribute constructs.
64 (grid_prop): New type.
65 (grid_safe_assignment_p): Check for assignments to group_sizes, new
67 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
69 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
70 optimization info messages.
71 (grid_find_single_omp_among_assignments): Likewise.
72 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
73 (grid_parallel_clauses_gridifiable): New function.
74 (grid_inner_loop_gridifiable_p): Likewise.
75 (grid_dist_follows_simple_pattern): Likewise.
76 (grid_gfor_follows_tiling_pattern): Likewise.
77 (grid_call_permissible_in_distribute_p): Likewise.
78 (grid_handle_call_in_distribute): Likewise.
79 (grid_dist_follows_tiling_pattern): Likewise.
80 (grid_target_follows_gridifiable_pattern): Support standalone distribute
82 (grid_var_segment): New enum.
83 (grid_mark_variable_segment): New function.
84 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
85 if a new argument says so.
86 (grid_process_grid_body): New function.
87 (grid_eliminate_combined_simd_part): Likewise.
88 (grid_mark_tiling_loops): Likewise.
89 (grid_mark_tiling_parallels_and_loops): Likewise.
90 (grid_process_kernel_body_copy): Support standalone distribute
92 (grid_attempt_target_gridification): New grid variable holding overall
93 gridification state. Support standalone distribute constructs and
95 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
96 * hsa.h (hsa_bb): Add method method append_phi.
97 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
98 occurences in all files too.
99 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
100 (is_a_helper <hsa_insn_br *>::test): New function.
101 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
103 (hsa_insn_signal): Make a direct descendant of
104 hsa_insn_basic. Add memorder constructor parameter and
105 m_memory_order and m_signalop member variables.
106 (hsa_insn_queue): Changed constructor parameters to common form.
107 Added m_segment and m_memory_order member variables.
108 (hsa_summary_t): Add private member function
109 process_gpu_implementation_attributes.
110 (hsa_function_summary): Rename m_binded_function to
112 (hsa_insn_basic_p): Remove typedef.
113 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
114 (hsa_op_reg_p): Remove typedef.
115 (hsa_function_representation): Change hsa_op_reg_p into plain
117 (hsa_insn_phi): Removed new and delete operators.
118 (hsa_insn_br): Likewise.
119 (hsa_insn_cbr): Likewise.
120 (hsa_insn_sbr): Likewise.
121 (hsa_insn_cmp): Likewise.
122 (hsa_insn_mem): Likewise.
123 (hsa_insn_atomic): Likewise.
124 (hsa_insn_signal): Likewise.
125 (hsa_insn_seg): Likewise.
126 (hsa_insn_call): Likewise.
127 (hsa_insn_arg_block): Likewise.
128 (hsa_insn_comment): Likewise.
129 (hsa_insn_srctype): Likewise.
130 (hsa_insn_packed): Likewise.
131 (hsa_insn_cvt): Likewise.
132 (hsa_insn_alloca): Likewise.
133 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
134 (process_gpu_implementation_attributes): New function.
135 (link_functions): Move some functionality into it. Adjust after
136 renaming m_binded_functions to m_bound_functions.
137 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
138 to the list of instructions with no output registers.
139 (get_in_type): Return this if it is a register of
141 (hsa_get_declaration_name): Moved to...
142 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
143 temporary string on an obstack instead from ggc.
144 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
145 down to two overloads.
146 (hsa_allocp_operand_address): Removed.
147 (hsa_allocp_operand_immed): Likewise.
148 (hsa_allocp_operand_reg): Likewise.
149 (hsa_allocp_operand_code_list): Likewise.
150 (hsa_allocp_operand_operand_list): Likewise.
151 (hsa_allocp_inst_basic): Likewise.
152 (hsa_allocp_inst_phi): Likewise.
153 (hsa_allocp_inst_mem): Likewise.
154 (hsa_allocp_inst_atomic): Likewise.
155 (hsa_allocp_inst_signal): Likewise.
156 (hsa_allocp_inst_seg): Likewise.
157 (hsa_allocp_inst_cmp): Likewise.
158 (hsa_allocp_inst_br): Likewise.
159 (hsa_allocp_inst_sbr): Likewise.
160 (hsa_allocp_inst_call): Likewise.
161 (hsa_allocp_inst_arg_block): Likewise.
162 (hsa_allocp_inst_comment): Likewise.
163 (hsa_allocp_inst_queue): Likewise.
164 (hsa_allocp_inst_srctype): Likewise.
165 (hsa_allocp_inst_packed): Likewise.
166 (hsa_allocp_inst_cvt): Likewise.
167 (hsa_allocp_inst_alloca): Likewise.
168 (hsa_allocp_bb): Likewise.
170 (hsa_init_data_for_cfun): Initialize obstack.
171 (hsa_deinit_data_for_cfun): Release memory of the obstack.
172 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
173 (hsa_op_reg::operator new): Likewise.
174 (hsa_op_address::operator new): Likewise.
175 (hsa_op_code_list::operator new): Likewise.
176 (hsa_op_operand_list::operator new): Likewise.
177 (hsa_insn_basic::operator new): Likewise.
178 (hsa_insn_phi::operator new): Likewise.
179 (hsa_insn_br::operator new): Likewise.
180 (hsa_insn_sbr::operator new): Likewise.
181 (hsa_insn_cmp::operator new): Likewise.
182 (hsa_insn_mem::operator new): Likewise.
183 (hsa_insn_atomic::operator new): Likewise.
184 (hsa_insn_signal::operator new): Likewise.
185 (hsa_insn_seg::operator new): Likewise.
186 (hsa_insn_call::operator new): Likewise.
187 (hsa_insn_arg_block::operator new): Likewise.
188 (hsa_insn_comment::operator new): Likewise.
189 (hsa_insn_srctype::operator new): Likewise.
190 (hsa_insn_packed::operator new): Likewise.
191 (hsa_insn_cvt::operator new): Likewise.
192 (hsa_insn_alloca::operator new): Likewise.
193 (hsa_init_new_bb): Likewise.
194 (hsa_bb::append_phi): New function.
195 (gen_hsa_phi_from_gimple_phi): Use it.
196 (get_symbol_for_decl): Fix dinstinguishing between
197 global and local functions. Put local variables into a segment
198 according to their attribute or static flag, if there is one.
199 (hsa_insn_br::hsa_insn_br): New.
200 (hsa_insn_br::operator new): Likewise.
201 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
202 (query_hsa_grid_nodim): New function.
203 (multiply_grid_dim_characteristics): Likewise.
204 (gen_get_num_threads): Likewise.
205 (gen_get_num_teams): Reimplemented.
206 (gen_get_team_num): Likewise.
207 (gen_hsa_insns_for_known_library_call): Updated calls to the above
209 (get_memory_order_name): Removed.
210 (get_memory_order): Likewise.
211 (hsa_memorder_from_tree): New function.
212 (gen_hsa_ternary_atomic_for_builtin): Renamed to
213 gen_hsa_atomic_for_builtin, can also create signals.
214 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
215 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
216 (hsa_insn_atomic): Fix function comment.
217 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
218 ancestor constructor and initialization of new member variables.
219 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
221 (hsa_get_host_function): Handle functions with no bound CPU
222 implementation. Fix binded to bound.
223 (get_brig_function_name): Likewise.
224 (HSA_SORRY_ATV): Remove semicolon after macro.
225 (HSA_SORRY_AT): Likewise.
226 (omp_simple_builtin::generate): Add missing semicolons.
227 (hsa_insn_phi::operator new): Removed.
228 (hsa_insn_br::operator new): Likewise.
229 (hsa_insn_cbr::operator new): Likewise.
230 (hsa_insn_sbr::operator new): Likewise.
231 (hsa_insn_cmp::operator new): Likewise.
232 (hsa_insn_mem::operator new): Likewise.
233 (hsa_insn_atomic::operator new): Likewise.
234 (hsa_insn_signal::operator new): Likewise.
235 (hsa_insn_seg::operator new): Likewise.
236 (hsa_insn_call::operator new): Likewise.
237 (hsa_insn_arg_block::operator new): Likewise.
238 (hsa_insn_comment::operator new): Likewise.
239 (hsa_insn_srctype::operator new): Likewise.
240 (hsa_insn_packed::operator new): Likewise.
241 (hsa_insn_cvt::operator new): Likewise.
242 (hsa_insn_alloca::operator new): Likewise.
243 (get_symbol_for_decl): Accept CONST_DECLs, put them to
245 (gen_hsa_addr): Also process CONST_DECLs.
246 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
248 (gen_hsa_unary_operation): Make sure the function does
249 not use bittype source type for firstbit and lastbit operations.
250 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
252 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
254 (emit_branch_insn): Renamed to emit_cond_branch_insn.
255 Emit the width stored in the class.
256 (emit_generic_branch_insn): New function.
257 (emit_insn): Call emit_generic_branch_insn.
258 (emit_signal_insn): Remove obsolete comment. Update
259 member variable name, pick a type according to profile.
260 (emit_alloca_insn): Remove obsolete comment.
261 (emit_atomic_insn): Likewise.
262 (emit_queue_insn): Get segment and memory order from the IR object.
263 (hsa_brig_section): Make allocate_new_chunk, chunks
264 and cur_chunk provate, add a default NULL parameter to add method.
265 (hsa_brig_section::add): Added a new parameter, store pointer to
266 output data there if it is non-NULL.
267 (emit_function_directives): Use this new parameter instead of
268 calculating the pointer itself, fix function comment.
269 (hsa_brig_emit_function): Add forgotten endian conversion.
270 (hsa_output_kernels): Remove unnecessary building of
271 kernel_dependencies_vector_type.
272 (emit_immediate_operand): Declare.
273 (emit_directive_variable): Also emit initializers of CONST_DECLs.
274 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
275 (verify_function_arguments): Properly detect variadic
277 * hsa-dump.c (hsa_width_specifier_name): New function.
278 (dump_hsa_insn_1): Dump generic branch instructions, update signal
279 member variable name. Special dumping for queue objects.
280 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
281 m_binded_functions to m_bound_functions. Copy externally visible flag
283 (ipa_hsa_write_summary): Likewise.
284 (ipa_hsa_read_section): Likewise.
286 2016-11-23 Richard Biener <rguenther@suse.de>
288 PR tree-optimization/78396
289 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
290 vectorize try vectorizing an if-converted body using BB vectorization.
292 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
293 Alan Hayward <alan.hayward@arm.com>
294 David Sherwood <david.sherwood@arm.com>
296 * rtlanal.c (subreg_get_info): Use more local variables.
297 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
298 occupies at least one register. Assume that full hard registers
299 have consistent endianness. Share previously-duplicated if block.
300 Rework the main handling so that it operates on independently-
301 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
302 to check lowpart offsets, without trying to find an equivalent
303 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
304 as a final register-endianness correction.
306 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
312 * combine.c (make_compound_operation_int): Do not convert a subreg of
313 a non-constant logical shift right to a zero_extract. Handle the case
314 where some zero bits have been shifted into the range covered by that
317 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
318 Alan Hayward <alan.hayward@arm.com>
319 David Sherwood <david.sherwood@arm.com>
321 * rtl.h (subreg_size_offset_from_lsb): Declare.
322 (subreg_offset_from_lsb): New function.
323 (subreg_size_lowpart_offset): Declare.
324 (subreg_lowpart_offset): Turn into an inline function.
325 (subreg_size_highpart_offset): Declare.
326 (subreg_highpart_offset): Turn into an inline function.
327 * emit-rtl.c (subreg_size_lowpart_offset): New function.
328 (subreg_size_highpart_offset): Likewise
329 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
331 2016-11-23 Richard Biener <rguenther@suse.de>
333 PR tree-optimization/78482
334 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
335 (remove_forwarder_block_with_phi): When merging with a loop
336 header creates a new latch reset number of iteration information
339 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
341 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
342 (*ashrsi3_extend0): ...this. Accept constant integers.
343 (*ashrsi3_extend2): Rename to...
344 (*ashrsi3_extend1): ...this.
345 (*ashrsi3_extend2): New pattern.
346 (*lshrsi3_extend1): Accept constant integers.
347 (*lshrsi3_extend2): Fix condition on operand 2.
349 2016-11-23 Martin Liska <mliska@suse.cz>
351 * config/i386/i386.c: Initialize function pointer to NULL.
353 2016-11-23 Bin Cheng <bin.cheng@arm.com>
355 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
356 for A == C1 ? A : C2 to below.
357 * match.pd: Move from above to here:
358 (cond (eq (convert1? x) c1) (convert2? x) c2)
359 -> (cond (eq x c1) c1 c2).
361 2016-11-23 Bin Cheng <bin.cheng@arm.com>
363 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
364 for A cmp C1 ? A : C2 to below, also simplify remaining code.
365 * match.pd: Move and extend simplification from above to here:
366 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
367 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
368 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
370 2016-11-23 Martin Liska <mliska@suse.cz>
371 Martin Jambor <mjambor@suse.cz>
373 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
375 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
378 * opts.c (finish_options): Set -fsyntax-only if running self
381 2016-11-23 Richard Biener <rguenther@suse.de>
384 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
385 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
387 2016-11-23 Richard Biener <rguenther@suse.de>
390 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
393 2016-11-23 Richard Biener <rguenther@suse.de>
394 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
396 PR tree-optimization/78154
397 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
398 returns it's argument and the argument is nonnull.
399 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
400 ATT_RETNONNULL_NOTHROW_LEAF.
401 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
402 ATTR_RETNONNULL_NOTHROW_LEAF.
403 (BUILT_IN_STPCPY): Likewise.
404 (BUILT_IN_STPNCPY): Likewise.
405 (BUILT_IN_MEMPCPY_CHK): Likewise.
406 (BUILT_IN_STPCPY_CHK): Likewise.
407 (BUILT_IN_STPNCPY_CHK): Likewise.
408 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
409 (BUILT_IN_STRNCAT): Likewise.
410 (BUILT_IN_STRNCPY): Likewise.
411 (BUILT_IN_MEMSET_CHK): Likewise.
412 (BUILT_IN_STRCAT_CHK): Likewise.
413 (BUILT_IN_STRCPY_CHK): Likewise.
414 (BUILT_IN_STRNCAT_CHK): Likewise.
415 (BUILT_IN_STRNCPY_CHK): Likewise.
417 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
419 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
420 * fold-const.h (tree_expr_nonzero_p) : Declare.
421 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
423 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
425 * system.h (HAVE_DESIGNATED_INITIALIZERS,
426 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
428 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
429 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
430 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
432 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
435 * config/avr/constraints.md (Csp): Widen range to [-11..6].
436 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
437 of RCALLs in prologue to 3.
439 2016-11-22 Michael Collison <michael.collison@arm.com>
441 * config/aarch64/aarch64-protos.h
442 (aarch64_and_split_imm1, aarch64_and_split_imm2)
443 (aarch64_and_bitmask_imm): New prototypes
444 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
445 New overloaded function to create bit mask covering the
446 lowest to highest bits set.
447 (aarch64_and_split_imm2): New overloaded functions to create bit
448 mask of zeros between first and last bit set.
449 (aarch64_and_bitmask_imm): New function to determine if a integer
450 is a valid two instruction "and" operation.
451 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
452 allowing wider range of constants with "and" operations.
453 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
454 "and" operator from matching restricted constant range used for
455 ior and xor operators.
456 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
457 for constants in "and" operantions.
458 (UsP constraint): New DImode constraint for constants in "and" operations.
459 * config/aarch64/iterators.md (lconst2): New mode iterator.
460 (LOGICAL2): New code iterator.
461 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
463 (aarch64_logical_and_operand): New predicate allowing extended constants
464 for "and" operations.
466 2016-11-22 Walter Lee <walt@tilera.com>
468 * config/tilegx/tilegx.md (trap): New pattern.
469 * config/tilepro/tilepro.md (trap): Likewise.
471 2016-11-22 Walter Lee <walt@tilera.com>
473 * config/tilegx/tilegx.md (*zero_extract): Use
474 define_insn_and_split instead of define_insn; Handle pos + size >
476 (*sign_extract): Likewise.
478 2016-11-22 Marek Polacek <polacek@redhat.com>
480 PR tree-optimization/78455
481 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
483 2016-11-22 Ian Lance Taylor <iant@golang.org>
487 * godump.c (go_format_type): Always pass alignment as 1 when
488 calling go_append_padding at end of struct/union.
490 2016-11-22 Jakub Jelinek <jakub@redhat.com>
493 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
494 _mm512_setzero_hi): Removed.
495 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
496 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
497 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
498 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
499 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
500 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
501 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
502 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
503 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
504 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
505 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
506 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
507 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
508 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
509 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
510 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
511 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
512 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
513 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
514 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
515 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
516 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
517 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
518 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
519 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
520 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
521 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
522 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
523 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
524 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
525 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
526 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
527 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
528 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
529 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
530 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
531 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
532 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
533 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
534 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
535 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
536 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
537 _mm512_setzero_qi or _mm512_setzero_hi.
538 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
539 _mm512_maskz_dbsad_epu8): Formatting fixes.
540 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
541 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
542 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
543 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
544 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
545 _mm512_setzero_qi or _mm512_setzero_hi.
547 2016-11-22 Nathan Sidwell <nathan@acm.org>
549 * gcc-ar.c (main): Fix indentation.
550 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
551 * ggc-page.c (move_ptes_to_front): Fix formatting.
552 * hsa-dump.c (dump_has_cfun): Fix indentation.
553 * sel-sched-ir.h: Remove trailing blank lines.
555 2016-11-22 Jakub Jelinek <jakub@redhat.com>
556 Alexander Monakov <amonakov@ispras.ru>
558 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
559 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
560 (omp_clause_code_name): Add _simt_ name.
561 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
562 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
563 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
564 (scan_omp_simd): New function.
565 (scan_omp_1_stmt): Use it in target regions if needed.
566 (omp_max_vf): Don't max with omp_max_simt_vf.
567 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
568 OMP_CLAUSE__SIMT_ is present.
569 (lower_rec_input_clauses): Compute maybe_simt from presence of
571 (lower_lastprivate_clauses): Likewise.
572 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
573 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
574 * internal-fn.def (GOMP_USE_SIMT): New internal function.
575 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
577 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
579 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
580 (expand_GOMP_SIMT_VF): New.
581 (expand_GOMP_SIMT_LAST_LANE): New.
582 (expand_GOMP_SIMT_ORDERED_PRED): New.
583 (expand_GOMP_SIMT_VOTE_ANY): New.
584 (expand_GOMP_SIMT_XCHG_BFLY): New.
585 (expand_GOMP_SIMT_XCHG_IDX): New.
586 * internal-fn.def (GOMP_SIMT_LANE): New.
588 (GOMP_SIMT_LAST_LANE): New.
589 (GOMP_SIMT_ORDERED_PRED): New.
590 (GOMP_SIMT_VOTE_ANY): New.
591 (GOMP_SIMT_XCHG_BFLY): New.
592 (GOMP_SIMT_XCHG_IDX): New.
593 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
594 (create_omp_child_function): ...here. Set "omp target entrypoint"
595 or "omp declare target" attribute based on is_gimple_omp_offloaded.
596 (omp_max_simt_vf): New. Use it...
597 (omp_max_vf): ...here.
598 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
599 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
600 (lower_omp_ordered): Likewise, for "ordered" lowering.
601 (expand_omp_simd): Add SIMT transforms.
602 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
603 (execute_omp_device_lower): New.
604 (pass_data_omp_device_lower): New.
605 (pass_omp_device_lower): New pass.
606 (make_pass_omp_device_lower): New.
607 * passes.def (pass_omp_device_lower): Position new pass.
608 * tree-pass.h (PROP_gimple_lomp_dev): Define.
609 (make_pass_omp_device_lower): Declare.
611 2016-11-22 Jakub Jelinek <jakub@redhat.com>
614 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
615 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
617 (_mm_maskz_load_epi64): Likewise.
618 (_mm_setzero_hi): Removed.
619 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
621 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
622 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
623 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
624 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
625 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
626 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
627 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
628 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
629 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
630 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
631 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
633 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
634 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
635 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
636 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
637 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
638 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
639 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
640 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
641 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
642 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
643 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
644 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
645 instead of _mm_setzero_hi.
646 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
647 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
648 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
649 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
650 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
651 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
652 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
653 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
654 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
655 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
656 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
657 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
658 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
659 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
660 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
661 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
662 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
663 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
664 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
665 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
666 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
667 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
668 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
669 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
670 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
671 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
673 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
674 instead of _mm_setzero_hi.
675 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
676 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
677 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
678 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
679 _mm_setzero_si128 instead of _mm_setzero_di.
680 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
681 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
682 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
683 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
684 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
685 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
686 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
687 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
688 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
689 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
690 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
691 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
692 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
693 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
694 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
695 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
696 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
697 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
698 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
699 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
700 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
701 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
702 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
703 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
704 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
705 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
706 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
707 _mm512_maskz_insertf32x8): Formatting fixes.
708 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
709 _mm_setzero_si128 instead of _mm_setzero_di.
710 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
711 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
712 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
713 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
714 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
715 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
716 _mm_setzero_si128 instead of _mm_setzero_di.
717 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
719 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
720 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
721 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
722 _mm_setzero_si128 instead of _mm_setzero_hi.
723 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
724 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
725 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
726 instead of _mm_setzero_di.
727 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
728 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
730 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
731 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
733 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
735 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
736 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
737 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
739 2016-11-22 Carl Love <cel@us.ibm.com>
741 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
742 equal and vector compare not equal. The vector compares take two
743 arguments of type vector bool char, vector bool short, vector bool int,
744 vector bool long long with the same return type.
745 * doc/extend.texi: Update built-in documentation file for the new
748 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
750 * Makefile.in ($(lang_checks_parallelized)): Fix detection
753 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
755 * config.gcc: Allow new rmprofile value for configure option
756 --with-multilib-list.
757 * config/arm/t-rmprofile: New file.
758 * doc/install.texi (--with-multilib-list): Document new rmprofile value
761 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
764 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
765 register operand in alternatives 4,5,6.
767 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
770 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
771 in save register mask if it is needed.
773 2016-11-22 Jakub Jelinek <jakub@redhat.com>
775 PR tree-optimization/78436
776 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
777 (shift_bytes_in_array, shift_bytes_in_array_right,
778 merged_store_group::apply_stores): Formatting fixes.
779 (clear_bit_region): Likewise. Use memset.
780 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
781 instead of EXPR and inerted instead of inserted. Use memset instead
782 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
786 * expmed.c (expand_divmod): Use wide_int for computation of
787 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
788 Use size <= HOST_BITS_PER_WIDE_INT instead of
789 HOST_BITS_PER_WIDE_INT >= size.
791 PR tree-optimization/78445
792 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
793 any_complicated_phi, version loop even if flag_tree_loop_if_convert
794 is 1. Formatting fix.
796 2016-11-22 Martin Liska <mliska@suse.cz>
799 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
800 (sem_function::get_hash): Use the new field.
801 (sem_function::parse): Remove an argument from ctor.
802 (sem_variable::parse): Likewise.
803 (sem_variable::get_hash): Use the new field.
804 (sem_item_optimizer::read_section): Use new ctor and set hash.
805 * ipa-icf.h: _hash is removed from sem_item::sem_item,
806 sem_variable::sem_variable, sem_function::sem_function.
808 2016-11-21 Jeff Law <law@redhat.com>
811 * config/cris/cris.md: Don't call copy_to_mode_reg unless
812 can_create_pseudo_p is true.
814 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
817 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
818 *rotldi3_insert_7): New define_insns.
820 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
822 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
823 so that DImode can be allocated to FP/vector registers in more
824 cases, and we can avoid direct move operations. If the register
825 needs reloading, prefer GPRs over FP/vector registers. In the
826 case of FPR vs. Altivec registers, prefer FPR registers unless we
827 have the ISA 3.0 reg+offset scalar instructions.
828 (movdi_internal64): Likewise.
830 2016-11-21 Jakub Jelinek <jakub@redhat.com>
833 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
834 for tmp simd array if DECL_NAME (parm) is NULL.
836 2016-11-20 Jeff Law <law@redhat.com>
839 * config/m68k/predicates.md (swap_peephole_relational_operator): New
841 * config/m68k/m68k.md (relational tests against 65535/65536): New
844 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
846 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
848 2016-11-21 Martin Sebor <msebor@redhat.com>
850 * doc/invoke.texi (-fprintf-return-value): Document that option
851 is enabled by default.
853 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
855 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
856 for-loop declaration of loop variable.
857 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
858 * config/avr/avr.c (avr_popcount_each_byte)
859 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
860 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
861 (avr_expand_epilogue, avr_function_arg_advance)
862 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
863 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
864 (avr_adjust_reg_alloc_order, output_reload_in_const)
865 (avr_conditional_register_usage, avr_find_unused_d_reg)
866 (avr_map_decompose, avr_fold_builtin): Same.
868 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
870 * config/avr/avr.c (avr_popcount): Remove static function.
871 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
873 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
875 * arm.opt (mapcs-float): Delete option.
876 * arm.c (arm_option_override): Remove hunk relating to
878 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
880 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
882 * tree-tailcall.c (process_assignment): Simplify the check for
883 a valid copy, allowing the source to be a local variable as
885 (find_tail_calls): Allow copies between local variables to follow
886 the call. Allow the result to be stored in any local variable,
887 even if it's an aggregate.
888 (eliminate_tail_call): Check whether the result is an SSA name
889 before updating its SSA_NAME_DEF_STMT.
891 2016-11-21 David Malcolm <dmalcolm@redhat.com>
893 PR preprocessor/78324
894 * input.c (get_substring_ranges_for_loc): Fail gracefully if
895 -ftrack-macro-expansion has a value other than 2.
897 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
899 PR rtl-optimization/78400
900 * shrink-wrap.c (try_shrink_wrapping_separate): Call
901 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
902 and df_update_exit_block_uses.
904 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
907 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
908 new default-enabled warning..
909 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
910 (BT_PTR_CONST_STRING): Updated.
911 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
912 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
913 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
914 (strftime): Update builtin function.
915 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
916 * tree.h (const_tm_ptr_type_node): New type node.
917 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
918 const_tm_ptr_type_node.
920 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
922 PR tree-optimization/78413
923 * tree-if-conv.c (versionable_outer_loop_p): Require that both
924 inner and outer loop latches have single predecessors.
926 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
929 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
930 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
932 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
934 * rtl.h: Adjust prototype.
935 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
936 (dead_or_set_regno_p): Likewise.
938 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
940 * rtl.h: Adjust prototype.
941 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
943 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
945 * function.c (contains): Change argument type to rtx_insn *.
946 (prologue_contains): Likewise.
947 (epilogue_contains): Likewise.
948 (prologue_epilogue_contains): Likewise.
949 * function.h: Adjust prototype.
951 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
953 * optabs.c (emit_libcall_block): Change argument type to
955 * optabs.h: Adjust prototype.
957 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
959 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
960 (fixup_reorder_chain): Adjust.
961 * cfgrtl.h: Adjust prototype.
963 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
965 * rtl.h: Adjust prototype.
966 * rtlanal.c (replace_label_in_insn): Change argument type to
969 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
971 * config/v850/v850.c (expand_prologue): Adjust.
972 (expand_epilogue): Likewise.
973 * expr.c (init_expr_target): Likewise.
974 * genrecog.c (print_subroutine): Always make the argument type
976 * recog.h: Adjust prototype.
978 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
980 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
981 up variables to make some rtx_insn *.
982 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
983 * config/arc/arc.c: Likewise.
984 * config/arm/arm.c: Likewise.
985 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
986 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
988 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
990 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
992 * config/arm/arm.c (legitimize_pic_address): Change to use
993 rtx_insn * as the type of variables.
994 (arm_pic_static_addr): Likewise.
995 (arm_emit_movpair): Likewise.
996 * config/c6x/c6x.c (reorg_split_calls): Likewise.
997 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
998 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
999 * config/frv/frv.md: Likewise.
1000 * config/i386/i386-protos.h: Likewise.
1001 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1002 (ix86_split_fp_branch): Likewise.
1003 (predict_jump): Likewise.
1004 * config/ia64/ia64.c: Likewise.
1005 * config/mcore/mcore.c: Likewise.
1006 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1007 * config/s390/s390.c: Likewise.
1008 * config/s390/s390.md: Likewise.
1009 * config/spu/spu.md: Likewise.
1010 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
1011 * lower-subreg.c (resolve_simple_move): Likewise.
1013 2016-11-20 Jeff Law <law@redhat.com>
1016 * reload.h (struct target_reload): Make x_double_reg_address_ok
1018 * reload.c (find_reloads_address): Check if double_reg_address_ok
1019 is true for the mode of the memory reference.
1020 * reload1.c (init_reload): Initialize double_reg_address_ok for
1023 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
1026 * tree-ssa-uninit.c: Define new global max_phi_args.
1027 (compute_uninit_opnds_pos): Use max_phi_args.
1028 (prune_uninit_phi_opnds): Same.
1029 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
1030 missing NUM_PREDS in function comment.
1031 (can_one_predicate_be_invalidated_p): New.
1032 (can_chain_union_be_invalidated_p): New.
1033 (flatten_out_predicate_chains): New.
1034 (uninit_ops_invalidate_phi_use): New.
1035 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
1037 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1039 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
1040 * match.pd (A /[ex] B CMP C): New simplifications.
1042 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1044 * match.pd (0 / X, X / X, X % X): New simplifications.
1046 2016-11-19 Jakub Jelinek <jakub@redhat.com>
1048 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
1049 when checking if callee's isa flags are subset of caller's isa flags.
1050 Fix comment wording.
1052 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
1053 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
1054 instead and using = 0 instead of &= 0.
1056 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
1057 ix86_add_new_builtins): Formatting fixes.
1058 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
1059 (ix86_get_builtin): Likewise.
1061 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
1062 don't initialize it, don't use it for the case where it isn't
1063 provable %{z} nor using the same argument, instead move merge
1064 argument into a new pseudo and use that as target. Formatting fixes.
1066 2016-11-19 Jeff Law <law@redhat.com>
1069 * config/m68k/m68k.md (bsetdreg): New pattern.
1070 (bchgdreg, bclrdreg): Likewise.
1072 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
1075 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1076 instead of force_reg.
1077 (sh_expand_setmem): Likewise.
1079 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
1081 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
1083 2016-11-18 Walter Lee <walt@tilera.com>
1085 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1086 end-of-bundle marker for consecutive barriers.
1088 2016-11-18 Walter Lee <walt@tilera.com>
1090 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1092 2016-11-18 Jakub Jelinek <jakub@redhat.com>
1095 * multiple_target.c (get_attr_len): Start with argnum and increment
1096 argnum on every arg. Use strchr in a loop instead of counting commas
1098 (get_attr_str): Increment argnum for every comma in the string.
1099 (separate_attrs): Use for instead of while loop, simplify.
1100 (expand_target_clones): Rename defenition argument to definition.
1101 Free attrs and attr_str even when diagnosing errors. Temporarily
1102 change input_location around targetm.target_option.valid_attribute_p
1103 calls. Don't emit warning or errors if that function fails.
1105 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
1108 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
1109 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
1110 abbrev_opt_base_type_end only by increasing die_abbrev, before
1112 (optimize_abbrev_table): Don't change abbrev numbers of
1113 base types and CU or optimize implicit consts in them if
1114 calc_base_type_die_sizes has been called during build_abbrev_table.
1115 (calc_base_type_die_sizes): If abbrev_opt_start, set
1116 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
1118 2016-11-18 Jeff Law <law@redhat.com>
1121 * config/m68k/m68k.c (moveq feeding equality comparison): New
1123 * config/m68k/predicates.md (addq_subq_operand): New predicate.
1124 (equality_comparison_operator): Likewise.
1126 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1128 * rtlanal.c (load_extend_op): Move to...
1129 * rtl.h: ...here and make inline.
1131 2016-11-18 Terry Guo <terry.guo@arm.com>
1132 Thomas Preud'homme <thomas.preudhomme@arm.com>
1134 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
1135 * config/arm/arm-opts.h: Include arm-flags.h.
1136 (struct arm_arch_core_flag): Define.
1137 (arm_arch_core_flags): Define.
1138 * config/arm/arm-protos.h: Include arm-flags.h
1139 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
1140 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
1141 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
1142 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
1143 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
1144 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
1145 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
1146 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
1147 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
1148 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
1149 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
1150 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
1151 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
1152 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
1153 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
1154 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
1155 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
1156 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
1157 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
1158 ARM_FSET_CPU_SUBSET): Move to ...
1159 * config/arm/arm-flags.h: This new file.
1160 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
1161 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
1162 (TARGET_MODE_SPECS): Define.
1163 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
1165 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1167 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
1168 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
1169 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
1170 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
1171 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
1172 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
1173 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
1174 missing and make value unsigned.
1175 (arm_feature_set): Use unsigned entries instead of unsigned long.
1177 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1179 Re-apply after PR bootstrap/77359 is fixed:
1180 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1182 * explow.c (get_dynamic_stack_size): Take known alignment of stack
1183 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
1186 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1189 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
1190 variables in functions calling alloca. Also update the ASCII
1192 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
1193 (STACK_DYNAMIC_OFFSET): Likewise.
1194 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
1195 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
1198 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1199 Alan Hayward <alan.hayward@arm.com>
1200 David Sherwood <david.sherwood@arm.com>
1202 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
1203 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
1204 (add_const_value_attribute): Likewise.
1205 * explow.c (plus_constant): Likewise.
1206 * expmed.c (expand_mult, make_tree): Likewise.
1207 * expr.c (convert_modes): Likewise.
1208 * loop-doloop.c (doloop_optimize): Likewise.
1209 * postreload.c (reload_cse_simplify_set): Likewise.
1210 * simplify-rtx.c (simplify_const_unary_operation): Likewise
1211 (simplify_binary_operation_1, simplify_const_binary_operation):
1213 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
1214 * wide-int.h: Update documentation to recommend rtx_mode_t
1215 instead of std::make_pair.
1217 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1218 Alan Hayward <alan.hayward@arm.com>
1219 David Sherwood <david.sherwood@arm.com>
1221 * tree.h (SET_DECL_MODE): New macro.
1222 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
1223 (expand_gimple_basic_block): Likewise.
1224 * function.c (split_complex_args): Likeise.
1225 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1226 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
1227 * stor-layout.c (layout_decl, relayout_decl): Likewise.
1228 (finish_bitfield_representative): Likewise.
1229 * tree.c (make_node_stat): Likewise.
1230 * tree-inline.c (remap_ssa_name): Likewise.
1231 (tree_function_versioning): Likewise.
1232 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1233 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1234 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1235 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1236 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1237 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1238 * varasm.c (make_debug_expr_from_rtl): Likewise.
1240 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
1242 PR rtl-optimization/71785
1243 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
1244 (duplicate_computed_gotos): New function.
1245 (pass_duplicate_computed_gotos::execute): Rewrite.
1247 2016-11-17 Jeff Law <law@redhat.com>
1250 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
1251 barrier prior to deallocating the stack.
1253 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1255 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
1256 to make better use of cmem loads in the case where a single bit is
1258 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
1260 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
1262 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
1264 (isa_names_table): Handle new features.
1266 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
1267 Andrew Senkevich <andrew.senkevich@intel.com>
1269 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
1270 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
1271 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
1272 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
1273 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
1274 * config/i386/avx5124fmapsintrin.h: New file.
1275 * config/i386/avx5124vnniwintrin.h: Ditto.
1276 * config/i386/constraints.md (h): New constraint.
1277 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
1278 * config/i386/driver-i386.c (host_detect_local_cpu):
1279 Detect avx5124fmaps, avx5124vnniw.
1280 * config/i386/i386-builtin-types.def: Add types
1281 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
1282 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
1283 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
1284 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
1285 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
1286 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
1287 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
1288 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
1289 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
1290 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
1291 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
1292 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
1293 __builtin_ia32_vp4dpwssds_mask): New.
1294 * config/i386/i386-c.c (ix86_target_macros_internal):
1295 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
1296 * config/i386/i386-modes.def: Fixed comment typos, added new
1297 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
1298 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
1300 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
1301 (ix86_option_override_internal): Handle new options.
1302 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
1304 (ix86_expand_builtin): Handle new builtins.
1305 (ix86_additional_allocno_class_p): New.
1306 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
1307 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
1308 (reg_class): Add MOD4_SSE_REGS.
1309 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
1310 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
1311 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
1312 avx5124vnniwintrin.h.
1313 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
1314 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
1315 (define_mode_iterator IMOD4): New.
1316 (define_mode_attr imod4_narrow): Ditto.
1317 (define_insn "mov<mode>"): Ditto.
1318 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1319 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1320 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1321 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1322 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1323 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1324 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1325 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1326 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1327 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1328 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1329 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1330 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1331 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1332 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1333 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1334 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1335 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1336 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1337 * genmodes.c (mode_size_inline): Extend return type.
1338 * machmode.h (mode_size, mode_base_align): Extend type.
1340 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
1343 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1344 the appropriate checks for SFmode/DFmode load/stores in GPR
1346 (fusion_addis_mem_combo_store): Likewise.
1347 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1348 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1349 d-form instructions for traditional Altivec registers.
1350 (emit_fusion_p9_load): Likewise.
1351 (emit_fusion_p9_store): Likewise.
1352 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1353 early clobber from scratch register. Do not match if the register
1354 being stored is the scratch register.
1355 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1356 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1357 instructions for traditional Altivec registers.
1358 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1359 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1360 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1362 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1365 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1366 being live in the function and lr needing to be saved. Distinguish
1367 between already saved pushable registers and registers to push.
1368 Check for LR being an available pushable register.
1370 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1372 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1373 string input is a string constant.
1374 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1375 via cmpstrnsi even if neither string is constant.
1377 2016-11-17 Jakub Jelinek <jakub@redhat.com>
1380 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1381 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1382 instead, return false if it is NULL, or doesn't fit into uhwi, or
1383 is larger or equal to targetm.max_anchor_offset.
1385 2016-11-17 Pip Cet <pipcet@gmail.com>
1386 Eric Botcazou <ebotcazou@adacore.com>
1388 PR rtl-optimization/78355
1389 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1390 needs to deal with unaligned accesses.
1391 * doc/tm.texi: Regenerate.
1392 * lra-constraints.c (simplify_operand_subreg): Only invoke
1393 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1395 2016-11-17 David Malcolm <dmalcolm@redhat.com>
1397 * input.c (selftest::test_lexer_string_locations_long_line): New
1399 (selftest::test_lexer_string_locations_raw_string_multiline): New
1401 (selftest::input_c_tests): Call the new functions, via
1402 for_each_line_table_case.
1404 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1406 * config/aarch64/aarch64.md (mov<mode>): Call
1407 aarch64_split_dimode_const_store on DImode constant stores.
1408 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1410 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1413 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1414 Richard Biener <rguenther@suse.de>
1416 PR tree-optimization/77848
1417 * tree-if-conv.c (tree_if_conversion): Always version loops unless
1418 the user specified -ftree-loop-if-convert.
1420 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1423 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1424 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1425 *thumb2_strd_base_neg): Recognize insn regardless of
1426 current_tune->prefer_ldrd_strd.
1427 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1430 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1432 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1435 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1437 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1439 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1440 * config/arc/arc-cpus.def (quarkse_em): Add.
1441 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1442 * config/arc/arc-opts.h (FPX_QK): Define.
1443 * config/arc/arc-tables.opt: Regenerate.
1444 * config/arc/arc.c (gen_compare_reg): Change.
1445 (arc_register_move_cost): Avoid Dy,Dx moves.
1446 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1447 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1448 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1450 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1451 (fix_truncsfsi2_fpu): Rename.
1452 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1453 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1454 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1455 * config/arc/t-multilib: Regenerate.
1457 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
1459 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1461 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1462 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1463 (avr_rtx_costs_1, extra_constraint_Q): Same.
1464 (avr_address_cost): Use SUBREG_P if possible.
1466 2016-11-17 Richard Biener <rguenther@suse.de>
1469 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1470 non-local goto into CFG.
1472 2016-11-17 Richard Biener <rguenther@suse.de>
1474 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1475 backward compatibility.
1476 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1477 * tree-if-conv.c (pass_if_conversion::gate): Do not test
1478 flag_tree_loop_if_convert_stores.
1479 (pass_if_conversion::execute): Likewise.
1481 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1483 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1484 const_double code before calling aarch64_float_const_zero_rtx_p.
1486 2016-11-17 Richard Biener <rguenther@suse.de>
1488 PR tree-optimization/78306
1489 * ipa-inline-analysis.c (initialize_inline_failed): Do not
1490 inhibit inlining if function calls cilk_spawn.
1491 (can_inline_edge_p): Likewise.
1493 2016-11-17 Richard Biener <rguenther@suse.de>
1496 * fold-const.c (negate_expr_p): Fix multiplication case.
1498 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
1501 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1503 (TARGET_INIT_LIBFUNCS): Delete definition and...
1504 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1507 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
1509 * config/netbsd-stdint.h: New.
1510 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1511 (x86_64-*-netbsd*): Likewise.
1513 2016-11-16 Andrew PInski <apinski@cavium.com>
1515 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1516 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1517 flag_aarch64_verbose_cost instead of checking for details dump.
1518 (aarch64_rtx_costs_wrapper): Likewise.
1520 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1522 PR rtl-optimization/78378
1523 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1524 inner only if pos is 0. Fix up formatting.
1526 2016-11-17 Alan Modra <amodra@gmail.com>
1528 PR rtl-optimization/78325
1529 PR rtl-optimization/70890
1530 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1533 2016-11-16 Jason Merrill <jason@redhat.com>
1535 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1537 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1538 Richard Biener <rguenther@suse.de>
1540 PR tree-optimization/77848
1541 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1542 an outer loop, only save basic block aux information for the inner
1544 (versionable_outer_loop_p): New function.
1545 (tree_if_conversion): Version the outer loop instead of the inner
1546 one if the pattern will be recognized for outer-loop
1549 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1551 * gcc/bb-reorder.c: Remove 'toplev.h' include.
1552 (pass_partition_blocks::gate): No longer check
1553 user_defined_section_attribute, instead check the function decl
1554 for a section attribute.
1555 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1556 set user_defined_section_attribute.
1557 * gcc/final.c (rest_of_handle_final): Likewise.
1558 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1559 * gcc/toplev.h: Remove declaration of
1560 user_defined_section_attribute.
1562 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1564 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1565 Explicitly switch between JR and JRC for the table jump. Adjust
1568 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1570 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1571 `insn_count' to 11 rather than 16.
1573 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1575 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1576 `ltu' rather than `leu' operation in the RTL pattern
1578 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1580 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1581 missing <d> instruction prefixes throughout. Correct
1584 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1586 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1587 rather than R_MIPS_JALR relocation in microMIPS code. Do not
1588 cancel short delay slots in PIC call relaxation.
1590 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1592 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1593 general register with general register or ARM constant into SP
1596 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1599 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1600 that loop->header == body_bb if broken_loop.
1602 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
1604 * tree-ssa-math-opts.c (bswap_replace): Remove test
1605 of SLOW_UNALIGNED_ACCESS.
1607 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
1609 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1610 is selected. Pass -mgomp to offload compiler in OpenMP case.
1611 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1612 declaration from nvptx.c.
1613 (nvptx_gen_shuffle): Declare.
1614 (nvptx_output_set_softstack): Declare.
1615 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1616 (need_softstack_decl): New variable.
1617 (need_unisimt_decl): New variable.
1618 (diagnose_openacc_conflict): New. Use it...
1619 (nvptx_option_override): ...here. Handle TARGET_GOMP.
1620 (nvptx_encode_section_info): Handle "shared" attribute.
1621 (write_as_kernel): Restrict to OpenACC target regions.
1622 (init_softstack_frame): New.
1623 (nvptx_init_unisimt_predicate): New.
1624 (write_omp_entry): New. Use it...
1625 (nvptx_declare_function_name): ...here to emit OpenMP target region
1626 entrypoints. Handle TARGET_SOFT_STACK. Call
1627 nvptx_init_unisimt_predicate.
1628 (nvptx_output_set_softstack): New.
1629 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
1630 (nvptx_gen_shuffle): Export.
1631 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
1633 (nvptx_print_operand): Fix handling of instruction predicates.
1634 (nvptx_get_unisimt_master): New helper function.
1635 (nvptx_get_unisimt_predicate): Ditto.
1636 (nvptx_call_insn_is_syscall_p): Ditto.
1637 (nvptx_unisimt_handle_set): Ditto.
1638 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
1639 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
1640 (nvptx_handle_shared_attribute): New. Use it...
1641 (nvptx_attribute_table): ... here (new entry).
1642 (nvptx_record_offload_symbol): Handle NULL attributes.
1643 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
1644 (nvptx_simt_vf): New.
1645 (TARGET_SIMT_VF): Define.
1646 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
1647 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
1648 -muniform-simt option is active.
1649 (STACK_SIZE_MODE): Define.
1650 (FIXED_REGISTERS): Adjust.
1651 (SOFTSTACK_SLOT_REGNUM): New.
1652 (SOFTSTACK_PREV_REGNUM): New.
1653 (REGISTER_NAMES): Adjust.
1654 (struct machine_function): New fields.
1655 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
1656 (UNSPEC_VOTE_BALLOT): Ditto.
1657 (UNSPEC_LANEID): Ditto.
1658 (UNSPECV_NOUNROLL): Ditto.
1659 (atomic): New attribute.
1660 (predicable): New attribute. Generate predicated forms via
1662 (br_true): Mark as not predicable.
1664 (br_true_uni): Ditto.
1665 (br_false_uni): Ditto.
1667 (trap_if_true): Ditto.
1668 (trap_if_false): Ditto.
1669 (nvptx_fork): Ditto.
1670 (nvptx_forked): Ditto.
1671 (nvptx_joining): Ditto.
1672 (nvptx_join): Ditto.
1673 (nvptx_barsync): Ditto.
1674 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
1675 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
1676 (allocate_stack_<mode>): Remove unused pattern.
1677 (set_softstack_insn): New pattern.
1678 (restore_stack_block): Handle for TARGET_SOFT_STACK.
1679 (nvptx_vote_ballot): New pattern.
1680 (omp_simt_lane): Ditto.
1681 (omp_simt_last_lane): Ditto.
1682 (omp_simt_ordered): Ditto.
1683 (omp_simt_vote_any): Ditto.
1684 (omp_simt_xchg_bfly): Ditto.
1685 (omp_simt_xchg_idx): Ditto.
1686 (nvptx_nounroll): Ditto.
1687 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
1688 (atomic_exchange<mode>): Ditto.
1689 (atomic_fetch_add<mode>): Ditto.
1690 (atomic_fetch_addsf): Ditto.
1691 (atomic_fetch_<logic><mode>): Ditto.
1692 * config/nvptx/nvptx.opt (msoft-stack): New option.
1693 (muniform-simt): Ditto.
1695 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
1696 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
1697 * doc/invoke.texi (msoft-stack): Document.
1698 (muniform-simt): Document
1700 * doc/tm.texi: Regenerate.
1701 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
1702 * target.def: Define it.
1703 * target-insns.def (omp_simt_lane): New.
1704 (omp_simt_last_lane): New.
1705 (omp_simt_ordered): New.
1706 (omp_simt_vote_any): New.
1707 (omp_simt_xchg_bfly): New.
1708 (omp_simt_xchg_idx): New.
1710 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1712 * config/mips/mips-protos.h (mips_set_text_contents_type): New
1714 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
1715 (ASM_OUTPUT_CASE_END): Likewise.
1716 * config/mips/mips.c (mips_set_text_contents_type): New function.
1717 (mips16_emit_constants): Record the pool's initial label number
1718 with the `consttable' insn. Emit a `consttable_end' insn at the end.
1719 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
1720 for `consttable' insns.
1721 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
1722 for `consttable_end' insns.
1723 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
1724 (consttable): Add operand.
1725 (consttable_end): New insn.
1727 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
1729 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
1730 * tree-if-conv.c (tree_if_conversion): Make public.
1731 * * tree-if-conv.h: New file.
1732 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
1733 dynamic alias checks for epilogues.
1734 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
1735 * tree-vect-loop.c: include tree-if-conv.h.
1736 (new_loop_vec_info): Add zeroing orig_loop_info field.
1737 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
1738 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
1739 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
1740 using passed argument.
1741 (vect_transform_loop): Check if created epilogue should be returned
1742 for further vectorization with less vf. If-convert epilogue if
1743 required. Print vectorization success for epilogue.
1744 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
1745 if it is required, pass loop_vinfo produced during vectorization of
1746 loop body to vect_analyze_loop.
1747 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1749 (LOOP_VINFO_ORIG_LOOP_INFO): New.
1750 (LOOP_VINFO_EPILOGUE_P): New.
1751 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
1752 (vect_do_peeling): Change prototype to return epilogue.
1753 (vect_analyze_loop): Add argument of loop_vec_info type.
1754 (vect_transform_loop): Return created loop.
1756 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1758 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
1759 component as used also if LR_REGNO is a live input to the bb.
1760 * df-scan.c (df_get_entry_block_def_set): Return immediately after
1761 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
1762 (df_get_exit_block_use_set): Ditto.
1763 * df.h (df_scan_flags): New enum.
1764 * shrink-wrap.c (try_shrink_wrapping_separate): Set
1765 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
1766 df_update_entry_block_defs and df_update_exit_block_uses
1767 at the start; clear the flag and call those functions at the end.
1769 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1770 Alan Hayward <alan.hayward@arm.com>
1771 David Sherwood <david.sherwood@arm.com>
1773 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
1774 nb_iterations to the number of latch iterations rather than the
1775 number of loop iterations.
1777 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1778 Alan Hayward <alan.hayward@arm.com>
1779 David Sherwood <david.sherwood@arm.com>
1781 * combine.c (maybe_swap_commutative_operands): New function.
1782 (combine_simplify_rtx): Use it.
1783 (change_zero_ext): Likewise.
1784 (make_compound_operation_int): New function, split out of...
1785 (make_compound_operation): ...here. Use
1786 maybe_swap_commutative_operands for both.
1788 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
1790 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
1791 (neon-vfpv3): New FPU, currently an alias for 'neon'.
1792 * arm/arm-tables.opt: Regenerated.
1793 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
1795 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
1796 and 'neon' are aliases for specific implementations.
1798 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1799 Alan Hayward <alan.hayward@arm.com>
1800 David Sherwood <david.sherwood@arm.com>
1802 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
1803 and use it in the final call to gen_rtx_fmt_ee.
1804 (expand_vec_cond_expr): Update accordingly.
1805 (expand_vec_cmp_expr): Likewise.
1807 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1808 Alan Hayward <alan.hayward@arm.com>
1809 David Sherwood <david.sherwood@arm.com>
1811 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
1813 2016-11-16 Richard Biener <rguenther@suse.de>
1816 * gimplify.c (gimplify_function_tree): Do not instrument
1817 GNU extern inline functions.
1819 2016-11-16 Martin Liska <mliska@suse.cz>
1822 * gimplify.c (gimplify_switch_expr): Always save previous
1823 gimplify_ctxp->live_switch_vars.
1825 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1827 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
1828 zero_extract operations to allow a movb to occur.
1829 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
1830 * testsuite/gcc.target/arc/movb-2.c: Likewise.
1831 * testsuite/gcc.target/arc/movb-5.c: Likewise.
1832 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
1835 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1836 Alan Hayward <alan.hayward@arm.com>
1837 David Sherwood <david.sherwood@arm.com>
1839 * expr.c (emit_group_load_1): Tighten check for whether an
1840 access involves only one operand of a CONCAT. Use extract_bit_field
1841 for constants if the bit range does span the whole operand.
1843 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1844 Alan Hayward <alan.hayward@arm.com>
1845 David Sherwood <david.sherwood@arm.com>
1847 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
1849 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1850 Alan Hayward <alan.hayward@arm.com>
1851 David Sherwood <david.sherwood@arm.com>
1853 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
1854 all three iteration counts with an any_* test. Use a single update
1855 for each count. Fix the calculation of nb_iterations_estimate.
1857 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1859 * config/pdp11/pdp11.c: Include dbxout.h.
1861 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1863 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
1865 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1868 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
1869 proper ranges for an SBFX instruction.
1870 (extzv_t2): Likewise for UBFX.
1872 2016-11-16 Richard Biener <rguenther@suse.de>
1874 PR tree-optimization/78348
1875 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
1876 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
1877 (classify_partition): Set PKIND_MEMCPY if dependence analysis
1878 revealed no dependency, PKIND_MEMMOVE otherwise.
1880 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1883 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
1884 it points to non-NULL tree, use it instead of ubsan_create_data.
1885 (instrument_si_overflow): Handle vector signed integer overflow
1887 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
1888 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
1889 vector IFN_UBSAN_CHECK_*.
1890 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
1891 pass it through to ubsan_build_overflow_builtin.
1892 (expand_neg_overflow, expand_mul_overflow): Likewise.
1893 (expand_vector_ubsan_overflow): New function.
1894 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
1895 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
1896 (expand_arith_overflow): Adjust expand_*_overflow callers.
1898 2016-11-16 Matthias Klose <doko@ubuntu.com>
1900 * doc/install.texi: Remove references to java/libjava.
1902 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1904 * tree-ssa-coalesce.c (register_default_def): Remove
1905 register_ssa_partition.
1906 (create_outofssa_var_map): Likewise.
1907 * tree-ssa-live.c (register_ssa_partition_check): Remove.
1908 * tree-ssa-live.h (register_ssa_partition): Likewise.
1910 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1912 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
1913 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
1914 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
1915 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
1916 rtx when all sub-rtx are also permanent.
1917 (attr_eq): Simplify.
1918 (attr_copy_rtx): Remove.
1919 (make_canonical, get_attr_value): Use attr_equal_p.
1920 (copy_boolean): Rehash NOT.
1921 (simplify_test_exp_in_temp,
1922 optimize_attrs): Remove call to attr_copy_rtx.
1923 (attr_alt_intersection, attr_alt_union,
1924 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
1925 (make_automaton_attrs): Use attr_eq.
1927 2016-11-15 Matthias Klose <doko@ubuntu.com>
1929 * doc/install.texi: Remove references to java/libjava.
1930 * doc/sourcebuild.texi: Likewise.
1931 * doc/invoke.texi: Likewise.
1932 * doc/standards.texi: Likewise.
1934 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1935 Alan Hayward <alan.hayward@arm.com>
1936 David Sherwood <david.sherwood@arm.com>
1938 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
1940 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1941 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1942 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1943 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1944 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1945 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1946 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1948 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1949 Alan Hayward <alan.hayward@arm.com>
1950 David Sherwood <david.sherwood@arm.com>
1952 * dce.c (check_argument_store): Pass the size instead of
1953 the memory reference.
1954 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
1956 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1957 Alan Hayward <alan.hayward@arm.com>
1958 David Sherwood <david.sherwood@arm.com>
1960 * alias.c (canon_rtx): Use simplify_gen_binary.
1962 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1963 Alan Hayward <alan.hayward@arm.com>
1964 David Sherwood <david.sherwood@arm.com>
1966 * rtl.h (load_extend_op): Declare.
1967 * rtlanal.c (load_extend_op): New function.
1968 (nonzero_bits1): Use it.
1969 (num_sign_bit_copies1): Likewise.
1970 * cse.c (cse_insn): Likewise.
1971 * fold-const.c (fold_single_bit_test): Likewise.
1972 (fold_unary_loc): Likewise.
1973 * fwprop.c (free_load_extend): Likewise.
1974 * postreload.c (reload_cse_simplify_set): Likewise.
1975 (reload_cse_simplify_operands): Likewise.
1976 * combine.c (try_combine): Likewise.
1977 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
1978 subreg_lowpart_p checks.
1980 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1981 Alan Hayward <alan.hayward@arm.com>
1982 David Sherwood <david.sherwood@arm.com>
1984 * combine.c (simplify_shift_const_1): Use the number of bits
1985 in the inner mode to determine the range of the shift.
1986 When handling shifts of vectors, skip any rules that apply
1989 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1990 Alan Hayward <alan.hayward@arm.com>
1991 David Sherwood <david.sherwood@arm.com>
1993 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
1996 2016-11-15 Matthias Klose <doko@ubuntu.com>
1998 * doc/install.texi: Remove references to gcj/libjava.
1999 * doc/invoke.texi: Likewise.
2001 2016-11-15 Jeff Law <law@redhat.com>
2003 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
2004 parameter. Callers changed.
2005 (check-subpath_and_update_thread_path): Extracted from
2006 fsm_find_control_statement_thread_paths.
2007 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
2008 (handle_phi, handle_assignment): Allow any constant node, not
2011 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
2013 * config/arc/arc-arch.h: New file.
2014 * config/arc/arc-arches.def: Likewise.
2015 * config/arc/arc-cpus.def: Likewise.
2016 * config/arc/arc-options.def: Likewise.
2017 * config/arc/t-multilib: Likewise.
2018 * config/arc/genmultilib.awk: Likewise.
2019 * config/arc/genoptions.awk: Likewise.
2020 * config/arc/arc-tables.opt: Likewise.
2021 * config/arc/driver-arc.c: Likewise.
2022 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
2023 * common/config/arc/arc-common.c (arc_handle_option): Trace
2025 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
2026 options; check for supported cpu against arc-cpus.def file.
2027 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
2028 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
2029 * config/arc/arc-c.def: Add emacs local variables.
2030 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
2031 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
2032 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
2033 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
2034 (DEFAULT_arc_fpu_build): Define.
2035 (DEFAULT_arc_mpy_option): Define.
2036 * config/arc/arc-protos.h (arc_init): Delete.
2037 * config/arc/arc.c (arc_cpu_name): New variable.
2038 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
2039 (arc_arc700, arc_arc600, arc_arc601): New variable.
2040 (arc_init): Add static; remove selection of default tune value,
2041 cleanup obsolete error messages.
2042 (arc_override_options): Make use of .def files for selecting the
2043 right cpu and option configurations.
2044 * config/arc/arc.h (stdbool.h): Include.
2045 (TARGET_CPU_DEFAULT): Define.
2046 (CPP_SPEC): Remove mcpu=NPS400 handling.
2047 (arc_cpu_to_as): Declare.
2048 (EXTRA_SPEC_FUNCTIONS): Define.
2049 (OPTION_DEFAULT_SPECS): Likewise.
2050 (ASM_DEFAULT): Remove.
2051 (ASM_SPEC): Use arc_cpu_to_as.
2052 (DRIVER_SELF_SPECS): Remove deprecated options.
2053 (arc_base_cpu): Declare.
2054 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
2055 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
2057 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
2058 * config/arc/arc.md (attr_cpu): Remove.
2059 * config/arc/arc.opt (mno-mpy): Deprecate.
2060 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
2061 (mcpu=ARCHS): Remove.
2062 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
2064 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
2065 (arc_fpu): Use new defines.
2066 (mpy-option): Change to use numeric or string like inputs.
2067 * config/arc/t-arc (driver-arc.o): New target.
2068 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
2069 * config/arc/t-arc-newlib: Delete.
2070 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
2071 * doc/invoke.texi (ARC): Update arc options.
2073 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
2075 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
2076 insn at the beginning of the constant pool.
2077 (mips_insert_insn_pseudos): New function.
2078 (mips_machine_reorg2): Call it.
2079 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
2080 UNSPEC_INSN_PSEUDO enum values.
2081 (insn_pseudo, consttable): New insns.
2083 2016-11-15 Michael Matz <matz@suse.de>
2085 PR missed-optimization/77881
2086 * combine.c (simplify_comparison): Remove useless subregs
2087 also inside the loop, not just after it.
2088 (make_compound_operation): Recognize some subregs as being
2091 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2092 Alan Hayward <alan.hayward@arm.com>
2093 David Sherwood <david.sherwood@arm.com>
2095 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
2098 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2100 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
2101 for using xxinsertw and vinsert{b,h} on ISA 3.0.
2103 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
2104 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
2105 vinsert{b,h} on ISA 3.0.
2107 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2109 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2110 and cmpnop in two steps: first the ones not accessed in original gimple
2111 expression in a endian independent way and then the ones not accessed
2112 in the final result in an endian-specific way.
2113 (bswap_replace): Stop doing big endian adjustment.
2115 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
2117 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
2118 (*ashl<mode>3_doubleword): Ditto.
2120 2016-11-14 Martin Liska <mliska@suse.cz>
2122 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
2124 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
2125 Richard Biener <rguenther@suse.de>
2127 * doc/invoke.texi (fgimple): Document.
2128 * dumpfile.h (TDF_GIMPLE): Add.
2129 * dumpfile.c (dump_options): Add gimple.
2130 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
2132 (dump_gimple_label): Likewise.
2133 (dump_gimple_phi): Likewise.
2134 (dump_gimple_bb_header): Likewise.
2135 (dump_phi_nodes): Likewise.
2136 (pp_cfg_jump): Likewise. Pass in dump flags.
2137 (dump_implicit_edges): Adjust.
2138 * passes.c (pass_init_dump_file): Do not dump function header
2140 * tree-cfg.c (dump_function_to_file): Dump function return type
2141 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
2143 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
2144 (dump_generic_node): Likewise.
2145 * function.h (struct function): Add pass_startwith member.
2146 * passes.c (execute_one_pass): Implement startwith.
2147 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
2148 and assign proper version for parsed ssa names.
2149 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
2150 * internal-fn.c (expand_PHI): New function.
2151 * internal-fn.h (expand_PHI): Declared here.
2152 * internal-fn.def: New defination for PHI.
2153 * tree-cfg.c (lower_phi_internal_fn): New function.
2154 (build_gimple_cfg): Call it.
2155 (verify_gimple_call): Condition for passing label as arg in internal
2157 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
2158 present PHIs with arguments.
2160 2016-11-14 Martin Liska <mliska@suse.cz>
2163 * common.opt: Add prefer-atomic as a new enum value for
2165 * coretypes.h: Likewise.
2166 * doc/invoke.texi: Document the new option value.
2167 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
2168 * tree-profile.c (tree_profiling): Select default value
2169 of -fprofile-update when 'prefer-atomic' is selected.
2171 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2173 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
2174 (cortex_a57_alu_shift): ...here.
2176 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2178 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
2180 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2181 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2182 (<optab>si3_insn_uxtw): Likewise.
2183 (<optab><mode>3_insn): Likewise.
2184 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
2185 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
2186 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
2187 (<optab><mode>): Likewise.
2188 (insv<mode>): Likewise.
2189 (andim_ashift<mode>_bfiz): Likewise.
2190 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
2191 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2192 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
2193 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
2194 (exynos_m1_alu_p): Likewise.
2195 * config/arm/types.md: Add bfx.
2196 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
2198 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2200 * config/aarch64/aarch64.c (cortexa57_vector_cost):
2201 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
2203 2016-11-14 Richard Biener <rguenther@suse.de>
2205 PR tree-optimization/78312
2206 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
2207 flow-sensitive info.
2209 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
2212 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
2213 * config/avr/avr.opt (-mabsdata): New option.
2214 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
2215 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
2216 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
2217 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
2218 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
2219 spec depending on AVR_ISA_LDS.
2220 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
2222 2016-11-13 Jakub Jelinek <jakub@redhat.com>
2224 * match.pd: Don't try to compare addresses of variables with
2227 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
2229 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
2230 (propagate_vr_accross_jump_function): Handle unary expressions.
2231 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2232 (load_from_param_1): New.
2233 (load_from_unmodified_param): Factor common part into load_from_param_1.
2234 (load_from_param): New.
2235 (compute_complex_assign_jump_func): Handle unary expressions.
2236 (update_jump_functions_after_inlining): Likewise.
2237 (ipa_write_jump_function): Likewise.
2238 (ipa_read_jump_function): Likewise.
2240 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2243 * doc/invoke.texi: Document Wrestrict.
2244 * pretty-print.c (pp_format): Add case for "Z" specifier.
2245 (test_pp_format): Test "Z" specifier.
2247 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2249 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
2250 original function needs a static chain.
2252 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
2255 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
2258 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2261 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2262 return early if !optional_tbtab.
2264 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
2266 PR rtl-optimization/59461
2267 * doc/rtl.texi (paradoxical subregs): Add missing word.
2268 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
2269 in modes with precision larger than that of last_set_mode.
2270 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
2271 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
2272 REGs to paradoxical SUBREGs.
2273 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
2274 larger than a word before invoking LOAD_EXTEND_OP on it.
2276 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2279 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
2280 element order for little endian ordering.
2282 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
2283 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
2286 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
2289 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
2290 when calculating operand 2.
2291 (rotate to rotatex zext splitter): Ditto.
2293 2016-11-11 Jeff Law <law@redhat.com>
2295 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
2297 (stmt_uses_name_in_undefined_way): New function, extracted from
2298 find_implicit_erroneous_behavior and extended for div/mod case.
2299 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
2300 find_explicit_erroneous_behavior and extended for div/mod case.
2301 (find_implicit_erroneous_behavior): Use new helper function.
2302 (find_explicit_erroneous_behavior): Use new helper function.
2304 2016-11-11 Richard Biener <rguenther@suse.de>
2306 PR tree-optimization/71575
2307 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2310 2016-11-11 Richard Biener <rguenther@suse.de>
2313 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2314 about uninitialized destination arg of BIT_INSERT_EXPR.
2316 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
2319 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2320 terminology. Expand to remove ambiguity.
2322 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2324 PR rtl-optimization/78232
2325 * combine.c (try_combine): Add a big comment about why reusing i2dest
2327 (change_zero_ext): Do not call simplify_gen_binary, do the
2328 simplifications manually.
2330 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2332 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2333 enable HImode and QImode to go in vector registers by default if
2334 the -mvsx-small-integer option is enabled.
2335 (rs6000_secondary_reload_simple_move): Likewise.
2336 (rs6000_preferred_reload_class): Don't force integer constants to
2337 be loaded into vector registers that we can easily make into
2338 memory (or being created in the GPRs and moved over with direct move).
2339 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2340 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2341 vector extraction on ISA 3.0 when the scalar integer can be
2342 allocated in vector registers. Generate the VEC_SELECT directy,
2343 and don't use UNSPEC's to avoid having the scalar type in a vector
2344 register. Make the expander target registers, and let the
2345 combiner fold in results storing to memory, if the machine
2347 (vsx_extract_<mode>_di): Likewise.
2348 (vsx_extract_<mode>_p9): Likewise.
2349 (vsx_extract_<mode>_di_p9): Likewise.
2350 (vsx_extract_<mode>_store_p9): Likewise.
2351 (vsx_extract_si): Likewise.
2352 (vsx_extract_<mode>_p8): Likewise.
2353 (p9_lxsi<wd>zx): Delete, no longer used.
2354 (p9_stxsi<wd>x): Likewise.
2355 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2356 integers in vector registers for ISA 3.0.
2357 (QHI): Update comment.
2358 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2359 vector extract instructions in sign/zero extend.
2360 (zero_extendhi<mode>): Likewise.
2361 (extendqi<mode>): Likewise.
2362 (extendhi<mode>2): Likewise.
2363 (HImode splitter for load/sign extend in vector register): Likewise.
2364 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2365 optimizing floating point conversions to/from small data types and
2366 rewrite it to support QImode/HImode being allowed in vector
2367 registers on ISA 3.0.
2368 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2369 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2370 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2371 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2372 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2373 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2374 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2375 VSPLITISW on ISA 2.07.
2376 (movhi_internal): Combine movhi_internal and movqi_internal into
2377 one mov<mode>_internal with an iterator. Add support for QImode
2378 and HImode being allowed in vector registers. Make large number
2379 of attributes and constraints easier to read.
2380 (movqi_internal): Likewise.
2381 (mov<mode>_internal): Likewise.
2382 (movdi_internal64): Fix constraint to allow loading -16..15 with
2383 VSPLITISW on ISA 2.07.
2384 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2387 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
2389 PR rtl-optimization/78241
2390 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2391 but emit initial peel copy if niter expr is not reliable.
2393 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2395 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2396 (maybe_record_trace_start): If the CFI is different on the new and
2397 old paths, print out both to the dump file before ICEing.
2399 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
2401 * target.def (additional_allocno_class_p): New.
2402 * hooks.h (hook_bool_reg_class_t_false): New prototype.
2403 * hooks.c (hook_bool_reg_class_t_false): New.
2404 * ira.c (setup_allocno_and_important_classes): Use the new hook.
2405 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2406 * doc/tm.texi: Update.
2408 2016-11-10 Jason Merrill <jason@redhat.com>
2410 * gengtype.c (new_structure): Append to structures list.
2411 (find_structure): Likewise.
2413 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
2415 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2416 this_dir is 2. Check for this_dir non-zero before dir != this_dir
2419 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2421 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2422 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2424 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
2425 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2426 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
2427 teams distribute parallel for simd even to distribute and teams
2428 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
2429 OMP_CLAUSE_DEPEND_SINK case.
2430 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2431 (omp_no_lastprivate): Removed.
2432 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2433 (gimplify_omp_for): Likewise.
2434 (computable_teams_clause): Fail for automatic vars from current
2435 function not yet seen in bind expr.
2436 * langhooks.c (lhd_omp_scalar_p): New function.
2437 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2438 * varpool.c (varpool_node::get_create): Set node->offloading
2439 even for DECL_EXTERNAL decls.
2440 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2441 (LANG_HOOKS_OMP_SCALAR_P): Define.
2442 (LANG_HOOKS_DECLS): Use it.
2444 2016-11-10 Martin Liska <mliska@suse.cz>
2447 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2448 only when SWITCH_BODY is a BIND_EXPR.
2450 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
2453 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2454 on the context only when it has no DIE yet.
2456 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
2458 * arm.h (target_cpus): Delete.
2459 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2460 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2461 (all_architectures): Likewise.
2462 (arm_option_override): Adjust use of CPU enums.
2463 (arm_sched_reorder): Likewise.
2464 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2465 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2466 * arm/genopt.sh (processor_type): Prefix enumeration entries with
2468 * arm-tables.opt: Regenerated.
2470 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
2472 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2474 * config/aarch64/aarch64-tune.md: Regenerated.
2475 * config/arm/arm-cores.def (falkor): New core.
2476 * config/arm/arm-tables.opt: Regenerated.
2477 * config/arm/arm-tune.md: Regenerated.
2478 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2479 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2480 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2481 (ARM Options/-mtune): Likewise.
2483 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2486 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2488 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2489 (propagate_vr_accross_jump_function): Likewise.
2490 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2491 (load_from_param_1): New.
2492 (load_from_unmodified_param): Factor common part into load_from_param_1.
2493 (load_from_param): New.
2494 (compute_complex_assign_jump_func): Handle unary expressions.
2495 (ipa_write_jump_function): Likewise.
2496 (ipa_read_jump_function): Likewise.
2498 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2500 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2501 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2502 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2505 2016-11-09 David Malcolm <dmalcolm@redhat.com>
2507 * print-rtl-function.c: Include varasm.h.
2508 (print_any_param_name): New function.
2509 (print_param): New function.
2510 (print_rtx_function): Call print_param for each argument.
2511 * print-rtl.c (rtx_writer::finish_directive): New function.
2512 * print-rtl.h (rtx_writer::finish_directive): New decl.
2514 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
2517 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2518 operand 0 as earlyclobber.
2519 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2521 2016-11-09 Martin Liska <mliska@suse.cz>
2523 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2525 2016-11-09 Jakub Jelinek <jakub@redhat.com>
2528 * builtins.c (expand_builtin_memcmp): Formatting fix.
2530 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2531 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2532 or of them, renumber other enumerators.
2533 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2534 * doc/invoke.texi: Document -fsanitize=shift-base and
2535 -fsanitize-shift-exponent, document -fsanitize=shift as
2536 having those 2 suboptions.
2538 2016-11-09 Richard Biener <rguenther@suse.de>
2540 * fold-const.c (tree_swap_operands_p): Remove unused arg.
2541 * fold-const.c (tree_swap_operands_p): Likewise.
2542 (fold_binary_loc): Adjust.
2543 (fold_ternary_loc): Likewise.
2544 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2545 * gimple-fold.c (fold_stmt_1): Likewise.
2546 * gimple-match-head.c (gimple_resimplify2): Likewise.
2547 (gimple_resimplify3): Likewise.
2548 (gimple_simplify): Likewise.
2549 * tree-ssa-dom.c (record_equality): Likewise.
2550 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2551 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2552 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2554 2016-11-09 Richard Biener <rguenther@suse.de>
2556 * tree-ssa-dom.c (canonicalize_comparison): Remove.
2557 (optimize_stmt): Remove redundant pre-propagation canonicalization
2558 of comparison operand order.
2560 2016-11-09 Martin Liska <mliska@suse.cz>
2562 * fold-const-call.c (fold_const_call): Fix the folding.
2564 2016-11-09 Richard Biener <rguenther@suse.de>
2566 * common.opt (flag_evaluation_order): Remove.
2567 * expr.c (expand_operands): Remove code guarded by
2568 flag_evaluation_order.
2569 * fold-const.c (reorder_operands_p): Remove, it always returns
2571 (negate_expr_p): Remove calls to reorder_operands_p.
2572 (fold_negate_expr): Likewise.
2573 (tree_swap_operands_p): Likewise.
2574 (fold_binary_loc): Likewise.
2576 2016-11-09 Andreas Schwab <schwab@suse.de>
2579 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2580 insns operating on a register.
2582 2016-11-09 Richard Biener <rguenther@suse.de>
2584 PR tree-optimization/78007
2585 * tree-vect-stmts.c (vectorizable_bswap): New function.
2586 (vectorizable_call): Call vectorizable_bswap for
2587 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2589 2016-11-09 Richard Biener <rguenther@suse.de>
2591 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2592 Look at the DR_BASE_ADDRESS object for forcing alignment.
2594 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2596 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2597 (propagate_vr_accross_jump_function): Likewise.
2598 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2599 (load_from_param_1): New.
2600 (load_from_unmodified_param): Factor common part into load_from_param_1.
2601 (load_from_param): New.
2602 (compute_complex_assign_jump_func): Handle unary expressions.
2603 (ipa_write_jump_function): Likewise.
2604 (ipa_read_jump_function): Likewise.
2606 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2609 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2610 Also fold constant passed as argument while computing value range.
2611 (propagate_constants_accross_call): Pass param type.
2612 * ipa-prop.c: export ipa_get_callee_param_type.
2613 * ipa-prop.h: export ipa_get_callee_param_type.
2615 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2617 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2618 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2620 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2622 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
2623 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
2624 ASAN_STACK_MAGIC_MIDDLE.
2625 (asan_global_struct): Increase the size of fields.
2626 (asan_add_global): Add new field constructor.
2627 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
2628 __asan_version_mismatch_check_v8.
2630 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
2632 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
2635 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
2638 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2639 Handle ASHIFT and LSHIFTRT.
2640 (dimode_scalar_chain::compute_convert_gain): Ditto.
2641 (dimode_scalar_chain::convert_insn): Ditto.
2643 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2645 * gimple-ssa-store-merging.c: Include selftest.h
2646 (verify_array_eq): New function.
2647 (verify_shift_bytes_in_array): Likewise.
2648 (verify_shift_bytes_in_array_right): Likewise.
2649 (verify_clear_bit_region): Likewise.
2650 (verify_clear_bit_region_be): Likewise.
2651 (store_merging_c_tests): Likewise.
2652 * selftest.h (store_merging_c_tests): Declare prototype.
2653 * selftest-run-tests.c (selftest::run_tests): Run
2654 store_merging_c_tests.
2656 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2658 * config/arm/arm.opt (mold-rtx-costs): Delete.
2659 (mnew-generic-costs): Delete.
2660 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
2661 * config/arm/arm.c (arm_rtx_costs_1): Delete.
2662 (arm_size_rtx_costs): Likewise.
2663 (arm_slowmul_rtx_costs): Likewise.
2664 (arm_fastmul_rtx_costs): Likewise.
2665 (arm_xscale_rtx_costs): Likewise.
2666 (arm_9e_rtx_costs): Likewise.
2667 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2668 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2669 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2670 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2671 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2672 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
2673 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
2674 arm_cortex_m7_tune):
2675 Delete rtx_costs field.
2676 (arm_new_rtx_costs): Rename to...
2677 (arm_rtx_costs_internal): ... This.
2678 (arm_rtx_costs): Remove old way of doing rtx costs.
2680 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2682 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
2683 (arm_fastmul_tune): Likewise.
2684 (arm_strongarm_tune): Likewise.
2685 (arm_xscale_tune): Likewise.
2686 (arm_9e_tune): Likewise.
2687 (arm_marvell_pj4_tune): Likewise.
2688 (arm_v6t2_tune): Likewise.
2689 (arm_v6m_tune): Likewise.
2690 (arm_fa726te_tune): Likewise.
2692 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2694 PR tree-optimization/78234
2695 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
2698 2016-11-08 Martin Liska <mliska@suse.cz>
2701 * dbgcnt.def: Add new debug counter asan_use_after_scope.
2702 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
2703 with a value expr. Do not add artificial variables to
2704 live_switch_vars. Use the debug counter.
2705 (gimplify_target_expr): Use the debug counter.
2706 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
2707 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
2708 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
2710 2016-11-08 Richard Biener <rguenther@suse.de>
2712 * tree-vect-stmts.c (get_group_load_store_type): If the
2713 access is aligned do not trigger peeling for gaps.
2714 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
2715 force alignment of vars with DECL_USER_ALIGN.
2717 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
2719 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
2721 2016-11-08 Richard Biener <rguenther@suse.de>
2723 PR tree-optimization/78205
2724 * tree-vect-stmts.c (vectorizable_load): Move check whether
2725 we may run into gaps when BB vectorizing SLP permutations ...
2726 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
2727 here where we can do a more precise check.
2729 2016-11-08 Richard Biener <rguenther@suse.de>
2731 PR tree-optimization/78224
2732 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2733 Split the fallthru edge in case its successor may have PHIs.
2734 Do not free dominance info.
2736 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2739 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2740 EH info even for bzhi and pdep/pext.
2742 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
2744 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
2745 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
2747 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2749 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
2751 * config/rs6000/vector.md (div<mode>3): Ditto.
2753 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
2755 * configure.ac (.hidden): Change to conftest_s string. Provide string
2757 (gcc_cv_ld_hidden): Yes for AIX.
2758 * configure: Regenerate.
2760 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
2762 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
2763 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
2764 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
2765 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2766 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
2767 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
2769 (rs6000_xcoff_visibility): New.
2770 (rs6000_xcoff_declare_function_name): Add visibility support.
2771 (rs6000_xcoff_asm_globalize_decl_name): New.
2772 (rs6000_xcoff_asm_output_aligned_decl_common): New.
2773 (rs6000_asm_weaken_decl): New.
2774 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
2775 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
2778 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
2781 * incpath.c (remove_dup): Also silently ignore EPERM.
2783 2016-11-07 Martin Jambor <mjambor@suse.cz>
2785 * tree.c (verify_type_variant): Use pointer comparison to check that
2786 TYPE_SIZE_UNIT match.
2788 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2791 * dse.c (dse_step5): Call scan_reads even if just
2792 insn_info->frame_read. Improve and fix dump file messages.
2795 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
2796 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
2798 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2801 * match.pd: Add following two patterns:
2802 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
2803 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
2805 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
2807 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
2808 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
2809 * rtl.h (duplicate_reg_notes): Declare.
2810 * rtlanal.c (duplicate_reg_note): New function.
2812 PR rtl-optimization/77309
2813 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
2814 don't assume an equality comparison for plain COMPARE.
2815 (simplify_comparison): Pass a more accurate code to
2816 make_compound_operation.
2818 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
2820 * target.def (compute_pressure_classes): New target hook.
2821 * doc/tm.texi.in: Document it.
2822 * doc/tm.texi: Regenerate.
2823 * ira.c (setup_pressure_classes): Call target hook if defined.
2825 2016-11-07 David Malcolm <dmalcolm@redhat.com>
2827 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
2829 (rtx_writer::print_rtx): In compact mode, omit trailing operands
2830 that have the default values.
2831 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
2833 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
2834 label string from expected dump.
2835 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
2838 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2841 * alias.c (nonoverlapping_memrefs_p): If one decl is
2842 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
2844 2016-11-07 Richard Biener <rguenther@suse.de>
2847 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2850 2016-11-07 Richard Biener <rguenther@suse.de>
2852 PR tree-optimization/78218
2853 * gimple-ssa-store-merging.c
2854 (pass_store_merging::terminate_all_aliasing_chains):
2855 Drop unused argument, fix alias check to also consider uses.
2856 (pass_store_merging::execute): Adjust.
2858 2016-11-07 Richard Biener <rguenther@suse.de>
2860 PR tree-optimization/78228
2861 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
2864 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2867 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
2868 aarch64_simd_shift_imm_<mode> predicate for operand 1.
2869 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
2870 to restrict them to an appropriate range and add FAIL check if the
2871 region they specify is out of range. Delete useless constraint
2873 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
2874 2 and 3 to restrict their range and add pattern predicate.
2876 2016-11-07 Martin Liska <mliska@suse.cz>
2878 * asan.c (enum asan_check_flags): Move the enum to header file.
2879 (asan_init_shadow_ptr_types): Make type creation more generic.
2880 (shadow_mem_size): New function.
2881 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
2882 Rewritten stack unpoisoning code.
2883 (build_shadow_mem_access): Add new argument return_address.
2884 (instrument_derefs): Instrument local variables if use after scope
2885 sanitization is enabled.
2886 (asan_store_shadow_bytes): New function.
2887 (asan_expand_mark_ifn): Likewise.
2888 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
2889 * asan.h (enum asan_mark_flags): Moved here from asan.c
2890 (asan_protect_stack_decl): Protect all declaration that need
2892 (asan_sanitize_use_after_scope): New function.
2893 (asan_no_sanitize_address_p): Likewise.
2894 * cfgexpand.c (partition_stack_vars): Consider
2895 asan_sanitize_use_after_scope in condition.
2896 (expand_stack_vars): Likewise.
2897 * common.opt (-fsanitize-address-use-after-scope): New option.
2898 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2899 Explain the parameter.
2900 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
2901 * gimplify.c (build_asan_poison_call_expr): New function.
2902 (asan_poison_variable): Likewise.
2903 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
2904 variables that have address taken.
2905 (gimplify_decl_expr): Likewise.
2906 (gimplify_target_expr): Likewise for C++ temporaries.
2907 (sort_by_decl_uid): New function.
2908 (gimplify_expr): Unpoison all variables for a label we can jump
2909 from outside of a scope.
2910 (gimplify_switch_expr): Unpoison variables defined in the switch
2912 (gimplify_function_tree): Clear asan_poisoned_variables.
2913 (asan_poison_variables): New function.
2914 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
2915 * internal-fn.c (expand_ASAN_MARK): New function.
2916 * internal-fn.def (ASAN_MARK): Declare.
2917 * opts.c (finish_options): Handle -fstack-reuse if
2918 -fsanitize-address-use-after-scope is enabled.
2919 (common_handle_option): Enable address sanitization if
2920 -fsanitize-address-use-after-scope is enabled.
2921 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
2923 * params.h: Likewise.
2924 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
2925 * sanitizer.def: Define __asan_poison_stack_memory and
2926 __asan_unpoison_stack_memory functions.
2927 * asan.c (asan_mark_poison_p): New function.
2928 (transform_statements): Handle asan_mark_poison_p calls.
2929 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
2931 2016-11-07 Tamar Christina <tamar.christina@arm.com>
2934 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
2936 2016-11-07 Martin Liska <mliska@suse.cz>
2938 * tree-profile.c (gimple_gen_time_profiler): Set proper type
2939 to time_profiler_counter_ptr.
2941 2016-11-07 Richard Biener <rguenther@suse.de>
2943 PR tree-optimization/37150
2944 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
2946 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
2947 (vect_analyze_slp_cost_1): Account for the real number of
2948 permutations emitted and for dead loads.
2949 (vect_transform_slp_perm_load): Add n_perms parameter counting
2950 the number of emitted permutations.
2951 * tree-vect-stmts.c (vectorizable_load): Adjust.
2953 2016-11-07 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/78189
2956 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
2957 alignment computation.
2959 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2961 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
2963 2016-11-05 Martin Sebor <msebor@redhat.com>
2965 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
2968 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
2972 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
2974 2016-11-04 Jakub Jelinek <jakub@redhat.com>
2977 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
2978 doesn't have rtl set.
2980 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2982 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
2983 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
2984 rs6000_gimple_fold_builtin.
2985 (rs6000_gimple_fold_builtin): New function. Add handling for
2986 early expansion of vector addition builtins.
2988 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
2990 * expr.h (copy_blkmode_from_reg): Delete.
2991 * expr.c (copy_blkmode_from_reg): Make static.
2993 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
2995 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
2996 * combine.c (LOAD_EXTEND_OP): Delete.
2997 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
2998 * cse.c (LOAD_EXTEND_OP): Delete.
2999 * fold-const.c (LOAD_EXTEND_OP): Likewise.
3000 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
3001 * postreload.c (LOAD_EXTEND_OP): Delete.
3002 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
3003 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
3004 (find_reloads): Likewise.
3005 * reload1.c (eliminate_regs_1): Likewise.
3006 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
3007 (num_sign_bit_copies1): Likewise.
3009 2016-11-04 David Malcolm <dmalcolm@redhat.com>
3011 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
3012 (selftest::ix86_test_dumping_hard_regs): New function.
3013 (selftest::ix86_run_selftests): New function.
3014 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
3015 selftest::ix86_run_selftests.
3016 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
3017 * doc/tm.texi: Regenerate
3018 * selftest-rtl.h: New file.
3019 * rtl-tests.c: Include "selftest-rtl.h".
3020 (selftest::assert_rtl_dump_eq): Make non-static.
3021 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
3022 (selftest::test_dumping_regs): Update comment.
3023 * selftest-run-tests.c: Include "target.h".
3024 (selftest::run_tests): If non-NULL, call
3025 targetm.run_target_selftests.
3026 * target.def (run_target_selftests): New hook.
3028 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3030 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
3031 representative core for this architecture.
3032 * config/arm/arm-cores.def (cortex-m33): Define new processor.
3033 * config/arm/arm-tables.opt: Regenerate.
3034 * config/arm/arm-tune.md: Likewise.
3035 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
3036 valid -mcpu options.
3037 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
3039 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3041 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
3042 representative core for this architecture.
3043 * config/arm/arm-cores.def (cortex-m23): Define new processor.
3044 * config/arm/arm-tables.opt: Regenerate.
3045 * config/arm/arm-tune.md: Likewise.
3046 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
3047 this tuning parameters apply to in the comment.
3048 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
3049 valid -mcpu options.
3050 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
3052 2016-11-04 Bin Cheng <bin.cheng@arm.com>
3054 * fold-const.c (fold_cond_expr_with_comparison): Remove call
3055 to pedantic_non_lvalue_loc. Remove useless code for lvalue
3056 where cond_expr can't be a lvalue.
3058 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
3060 * config/arc/arc.c (arc_process_double_reg_moves): Use
3062 * config/arc/arc.md (movsi_insn): Disable unsupported move
3063 instructions for ARCv2 cores.
3064 (movdi): Use prepare_move_operands.
3065 (movsf, movdf): Use move_dest_operand predicate.
3066 * config/arc/constraints.md (Chs): Enable when barrel shifter is
3068 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
3069 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
3071 (dexcl_3op_peep2_insn_nores): Likewise.
3072 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
3073 (LINK_COMMAND_SPEC): Remove.
3075 2016-11-04 Richard Biener <rguenther@suse.de>
3078 * loop-invariant.c (find_exits): Record entering inner
3079 loops as possibly exiting to handle infinite sub-loops.
3080 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
3081 (fill_always_executed_in_1): Honor infinite child loops.
3083 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3086 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
3087 has already been adjusted for endianness, so don't adjust it any
3091 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
3092 ICmode unless we have standard PowerPC floating point.
3093 * config/rs6000/rs6000.md (FP iterator): Likewise.
3094 (FMOVE128 iterator): Likewise.
3096 2016-11-03 Jakub Jelinek <jakub@redhat.com>
3097 Alexandre Oliva <aoliva@redhat.com>
3098 Jason Merrill <jason@redhat.com>
3102 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
3104 * langhooks.c (lhd_type_dwarf_attribute): New function.
3105 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
3106 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
3107 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
3108 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
3109 (check_qualified_type, check_aligned_type): Call it.
3110 * dwarf2out.c (modified_type_die): Don't use type_main_variant
3111 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3112 check_base_type and check_lang_type.
3113 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
3114 return early. For pointer-to-data-member add DW_AT_use_location
3116 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
3118 (gen_type_die_with_usage): Don't use type_main_variant
3119 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3120 check_base_type and check_lang_type. Formatting fixes. Call
3121 get_debug_type langhook.
3123 2016-11-03 Jason Merrill <jason@redhat.com>
3125 * tree.c (check_lang_type): New.
3126 (check_qualified_type): Use it.
3127 (check_aligned_type): Use it.
3128 * tree.h: Declare it.
3130 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
3132 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
3133 (arm*-freebsd*): Likewise.
3134 (arm*-*-netbsdelf*): Likewise.
3135 (arm*-*-linux*): Likewise.
3136 (arm*-*-uclinux*eabi*): Likewise.
3137 (arm*-*-phoenix*): Likewise.
3138 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
3139 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
3140 specified. Default to arm6 if target_cpu_cname is not set.
3141 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
3142 default cpu has been correctly configured.
3143 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
3144 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
3145 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
3146 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
3147 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3148 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
3149 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3151 2016-11-03 Jiong Wang <jiong.wang@arm.com>
3153 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
3154 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
3155 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
3156 (output_cfa_loc): Support DW_CFA_val_expression.
3157 (output_cfa_loc_raw): Likewise.
3158 (output_cfi): Likewise.
3159 (output_cfi_directive): Likewise.
3160 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
3161 (dw_cfi_oprnd2_desc): Likewise.
3162 (mem_loc_descriptor): Recognize new pattern generated for value
3165 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
3167 PR rtl-optimization/78186
3168 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
3169 well, when converting to IOR.
3171 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
3173 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
3174 (vec_interleave_highv8qi): Likewise.
3176 2016-11-03 Martin Liska <mliska@suse.cz>
3178 * profile.c (instrument_values): Fix coding style.
3179 (branch_prob): Use renamed function.
3180 * tree-profile.c (init_ic_make_global_vars): Likewise.
3181 (gimple_init_edge_profiler): Rename to
3182 gimple_init_gcov_profiler.
3183 tree_time_profiler_counter variable declaration.
3184 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
3186 * value-prof.h: Remove an argument.
3188 2016-11-03 Richard Biener <rguenther@suse.de>
3190 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
3191 symtab_node::get_create.
3193 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3195 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
3196 Move comments into more natural position.
3198 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
3200 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
3201 (PTRDIFF_TYPE): Define as int.
3203 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3205 * ccmp.c (expand_ccmp_expr_1): Adjust.
3206 (expand_ccmp_expr): Likewise.
3207 (expand_ccmp_next): Likewise.
3208 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
3209 (aarch64_gen_ccmp_first): Likewise.
3210 * doc/tm.texi: Regenerate.
3211 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
3212 (gen_ccmp_next): Likewise.
3214 2016-11-03 Bin Cheng <bin.cheng@arm.com>
3216 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
3217 (vect_is_simple_reduction): Swap cond_reduction by inversion.
3219 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
3221 * config/i386/i386.c (ix86_init_libfuncs): New. Call
3222 darwin_rename_builtins here.
3223 (ix86_expand_divmod_libfunc): New.
3224 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
3225 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
3227 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3228 Nathan Sidwell <nathan@acm.org>
3230 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
3232 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
3234 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
3236 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
3237 to format MODE_INT and MODE_PARTIAL_INT literals.
3239 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
3242 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
3243 NULL if TARGET_SPE_ABI.
3245 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3247 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
3248 clear padding bits even when they're less than a byte.
3250 2016-11-02 Richard Biener <rguenther@suse.de>
3252 * gimple-ssa-store-merging.c: Include gimplify-me.h.
3253 (imm_store_chain_info::output_merged_stores): Force base_addr
3254 to be proper GIMPLE for a MEM_REF address.
3255 (pass_store_merging::execute): Restrict negative bitpos
3256 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
3257 check. Take into account non-NULL_TREE offset if the base
3258 is already addressable.
3260 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3262 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
3264 (aarch64_be_crypto_sha1hv4si): New pattern.
3266 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
3268 * config/aarch64/aarch64.md (add<mode>3): Remove
3269 redundant code. Don't split frame based additions.
3271 2016-11-02 Richard Biener <rguenther@suse.de>
3273 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
3274 redundant val and dest members.
3275 (store_immediate_info::store_immediate_info): Adjust.
3276 (merged_store_group::merged_store_group): Adjust.
3277 (merged_store_group::apply_stores): Likewise.
3278 (struct imm_store_chain_info): Add base_addr field.
3279 (imm_store_chain_info::imm_store_chain_info): New constructor.
3280 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
3281 (imm_store_chain_info::output_merged_store): Likewise. Use
3282 addr_base which is already the address.
3283 (imm_store_chain_info::output_merged_stores): Likewise.
3284 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
3285 imm_store_chain_info instead of base. Fix alias check.
3286 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
3287 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
3288 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
3289 use the address of the base and adjust for other changes.
3291 2016-11-02 Martin Liska <mliska@suse.cz>
3293 * fold-const-call.c (host_size_t_cst_p): Test whether
3294 t is convertible to size_t.
3296 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3298 PR tree-optimization/78170
3299 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
3300 introduced by native_encode_expr on little-endian as well.
3302 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3304 PR tree-optimization/78162
3305 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
3308 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3310 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
3312 (aarch64_next_callee_save): Likewise.
3313 (aarch64_pushwb_single_reg): Likewise.
3314 (aarch64_gen_storewb_pair): Likewise.
3315 (aarch64_push_regs): Likewise.
3316 (aarch64_gen_loadwb_pair): Likewise.
3317 (aarch64_pop_regs): Likewise.
3318 (aarch64_gen_store_pair): Likewise.
3319 (aarch64_gen_load_pair): Likewise.
3320 (aarch64_save_callee_saves): Likewise.
3321 (aarch64_restore_callee_saves): Likewise.
3323 2016-11-02 Richard Biener <rguenther@suse.de>
3325 PR tree-optimization/78035
3326 PR tree-optimization/77964
3327 * gimple-pretty-print.c (pp_points_to_solution): Print
3328 vars_contains_interposable.
3329 * tree-ssa-alias.c: Include varasm.h.
3330 (ptrs_compare_unequal): Check vars_contains_interposable and
3331 decl_binds_to_current_def_p.
3332 (dump_points_to_solution): Dump vars_contains_interposable.
3333 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3335 * tree-ssa-structalias.c: Include varasm.h.
3336 (set_uids_in_ptset): Record whether vars contains a
3337 not decl_binds_to_current_def_p variable in vars_contains_interposable.
3338 (ipa_escaped_pt): Update initializer.
3340 2016-11-02 Richard Biener <rguenther@suse.de>
3342 PR tree-optimization/78047
3343 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3344 fake field at offset zero conservatively regarding to may_have_pointers.
3346 2016-11-02 Richard Biener <rguenther@suse.de>
3348 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3349 infer_value_range on stmt ops and update value-ranges.
3350 Dump visited stmts and blocks.
3351 (evrp_dom_walker::push_value_range): Dump changes.
3352 (evrp_dom_walker::pop_value_range): Likewise.
3353 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3355 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3357 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3359 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3361 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3363 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3364 and adjust for that.
3365 * cfgrtl.h (delete_insn_chain): Adjust prototype.
3367 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3369 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3371 (transcode_memory_rtx): Likewise.
3372 (move_to_acc): Likewise.
3373 (move_from_acc): Likewise.
3374 (move_acc_to_reg): Likewise.
3375 (move_to_x): Likewise.
3376 (move_to_hl): Likewise.
3377 (move_to_de): Likewise.
3378 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3379 (rs6000_emit_savres_rtx): Likewise.
3380 (rs6000_emit_prologue): Likewise.
3381 * reorg.c (update_reg_unused_notes): Likewise.
3382 * rtl.h (remove_note): Adjust prototype.
3383 * rtlanal.c (remove_note): Make argument type rtx_insn *.
3385 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3387 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3388 variables so some can be rtx_insn *.
3389 (alpha_emit_xfloating_libcall): Likewise.
3390 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3391 (mips_legitimize_tls_address): Likewise.
3392 * optabs.c (expand_binop): Likewise.
3393 * reload1.c (gen_reload): Likewise.
3395 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3397 * reorg.c (relax_delay_slots): Split up the trial variable.
3399 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3401 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3402 of variables rtx_insn *.
3403 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3404 (legitimize_tls_address): Likewise.
3405 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3406 (bfin_gen_bundles): Likewise.
3407 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3408 (c6x_reorg): Likewise.
3409 * config/frv/frv.c (frv_reorder_packet): Likewise.
3410 * config/i386/i386.c (ix86_split_idivmod): Likewise.
3411 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3412 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3413 * config/mn10300/mn10300.c: Likewise.
3414 * config/rl78/rl78.c: Likewise.
3415 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3416 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3417 (sh_expand_cmpnstr): Likewise.
3418 (sh_expand_strlen): Likewise.
3419 (sh_expand_setmem): Likewise.
3420 * config/sh/sh.md: Likewise.
3421 * emit-rtl.c (emit_pattern_before): Likewise.
3422 * except.c: Likewise.
3423 * final.c: Likewise.
3426 2016-11-01 Jason Merrill <jason@redhat.com>
3428 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3429 a COND_EXPR with constant condition.
3431 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3433 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3434 and its initialization.
3436 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3438 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3441 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3443 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3444 argument, don't call add_linkage_name if it is true.
3445 (gen_variable_die): For C++ inline static data members, consider the
3446 initial call when old_die is NULL to be declaration and call
3447 add_name_and_src_coords_attributes in that case with true as
3448 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
3449 (gen_member_die): For C++ inline static data members, emit a
3450 definition DIE right away in DW_TAG_compile_unit context.
3452 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3455 * config/pa/pa.md: Add new shift/add patterns to handle
3456 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3458 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
3460 * config/xtensa/xtensa-protos.h
3461 (xtensa_use_return_instruction_p): New prototype.
3462 * config/xtensa/xtensa.c (xtensa_current_frame_size,
3463 xtensa_callee_save_size): Remove.
3464 (struct machine_function): Add new fields: current_frame_size,
3465 callee_save_size, frame_laid_out and epilogue_done.
3466 (compute_frame_size, xtensa_expand_prologue,
3467 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3468 cfun->machine->callee_save_size and xtensa_current_frame_size
3469 with cfun->machine->current_frame_size.
3470 (compute_frame_size): Update cfun->machine->frame_laid_out and
3471 don't update frame layout after reload completion.
3472 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3473 instead of zeroing xtensa_current_frame_size.
3474 (xtensa_use_return_instruction_p): New function.
3475 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3477 (INITIAL_ELIMINATION_OFFSET): Use return value of
3478 compute_frame_size instead of xtensa_current_frame_size value.
3479 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3480 function xtensa_use_return_instruction_p instead of inline code.
3482 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3484 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3485 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3486 * dwarf2out.c (rnglist_idx): New variable.
3487 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3488 (DEBUG_RNGLISTS_SECTION): Define.
3489 (ranges_base_label): New variable.
3490 (size_of_die) <case dw_val_class_range_list>: If using
3491 DW_FORM_rnglistx, count size of uleb128 of range list index.
3492 (value_format) <case dw_val_class_range_list>: For
3493 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3494 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3495 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3496 (add_ranges_num): Remove useless prototype. Don't multiply
3497 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
3498 for new fields added to dw_ranges struct.
3499 (add_ranges): Add maybe_new_sec argument and pass it
3500 through to add_ranges_num.
3501 (note_rnglist_head): New function.
3502 (add_ranges_by_labels): Pass true as maybe_new_sec to
3503 add_ranges_num, call note_rnglist_head on the head of the list.
3504 (output_ranges): Add function comment. Switch to
3505 .debug_ranges section here and emit .Ldebug_ranges0 label.
3506 (index_rnglists, output_rnglists): New functions.
3507 (gen_subprogram_die): Formatting fixes.
3508 (add_high_low_attributes): Don't divide offsets
3509 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
3510 first list element or when pointing into the middle of
3511 a list. Pass true as second argument to add_ranges on the
3512 first block fragment after cold/hot section switch.
3513 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3514 section instead of .debug_ranges. Initialize
3515 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3516 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3517 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
3518 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3519 Call output_rnglists for -gdwarf-5.
3520 (dwarf2out_c_finalize): Clear rnglist_idx.
3522 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
3524 * combine.c (simplify_compare_const): Add gcc_fallthrough.
3526 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
3527 Tamar Christina <tamar.christina@arm.com>
3529 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3530 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3531 (vmaxnmq_f32): Likewise.
3532 (vminnm_f32): Likewise.
3533 (vminnmq_f32): Likewise.
3534 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3536 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3539 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3541 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3542 binary floating point types supported by the hardware except for
3544 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3545 vector instruction for optimizing extracting a SImode from a
3546 V4SImode vector and converting it to floating point.
3547 (vsx_xvcvuxwdp_df): Likewise.
3548 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3549 registers to be any VSX register. Move stores to the end of the
3551 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3552 to optimize extracting a SImode from a V4SImode vector and
3553 converting it to a binary floating point type supported by the
3554 hardware. Use the vector converts instead of extracting the
3555 element, sign extending it, and then converting it to double.
3556 Other floating point types than double first convert to double,
3557 then the double is converted to that type.
3558 (vsx_extract_si_<uns>float_<mode>): Likewise.
3560 2016-10-31 Andrew Pinski <apinski@cavium.com>
3562 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3563 Rewrite handling of part num to handle the case where
3564 multiple implementers share the same part num.
3566 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3567 Jakub Jelinek <jakub@redhat.com>
3569 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3570 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3572 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3574 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3575 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3576 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3577 (is_cu_die, is_unit_die): Likewise.
3578 (should_move_die_to_comdat, break_out_comdat_types): Adjust
3579 comments for DWARF5 DW_UT_type units.
3580 (output_compilation_unit_header): Add UT argument, output
3581 start of DWARF5 .debug_info section header.
3582 (output_comp_unit): Add dwo_id argument. Adjust
3583 output_compilation_unit_header caller, for DW_UT_split_compile
3584 emit dwo_id field, otherwise padding1. Emit padding2 field.
3585 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3586 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3587 (output_skeleton_debug_sections): Add dwo_id argument, for
3588 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3589 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3590 DW_UT_type or DW_UT_split_type units rather than .debug_types.
3591 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3592 DW_TAG_compile_unit for skeleton unit die. Don't add
3593 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3594 address to output_comp_unit and output_skeleton_debug_sections.
3596 * dwarf2out.c (debug_line_str_section): New variable.
3597 (debug_line_str_hash): Likewise.
3598 (DEBUG_LINE_STR_SECTION): Define.
3599 (set_indirect_string): Handle DW_FORM_line_strp like
3601 (find_string_form): Fix up formatting.
3602 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3604 (output_die): Handle DW_FORM_line_strp.
3605 (DWARF5_USE_DEBUG_LINE_STR): Define.
3606 (output_line_string): New function.
3607 (output_file_names): Add -gdwarf-5 support.
3608 (output_line_info): Likewise.
3609 (init_sections_and_labels): Initialize debug_line_str_section.
3610 (output_indirect_string): Change 2nd argument from void *
3611 to enum dwarf_form form, compare with form rather than
3613 (output_indirect_strings): Pass DW_FORM_strp to
3614 output_indirect_string traversion.
3615 (dwarf2out_finish): Output .debug_line_str strings.
3616 (dwarf2out_c_finalize): Clear debug_line_str_section and
3617 debug_line_str_hash.
3619 2016-10-31 Tom Tromey <tom@tromey.com>
3622 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
3623 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
3624 DW_OP_GNU_push_tls_address case.
3625 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
3627 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3629 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
3630 for frame_offset_rel bit.
3631 (struct array_descr_info): Add rank field.
3632 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
3633 and placeholder_seen fields.
3634 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
3635 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
3636 DW_OP_pick 1 into DW_OP_over.
3637 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
3638 gen_variant_part): Clear placeholder_{arg,seen}.
3639 (loc_list_from_tree_1): Drop const from context argument.
3640 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
3641 (loc_list_for_address_of_addr_expr_of_indirect_ref,
3642 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
3644 (add_scalar_info): Drop const from context argument. Handle
3645 context->placeholder_arg.
3646 (add_bound_info): Drop const from context argument.
3647 (gen_descr_array_type_die): Drop const from ctx variable.
3648 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
3649 attribute and use a single DW_TAG_generic_subrange instead of
3650 7 DW_TAG_subrange_type for assumed rank arrays.
3652 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
3653 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
3654 from bool to 1-bit uchar bitfield. Add num_assigned and
3655 offset_emitted bitfields.
3656 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
3657 for dw_val_class_lineptr and dw_val_class_macptr. Handle
3658 dw_val_class_loclistsptr.
3659 (new_addr_loc_descr): Fix up formatting.
3660 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
3661 (add_AT_low_high_pc): Fix up formatting.
3662 (add_AT_loclistsptr): New function.
3663 (AT_lbl): Allow dw_val_class_loclistsptr.
3664 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
3665 Handle dw_val_class_loclistsptr.
3666 (loc_list_idx): New variable.
3667 (output_loclists_offsets, assign_location_list_indexes): New
3669 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
3670 add size_of_uleb128 of the index. Drop never used
3671 dwarf_split_debug_info AT_index handling. Handle
3672 dw_val_class_loclistsptr.
3673 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
3674 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
3675 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
3676 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
3677 DW_FORM_loclistx indexes.
3678 (output_attr_index_or_value): Fix up formatting. Don't handle
3679 dw_val_class_loc_list here.
3680 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
3681 For dw_val_class_loc_list call output_loc_list_offset rather than
3682 output_attr_index_or_value.
3683 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
3684 or .debug_loclists.dwo section name for debug_loc_section.
3685 (resolve_addr_in_expr): Formatting fix.
3686 (index_location_lists): Likewise.
3687 (dwarf2out_finish): If there are any location lists, for
3688 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
3689 index_location_lists only if have_location_lists. Call
3690 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
3691 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
3692 -gsplit-dwarf also emit offset table.
3694 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
3695 (size_of_die, value_format, output_die): Use
3696 DW_FORM_data16 for 128-bit dw_val_class_const_double or
3697 dw_val_class_wide_int.
3699 * dwarf2out.c (dwarf_op): Renamed to ...
3700 (dwarf_OP): ... this.
3701 (convert_descriptor_to_mode, scompare_loc_descriptor,
3702 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3703 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
3705 (dwarf_AT, dwarf_TAG): New functions.
3706 (check_die): Disallow DW_AT_call_all_calls next to
3707 DW_AT_GNU_all_call_sites.
3708 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
3709 and attributes instead of the corresponding GNU tag and attributes.
3710 (gen_subprogram_die): Likewise. Emit call site information even
3711 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
3712 DW_AT_defaulted in comment.
3713 (resolve_addr): Handle DW_AT_call_origin attribute on
3714 DW_TAG_call_site DIE like DW_AT_abstract_origin on
3715 DW_TAG_GNU_call_site DIE.
3717 * dwarf2out.c (dwarf_op): New function.
3718 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
3719 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
3720 (output_loc_operands, output_loc_operands_raw): Likewise.
3721 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
3722 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
3723 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
3724 if dwarf_version < 5.
3725 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
3727 (scompare_loc_descriptor, ucompare_loc_descriptor,
3728 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3729 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
3730 optimize_location_into_implicit_ptr): Likewise. Only punt for
3731 !dwarf_strict if dwarf_version < 5.
3732 (string_cst_pool_decl): Adjust comment.
3733 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
3735 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
3736 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3737 (struct dw_val_node): Add val_file_implicit field.
3738 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
3739 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
3740 output_die): Handle dw_val_class_const_implicit,
3741 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3742 (abbrev_die_table): Change into va_gc vec.
3743 (abbrev_die_table_allocated, abbrev_die_table_in_use,
3744 ABBREV_DIE_TABLE_INCREMENT): Remove.
3745 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
3746 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
3748 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
3749 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
3751 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
3753 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
3755 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
3757 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
3758 unit. Call optimize_abbrev_table.
3759 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
3760 abbrev_die_table being a va_gc vec.
3762 PR tree-optimization/77860
3763 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
3764 also integral complex and vector constants.
3766 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
3767 optimize_macinfo_range, save_macinfo_strings): Replace
3768 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
3769 (output_macinfo): Likewise. Emit .debug_macro* rather than
3770 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
3771 (init_sections_and_labels): Use .debug_macro* labels rather than
3772 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
3773 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
3774 or DW_AT_GNU_macros for -gdwarf-5.
3776 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
3778 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
3780 2016-09-11 Le-Chun Wu <lcwu@google.com>
3781 Mark Wielaard <mjw@redhat.com>
3783 * common.opt (Wshadow=global): New option. Default for -Wshadow.
3784 (Wshadow=local): New option.
3785 (Wshadow-local): Hidden alias for -Wshadow=local.
3786 (Wshadow=compatible-local): New option.
3787 (Wshadow-compatible-local): Hidden alias for
3788 -Wshadow=compatible-local.
3789 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
3790 Wshadow=compatible-local.
3792 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3794 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
3795 Check slp defs for COND_EXPR by swapping/inverting operands if the
3796 new parameter SWAP indicates so.
3797 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
3798 is isomorphic to the first stmt via swapping/inverting. Store swap
3799 information in the new parameter SWAP.
3800 (vect_build_slp_tree): New local array SWAP and pass it to function
3801 vect_build_slp_tree_1. Cleanup result handling code for function
3802 call to vect_get_and_check_slp_defs. Skip operand swapping if the
3803 order of operands has been fixed as indicated by SWAP[i].
3805 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3807 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
3808 unnecessary data dependence check after visited store stmt.
3810 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3812 PR tree-optimization/71915
3813 PR tree-optimization/71490
3814 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
3816 (find_basis_for_base_expr): Require stride types to match when
3818 (alloc_cand_and_find_basis): Record the stride type.
3819 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
3820 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
3821 the expressions having those types.
3822 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
3823 (create_mul_ssa_cand): Likewise.
3824 (create_mul_imm_cand): Likewise.
3825 (create_add_ssa_cand): Likewise.
3826 (create_add_imm_cand): Likewise.
3827 (legal_cast_p_1): Change interface to accept types rather than the
3828 expressions having those types.
3829 (legal_cast_p): Pass types to legal_cast_p_1.
3830 (slsr_process_cast): Pass stride type to
3831 alloc_cand_and_find_basis.
3832 (slsr_process_copy): Likewise.
3833 (dump_candidate): Display stride type when a cast exists.
3834 (create_add_on_incoming_edge): Introduce a cast when necessary for
3836 (analyze_increments): Change the code checking for invalid casts
3837 to rely on the stride type, and update the documentation and
3838 example. Change the code checking for pointer multiplies to rely
3840 (insert_initializers): Introduce a cast when necessary for the
3841 stride type. Use the stride type for the type of the initializer.
3843 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3845 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
3847 2016-10-29 Jakub Jelinek <jakub@redhat.com>
3849 PR rtl-optimization/77919
3850 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
3851 into memory if both modes are complex and their inner modes have the
3852 same precision. If the two modes are different complex modes, convert
3853 each part separately and generate a new CONCAT.
3855 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3857 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
3859 2016-10-29 Jakub Jelinek <jakub@redhat.com>
3862 * gimple-ssa-store-merging.c
3863 (imm_store_chain_info::output_merged_store): Use build_aligned_type
3864 instead of SET_TYPE_ALIGN on shared integral type.
3866 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3868 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3869 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
3872 2016-10-28 Jeff Law <law@redhat.com>
3874 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
3875 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
3877 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3879 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
3881 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3883 * target.def (min_arithmetic_precision): New hook.
3884 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
3885 * doc/tm.texi: Regenerate.
3886 * internal-fn.c (expand_arith_overflow): Adjust handling of target
3887 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
3888 * targhooks.c (default_min_arithmetic_precision): New function.
3889 * targhooks.h (default_min_arithmetic_precision): Declare.
3890 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
3891 (sparc_min_arithmetic_precision): New function.
3893 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3896 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
3897 Swap commutative operands in new RTL if needed. Handle zero_ext
3899 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
3902 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3903 Kugan Vivekanandarajah <kuganv@linaro.org>
3904 Jim Wilson <jim.wilson@linaro.org>
3906 PR tree-optimization/43721
3907 * target.def: New hook expand_divmod_libfunc.
3908 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
3909 * doc/tm.texi: Regenerate.
3910 * internal-fn.def: Add new entry for DIVMOD ifn.
3911 * internal-fn.c (expand_DIVMOD): New.
3912 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
3914 (widen_mul_stats): Add new field divmod_calls_inserted.
3915 (target_supports_divmod_p): New.
3916 (divmod_candidate_p): Likewise.
3917 (convert_to_divmod): Likewise.
3918 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
3919 renumber_gimple_stmt_uids at beginning of function. Call
3920 convert_to_divmod and record stats for divmod.
3921 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
3922 TARGET_EXPAND_DIVMOD_LIBFUNC.
3923 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
3926 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3927 Segher Boessenkool <segher@kernel.crashing.org>
3929 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
3930 swapping the arms of the branch.
3931 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
3932 sequence for the generic signed-signed-signed case.
3934 2016-10-28 Jeff Law <law@redhat.com>
3936 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
3938 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3940 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3942 PR rtl-optimization/78029
3943 * function.c (prologue_contains, epilogue_contains): New functions.
3944 (record_prologue_seq, record_epilogue_seq): New functions.
3945 * function.h (prologue_contains, epilogue_contains,
3946 record_prologue_seq, record_epilogue_seq): New declarations.
3947 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
3948 mixing prologue and epilogue insns.
3949 (init_deps): Initialize the new fields in struct deps_desc.
3950 * sched-int.h (struct deps_desc): New fields last_prologue,
3951 last_epilogue, and last_logue_was_epilogue.
3952 * shrink-wrap.c (emit_common_heads_for_components): Record all
3953 emitted prologue and epilogue insns.
3954 (emit_common_tails_for_components): Ditto.
3955 (insert_prologue_epilogue_for_components): Ditto.
3957 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3960 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
3961 * common.opt (fstore-merging): New Optimization option.
3962 * opts.c (default_options_table): Add entry for
3963 OPT_ftree_store_merging.
3964 * fold-const.h (can_native_encode_type_p): Declare prototype.
3965 * fold-const.c (can_native_encode_type_p): Define.
3966 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
3967 (PARAM_MAX_STORES_TO_MERGE): Likewise.
3968 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
3969 * passes.def: Insert pass_tree_store_merging.
3970 * tree-pass.h (make_pass_store_merging): Declare extern
3972 * gimple-ssa-store-merging.c: New file.
3973 * doc/invoke.texi (Optimization Options): Document
3975 (--param documentation): Document store-merging-allow-unaligned
3976 and max-stores-to-merge.
3978 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
3981 * gimplify.c (gimplify_init_constructor): Move emit of constructor
3982 assignment to earlier in the if/else logic.
3984 2016-10-28 Richard Biener <rguenther@suse.de>
3988 * fold-const.c (make_bit_field_ref): Only adjust alias set
3989 when the original alias set was zero.
3991 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3993 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
3994 (s390_adjust_loops): New function.
3995 (s390_reorg): Invoke s390_adjust_loops.
3996 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
3997 ("osc_break"): New insn definition.
3999 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4001 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
4002 * config.gcc: Support alternate archXX cpu levels with
4003 --with-arch= and --with-tune=.
4004 * config/s390/linux.h: Translate new archXX cpu levels to the
4005 original names when calling GAS.
4006 * config/s390/tpf.h: Likewise.
4007 * doc/invoke.texi: Document the alternate cpu level names.
4009 2016-10-28 Jakub Jelinek <jakub@redhat.com>
4011 PR rtl-optimization/77919
4012 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
4013 MEM if mode1 is not a complex mode.
4015 PR rtl-optimization/78132
4016 * ree.c (combine_reaching_defs): Give up if copy_needed and
4017 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
4019 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
4021 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
4023 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4025 * config/rs6000/constraints.md (wH constraint): Add new
4026 constraints for allowing 32-bit integers (and eventually 8/16-bit
4027 integers) into the vector registers.
4028 (wI constraint): Likewise.
4029 (wJ constraint): Likewise.
4030 (wK constraint): Likewise.
4031 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
4032 -mvsx-small-integer as a default option for ISA 2.07
4034 (POWERPC_MASKS): Likewise.
4035 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
4036 switch to turn off small integer support in vector registers.
4037 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
4038 test for -mupper-regs-di, since it is already done with the
4039 reg_add[mode].scalar_in_vsx_p. Add support for the switch
4040 -mvsx-small-integer.
4041 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
4043 (rs6000_setup_reg_addr_masks): Likewise.
4044 (rs6000_init_hard_regno_mode_ok): Likewise.
4045 (rs6000_option_override_internal): Add consistency checks for
4046 -mvsx-small-integer.
4047 (rs6000_secondary_reload_simple_move): SImode is a simple move if
4048 -mvsx-small-integer.
4049 (rs6000_secondary_reload): Use std::swap.
4050 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
4051 VSX_REGS for small integers in vector registers, since there is no
4052 D-FORM address mode for such types.
4053 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
4054 (rs6000_opt_masks): Add -mvsx-small-integer.
4055 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
4057 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
4058 extracts can be done on ISA 2.07.
4059 (vsx_extract_<mode>): Add support for small integers in vsx
4061 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
4062 longer support V4SImode in this pattern.
4063 (vsx_extract_si): New insn to support extraction of SImode in ISA
4064 2.07 using either xxextractuw or vspltw.
4065 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
4066 longer support V4SImode in this pattern.
4067 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
4068 wJ, and wK constraints.
4069 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
4070 storing SDmode with VSX instructions.
4071 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
4072 GPR load and before the FPR and VSX loads. Remove ??, ! from the
4073 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
4074 small integers in vector registers.
4075 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
4076 load and before the FPR and VSX loads. Remove ??, ! from the
4077 constraints. Add VEXTSW2D support for small integers in vector
4079 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
4080 integers in vector registers.
4081 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
4082 move instead of using an UNSPEC.
4083 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
4084 integers in vector registers.
4085 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
4086 move instead of using an UNSPEC.
4087 (movsi_internal1): Add support for -mvsx-small-integer. Align
4088 columns so that it is more readable.
4089 (SImode splitter for ISA 3.0 constants): Add splitter for
4090 -128..127 constants that can easily be constructed on ISA 3.0.
4091 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
4094 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4097 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
4100 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4102 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
4103 PIC_OFFSET_TABLE_REGNUM twice.
4105 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4107 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
4108 support for constant operand for OP.
4110 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4112 * dwarf2out.c (gen_member_die): Only reparent_child instead of
4113 splice_child_die if child doesn't have DW_AT_specification attribute.
4115 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4117 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
4118 (TARGET_HAVE_LDREXBH): Likewise.
4119 (TARGET_HAVE_LDACQ): Likewise.
4121 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4123 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
4124 logic to to decide whether to copy over old value to register for new
4126 * config/arm/sync.md: Add comments explaning why mode and code
4127 attribute are not defined in iterators.md
4128 (thumb1_atomic_op_str): New code attribute.
4129 (thumb1_atomic_newop_str): Likewise.
4130 (thumb1_atomic_fetch_op_str): Likewise.
4131 (thumb1_atomic_fetch_newop_str): Likewise.
4132 (thumb1_atomic_fetch_oldop_str): Likewise.
4133 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
4134 mirror the more restrictive constraints of the Thumb-1 insns after
4135 split compared to Thumb-2 counterpart insns.
4136 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
4137 in sync with non atomic version.
4138 (atomic_nand<mode>): Likewise.
4139 (atomic_fetch_<sync_optab><mode>): Likewise.
4140 (atomic_fetch_nand<mode>): Likewise.
4141 (atomic_<sync_optab>_fetch<mode>): Likewise.
4142 (atomic_nand_fetch<mode>): Likewise.
4143 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
4144 in sync with atomic version.
4145 (thumb1_subsi3_insn): Likewise.
4146 (thumb1_andsi3_insn): Likewise.
4147 (thumb1_iorsi3_insn): Likewise.
4148 (thumb1_xorsi3_insn): Likewise.
4150 2016-10-27 Nick Clifton <nickc@redhat.com>
4152 * plugin.c (register_plugin_info): Produce an error message if the
4153 plugin is not found in the hash table.
4155 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4157 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
4160 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
4163 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
4164 define builtin functions from the bdesc_spe_predicates or
4165 bdesc_spe_evsel arrays if the builtin mask is not compatible with
4166 the current compiler configuration.
4167 (paired_init_builtins): Modify loop to not define define builtin
4168 functions from the bdesc_paried_preds array if the builtin mask is
4169 not compatible with the current compiler configuration.
4170 (altivec_init_builtins): Modify loops to not define the
4171 __builtin_altivec_stxvl function nor the builtin functions from
4172 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
4173 builtin mask is not compatible with the current compiler
4176 2016-10-26 Jeff Law <law@redhat.com>
4178 * config/sh/sh.c (output_branch): Add missing fallthru comments.
4179 (gen_shl_and): Likewise.
4180 * config/sh/sh.md (movsicc): Add missing fallthru comments.
4182 * config/mips/mips.c (mips16_constant_cost): Add missing
4184 (mips16_build_call_stub): Increase buffer size. Adjust
4187 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4189 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
4190 INSN_UIDs for all insns in compact mode.
4191 (rtx_writer::print_rtx): Likewise.
4192 * print-rtl.h (rtx_writer::flag_compact): Update comment.
4193 * rtl-tests.c (selftest::test_dumping_insns): Update expected
4194 output to include INSN_UID.
4195 (selftest::test_uncond_jump): Likewise.
4197 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
4199 * haifa-sched.c (call_used_regs_num): Rename to...
4200 (call_saved_regs_num): ...this.
4201 (fixed_regs_num): New variable.
4202 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
4204 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
4206 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4208 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
4210 * print-rtl.c (outfile): Delete global.
4211 (sawclose): Likewise.
4213 (in_call_function_usage): Likewise.
4214 (flag_compact): Likewise.
4215 (flag_simple): Likewise.
4216 (rtx_writer::rtx_writer): New ctor.
4217 (print_rtx_operand_code_0): Convert to...
4218 (rtx_writer::print_rtx_operand_code_0): ...this.
4219 (print_rtx_operand_code_e): Convert to...
4220 (rtx_writer::print_rtx_operand_code_e): ...this.
4221 (print_rtx_operand_codes_E_and_V): Convert to...
4222 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
4223 (print_rtx_operand_code_i): Convert to...
4224 (rtx_writer::print_rtx_operand_code_i): ...this.
4225 (print_rtx_operand_code_r): Convert to...
4226 (rtx_writer::print_rtx_operand_code_r): ...this.
4227 (print_rtx_operand_code_u): Convert to...
4228 (rtx_writer::print_rtx_operand_code_u): ...this.
4229 (print_rtx_operand): Convert to...
4230 (rtx_writer::print_rtx_operand): ...this.
4231 (print_rtx): Convert to...
4232 (rtx_writer::print_rtx): ...this.
4233 (print_inline_rtx): Rewrite in terms of class rtx_writer.
4234 (debug_rtx): Likewise.
4235 (print_rtl): Convert to...
4236 (rtx_writer::print_rtl): ...this.
4237 (print_rtl): Reimplement in terms of class rtx_writer.
4238 (print_rtl_single): Rewrite in terms of class rtx_writer.
4239 (print_rtl_single_with_indent): Convert to..
4240 (rtx_writer::print_rtl_single_with_indent): ...this.
4241 (print_simple_rtl): Rewrite in terms of class rtx_writer.
4242 * print-rtl.h (flag_compact): Delete decl.
4243 (class rtx_writer): New class.
4244 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
4247 2016-10-26 Jeff Law <law@redhat.com>
4249 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
4252 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
4253 (check_if_valid_sleep_operand): Add missing fallthru comment.
4254 (arc_register_move_cost): Increase buffer size.
4255 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
4257 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
4259 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
4260 comment. Add gcc_unreachable for path that should never happen.
4262 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
4265 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4266 Martin Liska <mliska@suse.cz>
4269 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
4270 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
4271 on outer context if any.
4273 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4275 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
4276 by increment rather than double it.
4277 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
4278 emit a space before args[4].
4279 (END): Don't emit a space before with_arg.
4281 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4283 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
4284 Baseline only alternatives to (i) hold store atomic success value in a
4285 return register rather than a scratch register, (ii) use a low register
4286 for it and to (iii) ensure the cbranchsi insn generated by the split
4287 respect the constraints of Thumb-1 cbranchsi4_insn and
4289 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
4290 constraints must match those in atomic_compare_and_swap.
4291 (cbranchsi4_scratch): Likewise.
4293 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4295 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4296 variable. Add the new parameter to the insn generator. Set that
4297 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
4298 return value from the negation of that parameter for Thumb-1, keeping
4299 the logic unchanged otherwise except for using bdst as the destination
4300 register of the compare_and_swap insn.
4301 (arm_split_compare_and_swap): Add explanation about how is the value
4302 returned to the function comment. Rename scratch variable to
4303 neg_bval. Adapt initialization of variables holding operands to the
4304 new operand numbers. Use return register to hold result of store
4305 exclusive for Thumb-1, scratch register otherwise. Construct the
4306 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
4307 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
4308 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
4309 for strongly ordered compare_and_swap.
4310 * config/arm/predicates.md (cc_register_operand): New predicate.
4311 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
4312 match_operand with the new predicate to accept either the CC flag or a
4313 destination register for the boolean return value, restricting it to
4314 CC flag only via constraint. Adapt operand numbers accordingly.
4316 2016-10-26 Jeff Law <law@redhat.com>
4318 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4320 * config/frv/frv.c (comparison_string): Do not fall through after
4323 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4325 (expand_one_builtin): Add missing break.
4327 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4328 (m32c_legitimate_address_p): Likewise.
4330 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4332 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4334 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4337 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4340 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4342 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4344 (rl78_asm_ctor_dtor): Increase buffer size.
4346 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4348 (xstormy16_asm_output_constructor): Likewise.
4350 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4353 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4354 comment to silence warning.
4356 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4357 (spu_legitimate_address_p): Fix logic error and add missing fallthru
4360 2016-10-26 Michael Matz <matz@suse.de>
4362 PR tree-optimization/78060
4363 PR tree-optimization/78061
4364 PR tree-optimization/78088
4365 * tree-ssa-loop-split.c (easy_exit_values): New function.
4366 (tree_ssa_split_loops): Use it.
4367 (compute_new_first_bound): Change order of operations,
4368 fix invalid use of types.
4370 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
4372 gen-pass-instances.awk is sensitive to the order in which
4373 passes are added; passes that appear later have to be added first.
4377 * config/avr/avr-passes.def: Swap order of directives for
4378 gen-pass-instances.awk.
4380 2016-10-25 Jeff Law <law@redhat.com>
4382 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4383 (vax_notice_update_cc): Likewise.
4385 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4387 * config.gcc (sparc*-*-solaris2*): Adjust.
4388 (sparc64-*-linux*): Likewise.
4389 * config/sparc/default-64.h: Rename to...
4390 * config/sparc/default64.h: ...this.
4391 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4393 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4394 * config/sparc/sparc.h: Minor tweaks.
4395 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4396 TARGET_ARCH32 throughout. Minor various tweaks throughout.
4398 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4400 * input.c (fcache::file_patch): Add comment about lifetime.
4401 (selftest::cpp_reader_ptr): New class.
4402 (selftest::lexer_test): Convert m_parser from cpp_reader *
4403 to a cpp_reader_ptr, and move m_tempfile to after it.
4404 (selftest::lexer_test::lexer_test): Update for above reordering.
4405 (lexer_test::~lexer_test): Move cleanup of m_parser to
4406 cpp_reader_ptr's dtor.
4408 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4410 * toplev.c (toplev::main): Remove call to
4411 location_adhoc_data_fini.
4413 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4415 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4416 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
4418 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4420 * ggc-tests.c (forcibly_ggc_collect): Rename to...
4421 (selftest::forcibly_ggc_collect): ...this, and remove "static".
4422 (test_basic_struct): Update for above renaming.
4423 (test_length): Likewise.
4424 (test_union): Likewise.
4425 (test_finalization): Likewise.
4426 (test_deletable_global): Likewise.
4427 (test_inheritance): Likewise.
4428 (test_chain_next): Likewise.
4429 (test_user_struct): Likewise.
4430 (test_tree_marking): Likewise.
4431 * selftest-run-tests.c (selftest::run_tests): Call
4432 selftest::forcibly_ggc_collect at the end of the selftests.
4433 * selftest.h (selftest::forcibly_ggc_collect): New decl.
4435 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4438 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4439 * optabs.c (expand_vec_cond_expr): For comparison codes
4440 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4441 (expand_vec_cmp_expr): For comparison codes
4442 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4443 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4444 Add enum tree_code argument.
4445 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4447 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
4448 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4450 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
4451 NE_EXPR, attempt to use vcondeq_optab as fallback.
4452 * tree-vect-generic.c (expand_vector_comparison,
4453 expand_vector_divmod, expand_vector_condition): Adjust
4454 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4455 * tree-vect-stmts.c (vectorizable_condition,
4456 vectorizable_comparison): Likewise.
4457 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4458 check_bool_pattern, search_type_for_mask_1): Likewise.
4459 * expr.c (do_store_flag): Likewise.
4460 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4461 @code{vcondeq@var{m}@var{n}}): Document.
4462 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4465 2016-10-25 Jeff Law <law@redhat.com>
4467 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4469 (v850_output_aligned_bss): Add missing break.
4471 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4473 2016-10-25 Martin Liska <mliska@suse.cz>
4476 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4477 statements as they can also contain possibly a freeing call.
4479 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
4480 Martin Liska <mliska@suse.cz>
4483 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4484 * ipa-icf.c (sem_function::get_hash): Add target optimization
4487 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
4490 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4491 Remove partial overlap check for shift by 1.
4492 (ashldi3_neon): Likewise.
4494 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4496 * config/arm/constraints.md (Q constraint): Document its use for
4498 (Pf constraint): New constraint for relaxed, consume or relaxed memory
4500 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4501 alternatives to allow any register when memory model matches Pf and
4502 thus lda is used, but only low registers otherwise. Use unpredicated
4503 output template for Thumb-1 targets.
4504 (atomic_store<mode>): Likewise for stl.
4505 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4506 whose output template does not have predication.
4507 (arm_load_acquire_exclusive<mode>): Likewise.
4508 (arm_load_exclusivesi): Likewise.
4509 (arm_load_acquire_exclusivesi): Likewise.
4510 (arm_store_release_exclusive<mode>): Likewise.
4511 (arm_store_exclusive<mode>): Use unpredicated output template for
4514 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4516 * internal-fn.def (LAUNDER): New internal function.
4517 * internal-fn.c (expand_LAUNDER): New function.
4519 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4520 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4522 New avr target pass to work around performance loss by PR fix.
4526 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4527 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4528 * config/avr/predicates.md (extend_operator): New.
4529 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4530 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4531 (make_avr_pass_casesi): New prototypes.
4532 * config/avr/avr.c (print-rtl.h): Include it.
4533 (pass_data avr_pass_data_casesi): Data for new pass.
4534 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4535 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4536 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4537 (avr_optimize_casesi): New functions.
4539 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4540 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4544 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4546 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4548 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4549 DW_AT_rvalue_reference attributes.
4551 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
4553 * doc/invoke.text (Wint-in-bool-context): Update documentation.
4554 * value-prof.c (stringop_block_profile): Fix a warning.
4556 2016-10-24 Martin Sebor <msebor@redhat.com>
4559 * builtins.c (string_length): New function.
4560 (c_strlen): Use string_length. Correctly handle wide strings.
4561 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4563 (target_int_max): Call target_max_value.
4564 (format_result::knownrange): New data member.
4565 (fmtresult::fmtresult): Define default constructor.
4566 (format_integer): Use it and set format_result::knownrange.
4567 Handle global constants.
4568 (format_floating_max): Add third argument.
4569 (format_floating): Recompute maximum value for %a for each argument.
4570 (get_string_length): Use fmtresult default ctor.
4571 (format_string): Set format_result::knownrange.
4572 (format_directive): Check format_result::knownrange.
4573 (add_bytes): Same. Correct caret placement in diagnostics.
4574 (pass_sprintf_length::compute_format_length): Set
4575 format_result::knownrange.
4576 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4578 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4580 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4581 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4583 2016-10-24 Ximin Luo <infinity0@pwned.gg>
4586 * dwarf2out.c (file_table_relative_p): Remove.
4587 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4588 also for absolute paths.
4589 * doc/tm.texi: Update.
4590 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4591 * target.def (force_at_comp_dir): Remove hook.
4592 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4594 2016-10-24 Richard Biener <rguenther@suse.de>
4596 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4597 backedges when identifying the single predecessor to take
4598 conditional info from. Use SCEV to get at ranges for loop IVs.
4599 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4600 avoid false warning.
4602 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
4605 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4606 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4607 (avr_address_tiny_absdata_p): New static function.
4608 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4609 it to determine validity of constant addresses.
4610 (avr_attribute_table) [absdata]: New variable attribute...
4611 (avr_handle_absdata_attribute): ...and handler.
4612 (avr_decl_absdata_p): New static function.
4613 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4614 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4615 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4617 2016-10-24 Richard Biener <rguenther@suse.de>
4619 PR tree-optimization/78076
4620 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
4621 also on the loop tree root.
4623 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4625 * config/i386/i386.c (ix86_fold_builtin): Handle
4626 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
4627 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4628 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
4629 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4631 2016-10-24 Martin Liska <mliska@suse.cz>
4634 * opts.c (finish_options): Skip conditionally.
4636 2016-10-23 Martin Sebor <msebor@redhat.com>
4639 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
4640 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
4642 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4644 * config/sparc/sparc.md (cpu_feature): Minor tweak.
4645 (enabled): Likewise.
4646 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
4647 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
4648 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
4649 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
4650 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
4651 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
4653 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4655 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
4656 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
4658 2016-10-21 Andrew Pinski <apinski@cavium.com>
4660 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
4662 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
4663 implementer_id to unsigned char.
4664 Change part_no to unsigned int.
4665 (AARCH64_BIG_LITTLE): New define.
4666 (INVALID_IMP): New define.
4667 (INVALID_CORE): New define.
4668 (cpu_data): Change the last element's implementer_id and part_no to
4670 (valid_bL_string_p): Rewrite to ..
4671 (valid_bL_core_p): this for integers instead of strings.
4672 (parse_field): New function.
4673 (contains_string_p): Rewrite to ...
4674 (contains_core_p): this for integers and only for the part_no.
4675 (host_detect_local_cpu): Rewrite handling of implementation and
4676 par num to be integers; simplifying the code.
4678 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4680 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
4681 value range for pointers in more cases.
4683 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4685 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
4686 Add extra argument to allow emitting the move immediate.
4687 Use add/sub with positive immediate.
4688 (aarch64_add_constant): Add inline function.
4689 (aarch64_add_sp): Likewise.
4690 (aarch64_sub_sp): Likewise.
4691 (aarch64_expand_prologue): Call aarch64_sub_sp.
4692 (aarch64_expand_epilogue): Call aarch64_add_sp.
4693 Decide when to leave out move.
4694 (aarch64_output_mi_thunk): Call aarch64_add_constant.
4696 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4698 * config/aarch64/aarch64.c (aarch64_layout_frame):
4699 Align FP callee-saves.
4701 2016-10-21 Jakub Jelinek <jakub@redhat.com>
4703 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
4704 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
4706 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4707 _rdseed64_step): Likewise.
4708 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
4711 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
4712 and tree-ssanames.h.
4713 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
4714 with INTEGER_CST argument.
4715 (ix86_gimple_fold_builtin): New function.
4716 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4718 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
4719 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
4720 (ranges_table_allocated, ranges_table_in_use,
4721 ranges_by_label_allocated, ranges_by_label_in_use,
4722 RANGES_TABLE_INCREMENT): Removed.
4723 (add_ranges_num): Use vec_safe_push into ranges_table.
4724 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
4725 (output_ranges): Adjust for ranges_table and ranges_by_label
4726 conversion from arrays to vec.
4727 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
4728 conversion from arrays to vec.
4729 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
4730 ranges_table_in_use, ranges_by_label_allocated and
4731 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
4733 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
4734 if needed. Re-add origin_die variable and its initialization.
4736 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
4737 even for -fstack-reuse=none, or for volatile vars etc.
4739 2016-10-21 David Malcolm <dmalcolm@redhat.com>
4741 * print-rtl-function.c (flag_compact): Move extern decl to...
4742 * print-rtl.h (flag_compact): ...here.
4743 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
4744 (ASSERT_RTL_DUMP_EQ): New macro.
4745 (selftest::test_dumping_regs): New function.
4746 (selftest::test_dumping_insns): New function.
4747 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
4749 (selftest::rtl_tests_c_tests): Call the new test functions.
4751 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4753 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
4754 (outgoing_edges_match): Likewise.
4755 (try_crossjump_to_edge): Likewise.
4756 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4757 (rtl_tidy_fallthru_edge): Likewise.
4758 * rtl.h (tablejump_p): Adjust prototype.
4759 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
4761 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4763 * rtl.h (label_ref_label): New function.
4764 (set_label_ref_label): New function.
4765 (LABEL_REF_LABEL): Delete.
4766 * alias.c (rtx_equal_for_memref_p): Adjust.
4767 * cfgbuild.c (make_edges): Likewise.
4768 (purge_dead_tablejump_edges): Likewise.
4769 * cfgexpand.c (convert_debug_memory_address): Likewise.
4770 * cfgrtl.c (patch_jump_insn): Likewise.
4771 * combine.c (distribute_notes): Likewise.
4772 * cse.c (hash_rtx_cb): Likewise.
4773 (exp_equiv_p): Likewise.
4774 (fold_rtx): Likewise.
4775 (check_for_label_ref): Likewise.
4776 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4777 (cselib_hash_rtx): Likewise.
4778 * emit-rtl.c (mark_label_nuses): Likewise.
4779 * explow.c (convert_memory_address_addr_space_1): Likewise.
4780 * final.c (output_asm_label): Likewise.
4781 (output_addr_const): Likewise.
4782 * gcse.c (add_label_notes): Likewise.
4783 * genconfig.c (walk_insn_part): Likewise.
4784 * genrecog.c (validate_pattern): Likewise.
4785 * ifcvt.c (cond_exec_get_condition): Likewise.
4786 (noce_emit_store_flag): Likewise.
4787 (noce_get_alt_condition): Likewise.
4788 (noce_get_condition): Likewise.
4789 * jump.c (maybe_propagate_label_ref): Likewise.
4790 (mark_jump_label_1): Likewise.
4791 (redirect_exp_1): Likewise.
4792 (rtx_renumbered_equal_p): Likewise.
4793 * lra-constraints.c (operands_match_p): Likewise.
4794 * print-rtl.c (print_value): Likewise.
4795 * reload.c (find_reloads): Likewise.
4796 * reload1.c (set_label_offsets): Likewise.
4797 * reorg.c (get_branch_condition): Likewise.
4798 * rtl-tests.c (test_uncond_jump): Likewise.
4799 * rtl.c (rtx_equal_p_cb): Likewise.
4800 (rtx_equal_p): Likewise.
4801 * rtlanal.c (reg_mentioned_p): Likewise.
4802 (rtx_referenced_p): Likewise.
4803 (get_condition): Likewise.
4804 * varasm.c (const_hash_1): Likewise.
4805 (compare_constant): Likewise.
4806 (const_rtx_hash_1): Likewise.
4807 (output_constant_pool_1): Likewise.
4809 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4812 * reload.c (find_valid_class_1): Allow regclass if atleast one
4813 regno in regclass is ok. Compute and use rclass size based on
4814 actually available regnos for mode in rclass.
4816 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
4818 * config/sparc/sparc-modes.def (CCV): New.
4820 * config/sparc/predicates.md (v_comparison_operator): New.
4821 (icc_comparison_operator): Add support for CCV/CCXV.
4822 (xcc_comparison_operator): Likewise.
4823 * config/sparc/sparc.c (output_cbranch): Likewise.
4824 (sparc_print_operand): Likewise.
4825 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4826 (uaddvdi4): New expander.
4827 (addvdi4): Likewise.
4828 (uaddvdi4_sp32): New instruction.
4829 (addvdi4_sp32): Likewise.
4830 (uaddvsi4): New expander.
4831 (addvsi4): Likewise.
4832 (cmp_ccc_plus_sltu_set): New instruction.
4833 (cmp_ccv_plus): Likewise.
4834 (cmp_ccxv_plus): Likewise.
4835 (cmp_ccv_plus_set): Likewise.
4836 (cmp_ccxv_plus_set): Likewise.
4837 (cmp_ccv_plus_sltu_set): Likewise.
4838 (uaddvdi4): New expander.
4839 (subvdi4): Likewise.
4840 (usubdi4_sp32): New instruction.
4841 (subvdi4_sp32): Likewise.
4842 (usubvsi4): New expander.
4843 (subvsi4): Likewise.
4844 (cmpsi_minus_sltu_set): New instruction.
4845 (cmp_ccv_minus): Likewise.
4846 (cmp_ccxv_minus): Likewise.
4847 (cmp_ccv_minus_set): Likewise.
4848 (cmp_ccxv_minus_set): Likewise.
4849 (cmp_ccv_minus_sltu_set): Likewise.
4850 (unegvdi3): New expander.
4851 (negvdi3): Likewise.
4852 (unegdi3_sp32): New instruction.
4853 (negvdi3_sp32): Likewise.
4854 (unegvsi3): New expander.
4855 (negvsi3): Likewise.
4856 (cmp_ccc_neg_sltu_set): New instruction.
4857 (cmp_ccv_neg): Likewise.
4858 (cmp_ccxv_neg): Likewise.
4859 (cmp_ccv_neg_set): Likewise.
4860 (cmp_ccxv_neg_set): Likewise.
4861 (cmp_ccv_neg_sltu_set): Likewise.
4863 * tree-ssa-loop-split.c: Remove trailing spaces.
4864 * match.pd: Likewise.
4866 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4868 PR rtl-optimization/78038
4869 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
4870 be deduced to set REG through the RTL structure.
4871 (make_defs_and_copies_lists): Return false on a failing get_defs call.
4873 2016-10-21 Richard Biener <rguenther@suse.de>
4875 PR tree-optimization/78051
4876 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
4877 and mark replaced if folding did something.
4879 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
4881 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
4882 and "protected" in visibility types.
4883 (rs6000_xcoff_declare_function_name): Fix formatting.
4884 (rs6000_xcoff_declare_object_name): Fix formatting.
4886 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
4888 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
4889 and IX86_BUILTIN_HUGE_VALQ here ...
4890 (ix86_expand_builtin): ... not here.
4892 2016-10-20 Jakub Jelinek <jakub@redhat.com>
4894 * doc/gty.texi (for_user): Use @item next to @findex.
4896 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
4899 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
4900 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
4901 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
4902 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
4903 __builtin_ia32_lzcnt_u16.
4904 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
4905 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
4906 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
4907 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
4908 (bmi_tzcnt_<mode>): New expander.
4909 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4910 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
4911 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
4912 (lzcnt_<mode>): New expander.
4913 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4914 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
4915 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
4916 (UINT64_FTYPE_UINT64): New.
4917 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
4918 (__builtin_ia32_lzcnt_u16): New description.
4919 (__builtin_ia32_lzcnt_u32): Ditto.
4920 (__builtin_ia32_lzcnt_u64): Ditto.
4921 (__builtin_ctzs): Remove description.
4922 (__builtin_ia32_tzcnt_u16): New description.
4923 (__builtin_ia32_tzcnt_u32): Ditto.
4924 (__builtin_ia32_tzcnt_u64): Ditto.
4925 * config/i386/i386.c (ix86_expand_args_builtin): Handle
4926 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
4928 2016-10-20 Martin Liska <mliska@suse.cz>
4931 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
4932 comparison with STMT_UID_NOT_IN_RANGE.
4933 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
4936 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
4938 * compare-elim.c (conforming_compare): Accept UNSPECs.
4939 (find_comparison_dom_walker::before_dom_children): Deal with
4940 instructions both using and killing the flags register.
4941 (equivalent_reg_at_start): New function extracted from...
4942 (try_eliminate_compare): ...here. Use it and add support for
4943 registers and UNSPECs as second operand of the compare.
4944 * config/visium/visium-modes.def (CCV): New.
4945 * config/visium/predicates.md (visium_v_comparison_operator): New.
4946 (visium_branch_operator): Deal with CCV mode.
4947 * config/visium/visium.c (visium_select_cc_mode): Likewise.
4948 (output_cbranch): Likewise.
4949 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4950 (uaddv<mode>4): New expander.
4951 (addv<mode>4): Likewise.
4952 (add<mode>3_insn_set_carry): New instruction.
4953 (add<mode>3_insn_set_overflow): Likewise.
4954 (addsi3_insn_set_overflow): Likewise.
4955 (usubv<mode>4): New expander.
4956 (subv<mode>4): Likewise.
4957 (sub<mode>3_insn_set_carry): New instruction.
4958 (sub<mode>3_insn_set_overflow): Likewise.
4959 (subsi3_insn_set_overflow): Likewise.
4960 (unegv<mode>3): New expander.
4961 (negv<mode>3): Likewise.
4962 (neg<mode>2_insn_set_overflow): New instruction.
4963 (addv_tst<mode>): Likewise.
4964 (subv_tst<mode>): Likewise.
4965 (negv_tst<mode>): Likewise.
4966 (cbranch<mode>4_addv_insn): New splitter and instruction.
4967 (cbranch<mode>4_subv_insn): Likewise.
4968 (cbranch<mode>4_negv_insn): Likewise.
4970 2016-10-20 Richard Biener <rguenther@suse.de>
4972 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
4973 Handle decls possibly not bound.
4974 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
4975 nothing_id for decls that might not be bound if we are interested
4977 (get_constraint_for_component_ref): Deal with that.
4979 2016-10-20 Michael Matz <matz@suse.de>
4982 * common.opt (-fsplit-loops): New flag.
4983 * passes.def (pass_loop_split): Add.
4984 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
4985 (enable_fdo_optimizations): Add loop splitting.
4986 * timevar.def (TV_LOOP_SPLIT): Add.
4987 * tree-pass.h (make_pass_loop_split): Declare.
4988 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
4989 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
4990 * tree-ssa-loop-split.c: New file.
4991 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
4992 * doc/invoke.texi (fsplit-loops): Document.
4993 * doc/passes.texi (Loop optimization): Add paragraph about loop
4996 2016-10-20 Richard Biener <rguenther@suse.de>
4998 * cgraphunit.c (analyze_functions): Set node->definition to
4999 false to signal symbol removal to debug_hooks->late_global_decl.
5000 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
5001 WPA signal symbol removal to the debuginfo machinery.
5002 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
5003 using early_finised to guard the we're called for symbol
5004 removal case look at the symtabs definition flag.
5005 (gen_variable_die): Remove redundant check.
5007 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5009 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
5011 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5013 PR tree-optimization/53979
5014 * match.pd ((a ^ b) | a -> a | b): New pattern.
5016 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
5018 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
5019 config/pa/pa64-hpux-lib.h.
5020 (PA_CRTBEGIN_HACK): Likewise.
5021 (DTOR_LIST_BEGIN): Likewise.
5023 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5025 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5026 register only if "in" and "out" are different registers.
5028 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
5030 * omp-low.c (pass_oacc_device_lower::gate): New method.
5031 (execute): Always call execute_oacc_device_lower.
5033 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5035 PR tree-optimization/77916
5036 PR tree-optimization/77937
5037 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
5039 (insert_initializers): Requirement of initializer for -1 should be
5040 based on pointer-typedness of the candidate basis.
5042 2016-10-19 Bin Cheng <bin.cheng@arm.com>
5044 PR tree-optimization/78005
5045 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5046 upper (included) bound for niters of prolog loop.
5047 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
5048 Compute niters of scalar loop above which vectorized loop is
5049 preferred, as well as the upper (included) bound for the niters.
5050 (vect_do_peeling): Record niter bound for loops accordingly.
5052 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5055 * tree-core.h (enum tree_index): Put the complex types after their
5057 * tree-streamer.c (verify_common_node_recorded): New function.
5058 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
5060 2016-10-19 Martin Liska <mliska@suse.cz>
5062 * cgraph.h (cgraph_edge::binds_to_current_def_p):
5063 Replace NULL with false as a return value.
5065 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5067 PR tree-optimization/78024
5068 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5069 don't clear BB_VISITED after processing.
5071 2016-10-19 Richard Biener <rguenther@suse.de>
5073 * domwalk.c (dom_walker::walk): Use RPO order.
5075 2016-10-19 Richard Biener <rguenther@suse.de>
5077 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
5079 (evrp_dom_walker::~evrp_dom_walker): Free it.
5080 (evrp_dom_walker::stmts_to_remove): Add.
5081 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
5082 whose output we fully propagate for removal. Propagate
5083 into BB destination PHI arguments.
5084 (execute_early_vrp): Remove queued stmts. Dump value ranges
5085 before stmt removal.
5087 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
5089 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
5090 * passes.def: Add two instances of pass_walloca.
5091 * tree-pass.h (make_pass_walloca): New.
5092 * gimple-ssa-warn-alloca.c: New file.
5093 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
5094 -Wvla-larger-than= options.
5096 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
5098 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
5099 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
5101 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
5103 * config/rs6000/altivec.h (vec_xl_len): New macro.
5104 (vec_xst_len): New macro.
5105 (vec_cmpnez): New macro.
5106 (vec_cntlz_lsbb): New macro.
5107 (vec_cnttz_lsbb): New macro.
5108 (vec_xlx): New macro.
5109 (vec_xrx): New macro.
5110 (vec_all_nez): New C++ predicate template.
5111 (vec_any_eqz): New C++ predicate template.
5112 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
5113 conditional compilation.
5114 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
5115 conditional compilation.
5116 (vec_all_nez): New macro.
5117 (vec_any_eqz): New macro.
5118 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
5120 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
5122 * config/rs6000/vector.md (VI): Moved this mode iterator
5123 definition from altivec.md to vector.md.
5124 (UNSPEC_NEZ_P): New value.
5125 (vector_ne_<mode>_p): New expansion for implementation of
5126 vec_all_ne and vec_any_eq built-in functions.
5127 (vector_nez_<mode>_p): New expansion for implementation of
5128 vec_all_nez and vec_any_eqz built-in functions.
5129 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
5130 and vec_any_eq built-in function.
5131 (cr6_test_for_zero): New commentary to explain this expansion.
5132 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
5133 (cr6_test_for_lt): New commentary to explain this expansion.
5134 (cr6_test_for_lt_reverse): New commentary to explain this
5136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5137 overloaded function prototypes for vec_all_ne, vec_all_nez,
5138 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
5139 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
5141 (altivec_resolve_overloaded_builtin): Modify the handling of
5142 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
5143 the compiler is configured to support TARGET_P9_VECTOR.
5144 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
5145 to explain the special processing that is given to predicate
5146 built-ins introduced using this macro.
5147 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
5148 the special processing given to predicate built-ins introduced
5150 (BU_VSX_P): Likewise.
5151 (BU_P8V_AV_P): Likewise.
5152 (BU_P9V_AV_P): Likewise.
5153 (BU_P9V_AV_X): New macro.
5154 (BU_P9V_64BIT_AV_X): New macro.
5155 (BU_P9V_VSX_3): New macro.
5156 (BU_P9V_OVERLOAD_P): New macro.
5157 (LXVL): New BU_P9V_64BIT_VSX_2.
5158 (VEXTUBLX): New BU_P9V_AV_2.
5159 (VEXTUBRX): Likewise.
5160 (VEXTUHLX): Likewise.
5161 (VEXTUHRX): Likewise.
5162 (VEXTUWLX): Likewise.
5163 (VEXTUWRX): Likewise.
5164 (STXVL): New BU_P9V_64BIT_AV_X.
5165 (VCLZLSBB): New BU_P9V_AV_1.
5166 (VCTZLSBB): Likewise.
5167 (CMPNEB): New BU_P9V_AV_2.
5172 (VCMPNEB_P): New BU_P9V_AV_P.
5173 (VCMPNEH_P): Likewise.
5174 (VCMPNEW_P): Likewise.
5175 (VCMPNED_P): Likewise.
5176 (VCMPNEFP_P): Likewise.
5177 (VCMPNEDP_P): Likewise.
5178 (CMPNEZB): New BU_P9V_AV_2.
5179 (CMPNEZH): Likewise.
5180 (CMPNEZW): Likewise.
5181 (VCMPNEZB_P): New BU_P9V_AV_P.
5182 (VCMPNEZH_P): Likewise.
5183 (VCMPNEZW_P): Likewise.
5184 (LXVL): New BU_P9V_OVERLOAD_2.
5185 (STXVL): New BU_P9V_OVERLOAD_3.
5186 (VEXTULX): New BU_P9V_OVERLOAD_2.
5187 (VEXTURX): Likewise.
5189 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
5190 (VCMPNE_P): Likewise.
5191 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
5192 (VCTZLSBB): Likewise.
5193 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
5194 comment to explain mode used for scratch register.
5195 (altivec_expand_stxvl_builtin): New function.
5196 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
5197 (altivec_init_builtins): Add initialized variable
5198 void_ftype_v16qi_pvoid_long and use this type to define the
5199 built-in function __builtin_altivec_stxvl.
5200 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
5201 (UNSPEC_STXVL): New value.
5202 (UNSPEC_VCLZLSBB): New value.
5203 (UNSPEC_VCTZLSBB): New value.
5204 (UNSPEC_VEXTUBLX): New value.
5205 (UNSPEC_VEXTUHLX): New value.
5206 (UNSPEC_VEXTUWLX): New value.
5207 (UNSPEC_VEXTUBRX): New value.
5208 (UNSPEC_VEXTUHRX): New value.
5209 (UNSPEC_VEXTUWRX): New value.
5210 (UNSPEC_VCMPNEB): New value.
5211 (UNSPEC_VCMPNEZB): New value.
5212 (UNSPEC_VCMPNEH): New value.
5213 (UNSPEC_VCMPNEZH): New value.
5214 (UNSPEC_VCMPNEW): New value.
5215 (UNSPEC_VCMPNEZW): New value.
5216 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5217 vector of integer modes.
5218 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5219 vector of float or double modes.
5220 (*vector_nez_<mode>_p): New insn for vector test all not equal or
5222 (lxvl): New expand for load VSX vector with length.
5223 (*lxvl): New insn for load VSX vector with length.
5224 (stxvl): New expand for store VSX vector with length.
5225 (*stxvl): New insn for store VSX vector with length.
5226 (vcmpneb): New insn for vector of byte compare not equal.
5227 (vcmpnezb): New insn for vector of byte compare not equal or zero.
5228 (vcmpneh): New insn for vector of half word compare not equal.
5229 (vcmpnezh): New insn for vector of half word compare not equal or
5231 (vcmpnew): New insn for vector of word compare not equal.
5232 (vcmpne<VSs>): New insn for vector of float or double compare not
5234 (vcmpnezw): New insn for vector of word compare not equal or zero.
5235 (vclzlsbb): New insn for vector count leading zero
5236 least-significant bits byte.
5237 (vctzlsbb): New insn for vector count trailing zero least
5238 signficant bits byte.
5239 (vextublx): New insn for vector extract unsigned byte left
5241 (vextubrx): New insn for vector extract unsigned byte right
5243 (vextuhlx): New insn for vector extract unsigned half word left
5245 (vextuhrx): New insn for vector extract unsigned half word right
5247 (vextuwlx): New insn for vector extract unsigned word left
5249 (vextuwrx): New insn for vector extract unsigned word right
5251 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
5252 clarify intent of this constant.
5253 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
5254 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
5255 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
5256 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
5257 and vec_xrx functions.
5259 2016-10-18 Andrew Pinski <apinski@cavium.com>
5262 * predict.c (is_exit_with_zero_arg): New function.
5263 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
5266 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
5269 * config/i386/i386.c (legitimize_tls_address)
5270 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
5271 convert dest to Pmode if different than Pmode.
5273 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5275 PR tree-optimization/77916
5276 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
5277 stopgap fix, as pointers with -1 increment are still broken.
5279 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
5281 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
5282 mapping class decoration from here...
5283 (rs6000_xcoff_encode_section): ...to here.
5285 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
5286 if shrink-wrapping and optimizing for speed.
5288 2016-10-18 Richard Biener <rguenther@suse.de>
5290 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5291 not visited but non-executable predecessors. Return taken edge.
5292 Simplify conditions and refactor propagation vs. folding step.
5294 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
5296 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
5297 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
5298 (rs6000_get_separate_components): Assert we do not have those
5299 strategies selected.
5301 2016-10-18 Richard Biener <rguenther@suse.de>
5303 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
5304 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
5306 (substitute_and_fold_dom_walker): Adjust constructor.
5307 (substitute_and_fold_dom_walker::before_dom_children): Remove
5308 do_dce flag and handling (always true).
5309 (substitute_and_fold): Likewise.
5310 * tree-vrp.c (vrp_finalize): Adjust.
5311 (execute_early_vrp): Remove final BB_VISITED clearing.
5312 * tree-ssa-ccp.c (ccp_finalize): Adjust.
5313 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5314 * ira.c (ira): Call clear_bb_flags.
5316 2016-10-18 Richard Biener <rguenther@suse.de>
5318 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5319 get at the operand to look at with TREE_OPERAND for generic
5322 2016-10-18 David Malcolm <dmalcolm@redhat.com>
5324 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5326 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5327 (write_test_expr): Use rtx_reader_ptr for calls to
5329 (write_attr_value): Likewise.
5330 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5331 call to print_md_ptr_loc.
5332 (write_one_condition): Likewise for calls to print_c_condition.
5333 * genconstants.c: Include "statistics.h" and "vec.h".
5334 (main): Update for conversion to member functions.
5335 * genemit.c (emit_c_code): Use rtx_reader_ptr for
5336 call to print_md_ptr_loc.
5337 * genenums.c: Include "statistics.h" and "vec.h".
5338 (main): Update for conversion of traverse_enum_types to a method.
5339 * genmddeps.c: Include "statistics.h" and "vec.h".
5340 * genoutput.c (process_template): Use rtx_reader_ptr for call to
5342 * genpreds.c (write_predicate_subfunction): Likewise.
5343 (write_predicate_expr): Likewise for calls to print_c_condition.
5344 * genrecog.c (print_test): Likewise.
5345 * gensupport.c (process_rtx): Likewise for calls to
5346 copy_md_ptr_loc and join_c_conditions.
5347 (alter_test_for_insn): Likewise for call to join_c_conditions.
5348 (process_substs_on_one_elem): Likewise.
5349 (gen_mnemonic_setattr): Update for move of string_obstack to a
5350 field of rtx_reader.
5351 (mnemonic_htab_callback): Likewise. Fix formatting.
5352 (gen_mnemonic_attr): Likewise.
5353 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5354 to print_c_condition.
5355 * read-md.c: Include "statistics.h" and "vec.h".
5356 (string_obstack): Convert this global to field "m_string_obstack"
5357 of class rtx_reader.
5358 (ptr_locs): Likewise, as "m_ptr_locs".
5359 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5360 (joined_conditions): Likewise, as "m_joined_conditions".
5361 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5362 (md_constants): Likewise, as "m_md_constants".
5363 (enum_types): Likewise, as "m_enum_types".
5364 (set_md_ptr_loc): Convert to...
5365 (rtx_reader::set_md_ptr_loc): ...member function.
5366 (get_md_ptr_loc): Convert to...
5367 (rtx_reader::get_md_ptr_loc): ...member function.
5368 (copy_md_ptr_loc): Convert to...
5369 (rtx_reader::copy_md_ptr_loc): ...member function.
5370 (fprint_md_ptr_loc): Convert to...
5371 (rtx_reader::fprint_md_ptr_loc): ...member function.
5372 (print_md_ptr_loc): Convert to...
5373 (rtx_reader::print_md_ptr_loc): ...member function.
5374 (join_c_conditions): Convert to...
5375 (rtx_reader::join_c_conditions): ...member function.
5376 (fprint_c_condition): Convert to...
5377 (rtx_reader::fprint_c_condition): ...member function.
5378 (print_c_condition): Convert to...
5379 (rtx_reader::print_c_condition): ...member function.
5380 (read_name): Convert to...
5381 (rtx_reader::read_name): ...member function.
5382 (read_escape): Convert to...
5383 (rtx_reader::read_escape): ...member function.
5384 (read_quoted_string): Convert to...
5385 (rtx_reader::read_quoted_string): ...member function.
5386 (read_braced_string): Convert to...
5387 (rtx_reader::read_braced_string): ...member function.
5388 (read_string): Convert to...
5389 (rtx_reader::read_string): ...member function.
5390 (read_skip_construct): Convert to...
5391 (rtx_reader::read_skip_construct): ...member function.
5392 (handle_constants): Convert to...
5393 (rtx_reader::handle_constants): ...member function.
5394 (traverse_md_constants): Convert to...
5395 (rtx_reader::traverse_md_constants): ...member function.
5396 (handle_enum): Convert to...
5397 (rtx_reader::handle_enum): ...member function.
5398 (lookup_enum_type): Convert to...
5399 (rtx_reader::lookup_enum_type): ...member function.
5400 (traverse_enum_types): Convert to...
5401 (rtx_reader::traverse_enum_types): ...member function.
5402 (rtx_reader::rtx_reader): Move initializations
5403 of various former global data from rtx_reader::read_md_files to
5404 here, as fields, along with the call to unlock_std_streams.
5405 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5407 (rtx_reader::read_md_files): Move initializations of various
5408 global data from here to the ctor.
5409 * read-md.h (read_name): Convert to...
5410 (rtx_reader::read_name): ...member function.
5411 (rtx_reader::read_escape): New method decl.
5412 (read_quoted_string): Convert to...
5413 (rtx_reader::read_quoted_string): ...member function.
5414 (rtx_reader::read_braced_string): New method decl.
5415 (read_string): Convert to...
5416 (rtx_reader::read_string): ...member function.
5417 (rtx_reader::read_skip_construct): New method decl.
5418 (rtx_reader::set_md_ptr_loc): New method decl.
5419 (rtx_reader::get_md_ptr_loc): New method decl.
5420 (copy_md_ptr_loc): Convert to...
5421 (rtx_reader::copy_md_ptr_loc): ...member function.
5422 (fprint_md_ptr_loc): Convert to...
5423 (rtx_reader::fprint_md_ptr_loc): ...member function.
5424 (print_md_ptr_loc): Convert to...
5425 (rtx_reader::print_md_ptr_loc): ...member function.
5426 (rtx_reader::lookup_enum_type): New method decl.
5427 (rtx_reader::traverse_enum_types): New method decl.
5428 (rtx_reader::handle_constants): New method decl.
5429 (traverse_md_constants): Convert to...
5430 (rtx_reader::traverse_md_constants): ...member function.
5431 (rtx_reader::handle_enum): New method decl.
5432 (rtx_reader::join_c_conditions): New method decl.
5433 (fprint_c_condition): Convert to...
5434 (rtx_reader::fprint_c_condition): ...member function.
5435 (print_c_condition): Convert to...
5436 (rtx_reader::print_c_condition): ...member function.
5437 (rtx_reader::apply_iterator_to_string): New method decl.
5438 (rtx_reader::copy_rtx_for_iterators): New method decl.
5439 (rtx_reader::read_conditions): New method decl.
5440 (rtx_reader::record_potential_iterator_use): New method decl.
5441 (rtx_reader::read_mapping): New method decl.
5442 (rtx_reader::read_rtx): New method decl.
5443 (rtx_reader::read_rtx_code): New method decl.
5444 (rtx_reader::read_rtx_operand): New method decl.
5445 (rtx_reader::read_nested_rtx): New method decl.
5446 (rtx_reader::read_rtx_variadic): New method decl.
5447 (rtx_reader::get_string_obstack): New method.
5448 (rtx_reader::get_md_constants): New method.
5449 (string_obstack): Convert global variable decl to...
5450 (rtx_reader::m_string_obstack): ...this new field.
5451 (rtx_reader::m_ptr_locs): New field.
5452 (rtx_reader::m_ptr_loc_obstack): New field.
5453 (rtx_reader::m_joined_conditions): New field.
5454 (rtx_reader::m_joined_conditions_obstack): New field.
5455 (rtx_reader::m_md_constants): New field.
5456 (rtx_reader::m_enum_types): New field.
5457 * read-rtl.c (apply_iterator_to_string): Convert to...
5458 (rtx_reader::apply_iterator_to_string): ...member function.
5459 (copy_rtx_for_iterators): Convert to...
5460 (rtx_reader::copy_rtx_for_iterators): ...member function.
5461 (add_condition_to_string): Use rtx_reader_ptr for
5462 calls join_c_conditions.
5463 (apply_iterators): Use rtx_reader_ptr for calls to
5464 join_c_conditions and copy_rtx_for_iterators.
5465 (read_conditions): Convert to...
5466 (rtx_reader::read_conditions): ...member function.
5467 (record_potential_iterator_use): Convert to...
5468 (rtx_reader::record_potential_iterator_use): ...member function.
5469 (read_mapping): Convert to...
5470 (rtx_reader::read_mapping): ...member function.
5471 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5472 (read_rtx): Convert to...
5473 (rtx_reader::read_rtx): ...member function.
5474 (read_rtx_code): Convert to...
5475 (rtx_reader::read_rtx_code): ...member function.
5476 (read_rtx_operand): Convert to...
5477 (rtx_reader::read_rtx_operand): ...member function. Update for move
5478 of string_obstack to a field.
5479 (read_nested_rtx): Convert to..
5480 (rtx_reader::read_nested_rtx): ...member function.
5481 (read_rtx_variadic): Convert to..
5482 (rtx_reader::read_rtx_variadic): ...member function.
5484 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5486 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5488 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5490 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5491 for pointer type too.
5492 (ipcp_update_vr): set_ptr_nonnull for pointer.
5494 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5496 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5497 pt_solution_singleton_p.
5498 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5499 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5500 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5501 pointer nonnull computed by VRP.
5502 Also Conservatively set pt.null to 1.
5503 (pt_solution_reset): Conservatively set pt.null to 1.
5504 (pt_solution_singleton_or_null_p): Renamed from
5505 pt_solution_singleton_p.
5506 * tree-ssanames.h (set_ptr_nonnull): Declare.
5507 (get_ptr_nonnull): Likewise.
5508 * tree-ssanames.c (set_ptr_nonnull): New.
5509 (get_ptr_nonnull): Likewise.
5510 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5511 (evrp_dom_walker::before_dom_children): Likewise.
5513 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5515 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5516 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5517 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5518 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5519 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5520 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5521 (rs6000_option_override_internal): Clear it if ABI_AIX.
5522 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5523 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5525 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5527 * gimple-ssa-strength-reduction.c (record_increment): Remove
5530 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5532 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5533 that the result is non-zero if it is true.
5534 (maybe_expand_shift): New wrapper around expand_shift_1.
5535 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5537 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5539 PR tree-optimization/77916
5540 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5541 Don't allow a MINUS_EXPR for pointer arithmetic for either known
5543 (record_increment): Increments of -1 for unknown strides just use
5544 a multiply initializer like other negative values.
5545 (analyze_increments): Remove stopgap solution for -1 increment
5546 applied to pointer arithmetic.
5548 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5550 * dominance.c (dom_info::dom_info): Add new constructor for region
5551 which is vector of basic blocks.
5552 (dom_init): New method to initialize members common for both
5554 (dom_info::dom_info): Invoke dom_init for partial initialization.
5555 (dom_info::get_idom): Add check to corner cases on basic blocks which
5557 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5558 to detect unreachable bbs.
5559 (dom_info::calc_idoms): Likewise.
5560 (compute_dom_fast_query_in_region): New function.
5561 (calculate_dominance_info_for_region): Likewise.
5562 (free_dominance_info_for_region): Likewise.
5563 * dominance.h: Add prototypes for introduced region-based functions
5564 * tree-if-conv.c (build_region): New function.
5565 (if_convertible_loop_p_1): Invoke local version of post-dominators
5566 calculation before basic block predication with subsequent freeing
5567 post-dominator info.
5568 (tree_if_conversion): Remove free of post-dominator info
5569 (pass_if_conversion::execute): Delete detection of infinite loops
5570 and fake edges to exit block since post-dominator calculation is
5571 performed per if-converted loop only.
5573 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5576 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5577 register explicitly.
5578 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5579 optimizing for size.
5581 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5583 * config/aarch64/aarch64.c: Delete inclusion of
5584 cortex-a57-fma-steering.h.
5585 (aarch64_override_options): Delete call
5586 to aarch64_register_fma_steering.
5587 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5588 * config/aarch64/cortex-a57-fma-steering.h: Delete.
5589 * config/aarch64/aarch64-passes.def: New file.
5590 * config/aarch64/cortex-a57-fma-steering.c
5591 (aarch64_register_fma_steering): Delete definition.
5592 (make_pass_fma_steering): Remove static qualifier.
5593 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5594 (cortex-a57-fma-steering.o): Remove dependency on
5595 cortex-a57-fma-steering.h.
5597 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5599 * explow.c (validize_mem): Do not modify the argument in-place.
5601 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
5603 * tree-streamer.c (record_common_node): Explicitly list expected
5606 2016-10-17 Richard Biener <rguenther@suse.de>
5608 PR tree-optimization/77988
5609 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5611 2016-10-17 Marek Polacek <polacek@redhat.com>
5613 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5615 2016-10-17 Richard Biener <rguenther@suse.de>
5617 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5620 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5622 PR tree-optimization/71636
5623 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
5625 2016-10-17 Richard Biener <rguenther@suse.de>
5627 * gimplify.c (gimplify_function_tree): Do not move the outer
5630 2016-10-17 Jakub Jelinek <jakub@redhat.com>
5632 * langhooks.h (struct lang_hooks_for_decls): Remove
5633 function_decl_explicit_p, function_decl_deleted_p and
5634 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
5635 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
5636 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5637 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
5638 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
5639 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
5640 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5641 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
5642 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
5643 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
5644 * langhooks.c (lhd_decl_dwarf_attribute): New function.
5645 * dwarf2out.c (gen_subprogram_die): Use
5646 lang_hooks.decls.decl_dwarf_attribute instead of
5647 lang_hooks.decls.function_decl_*.
5649 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5653 * common.opt (-ftrampolines): New option.
5654 * doc/invoke.texi (Code Gen Options): Document it.
5655 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
5656 * doc/tm.texi: Regenerate.
5657 * builtins.def: Add init_descriptor and adjust_descriptor.
5658 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
5659 on platforms with descriptors.
5660 (expand_builtin_init_descriptor): New function.
5661 (expand_builtin_adjust_descriptor): Likewise.
5662 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
5663 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
5664 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
5665 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
5666 Set STATIC_CHAIN_REG_P on the static chain register, if any.
5667 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
5668 (expand_call): Likewise. Move around call to prepare_call_address
5669 and pass all flags to it.
5670 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
5671 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
5672 (gimple_call_set_by_descriptor): New setter.
5673 (gimple_call_by_descriptor_p): New getter.
5674 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
5675 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
5676 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
5677 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5678 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
5679 * rtl.h (STATIC_CHAIN_REG_P): New macro.
5680 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
5681 * target.def (custom_function_descriptors): New POD hook.
5682 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
5683 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
5684 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
5685 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
5686 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
5687 (build_common_builtin_nodes): Initialize init_descriptor and
5689 * tree-nested.c: Include target.h.
5690 (struct nesting_info): Add 'any_descr_created' field.
5691 (get_descriptor_type): New function.
5692 (lookup_element_for_decl): New function extracted from...
5693 (create_field_for_decl): Likewise.
5694 (lookup_tramp_for_decl): ...here. Adjust.
5695 (lookup_descr_for_decl): New function.
5696 (convert_tramp_reference_op): Deal with descriptors.
5697 (build_init_call_stmt): New function extracted from...
5698 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
5699 * defaults.h (FUNCTION_ALIGNMENT): Define.
5700 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
5701 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5702 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5703 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
5704 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5706 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5708 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
5709 constants in CONST_VECTORs.
5711 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5713 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
5714 register as destination of bmask.
5715 (vector_init_bshuffle): Likewise.
5716 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
5717 (bmaskdi_vis): Enable only in 64-bit mode.
5719 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5721 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
5722 make LR a separately shrink-wrapped component unless savres_strategy
5723 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
5724 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
5725 wrapping when not both {SAVE,REST}_INLINE_GPRS.
5727 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5729 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
5730 and keep looping on failure.
5732 2016-10-14 David Malcolm <dmalcolm@redhat.com>
5734 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
5736 (print_rtx_function): Update example in comment for...
5737 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
5738 non-virtual pseudos with a '%' sigil followed by the regno, offset
5739 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
5740 pseudo is dumped as "%0".
5742 2016-10-14 Jakub Jelinek <jakub@redhat.com>
5745 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
5748 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
5750 * config/sparc/sparc-passes.def: New file.
5751 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
5752 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
5753 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
5755 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5757 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
5758 loop peel to loops with exit test at the beginning.
5760 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5762 PR rtl-optimization/68212
5763 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
5764 frequency when computing scale factor for peeled copies.
5765 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
5766 values for switch/peel blocks/edges.
5768 2016-10-14 Pedro Alves <palves@redhat.com>
5770 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
5772 2016-10-14 Catherine Moore <clm@codesourcery.com>
5774 * config/mips/mips.c (mips_prepare_pch_save): Initialize
5775 micromips_globals to zero.
5777 2016-10-14 Richard Biener <rguenther@suse.de>
5779 PR tree-optimization/77979
5780 * tree-vrp.c (compare_name_with_value): Handle released SSA names
5781 in the equivalency sets.
5782 (compare_names): Likewise.
5784 2016-10-14 Martin Liska <mliska@suse.cz>
5786 * builtins.h(target_char_cst_p): Declare the function.
5787 * builtins.c (fold_builtin_memchr): Remove.
5788 (target_char_cst_p): Move the function from gimple-fold.c.
5789 (fold_builtin_3): Do not call the function.
5790 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
5791 (gimple_fold_builtin): Call the function.
5792 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
5794 2016-10-14 Martin Liska <mliska@suse.cz>
5796 * builtins.c (fold_builtin_strcmp): Remove function.
5797 (fold_builtin_strncmp): Likewise.
5798 (fold_builtin_2): Remove call of the function.
5799 (fold_builtin_3): Likewise.
5800 * fold-const-call.c (fold_const_call): Add constant folding
5801 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
5802 * fold-const-call.h (build_cmp_result): Declare the function.
5803 * gimple-fold.c (gimple_load_first_char): New function.
5804 (gimple_fold_builtin_string_compare): Likewise.
5805 (gimple_fold_builtin): Call the function.
5807 2016-10-14 Nathan Sidwell <nathan@acm.org>
5809 * gcov-io.c (gcov_open): Deconstify 'mode'.
5811 2016-10-14 Martin Liska <mliska@suse.cz>
5813 * fold-const.c (c_getstr): Support of properly \0-terminated
5814 string constants. New argument is added.
5815 * fold-const.h: New argument is added.
5817 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5819 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
5821 (aarch64_print_hint_for_core): Likewise.
5822 (aarch64_print_hint_for_arch): Likewise.
5823 (aarch64_validate_march): Use it. Fix indentation in type signature.
5824 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
5825 (aarch64_validate_mtune): Likewise.
5826 (aarch64_handle_attr_arch): Likewise.
5827 (aarch64_handle_attr_cpu): Likewise.
5828 (aarch64_handle_attr_tune): Likewise.
5830 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5832 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
5835 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
5837 * config/m68k/m68k.c (m68k_option_override): Check
5838 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
5839 instead of stack_limit_rtx.
5841 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5843 * dwarf2out.c (gen_member_die): Handle inline static data member
5846 2016-10-13 Nathan Sidwell <nathan@acm.org>
5848 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
5849 gcov_var.mode. Remove unnecessary fstat.
5851 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
5854 * function.c (thread_prologue_and_epilogue_insns): Call all
5855 make_*logue_seq in the same order as traditional. Call them
5856 all a second time if shrink_wrapped_separate.
5858 2016-10-13 Marek Polacek <polacek@redhat.com>
5860 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
5861 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
5864 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5866 PR tree-optimization/77937
5867 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
5868 to infinite when we have a pointer with an increment of -1.
5870 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5872 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
5874 * memmodel.h: This file.
5875 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
5876 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
5877 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
5878 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
5879 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
5880 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
5881 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
5882 compare-elim.c, config/aarch64/aarch64-builtins.c,
5883 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
5884 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
5885 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
5886 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
5887 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
5888 config/darwin.c, config/epiphany/epiphany.c,
5889 config/epiphany/mode-switch-use.c,
5890 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
5891 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5892 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
5893 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5894 config/m68k/m68k.c, config/mcore/mcore.c,
5895 config/microblaze/microblaze.c, config/mmix/mmix.c,
5896 config/mn10300/mn10300.c, config/moxie/moxie.c,
5897 config/msp430/msp430.c, config/nds32/nds32-cost.c,
5898 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
5899 config/nds32/nds32-memory-manipulation.c,
5900 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
5901 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
5902 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
5903 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
5904 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
5905 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
5906 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5907 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5908 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
5909 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
5910 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
5911 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
5912 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
5913 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
5914 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
5915 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
5916 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
5917 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
5918 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
5919 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5920 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
5921 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
5922 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
5923 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
5924 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
5925 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
5926 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
5927 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
5928 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
5929 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
5930 var-tracking.c, varasm.c: Include memmodel.h.
5931 * genattrtab.c (write_header): Include memmodel.h in generated file.
5932 * genautomata.c (main): Likewise.
5933 * gengtype.c (open_base_files): Likewise.
5934 * genopinit.c (main): Likewise.
5935 * genconditions.c (write_header): Include memmodel.h earlier in
5937 * genemit.c (main): Likewise.
5938 * genoutput.c (output_prologue): Likewise.
5939 * genpeep.c (main): Likewise.
5940 * genpreds.c (write_insn_preds_c): Likewise.
5941 * genrecog.c (write_header): Likewise.
5942 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
5944 2016-10-13 David Malcolm <dmalcolm@redhat.com>
5946 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
5947 for new "compact" param of print_rtx_function. Check for "cinsn"
5949 * print-rtl-function.c (flag_compact): New decl.
5950 (print_rtx_function): Add param "compact" and use it to set
5951 flag_compact, adding a description of the effect to the leading
5952 comment, and updating the example output.
5953 * print-rtl.c (flag_compact): New variable.
5954 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
5956 (print_rtx_operand_code_i): When printing source locations, wrap
5957 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
5958 (print_rtx_operand_code_r): Don't print regnos for hard regs and
5959 virtuals in compact mode.
5960 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
5961 apart from in LABEL_REFs.
5962 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
5963 Don't print basic block ids in compact mode.
5964 (print_rtx): In compact mode, prefix the code of insns with "c",
5965 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
5966 * print-rtl.h (print_rtx_function): Add "compact" param.
5968 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
5970 * arm.h (TARGET_VFP): Delete.
5971 (TARGET_VFPD32): Remove references to TARGET_VFP.
5972 (TARGET_VFP3, TARGET_VFP5): Likewise.
5973 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
5974 (TARGET_NEON_FP16): Likewise.
5975 (TARGET_FMA): Likewise.
5976 (TARGET_CRYPTO): Likewise.
5977 (TARGET_NEON): Likewise.
5978 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5979 (FUNCTION_ARG_REGNO_P): Likewise.
5980 * arm.c (arm_option_check_internal): Likewise.
5981 (arm_option_override): Likewise.
5982 (use_return_insn): Likewise.
5983 (arm_function_value_regno_p): Likewise.
5984 (arm_apply_result_size): Likewise.
5985 (use_vfp_abi): Likewise.
5986 (arm_legitimate_address_outer_p): Likewise.
5987 (thumb2_legitimate_address_p): Likewise.
5988 (arm_legitimate_index_p): Likewise.
5989 (thumb2_legitimate_index_p): Likewise.
5990 (arm_legitimate_address): Likewise.
5991 (arm_get_vfp_saved_size): Likewise.
5992 (arm_emit_vfp_multi_reg_pop): Likewise.
5993 (arm_get_frame_offsets): Likewise.
5994 (arm_save_coproc_regs): Likewise.
5995 (arm_hard_regno_mode_ok): Likewise.
5996 (arm_expand_epilogue_apcs_frame): Likewise.
5997 (arm_expand_epilogue): Likewise.
5998 (arm_file_start): Likewise.
5999 (arm_conditional_register_usage): Likewise.
6000 (arm_validize_comparison): Use vfp_compare_operand directly.
6001 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
6002 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
6004 (arm_atomic_assign_expand_fenv): Likewise.
6005 * arm.md (divsf3): Likewise.
6006 (arm_negsi2): Likewise.
6008 (arm_movdi): Likewise.
6009 (arm_movt): Likewise.
6010 (cbranchsf4): Change predicate to vfp_compare_operand.
6011 (cbranchdf4): Change predicate to vfp_compare_operand.
6012 (cstorehf4): Change predicate to vfp_compare_operand.
6013 (cstoresf4): Change predicate to vfp_compare_operand.
6014 (cstoredf4): Change predicate to vfp_compare_operand.
6015 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
6016 (movhi_insn_arch4, movhi_bytes): Likewise.
6017 * constraints.md (Dt): Likewise.
6019 * iterators.md (SDF): Likewise.
6020 * predicates.md (arm_float_compare_operand): Delete.
6021 (const_double_vcvt_power_of_two_reciprocal): Remove references to
6023 (const_double_vcvt_power_of_two): Likewise.
6024 * thumb2.md thumb2_movsi_insn): Likewise.
6025 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
6026 (movhf_vfp): Likewise.
6027 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
6028 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6029 (movsf_vfp, thumb2_movsf_vfp): Likewise.
6030 (movdf_vfp, thumb2_movdf_vfp): Likewise.
6031 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
6032 (subsf3_vfp, divsf3_vfp): Likewise.
6033 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
6034 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
6035 (mulsf3negsfsubsf_vfp): Likewise.
6036 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
6037 (floatunssisf2, sqrtsf2_vfp): Likewise.
6038 (movcc_vfp): Likewise.
6039 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
6040 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
6041 (push_multi_vfp): Likewise.
6042 (set_fpscr, get_fpscr): Likewise.
6043 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
6045 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6047 * arm.h (TARGET_VFP): Unconditionally define to 1.
6048 (arm_fpu_desc): Remove 'model' field.
6049 (TARGET_FPU_MODEL): Delete.
6050 * arm.c (all_fpus): Don't initialize the model field.
6051 (arm_can_inline_p): Don't check the FPU model.
6052 * arm-fpus.def: Remove redundant model field from all FPU
6055 2016-10-13 Richard Biener <rguenther@suse.de>
6058 * genmatch.c (struct capture): Add value_match member.
6059 (commutate): Preserve value_match.
6060 (lower_opt_convert): Likewise.
6061 (lower_cond): Likewise.
6062 (replace_id): Likewise.
6063 (struct dt_operand): Add value_match member.
6064 (decision_tree::cmp_node): Compare it.
6065 (decision_tree::insert_operand): Honor it when finding and
6066 when appending a DT_MATCH.
6067 (dt_operand::gen_match_op): Generate a type check after
6068 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
6069 (parser::get_internal_capture_id): New helper.
6070 (parser::finish_match_operand): New function lowering @@<id>.
6071 (parser::parse_capture): Parse @@<id> as value-match.
6072 (parser::parse_expr): Use get_internal_capture_id.
6073 (parser::parse_simplify): Call finish_match_operand.
6074 (walk_captures): New helper.
6075 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
6077 ((X /[ex] A) * A -> X): Likewise.
6078 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
6079 convert[12] and value-matching.
6080 ((A | B) & (A | C) -> A | (B & C)): Likewise.
6081 ((X | Y) | Y -> X | Y): Likewise.
6082 ((X ^ Y) ^ Y -> X): Likewise.
6083 (A - (A & B) -> ~B & A): Likewise.
6084 ((T)(P + A) - (T)P -> (T) A): Likewise.
6085 ((T)P - (T)(P + A) -> -(T) A): Likewise.
6086 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
6087 * doc/match-and-simplify.texi: Amend capture section.
6089 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6091 * config/arc/arc.md (umul_600): Remove predicated variant.
6092 (umul64_600): Likewise.
6094 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6096 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
6098 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6100 * tree-vect-loop.c (loop_niters_no_overflow): New func.
6101 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
6102 no-overflow information to vect_do_peeling_for_loop_bound and
6103 vect_gen_vector_loop_niters.
6105 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6107 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
6110 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6112 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
6113 adjust_vec automatically.
6114 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
6115 param exit_bb to guard_to.
6116 (slpeel_checking_verify_cfg_after_peeling):
6117 (set_prologue_iterations):
6118 (create_lcssa_for_virtual_phi): New func which is factored out from
6119 slpeel_tree_peel_loop_to_edge.
6120 (slpeel_tree_peel_loop_to_edge):
6121 (iv_phi_p): New func.
6122 (vect_can_advance_ivs_p): Call iv_phi_p.
6123 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
6124 new gimple stmts in basic block.
6125 (vect_gen_niters_for_prolog_loop): Rename to...
6126 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
6127 adjust implementation.
6128 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
6129 sizetype if necessary.
6130 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
6131 it to external function.
6132 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
6133 (vect_gen_vector_loop_niters_mult_vf): New.
6134 (slpeel_update_phi_nodes_for_loops): New.
6135 (slpeel_update_phi_nodes_for_guard1): Reimplement.
6136 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
6137 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
6138 * tree-vect-loop.c (vect_build_loop_niters): Move to file
6139 tree-vect-loop-manip.c
6140 (vect_generate_tmps_on_preheader): Delete.
6141 (vect_transform_loop): Rename vectorization_factor to vf. Call
6142 vect_do_peeling instead of vect_do_peeling-* functions.
6143 * tree-vectorizer.h (vect_do_peeling): New decl.
6144 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
6145 (vect_do_peeling_for_loop_bound): Delete.
6146 (vect_do_peeling_for_alignment): Delete.
6148 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6150 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
6151 duplicated loop after its preheader and after the original loop.
6153 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6155 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
6156 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
6158 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6160 * tree-vect-loop.c (vectorizable_live_operation): Support handling
6161 for live variable outside loop but not in lcssa form.
6163 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6165 * cfg.c (reset_original_copy_tables): New func.
6166 * cfg.h (reset_original_copy_tables): New decl.
6168 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6171 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
6173 * varasm.c (default_binds_local_p_3): Formatting fix.
6175 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6177 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
6179 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
6180 Remove useless code.
6182 2016-10-13 Martin Liska <mliska@suse.cz>
6184 PR tree-optimization/77943
6185 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
6186 a different EH landing pads.
6188 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6191 * hooks.h (hook_tree_void_null): Declare.
6192 * hooks.c (hook_tree_void_null): New function.
6193 * langhooks.c (lhd_return_null_tree_v): Remove.
6194 * langhooks-def.h (lhd_return_null_tree_v): Remove.
6195 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
6196 set y to const0_rtx.
6197 * function.c (stack_protect_epilogue): Likewise.
6198 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
6199 if TARGET_THREAD_SSP_OFFSET is defined.
6200 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6201 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6202 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6203 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6204 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6205 (ix86_stack_protect_guard): New function.
6207 2016-10-13 Richard Biener <rguenther@suse.de>
6209 * dwarf2out.c (tree_add_const_value_attribute): Do not try
6210 rtl_for_decl_init during early phase.
6211 (gen_variable_die): Do not create locations during early phase.
6212 (gen_label_die): Likewise.
6213 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
6216 2016-10-12 Richard Biener <rguenther@suse.de>
6218 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
6219 try_add_new_range and made to eturn new range.
6220 (evrp_dom_walker::before_dom_children): Push op1 value range before
6221 pushing op0 value range.
6223 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6225 PR tree-optimization/77937
6226 * gimple-ssa-strength-reduction.c (analyze_increments): Use
6227 POINTER_TYPE_P on the candidate type to determine whether
6228 candidates in this chain require pointer arithmetic.
6230 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
6232 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
6233 correction if the type is smaller than a word.
6234 (visium_select_cc_mode): Add ... fall through ... comment.
6236 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6238 * config/rs6000/rs6000.c (machine_function): Add new fields
6239 gpr_is_wrapped_separately and lr_is_wrapped_separately.
6240 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
6241 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
6242 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
6243 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
6244 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
6245 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
6246 (rs6000_get_separate_components): New function.
6247 (rs6000_components_for_bb): New function.
6248 (rs6000_disqualify_components): New function.
6249 (rs6000_emit_prologue_components): New function.
6250 (rs6000_emit_epilogue_components): New function.
6251 (rs6000_set_handled_components): New function.
6252 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
6253 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
6254 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
6255 (rs6000_emit_epilogue): Don't emit GPR restores if
6256 gpr_is_wrapped_separately for that register. Don't make a
6257 REG_CFA_RESTORE note for registers we did not restore, either.
6259 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6261 * function.c (thread_prologue_and_epilogue_insns): Call
6262 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
6263 if it has possibly changed. Compute the split_prologue_seq and
6264 epilogue_seq later, too.
6265 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
6266 (dump_components): New function.
6267 (struct sw): New struct.
6269 (init_separate_shrink_wrap): New function.
6270 (fini_separate_shrink_wrap): New function.
6271 (place_prologue_for_one_component): New function.
6272 (spread_components): New function.
6273 (disqualify_problematic_components): New function.
6274 (emit_common_heads_for_components): New function.
6275 (emit_common_tails_for_components): New function.
6276 (insert_prologue_epilogue_for_components): New function.
6277 (try_shrink_wrapping_separate): New function.
6278 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
6280 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6282 * regrename.c (build_def_use): Invalidate chains that have a
6283 REG_CFA_RESTORE on some instruction.
6285 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6287 * dce.c (delete_unmarked_insns): Don't delete instructions with
6288 a REG_CFA_RESTORE note.
6290 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6292 * common.opt (-fshrink-wrap-separate): New flag.
6293 * doc/invoke.texi: Document it.
6294 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
6295 * doc/tm.texi: Regenerate.
6296 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
6297 * target.def (shrink_wrap): New hook vector.
6298 (get_separate_components, components_for_bb, disqualify_components,
6299 emit_prologue_components, emit_epilogue_components,
6300 set_handled_components): New hooks.
6302 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6304 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
6305 vector return by reference only if -Wpsabi.
6306 (rs6000_pass_by_reference): Similarly, for argument passing.
6308 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6310 * function-tests.c: Include "print-rtl.h".
6311 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
6312 function, and verify what is dumped.
6313 * print-rtl-function.c (print_edge): New function.
6314 (begin_any_block): New function.
6315 (end_any_block): New function.
6316 (can_have_basic_block_p): New function.
6317 (print_rtx_function): Track the basic blocks of insns in the
6318 chain, wrapping those that are within blocks within "(block)"
6319 directives. Remove the "(cfg)" directive.
6321 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6323 * selftest.c (selftest::read_file): New function.
6324 (selftest::test_read_file): New function.
6325 (selftest::selftest_c_tests): Call test_read_file.
6326 * selftest.h (selftest::read_file): New decl.
6328 2016-10-12 Richard Biener <rguenther@suse.de>
6331 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6334 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
6336 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6338 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6339 dwarf2out_assembly_start.
6341 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6343 * Makefile.in (SELFTEST_FLAGS): New variable.
6344 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6346 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6349 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
6351 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6352 dumped in RTL dumps.
6354 2016-10-12 Martin Liska <mliska@suse.cz>
6356 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6357 (gimple_fold_builtin_memory_op): Use the function.
6358 (gimple_fold_builtin_strchr): Likewise.
6359 (gimple_fold_builtin_strcat): Likewise.
6360 (gimple_build): Likewise.
6362 2016-10-12 Nathan Sidwell <nathan@acm.org>
6364 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6366 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6368 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6369 equivalent 32-bit constant (modulo 2**32) when that yields
6370 smaller instructions.
6371 (size_of_int_loc_descriptor): Update accordingly.
6373 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6375 * dwarf2out.c (dwarf2out_early_global_decl): For nested
6376 functions, call dwarf2out_decl on the parent function first.
6378 2016-10-12 Richard Biener <rguenther@suse.de>
6380 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6383 2016-10-12 Richard Biener <rguenther@suse.de>
6385 * tree-ssa-propagate.c
6386 (substitute_and_fold_dom_walker::before_dom_children): Do not
6387 ignore ASSERT_EXPRs but only preserve them.
6388 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6389 that have been propagated into.
6390 (vrp_finalize): Enable DCE for substitute_and_fold.
6392 2016-10-12 Richard Biener <rguenther@suse.de>
6394 PR tree-optimization/77920
6395 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6396 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6397 (simplify_abs_using_ranges): Likewise.
6398 (simplify_conversion_using_ranges): Likewise.
6399 (simplify_stmt_using_ranges): Adjust.
6401 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6403 PR tree-optimization/77929
6404 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6405 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6407 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6410 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6411 needs a base register for arg 1.
6413 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6415 * common.opt (Wimplicit-fallthrough) Turn into alias to
6416 -Wimplicit-fallthrough=3. Remove EnabledBy.
6417 (Wimplicit-fallthrough=): New option.
6418 * gimplify.c (warn_implicit_fallthrough_r): Use
6419 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6420 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6421 to -Wimplicit-fallthrough=3.
6422 (-Wimplicit-fallthrough=): Document.
6424 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6426 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6427 and GEU in DImode if TARGET_SUBXC.
6428 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6429 (seqdi<W:mode>_zero_subxc): Delete.
6430 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6431 (neg_seqdi<W:mode>_zero_vis3): Delete.
6432 (plus_seqdi<W:mode>_zero): Likewise.
6433 (minus_seqdi<W:mode>_zero): Likewise.
6434 (plus_plus_sltu<W:mode>): Accept only register.
6435 (addx<W:mode>): Likewise.
6436 (plus_sltu<W:mode>_vis3): Likewise.
6437 (plus_plus_sltu<W:mode>_vis3): Likewise.
6438 (neg_sgeu<W:mode>_vis3): Delete.
6439 (minus_sgeu<W:mode>_vis3): Likewise.
6440 (addxc<W:mode>): Accept only registers.
6441 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6442 (minus_neg_sltu<W:mode>_subxc): Accept only register.
6443 (neg_plus_sltu<W:mode>_subxc): Likewise.
6444 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6445 (minus_minus_sltu<W:mode>_subxc): Accept only register.
6446 (sgeu<W:mode>_insn_subxc): Delete.
6447 (plus_sgeu<W:mode>_subxc): Likewise.
6448 (subxc<W:mode>): Accept only register.
6449 (scc splitter): Split always GEU again.
6451 2016-10-11 Jeff Law <law@redhat.com>
6453 PR tree-optimization/77424
6454 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6455 dead conditionals. Assert that all e->aux fields are NULL.
6457 2016-10-11 David Malcolm <dmalcolm@redhat.com>
6459 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
6460 operand-printing "switch" statement into...
6461 (print_rtx_operand_code_0): ...this new function, ...
6462 (print_rtx_operand_code_e): ...this new function, ...
6463 (print_rtx_operand_codes_E_and_V): ...this new function, ...
6464 (print_rtx_operand_code_i): ...this new function, ...
6465 (print_rtx_operand_code_r): ...this new function, ...
6466 (print_rtx_operand_code_u): ...this new function, ...
6467 (print_rtx_operand): ...and this new function.
6469 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
6471 * config/alpha/alpha-passes.def: New file.
6472 * config/alpha/t-alpha: New file.
6473 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6474 (make_pass_handle_trap_shadows): New prototype.
6475 (make_pass_align_insns): Ditto.
6476 * config/alpha/alpha.c (alpha_option_override): Don't register
6478 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6480 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6483 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6484 distinct __ibm128 IBM extended double type if long doubles are
6485 128-bits and the default format for long double is IEEE 128-bit.
6487 2016-10-11 Richard Biener <rguenther@suse.de>
6489 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6490 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6491 (verify_die): New function.
6492 (dwarf2out_finish): Call it.
6493 (output_line_info): Handle case of -gsplit-dwarf without
6494 DWARF2_ASM_LINE_DEBUG_INFO.
6496 2016-10-11 Richard Biener <rguenther@suse.de>
6499 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6500 sub-chains of BLOCK_VARS and gimple_bind_vars.
6502 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6504 * config/i386/znver1.md : Fix imov/imovx load type reservations.
6506 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6508 * config/sparc/sparc.opt (msubxc): New option.
6509 * doc/invoke.texi (SPARC options): Document it and tidy up.
6510 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6511 * doc/tm.texi: Regenerate.
6512 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6514 (CCX_NOOV): Rename into...
6518 * config/sparc/predicates.m (fcc_register_operand): Simplify.
6519 (fcc0_register_operand): Likewise.
6520 (icc_register_operand): New.
6521 (icc_or_fcc_register_operand): Simplify.
6522 (nz_comparison_operator): New.
6523 (c_comparison_operator): Likewise.
6524 (noov_compare_operator): Rename into...
6525 (icc_comparison_operator): ...this. Use above predicates.
6526 (noov_compare64_operator): Rename into...
6527 (v9_comparison_operator): ...this and tidy up.
6528 (fcc_comparison_operator): New.
6529 (icc_or_fcc_comparison_operator): Likewise.
6530 (v9_register_compare_operator): Rename info...
6531 (v9_register_comparison_operator): ...this.
6532 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6533 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6535 (sparc_fixed_condition_code_regs): New function.
6536 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
6537 renaming and add support for CCC/CCXC.
6538 (output_cbranch): Likewise.
6539 (sparc_print_operand): Likewise.
6540 (gen_v9_scc): Remove obsolete assertion.
6541 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
6542 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
6543 (output_cbcond): Remove bogus handling of CC modes.
6544 (sparc_register_move_cost): Return 100 for NO_REGS.
6545 * config/sparc/sparc.md (W): New mode iterator.
6546 (length): Adjust for noov_compare64_operator renaming.
6547 (cmpsi_sne): New instruction.
6548 (cmpdi_sne): Likewise.
6549 (seqdi_special): Delete.
6550 (seqdi_special): Likewise.
6551 (snesi<P:mode>_special): Likewise.
6552 (snedi_special): Likewise.
6553 (snedi_special_vis3): Likewise.
6554 (snesi patterns): Use W iterator.
6555 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
6556 (sltu patterns): Likewise.
6557 (sgeu patterns): Likewise.
6558 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6559 (normal_branch): Use icc_comparison_operator predicate.
6560 (inverted_branch): Likewise.
6561 (cbcond_sp32): Use comparison_operator predicate.
6562 (cbcond_sp64): Likewise.
6563 (normal_int_branch_sp64): Adjust for renaming
6564 (inverted_int_branch_sp64): Likewise.
6565 (mov<I:mode>_cc_reg_sp64): Likewise.
6566 (movsf_cc_reg_sp6): Likewise.
6567 (movdf_cc_reg_sp64): Likewise.
6568 (movtf_cc_reg_hq_sp64): Likewise.
6569 (movtf_cc_reg_sp64): Likewise.
6570 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6571 (movsf_cc_v9): Likewise.
6572 (movdf_cc_v9): Likewise.
6573 (movtf_cc_hq_v9): Likewise.
6574 (movtf_cc_v9): Likewise.
6575 (adddi3): Call gen_adddi3_sp32.
6576 (adddi3_insn_sp32): Rename to...
6577 (adddi3_sp32): ...this. Accept only register_operand as operand #1
6578 and use CCCmode for the carry.
6579 (addx_extend_sp32): Use CCCmode for the carry.
6580 (addx_extend_sp64): Delete.
6581 (adddi3_extend_sp32): Use CCCmode for the carry.
6582 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6583 (subdi3): Call gen_subdi3_sp32.
6584 (subdi3_insn_sp32): Rename to...
6585 (subdi3_sp32): ...this and use CCmode for the carry.
6586 (subx_extend_sp32): Use CCCmode for the carry.
6587 (subx_extend_sp64): Delete.
6588 (subdi3_extend_sp32): Use CCmode for the carry.
6589 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6590 (negdi3): Call gen_negdi3_sp32.
6591 (negdi3_sp32): Use CCCmode for the carry.
6592 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6593 (cmp_nz_ashift_1): Use CCNZ mode.
6594 (cmp_nz_set_ashift_1): Likewise.
6595 (ctrapsi4): Use comparison_operator predicate.
6596 (ctrapdi4): Likewise.
6597 (trapsi_insn): Use icc_comparison_operator predicate.
6598 (trapdi_insn): Likewise.
6599 (edge8 patterns): Use CCNZmode.
6600 (edge16 patterns): Likewise.
6601 (edge32 patterns): Likewise.
6603 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6605 * config/visium/visium-modes.def (CC_NOOV): Rename into...
6607 (CC_BTST): Rename into...
6609 * config/visium/predicates.md (real_add_operand): New.
6610 (visium_btst_operator): Rename into...
6611 (visium_equality_comparison_operator): ...this.
6612 (visium_noov_operator): Rename into...
6613 (visium_nz_comparison_operator): ...this.
6614 (visium_c_comparison_operator): New.
6615 (visium_branch_operator): Adjust and deal with all CC modes.
6616 * config/visium/visium.c (visium_adjust_cost): Adjust.
6617 (visium_split_double_add): Use the *_set_carry patterns.
6618 (visium_select_cc_mode): Add support for CCC mode and adjust.
6619 (output_cbranch): Adjust and use the carry-based operators for
6620 floating-point comparisons.
6621 * config/visium/visium.md (flags_subst_arith): Adjust.
6622 (addsi3_insn_set_carry): New instruction.
6623 (subsi3_insn_set_carry): Likewise.
6624 (negsi2_insn_set_carry): Likewise.
6626 (cmp<mode>_sne): Likewise.
6627 (cbranch<mode>4): Use ordered_comparison_operator.
6628 (cbranch<mode>4_insn): Likewise.
6629 (cbranchsi4_btst_insn): Adjust.
6631 2016-10-11 Tom de Vries <tom@codesourcery.com>
6634 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
6637 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6639 * tree.h (build_complex_type): Add second parameter with default.
6640 * tree.c (build_complex_type): Add NAMED second parameter and adjust
6641 recursive call. Create a TYPE_DECL only if NAMED is true.
6642 (build_common_tree_nodes): Pass true in calls to build_complex_type.
6644 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
6646 New avr-passes.def to register AVR specific passes.
6648 * config/avr/avr-passes.def: New file.
6649 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
6650 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
6651 (make_avr_pass_recompute_note): New proto.
6652 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
6653 (avr_pass_recompute_notes): Use anonymous namespace.
6654 (avr_register_passes): Remove function...
6655 (avr_option_override): ...and its call.
6657 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
6659 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
6660 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
6661 PTF_AVOID_BRANCHLIKELY_SPEED for others.
6662 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
6664 * config/mips/mips.c (mips_option_override): Enable the branch
6665 likely depending on the tune flags and optimization level.
6666 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
6667 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
6668 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
6669 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
6671 2016-10-11 Richard Biener <rguenther@suse.de>
6673 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
6674 (output_function): Properly stream the whole block tree.
6675 * lto-streamer-in.c (input_function): Likewise.
6677 2016-10-11 Marek Polacek <polacek@redhat.com>
6679 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
6681 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6683 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
6684 (evrp_dom_walker::before_dom_children): Infer and push new value
6685 ranges for x in y < x.
6687 2016-10-10 Joseph Myers <joseph@codesourcery.com>
6690 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
6691 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6692 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6693 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6694 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
6695 (IA64_NO_LIBGCC_TFMODE): Likewise.
6697 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6699 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
6702 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
6704 * config.gcc: Add aarch64-*-freebsd* support.
6705 * config.host: Likewise.
6706 * config/aarch64/aarch64-freebsd.h: New file.
6707 * config/aarch64/t-aarch64-freebsd: Ditto.
6709 2016-10-10 Jeff Law <law@redhat.com>
6711 PR tree-optimization/71947
6712 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
6713 B with A within a single statement.
6715 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6717 PR tree-optimization/77824
6718 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
6719 zero cost for copies.
6720 (find_candidates_dom_walker::before_dom_children): Replace
6721 MODIFY_EXPR with SSA_NAME.
6722 (replace_mult_candidate): Likewise.
6723 (replace_profitable_candidates): Likewise.
6725 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6727 * config/s390/s390.h: Wrap more macros args in brackets and fix
6729 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
6731 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
6733 2016-10-10 Andreas Schwab <schwab@suse.de>
6736 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
6737 pseudo is not DImode.
6739 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
6741 * common/config/arc/arc-common.c (arc_option_optimization_table):
6742 Remove compact casesi option.
6743 * config/arc/arc.c (arc_override_options): Use compact casesi
6744 option only for pre-ARCv2 cores.
6745 * doc/invoke.texi (mcompact-casesi): Update text.
6747 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6749 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
6750 Add macro to say we can efficiently handle overlapping unaligned
6752 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
6753 poor code for processors older than p8.
6755 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
6757 * gen-pass-instances.awk: Remove GNUism.
6759 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6761 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
6762 NULL of (*ipcp_transformations)][node->uid].
6764 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
6766 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6767 (MALLOC_ABI_ALIGNMENT): Define.
6769 2016-10-09 Jakub Jelinek <jakub@redhat.com>
6771 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
6772 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
6773 VAR_OR_FUNCTION_DECL_P macros.
6774 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
6775 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
6776 chkp_find_bounds_1): Likewise.
6777 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
6778 * hsa-gen.c (get_symbol_for_decl): Likewise.
6779 * cgraphunit.c (check_global_declaration, analyze_functions,
6780 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
6782 * gimple-fold.c (can_refer_decl_in_current_unit_p,
6783 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
6785 * tree.c (set_decl_section_name, copy_node_stat,
6786 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
6787 merge_dllimport_decl_attributes, handle_dll_attribute,
6788 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
6789 verify_type): Likewise.
6790 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
6791 find_explicit_erroneous_behavior): Likewise.
6792 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
6793 * ipa.c (process_references): Likewise.
6794 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
6795 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
6796 notice_global_symbol, assemble_variable, mark_decl_referenced,
6797 build_constant_desc, output_constant_def_contents, do_assemble_alias,
6798 make_decl_one_only, default_section_type_flags,
6799 categorize_decl_for_section, default_encode_section_info): Likewise.
6800 * trans-mem.c (requires_barrier): Likewise.
6801 * gimple-expr.c (mark_addressable): Likewise.
6802 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
6803 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
6804 expand_debug_expr): Likewise.
6805 * tree-dump.c (dequeue_and_dump): Likewise.
6806 * ubsan.c (instrument_bool_enum_load): Likewise.
6807 * tree-pretty-print.c (print_declaration): Likewise.
6808 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6809 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
6810 * asan.c (asan_protect_global, instrument_derefs): Likewise.
6811 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
6812 pass_build_ssa::execute): Likewise.
6813 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
6814 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
6816 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
6818 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
6819 can_be_nonlocal, remap_decls, copy_debug_stmt,
6820 initialize_inlined_parameters, add_local_variables,
6821 reset_debug_binding, replace_locals_op): Likewise.
6822 * dse.c (can_escape): Likewise.
6823 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
6825 * tree-diagnostic.c (default_tree_printer): Likewise.
6826 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
6827 unpack_ts_decl_with_vis_value_fields,
6828 lto_input_ts_decl_common_tree_pointers): Likewise.
6829 * builtins.c (builtin_save_expr, fold_builtin_expect,
6830 readonly_data_expr): Likewise.
6831 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
6832 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
6834 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6835 * gimplify.c (force_constant_size, gimplify_bind_expr,
6836 gimplify_decl_expr, gimplify_var_or_parm_decl,
6837 gimplify_compound_lval, gimplify_init_constructor,
6838 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
6839 gimplify_type_sizes): Likewise.
6840 * cgraphbuild.c (record_reference, record_type_list, mark_address,
6841 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
6842 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
6843 remove_unused_locals): Likewise.
6844 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
6845 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
6846 * function.c (instantiate_expr, instantiate_decls_1,
6847 setjmp_vars_warning, add_local_decl): Likewise.
6848 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
6850 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
6851 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
6852 optimize_va_list_gpr_fpr_size): Likewise.
6853 * tree-nrv.c (pass_nrv::execute): Likewise.
6854 * tsan.c (instrument_expr): Likewise.
6855 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6856 * vtable-verify.c (verify_bb_vtables): Likewise.
6857 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
6858 get_ref_base_and_extent): Likewise.
6859 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
6861 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
6862 analyze_all_variable_accesses): Likewise.
6863 * tree-nested.c (get_nonlocal_debug_decl,
6864 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
6865 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
6866 get_local_debug_decl, convert_local_omp_clauses,
6867 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
6869 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
6870 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
6871 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
6872 dbxout_symbol, dbxout_common_check): Likewise.
6873 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
6874 string_constant): Likewise.
6875 * hsa.c (hsa_get_declaration_name): Likewise.
6876 * passes.c (rest_of_decl_compilation): Likewise.
6877 * tree-ssanames.c (make_ssa_name_fn): Likewise.
6878 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
6879 pack_ts_decl_with_vis_value_fields,
6880 write_ts_decl_common_tree_pointers): Likewise.
6881 * stor-layout.c (place_field): Likewise.
6882 * symtab.c (symtab_node::maybe_create_reference,
6883 symtab_node::verify_base, symtab_node::make_decl_local,
6884 symtab_node::copy_visibility_from,
6885 symtab_node::can_increase_alignment_p): Likewise.
6886 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
6887 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
6888 fortran_common, add_location_or_const_value_attribute,
6889 add_scalar_info, add_linkage_name, set_block_abstract_flags,
6890 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
6891 optimize_one_addr_into_implicit_ptr,
6892 optimize_location_into_implicit_ptr): Likewise.
6893 * gimple-low.c (record_vars_into): Likewise.
6894 * ipa-visibility.c (update_vtable_references): Likewise.
6895 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
6897 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
6898 DFS::DFS_write_tree_body, write_symbol): Likewise.
6899 * langhooks.c (lhd_warn_unused_global_decl,
6900 lhd_set_decl_assembler_name): Likewise.
6901 * attribs.c (decl_attributes): Likewise.
6902 * except.c (output_ttype): Likewise.
6903 * varpool.c (varpool_node::get_create, ctor_for_folding,
6904 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
6905 * fold-const.c (fold_unary_loc): Likewise.
6906 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6907 ipa_find_agg_cst_from_init): Likewise.
6908 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
6909 expand_omp_target, lower_omp_regimplify_p,
6910 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
6911 find_link_var_op): Likewise.
6912 * tree-chrec.c (chrec_contains_symbols): Likewise.
6913 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
6914 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
6915 execute_fixup_cfg): Likewise.
6917 PR tree-optimization/77901
6918 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
6919 if ranges[i].exp is SSA_NAME when looking for >= and only when
6920 ranges[i].exp is NULL or SSA_NAME when looking for the other
6923 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6925 * ipa-cp.c (ipcp_alignment_lattice): Remove.
6926 (ipcp_param_lattices): Remove field alignment.
6927 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
6928 (set_all_contains_variable): Remove call to
6929 ipcp_alignment_lattice::set_to_bottom.
6930 (initialize_node_lattices): Likewise.
6931 (propagate_alignment_accross_jump_function): Remove.
6932 (propagate_constants_accross_call): Remove call to
6933 propagate_alignment_accross_jump_function.
6934 (ipcp_store_alignment_results): Remove.
6935 (ipcp_driver): Remove call to ipcp_store_alignment_results.
6936 (propagate_bits_accross_jump_function): Handle ancestor jump function.
6937 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
6938 pretty-printing of alignment jump function.
6939 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
6940 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
6941 alignments and remove computing ipa_alignment jump function.
6942 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
6943 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
6944 (ipa_read_jump_function): Remove reading of ipa_alignment.
6945 (write_ipcp_transformation_info): Remove streaming for alignment
6946 propagation summary.
6947 (read_ipcp_transformation_info): Remove reading of alignment
6948 propagation summary.
6949 (ipcp_update_alignments): Remove.
6950 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
6952 (ipcp_transform_function): Remove call to ipcp_update_alignments()
6953 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
6954 * ipa-prop.h (ipa_alignment): Remove.
6955 (ipa_jump_func): Remove field alignment.
6956 (ipcp_transformation_summary): Remove field alignments.
6957 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
6958 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
6959 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
6961 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
6963 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
6965 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
6967 (visium_expand_fp_cstore): Likewise.
6969 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6971 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
6972 * diagnostic.c (warning_at_rich_loc_n): New function.
6973 (diagnostic_n_impl_richloc): Likewise.
6974 (diagnostic_n_impl): Move most of the function to
6975 diagnostic_n_impl_richloc and call it.
6977 2016-10-08 Jakub Jelinek <jakub@redhat.com>
6979 * gen-pass-instances.awk: Rewritten.
6980 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
6981 $(PASSES_EXTRA) after passes.def to the script.
6982 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
6983 * config/i386/i386-passes.def: New file.
6984 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
6985 make_pass_stv): Declare.
6986 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
6988 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
6990 (pass_stv::clone, pass_stv::set_pass_param): New methods.
6991 (pass_stv::timode_p): New non-static data member.
6992 (ix86_option_override): Don't register passes here.
6994 * doc/invoke.texi: Document accepting Else, fallthrough.
6996 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
6999 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
7000 FALLTHRU comment styles.
7002 2016-10-07 Andrew Pinski <apinski@cavium.com>
7004 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
7005 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
7006 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
7008 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
7010 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
7012 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
7013 (AARCH64_ARCH): Likewise.
7014 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
7016 (AARCH64_CORE): Likewise.
7017 (AARCH64_ARCH): Likewise.
7018 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
7019 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7020 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
7021 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7022 (AARCH64_ARCH): Likewise.
7023 (AARCH64_CORE): Likewise.
7024 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
7025 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
7026 (AARCH64_CORE): Likewise.
7027 (AARCH64_ARCH): Likewise.
7029 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7031 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
7032 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
7033 floating point type infrastructre, and -mfloat128 that enables the
7034 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
7035 if -mfloat128-type. Define __ibm128 to be long double by default.
7036 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
7037 the IEEE 128-bit floating point type infrastructure should
7038 automatically be enabled.
7039 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
7040 instead of -mfloat128 to enable KFmode.
7041 (rs6000_option_override_internal): Split the option -mfloat128
7042 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
7043 systems, automatically set -mfloat128-type, but don't enable it on
7044 other operating systems. Move setting the long double size and
7045 IEEE quad support before the IEEE 128-bit floating point changes.
7046 (rs6000_init_builtins): Do not create a unique type for __ibm128
7047 if long double is IBM extended double, instead rely on __ibm128
7048 being defined as 'long double'. If -mfloat128-type and not
7049 -mfloat128, create the KFmode type with an undocumented __ieee128
7051 (rs6000_init_libfuncs): Use -mfloat128-type instead of
7052 -mfloat128 for tests about the types, but keep tests for
7053 -mfloat128 to enable the keyword support.
7054 (rs6000_complex_function_value): Likewise.
7055 (rs6000_scalar_mode_supported_p): Likewise.
7056 (rs6000_floatn_mode): Likewise.
7057 (rs6000_c_mode_for_suffix): Likewise.
7058 (rs6000_opt_masks): Add -mfloat128-type.
7059 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
7060 -mfloat128-type being split from -mfloat128. Add
7061 -mfloat128-hardware, which was missing.
7062 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
7063 -mfloat128 and -mfloat128-type:
7064 (-mfloat128-type): Likewise.
7065 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
7066 that 64-bit Linux systems with enable -mfloat128-type by default
7068 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
7069 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
7070 -mfloat128-type instead of -mfloat128.
7071 (FLOAT128_2REG_P): Likewise.
7072 (MASK_FLOAT128_TYPE): Likewise.
7073 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7074 (RS6000_BTM_FLOAT128): Likewise.
7075 (TARGET_FLOAT128): Poison old identifiers.
7076 (OPTION_MASK_FLOAT128): Likewise.
7077 (MASK_FLOAT128): Likewise.
7078 * config/rs6000/rs6000.md (FP): Likewise.
7079 (FLOAT128): Likewise.
7080 (fix_trunc<mode>di2): Likewise.
7081 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7082 (floatdi<mode>2): Likewise.
7083 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
7084 (neg<mode>2, FLOAT128 iterator): Likewise.
7085 (abs<mode>2, FLOAT128 iterator): Likewise.
7086 (ieee_128bit_negative_zero): Likewise.
7087 (ieee_128bit_vsx_neg<mode>2): Likewise.
7088 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7089 (ieee_128bit_vsx_abs<mode>2): Likewise.
7090 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7091 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7092 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7093 (extendiftf2): Likewise.
7094 (extendifkf2): Likewise.
7095 (extendtfkf2): Likewise.
7096 (trunciftf2): Likewise.
7097 (truncifkf2): Likewise.
7098 (trunckftf2): Likewise.
7099 (trunctfif2): Likewise.
7100 (extendkftf2): Likewise.
7101 (trunctfkf2): Likewise.
7103 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7105 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
7106 before merging in bytes to pass down to real_from_target.
7108 2016-10-07 Richard Biener <rguenther@suse.de>
7110 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
7112 (substitute_and_fold_dom_walker::before_dom_children):
7113 Substitute and fold before pass specific folding to avoid
7114 feeding that with SSA names that will be later released.
7115 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
7116 introduced by folding and visited by evaluate_stmt called during
7118 (likely_value): Likewise.
7119 (evaluate_stmt): Likewise.
7120 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
7121 (simplify_div_or_mod_using_ranges): Likewise.
7122 (simplify_min_or_max_using_ranges): Likewise.
7123 (simplify_abs_using_ranges): Likewise.
7124 (simplify_conversion_using_ranges): Likewise.
7125 (simplify_float_conversion_using_ranges): Likewise.
7126 (simplify_stmt_using_ranges): Likewise.
7128 2016-10-07 Marek Polacek <polacek@redhat.com>
7130 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
7131 FALLTHROUGH_LABEL_P here...
7132 (warn_implicit_fallthrough_r): ...not here.
7134 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
7136 PR tree-optimization/77880
7137 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
7140 2016-10-07 Marek Polacek <polacek@redhat.com>
7143 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
7145 2016-10-07 Richard Biener <rguenther@suse.de>
7147 * bitmap.h: Document constraints on bitmap modification while
7150 2016-10-07 Richard Biener <rguenther@suse.de>
7152 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
7153 * bitmap.h (bmp_iter_set): When advancing to the next element
7154 check that we didn't remove the current one.
7155 (bmp_iter_and): Likewise.
7156 (bmp_iter_and_compl): Likewise.
7157 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
7158 we currently iterate on but keep a one-level queue.
7159 * sched-deps.c (remove_from_deps): Do not clear current bit
7160 but keep a one-level queue.
7162 2016-10-07 Jakub Jelinek <jakub@redhat.com>
7164 PR tree-optimization/77664
7165 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
7166 for the other ranges.
7167 (optimize_range_tests_diff): Fix up formatting.
7168 (optimize_range_tests_var_bound): New function.
7169 (optimize_range_tests): Use it.
7171 2016-10-07 Martin Liska <mliska@suse.cz>
7173 * coverage.c (build_gcov_exit_decl): Fix priority what
7174 should be really 99.
7176 2016-10-07 Richard Biener <rguenther@suse.de>
7178 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
7179 vars in gimple_bind_vars but not in BLOCK_VARS.
7181 2016-10-07 Richard Biener <rguenther@suse.de>
7183 PR tree-optimization/77879
7184 * tree-ssa-structalias.c (handle_const_call): Properly handle
7186 (handle_pure_call): Likewise.
7188 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7190 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
7191 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
7194 2016-10-06 Andrew Pinski <apinski@cavium.com>
7196 * config/aarch64/aarch64-cores.def: Add a comment before each
7199 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7201 PR tree-optimization/77862
7202 * tree-vrp.c (add_equivalence): Use get_value_range so that
7203 num_vr_values is checked before accessing vr_values.
7205 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7207 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7210 2016-10-05 Jeff Law <law@redhat.com>
7212 PR tree-optimization/71661
7213 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
7214 removal of a forwarder exposes a new natural loop.
7216 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
7218 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
7219 Introduce ssesuffix variable.
7220 (<mask_codefor><code><mode>3<mask_name>): Ditto.
7221 (*<code><mode>3): Ditto.
7223 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
7225 * postreload.c (reload_cse_simplify): Skip also USE when detecting
7228 2016-10-06 Richard Biener <rguenther@suse.de>
7230 PR tree-optimization/77855
7231 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
7232 instead of removing the current item while iterating over the set
7235 2016-10-06 James Clarke <jrtc27@jrtc27.com>
7236 Eric Botcazou <ebotcazou@adacore.com>
7239 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
7240 (classify_registers): Don't set it
7241 (function_arg_slotno): Don't initialize and test it. Tidy up.
7243 2016-10-06 Richard Biener <rguenther@suse.de>
7245 PR tree-optimization/77839
7246 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
7249 2016-10-06 Martin Liska <mliska@suse.cz>
7251 * gcc.c: Set -fprofile-update=atomic when profiling is
7252 enabled and -pthread is set. Warn when one combines
7253 -pthread and -fprofile-update=single for an app using
7256 2016-10-06 Martin Liska <mliska@suse.cz>
7259 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
7260 * gimple-ssa-strength-reduction.c (slsr_process_cast):
7261 Initialize a pointer to NULL.
7262 (slsr_process_copy): Likewise.
7263 * input.c (location_get_source_line): Likewise.
7264 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7266 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
7268 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
7269 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
7270 (ix86_handle_option): Deleted handle of OPT_mpcommit.
7271 * config.gcc: Deleted pcommitintrin.h
7272 * config/i386/pcommitintrin.h: Deleted file.
7273 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
7274 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
7276 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
7278 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
7279 (PTA_PCOMMIT): Deleted define.
7280 (ix86_option_override_internal): Deleted handle of option.
7281 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
7282 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
7283 __builtin_ia32_pcommit): Deleted.
7284 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
7285 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
7286 (pcommit): Deleted instruction.
7287 * config/i386/i386.opt: Mention -mpcommit deprecation.
7288 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
7290 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
7293 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
7294 Remove wrong assert.
7295 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
7296 Use <round_constraint> as operand 1 constraint.
7298 2016-10-05 Jakub Jelinek <jakub@redhat.com>
7301 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
7302 (ubsan_instrument_float_cast): And not here.
7305 * ubsan.c (ubsan_ids): New GTY(()) array.
7306 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
7307 instead of static local counters.
7309 2016-10-05 Martin Sebor <msebor@redhat.com>
7312 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
7313 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
7314 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
7315 (default_printf_pointer_format): Define function.
7316 * targhooks.c (linux_printf_pointer_format): Define new function.
7317 * targhooks.h (linux_printf_pointer_format): Declare.
7318 (gnu_libc_printf_pointer_format): Remove declaration.
7320 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7322 * fold-const.c (native_encode_real): Fix logic for selecting offset
7323 to write to when BYTES_BIG_ENDIAN.
7325 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
7327 * builtins.c (fold_builtin_strchr): Remove function.
7328 (fold_builtin_strrchr): Likewise.
7329 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7330 * gimple-fold.c (target_char_cst_p): New function.
7331 (gimple_fold_builtin_strchr) Add more foldings.
7332 (gimple_fold_builtin): Add index, strrchr, rindex cases.
7334 2016-10-05 Richard Biener <rguenther@suse.de>
7337 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7338 capture ids in c-exprs.
7340 2016-10-05 Richard Biener <rguenther@suse.de>
7343 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7344 with types_match for GIMPLE code gen to handle type mismatched
7346 (dt_operand::gen): Adjust.
7347 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7350 2016-10-05 Richard Biener <rguenther@suse.de>
7352 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7354 2016-10-05 Richard Biener <rguenther@suse.de>
7357 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7359 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
7361 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7362 version check to protect only DW_TAG_imported_module generation.
7364 2016-10-05 Richard Biener <rguenther@suse.de>
7367 * match.pd (min(a,-a) -> -abs(a)): New pattern.
7369 2016-10-04 Ian Lance Taylor <iant@golang.org>
7371 * explow.c (allocate_dynamic_stack_space): Call
7372 do_pending_stack_adjust before handling flag_split_stack.
7374 2016-10-04 David Malcolm <dmalcolm@redhat.com>
7376 * genattrtab.c (make_internal_attr): Supply dummy column number to
7379 * genoutput.c (init_insn_for_nothing): Likewise.
7380 * gensupport.c (add_define_attr): Likewise.
7381 * read-md.c (message_at_1): Print column number.
7382 (fatal_with_file_and_line): Likewise.
7383 (rtx_reader::read_char): Track column numbers.
7384 (rtx_reader::unread_char): Likewise.
7385 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7386 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7387 (rtx_reader::handle_file): Initialize m_read_md_colno.
7388 (rtx_reader::get_current_location): Supply column number to
7390 * read-md.h (struct file_location): Add field "colno".
7391 (file_location::file_location): Likewise.
7392 (rtx_reader::get_colno): New accessor.
7393 (rtx_reader::m_read_md_colno): New field.
7394 (rtx_reader::m_last_line_colno): New field.
7396 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7398 * doc/extend.texi (Java Exceptions): Remove.
7399 (java_interface): Remove.
7401 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
7403 PR tree-optimization/77808
7404 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7405 and addr are different before copying points-to information.
7407 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
7409 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7410 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7411 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7412 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7414 2016-10-04 Richard Biener <rguenther@suse.de>
7416 PR tree-optimization/77399
7417 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7418 verify the target can convert.
7420 2016-10-04 Richard Biener <rguenther@suse.de>
7423 * explow.c (plus_constant): Verify the mode of the constant
7424 pool offset before calling plus_constant.
7426 2016-10-04 Richard Biener <rguenther@suse.de>
7429 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7430 type support, mark with :C.
7431 (X / -X -> -1): Mark with :C.
7433 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7435 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7436 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7437 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7438 * doc/tm.texi: Regenerated.
7439 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7440 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7441 * config/darwin.h (JCR_SECTION_NAME): Remove.
7442 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7443 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7444 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7445 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7446 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7447 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7449 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7451 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7452 between "because" and "param" in dump message in call to fprintf.
7454 2016-10-03 Jeff Law <law@redhat.com>
7456 PR tree-optimization/71550
7457 PR tree-optimization/71403
7458 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7459 (profitable_jump_thread_path): Also return boolean indicating if
7460 the realized path will create an irreducible loop.
7461 Remove loop depth tests from 71403.
7462 (fsm_find_control_statement_thread_paths): Remove loop depth tests
7463 from 71403. If threading will create an irreducible loop, then
7464 throw away loop iteration and related information.
7466 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
7468 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7469 -Woverloaded-virtual checks for warning options.
7470 * configure: Regenerate.
7472 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7474 PR preprocessor/77699
7475 * input.c (maybe_grow): Don't allocate one byte extra headroom.
7476 (get_next_line): Return false on error.
7477 (read_next_line): Removed, use get_next_line instead.
7478 (read_line_num): Don't copy the line.
7479 (location_get_source_line): Don't use static data.
7480 (selftest::test_reading_source_line): Add more test cases.
7482 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7485 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7487 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7488 (noce_process_if_block): Use it.
7490 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7492 * doc/invoke.texi: Update -Wint-in-bool-context.
7494 2016-10-02 Jakub Jelinek <jakub@redhat.com>
7496 * dwarf2out.c (output_fde, output_call_frame_info,
7497 dwarf2out_do_cfi_startproc, set_indirect_string,
7498 gen_internal_sym, output_die, output_line_info): Use
7499 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7500 ASM_GENERATE_INTERNAL_LABEL output.
7502 2016-10-01 Richard Biener <rguenther@suse.de>
7505 * genmatch.c (get_operand_type): Add operand position arg
7506 and handle COND_EXPR comparison operand with fixed boolean_type_node.
7507 (expr::gen_transform): Adjust.
7508 (dt_simplify::gen_1): Likewise.
7510 2016-10-01 Jakub Jelinek <jakub@redhat.com>
7512 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7513 comments. Simplify asserts, remove unnecessary conditions.
7515 (*<code><mode>3): Likewise.
7517 2016-09-30 Jakub Jelinek <jakub@redhat.com>
7519 * doc/invoke.texi (-Wregister): Document.
7521 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7523 * configure.ac: Split CHECKING_P into CHECKING_P and
7524 ENABLE_EXTRA_CHECKING.
7525 * configure: Regenerated.
7526 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7527 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7529 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
7532 * gcc.c (process_command): For @filename handling, output
7533 the correct name if the file does not exist.
7535 2016-09-30 Marek Polacek <polacek@redhat.com>
7537 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7538 * config/alpha/predicates.md: Likewise.
7540 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7542 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7543 (noce_process_if_block): Use it.
7545 2016-09-30 Martin Liska <mliska@suse.cz>
7547 * doc/invoke.texi: Document asan-use-after-return that
7548 it's disabled by default in runtime.
7550 2016-09-30 Richard Biener <rguenther@suse.de>
7552 * tree-vrp.c (intersect_ranges): If we failed to handle
7553 the intersection choose a constant singleton range if available.
7555 2016-09-30 Richard Biener <rguenther@suse.de>
7557 PR tree-optimization/77399
7558 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7559 float <-> int conversions.
7561 2016-09-30 Alan Modra <amodra@gmail.com>
7563 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7565 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7567 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7568 ext_level before calling CPUID with 0x80000008.
7569 Simplify xgetbv checks.
7571 2016-09-29 David Malcolm <dmalcolm@redhat.com>
7573 * Makefile.in (OBJS): Add print-rtl-function.o.
7574 * print-rtl-function.c: New file.
7575 * print-rtl.h (print_rtx_function): New decl.
7577 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7580 * config/i386/cpuid.h (__get_cpuid_count): New.
7581 (__get_cpuid): Rename __level to __leaf.
7583 2016-09-29 Marek Polacek <polacek@redhat.com>
7585 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7587 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
7590 * builtins.c (expand_builtin_memcmp): Don't swap args unless
7591 result is only being compared with zero.
7593 2016-09-29 Marek Polacek <polacek@redhat.com>
7595 * dwarf2out.c (loc_descriptor): Add fall through comment.
7596 (add_const_value_attribute): Likewise.
7598 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
7600 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7601 with "v6t2". Move "arch" attribute above "pool_range".
7602 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7604 (*thumb2_movhi_vfp): Likewise.
7605 (*arm_movhi_fp16): Likewise.
7606 (*thumb2_movhi_fp16): Likewise.
7607 (*arm_movsi_vfp): Remove "arch" attribute.
7608 (*thumb2_movsi_vfp): Likewise.
7610 2016-09-29 Martin Liska <mliska@suse.cz>
7612 * doc/extend.texi: Remove limitation of Objective C for
7613 __attribute__((constructor)) and __attribute__((destructor)).
7615 2016-09-29 Richard Biener <rguenther@suse.de>
7617 PR tree-optimization/77768
7618 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7619 Handle stores to readonly memory when removing redundant stores.
7621 2016-09-29 Richard Biener <rguenther@suse.de>
7624 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
7625 X / -X -> -1 simplifications.
7627 2016-09-29 Richard Biener <rguenther@suse.de>
7630 * match.pd: Add max(a,-a) -> abs(a) pattern.
7631 * tree-ssa-phiopt.c (minmax_replacement): Disable for
7632 HONOR_SIGNED_ZEROS types.
7634 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
7636 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
7637 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
7639 2016-09-29 Richard Biener <rguenther@suse.de>
7641 * tree-vrp.c (set_defs_to_varying): New helper avoiding
7642 writing to vr_const_varying.
7643 (vrp_initialize): Call it.
7644 (vrp_visit_stmt): Likewise.
7645 (evrp_dom_walker::before_dom_children): Likewise.
7647 2016-09-29 Richard Biener <rguenther@suse.de>
7649 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
7650 constructors with vector elements.
7652 2016-09-29 Richard Biener <rguenther@suse.de>
7654 PR tree-optimization/77768
7655 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
7656 with stores to a place we know has a constant value.
7658 2016-09-29 Alan Modra <amodra@gmail.com>
7660 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
7661 * doc/invoke.texi: Document it.
7662 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
7663 (rs6000_passes_float): Comment.
7664 (rs6000_passes_long_double): New static var.
7665 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
7666 (init_cumulative_args): Set up to emit fp .gnu_attribute for
7667 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
7668 to include fp values returned in vectors.
7669 Set rs6000_passes_long_double.
7670 (rs6000_function_arg_advance_1): Likewise for function args.
7671 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
7672 and SPE. Emit long double tag value too.
7673 (rs6000_opt_vars): Add gnu-attr.
7674 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
7675 * configure: Regenerate.
7676 * config.in: Regenerate.
7678 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7680 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
7682 (format_floating, format_string, format_directive,
7683 get_destination_size, pass_sprintf_length::handle_gimple_call):
7686 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7688 * gimple-ssa-sprintf.c: Fix comment formatting.
7689 (format_integer): Use is_gimple_assign.
7690 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
7691 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
7692 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
7693 (pass_sprintf_length::execute): Use is_gimple_call.
7695 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7697 * gimple-fold.c (gimple_fold_builtin): After failing to fold
7698 strchr, also try the generic folding.
7700 2016-09-28 Martin Sebor <msebor@redhat.com>
7703 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
7706 2016-09-28 Martin Sebor <msebor@redhat.com>
7709 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
7710 length modifier is not expected.
7711 (format_floating): Ignore l length modifier and fail gracefuly
7712 when it isn't one of the other expected ones.
7714 2016-09-28 Martin Sebor <msebor@redhat.com>
7717 * varasm.c (assemble_addr_to_section): Increase local buffer size.
7719 2016-09-27 Richard Biener <rguenther@suse.de>
7721 * dwarf2out.c (cu_die_list): New global.
7722 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
7723 main_comp_unit_die to cu_die_list if we created it.
7724 Move break_out_includes ...
7725 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
7728 2016-09-28 Richard Biener <rguenther@suse.de>
7730 * dwarf2out.c (struct die_struct): Add removed flag.
7731 (lookup_type_die): If the DIE is marked as removed, clear
7732 TYPE_SYMTAB_DIE and return NULL.
7733 (lookup_decl_die): If the DIE is marked as removed, remove it
7734 from the hash and return NULL.
7735 (mark_removed): New helper.
7736 (prune_unused_types_prune): Call it for removed DIEs.
7737 (gen_subprogram_die): Move the premark_used_types call to after
7738 DIEs for the functions scopes are generated.
7739 (process_scope_var): Do not re-create pruned types or type decls.
7740 Make sure to also re-parent type decls.
7741 (dwarf2out_finish): Move unused type pruning and debug_types
7743 (dwarf2out_early_finish): ... here.
7745 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7747 * config/arc/arc-c.c: New file.
7748 * config/arc/arc-c.def: Likewise.
7749 * config/arc/t-arc: Likewise.
7750 * config.gcc: Include arc-c.o as c and cpp object.
7751 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
7752 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
7753 arc_cpu_cpp_builtins.
7755 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7757 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
7758 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
7760 2016-09-28 Nathan Sidwell <nathan@acm.org>
7762 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
7765 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7767 PR tree-optimization/61056
7768 * gimple-fold.c (gimple_fold_builtin_strchr):
7769 New function to optimize strchr (s, 0) to strlen.
7770 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
7772 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
7774 PR tree-optimization/77724
7775 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
7776 Add tree_fits_shwi_p check.
7778 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7780 * auto-inc-dec.c (try_merge): Remove break after return.
7781 * cselib.c (autoinc_split): Likewise.
7782 * explow.c (promote_mode): Likewise.
7783 * fixed-value.c (fixed_arithmetic): Likewise.
7784 * hsa.c (hsa_internal_fn::get_arity): Likewise.
7785 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
7786 * trans-mem.c (get_attrs_for): Likewise.
7787 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
7788 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
7789 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
7790 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
7791 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
7792 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
7793 * config/cris/cris.c (cris_op_str): Likewise.
7794 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
7795 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
7797 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
7799 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
7800 IFN_GOACC_REDUCTION_CODES): New.
7801 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
7802 ifn_goacc_reduction_kind): Use them.
7803 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
7804 of internal functions, when applicable.
7806 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
7808 * config/mips/constraints.md (d): Fix documentation.
7809 * doc/md.texi (Machine Constraints): Update accordingly.
7811 2016-09-27 Richard Biener <rguenther@suse.de>
7813 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
7814 cur_line_info_table initialization ...
7815 (dwarf2out_assembly_start): ... here.
7817 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
7819 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
7820 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
7821 (*thumb2_movhi_vfp): Likewise.
7822 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
7823 template. Expand predicable attribute to mark VMOV.F16 as not
7824 predicable. Add "arch" attribute.
7825 (*thumb2_movhi_fp16): Likewise.
7826 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
7827 (*thumb2_movsi_vfp): Add "arch" attribute.
7829 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
7831 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
7834 2016-09-27 Marek Polacek <polacek@redhat.com>
7836 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
7839 * config/c6x/c6x.h: Adjust fall through comment.
7840 * config/sh/sh.c (final_prescan_insn): Likewise.
7841 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
7842 (visium_expand_fp_cstore): Likewise.
7844 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7846 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
7847 expected by -Wimplicit-fallthrough.
7848 (thumb1_size_rtx_costs): Likewise.
7849 (thumb2_reorg): Likewise.
7850 (tls_mentioned_p): Add "Fall through" comment.
7851 (thumb2_reorg): Likewise.
7852 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
7853 comment form expected by -Wimplicit-fallthrough.
7855 2016-09-27 Martin Liska <mliska@suse.cz>
7857 PR gcov-profile/46266
7858 * input.h (RESERVED_LOCATION_P): New macro.
7859 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
7860 instread of comparison with UNKNOWN_LOCATION.
7862 2016-09-27 Richard Biener <rguenther@suse.de>
7864 PR tree-optimization/77745
7865 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7866 When removing redundant stores make sure to check compatibility
7867 of the TBAA state for downstream accesses.
7868 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
7869 value-numbering virtual operands for store matches.
7871 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7874 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
7875 movrt patterns. Match them before anything else in the SET case.
7877 2016-09-27 Martin Liska <mliska@suse.cz>
7879 PR gcov-profile/7970
7880 PR gcov-profile/16855
7881 PR gcov-profile/44779
7882 * coverage.c (build_gcov_exit_decl): New function.
7883 (coverage_obj_init): Call the function and generate __gcov_exit
7885 * doc/gcov.texi: Document when __gcov_exit function is called.
7887 2016-09-27 Marek Polacek <polacek@redhat.com>
7890 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7891 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
7892 -Wno-error instead of -Wno-implicit-fallthrough.
7894 2016-09-27 Martin Liska <mliska@suse.cz>
7897 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
7899 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7901 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
7902 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
7903 comments. Remove break after return.
7904 (ix86_fp_compare_code_to_integer, has_dispatch,
7905 ix86_simd_clone_usable): Remove break after return.
7907 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7909 PR rlt-optimization/77714
7910 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
7913 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
7916 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
7917 extract_range_from_unary_expr to convert value_range.
7918 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
7919 (extract_range_from_unary_expr): This.
7920 * tree-vrp.h (extract_range_from_unary_expr): Declare.
7922 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
7924 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
7926 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7928 * config/i386/i386.c (ix86_print_operand)
7929 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
7930 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
7931 (epilogue_renumber): Likewise.
7933 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
7936 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
7937 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
7939 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7941 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7942 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
7943 is_mm_seq_cst, is_mm_sync): Move to ...
7944 * memmodel.h: This. New file.
7945 * builtins.c: Include memmodel.h.
7946 * optabs.c: Likewise.
7948 * config/aarch64/aarch64.c: Likewise.
7949 * config/alpha/alpha.c: Likewise.
7950 * config/arm/arm.c: Likewise.
7951 * config/i386/i386.c: Likewise.
7952 * config/ia64/ia64.c: Likewise.
7953 * config/mips/mips.c: Likewise.
7954 * config/rs6000/rs6000.c: Likewise.
7955 * config/sparc/sparc.c: Likewise.
7956 * genconditions.c: Include memmodel.h in generated file.
7957 * genemit.c: Likewise.
7958 * genoutput.c: Likewise.
7959 * genpeep.c: Likewise.
7960 * genpreds.c: Likewise.
7961 * genrecog.c: Likewise.
7963 2016-09-26 David Malcolm <dmalcolm@redhat.com>
7965 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
7966 "c" instead when parsing characters. Move operand parsing into...
7967 (read_rtx_operand): ...this new function, renaming "i" to "idx",
7968 and tightening the scope of various locals.
7970 2016-09-26 Liu Hao <lh_mouse@126.com>
7972 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
7974 2016-09-26 Marek Polacek <polacek@redhat.com>
7976 * system.h: Use __has_attribute to check whether the fallthrough
7977 attribute is supported.
7979 2016-09-26 Marek Polacek <polacek@redhat.com>
7981 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
7982 gimple_call_internal_p.
7983 * ipa-split.c (find_return_bb): Likewise.
7984 (execute_split_functions): Likewise.
7985 * omp-low.c (dump_oacc_loop_part): Likewise.
7986 (oacc_loop_xform_head_tail): Likewise.
7987 * predict.c (predict_loops): Likewise.
7988 * sanopt.c (pass_sanopt::execute): Likewise.
7989 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
7990 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
7991 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
7992 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
7993 (expand_ifn_va_arg): Likewise.
7994 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7995 (optimize_mask_stores): Likewise.
7996 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
7997 (vect_transform_stmt): Likewise.
7998 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
7999 * tsan.c (instrument_memory_accesses): Likewise.
8001 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8002 Alexander Monakov <amonakov@ispras.ru>
8004 * regrename.c (rename_chains): Check
8005 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
8006 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
8007 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8009 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8011 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
8012 (s390_sched_score): Likewise.
8014 2016-09-26 Martin Liska <mliska@suse.cz>
8016 * doc/gcov.texi: Update program output of gcov tool.
8018 2016-09-26 Martin Liska <mliska@suse.cz>
8020 PR gcov-profile/23332
8021 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
8022 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
8023 * value-prof.c (dump_histogram_value): Do not handle
8024 HIST_TYPE_CONST_DELTA.
8025 (stream_in_histogram_value): Likewise.
8026 (gimple_find_values_to_profile): Likewise.
8027 * value-prof.h (enum hist_type): Likewise.
8029 2016-09-26 Martin Liska <mliska@suse.cz>
8031 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
8032 from default sanitize recover values.
8033 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
8034 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
8035 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
8037 * opts.c (finish_options): Do a generic loop over options
8038 that can be recovered.
8039 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
8041 (common_handle_option): Likewise.
8042 * opts.h: Declare can_recover to sanitizer_opts_s.
8044 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
8046 * target.def(elf_flags_numeric): Change documentation to present tense.
8047 * doc/tm.texi: Regenerate.
8049 2016-09-26 Marek Polacek <polacek@redhat.com>
8052 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8053 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
8054 -Wno-switch-fallthrough.
8055 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
8056 (expand_builtin): Likewise.
8057 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
8058 * convert.c (convert_to_real_1): Likewise.
8059 (convert_to_integer_1): Likewise.
8060 * final.c (output_alternate_entry_point): Likewise.
8061 * genattrtab.c (make_canonical): Likewise.
8062 (write_test_expr): Likewise.
8063 * genpreds.c (validate_exp): Likewise.
8064 * gimple-ssa-strength-reduction.c
8065 (find_candidates_dom_walker::before_dom_children): Likewise.
8066 * godump.c (go_format_type): Likewise.
8067 * reload1.c (elimination_effects): Likewise.
8068 * resource.c (mark_referenced_resources): Likewise.
8069 (mark_set_resources): Likewise.
8070 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
8071 * varasm.c (output_addressed_constants): Likewise.
8073 2016-09-26 Marek Polacek <polacek@redhat.com>
8076 * common.opt (Wimplicit-fallthrough): New option.
8077 * doc/extend.texi: Document statement attributes and the fallthrough
8079 * doc/invoke.texi: Document -Wimplicit-fallthrough.
8080 * gimple.h (gimple_call_internal_p): New function.
8081 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
8082 (struct label_entry): New struct.
8083 (find_label_entry): New function.
8084 (case_label_p): New function.
8085 (collect_fallthrough_labels): New function.
8086 (last_stmt_in_scope): New function.
8087 (should_warn_for_implicit_fallthrough): New function.
8088 (warn_implicit_fallthrough_r): New function.
8089 (maybe_warn_implicit_fallthrough): New function.
8090 (expand_FALLTHROUGH_r): New function.
8091 (expand_FALLTHROUGH): New function.
8092 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
8093 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
8094 (gimplify_label_expr): New function.
8095 (gimplify_case_label_expr): Set location.
8096 (gimplify_expr): Call gimplify_label_expr.
8097 * internal-fn.c (expand_FALLTHROUGH): New function.
8098 * internal-fn.def (FALLTHROUGH): New internal function.
8099 * langhooks.c (lang_GNU_OBJC): New function.
8100 * langhooks.h (lang_GNU_OBJC): Declare.
8101 * system.h (gcc_fallthrough): Define.
8102 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
8103 * tree.h (FALLTHROUGH_LABEL_P): Define.
8105 2016-09-26 Richard Biener <rguenther@suse.de>
8107 * dwarf2out.c (stripattributes): Remove unused function.
8108 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
8109 Push dwarf_split_debug_info handling into init_sections_and_labels.
8110 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
8111 (DEBUG_MACRO_SECTION_FLAGS): Remove.
8112 (debug_macinfo_section_name): New global.
8113 (output_macinfo): Use debug_macinfo_section_name.
8114 (init_sections_and_labels): Split out section and label generation
8115 from dwarf2out_init. Set debug_macinfo_section_name.
8116 (dwarf2out_init): Move text section label generation and emission
8118 (dwarf2out_assembly_start): ... here.
8119 (dwarf2out_finish): Call init_sections_and_labels before DWARF
8122 2016-09-26 Richard Biener <rguenther@suse.de>
8125 * cgraphunit.c (analyze_functions): Before early removing
8126 global vars calls the late_global_decl debug handler mark
8127 the variable as readonly.
8129 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8132 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
8133 (sh_rtx_costs): Handle SET of movt and movrt patterns.
8134 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
8135 declare new overloads.
8136 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
8139 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8141 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
8142 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
8144 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
8146 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
8147 * configure: Regenerate.
8149 2016-09-24 Marek Polacek <polacek@redhat.com>
8152 * doc/invoke.texi: Document -Wbool-operation.
8154 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8156 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
8157 * config/rs6000/rs6000.c (expand_block_compare): New function used by
8158 cmpmemsi pattern to do builtin expansion of memcmp ().
8159 (compute_current_alignment): Add helper function for
8160 expand_block_compare used to compute alignment as the compare proceeds.
8161 (select_block_compare_mode): Used by expand_block_compare to select
8162 the mode used for reading the next chunk of bytes in the compare.
8163 (do_load_for_compare): Used by expand_block_compare to emit the load
8164 insns for the compare.
8165 (rs6000_emit_dot_insn): Moved this function to avoid a forward
8166 reference from expand_block_compare ().
8167 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
8168 prototype for this function.
8169 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
8170 target option for controlling how much code inline expansion of
8171 memcmp() will be allowed to generate.
8173 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8175 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
8176 hook_bool_mode_false, hook_bool_mode_true,
8177 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8178 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8179 hook_bool_const_rtx_insn_const_rtx_insn_true,
8180 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
8181 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
8182 hook_bool_const_tree_hwi_hwi_const_tree_false,
8183 hook_bool_const_tree_hwi_hwi_const_tree_true,
8184 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
8185 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8186 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
8187 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
8188 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
8189 hook_bool_const_tree_true, hook_bool_tree_tree_false,
8190 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
8191 hook_bool_rtx_insn_true, hook_bool_rtx_false,
8192 hook_bool_uintp_uintp_false,
8193 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
8194 hook_rtx_tree_int_null, hook_uint_mode_0,
8195 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
8196 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
8197 hook_constcharptr_const_rtx_insn_null,
8198 hook_constcharptr_const_tree_const_tree_null,
8199 hook_constcharptr_int_const_tree_null,
8200 hook_constcharptr_int_const_tree_const_tree_null,
8201 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
8202 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
8203 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
8205 * vec.h (vNULL): Extend comment to say = vNULL initialization
8206 isn't needed for static vars.
8208 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
8209 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
8210 = vNULL initialization of file scope vec.
8211 * passes.c (pass_tab, enabled_pass_uid_range_tab,
8212 disabled_pass_uid_range_tab): Likewise.
8213 * haifa-sched.c (sched_luids, h_i_d): Likewise.
8214 * tree-chkp-opt.c (check_infos): Likewise.
8215 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
8217 * vec.h (vnull::operator vec): Add constexpr keyword for
8220 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
8222 PR tree-optimization/77654
8223 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
8224 to duplicate_ssa_name_ptr_info.
8226 2016-09-23 David Malcolm <dmalcolm@redhat.com>
8228 PR preprocessor/77672
8229 * input.c (selftest::test_lexer_string_locations_simple): Update
8230 test to expect location information of the terminator character
8231 at the location of the final closing quote.
8232 (selftest::test_lexer_string_locations_hex): Likewise.
8233 (selftest::test_lexer_string_locations_oct): Likewise.
8234 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
8235 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
8236 (selftest::test_lexer_string_locations_ucn4): Likewise.
8237 (selftest::test_lexer_string_locations_ucn8): Likewise.
8238 (selftest::test_lexer_string_locations_u8): Likewise.
8239 (selftest::test_lexer_string_locations_utf8_source): Likewise.
8240 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
8241 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
8242 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
8243 (selftest::test_lexer_string_locations_macro): Likewise.
8244 (selftest::test_lexer_string_locations_long_line): Likewise.
8246 2016-09-23 Richard Biener <rguenther@suse.de>
8248 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
8249 virtual definition to virtual use if the call devirtualizes
8250 to a const or pure function.
8251 (visit_use): Also visit calls we can devirtualize to a
8252 const or pure function.
8254 2016-09-23 Richard Biener <rguenther@suse.de>
8256 PR tree-optimization/77697
8257 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
8258 signal error if we have sth ternary or unhandled.
8260 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8262 * config/arm/arm_neon.h (vabd_f16): New.
8296 (vcvt_f16_s16): New.
8297 (vcvt_f16_u16): New.
8298 (vcvt_s16_f16): New.
8299 (vcvt_u16_f16): New.
8300 (vcvtq_f16_s16): New.
8301 (vcvtq_f16_u16): New.
8302 (vcvtq_s16_f16): New.
8303 (vcvtq_u16_f16): New.
8304 (vcvta_s16_f16): New.
8305 (vcvta_u16_f16): New.
8306 (vcvtaq_s16_f16): New.
8307 (vcvtaq_u16_f16): New.
8308 (vcvtm_s16_f16): New.
8309 (vcvtm_u16_f16): New.
8310 (vcvtmq_s16_f16): New.
8311 (vcvtmq_u16_f16): New.
8312 (vcvtn_s16_f16): New.
8313 (vcvtn_u16_f16): New.
8314 (vcvtnq_s16_f16): New.
8315 (vcvtnq_u16_f16): New.
8316 (vcvtp_s16_f16): New.
8317 (vcvtp_u16_f16): New.
8318 (vcvtpq_s16_f16): New.
8319 (vcvtpq_u16_f16): New.
8320 (vcvt_n_f16_s16): New.
8321 (vcvt_n_f16_u16): New.
8322 (vcvtq_n_f16_s16): New.
8323 (vcvtq_n_f16_u16): New.
8324 (vcvt_n_s16_f16): New.
8325 (vcvt_n_u16_f16): New.
8326 (vcvtq_n_s16_f16): New.
8327 (vcvtq_n_u16_f16): New.
8341 (vmul_lane_f16): New.
8344 (vmulq_lane_f16): New.
8366 (vrsqrteq_f16): New.
8370 (vrsqrtsq_f16): New.
8374 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8376 * config.gcc (extra_headers): Add arm_fp16.h
8377 * config/arm/arm_fp16.h: New.
8378 * config/arm/arm_neon.h: Include "arm_fp16.h".
8380 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8382 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8384 (vmulf): New (v8hf, v4hf variants).
8385 (vfma): New (v8hf, v4hf variants).
8386 (vfms): New (v8hf, v4hf variants).
8387 (vsub): New (v8hf, v4hf variants).
8388 (vcage): New (v8hf, v4hf variants).
8389 (vcagt): New (v8hf, v4hf variants).
8390 (vcale): New (v8hf, v4hf variants).
8391 (vcalt): New (v8hf, v4hf variants).
8392 (vceq): New (v8hf, v4hf variants).
8393 (vcgt): New (v8hf, v4hf variants).
8394 (vcge): New (v8hf, v4hf variants).
8395 (vcle): New (v8hf, v4hf variants).
8396 (vclt): New (v8hf, v4hf variants).
8397 (vceqz): New (v8hf, v4hf variants).
8398 (vcgez): New (v8hf, v4hf variants).
8399 (vcgtz): New (v8hf, v4hf variants).
8400 (vcltz): New (v8hf, v4hf variants).
8401 (vclez): New (v8hf, v4hf variants).
8402 (vabd): New (v8hf, v4hf variants).
8403 (vmaxf): New (v8hf, v4hf variants).
8404 (vmaxnm): New (v8hf, v4hf variants).
8405 (vminf): New (v8hf, v4hf variants).
8406 (vminnm): New (v8hf, v4hf variants).
8407 (vpmaxf): New (v4hf variant).
8408 (vpminf): New (v4hf variant).
8409 (vpadd): New (v4hf variant).
8410 (vrecps): New (v8hf, v4hf variants).
8411 (vrsqrts): New (v8hf, v4hf variants).
8412 (vabs): New (v8hf, v4hf variants).
8413 (vneg): New (v8hf, v4hf variants).
8414 (vrecpe): New (v8hf, v4hf variants).
8415 (vrnd): New (v8hf, v4hf variants).
8416 (vrnda): New (v8hf, v4hf variants).
8417 (vrndm): New (v8hf, v4hf variants).
8418 (vrndn): New (v8hf, v4hf variants).
8419 (vrndp): New (v8hf, v4hf variants).
8420 (vrndx): New (v8hf, v4hf variants).
8421 (vrsqrte): New (v8hf, v4hf variants).
8422 (vmul_lane): Add v4hf and v8hf variants.
8423 (vmul_n): Add v4hf and v8hf variants.
8424 (vext): New (v8hf, v4hf variants).
8425 (vcvts): New (v8hi, v4hi variants).
8426 (vcvts): New (v8hf, v4hf variants).
8427 (vcvtu): New (v8hi, v4hi variants).
8428 (vcvtu): New (v8hf, v4hf variants).
8429 (vcvts_n): New (v8hf, v4hf variants).
8430 (vcvtu_n): New (v8hi, v4hi variants).
8431 (vcvts_n): New (v8hi, v4hi variants).
8432 (vcvtu_n): New (v8hf, v4hf variants).
8433 (vbsl): New (v8hf, v4hf variants).
8434 (vcvtas): New (v8hf, v4hf variants).
8435 (vcvtau): New (v8hf, v4hf variants).
8436 (vcvtms): New (v8hf, v4hf variants).
8437 (vcvtmu): New (v8hf, v4hf variants).
8438 (vcvtns): New (v8hf, v4hf variants).
8439 (vcvtnu): New (v8hf, v4hf variants).
8440 (vcvtps): New (v8hf, v4hf variants).
8441 (vcvtpu): New (v8hf, v4hf variants).
8443 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8445 * config/arm/arm-builtins.c (hf_UP): New.
8447 (vfp_builtin_data): New. Update comment.
8448 (enum arm_builtins): Include "arm_vfp_builtins.def".
8449 (ARM_BUILTIN_VFP_PATTERN_START): New.
8450 (arm_init_vfp_builtins): New.
8451 (arm_init_builtins): Add arm_init_vfp_builtins.
8452 (arm_expand_vfp_builtin): New.
8453 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
8455 * config/arm/arm_vfp_builtins.def: New file.
8456 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8457 (arm-builtins.o): Likewise.
8459 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8462 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8463 from constant while creating value range.
8465 2016-09-23 Renlin Li <renlin.li@arm.com>
8467 * ira.c (ira): Move ira_use_lra_p initialization code to ...
8468 (ira_init_once): Here.
8470 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
8471 Jakub Jelinek <jakub@redhat.com>
8473 * hooks.h (hook_uint_uintp_false): Rename to...
8474 (hook_bool_uint_uintp_false): ... this.
8475 * hooks.c (hook_uint_uintp_false): Rename to...
8476 (hook_bool_uint_uintp_false): ... this.
8477 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8478 instead of hook_uint_uintp_false.
8480 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8482 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8483 (arm_init_builtins): Move body of a loop to the standalone
8484 function arm_init_neon_builtin.
8485 (arm_expand_neon_builtin_1): New. Update comment. Function body
8486 moved from arm_neon_builtin with some white-space fixes.
8487 (arm_expand_neon_builtin): Move code into the standalone function
8488 arm_expand_neon_builtin_1.
8490 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8492 * config/arm/iterators.md (VCVTHI): New.
8493 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
8497 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
8498 (V_HALF): Add V4HF. Fix white-space.
8499 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
8500 (V_s_elem): Likewise.
8501 (V_sz_elem): Fix white-space.
8502 (V_elem_ch): Likewise.
8504 (scalar_mul_constraint): Add V8HF and V4HF.
8505 (Is_float_mode): Fix white-space.
8506 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
8507 (q): Add HF. Fix white-space.
8510 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8511 (neon_vfm_lane_as): New.
8512 * config/arm/neon.md (add<mode>3_fp16): New.
8513 (sub<mode>3_fp16): New.
8514 (mul<mode>3add<mode>_neon): New.
8515 (fma<VH:mode>4_intrinsic): New.
8516 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8517 (fmsub<VH:mode>4_intrinsic): New.
8518 (<absneg_str><mode>2): New.
8519 (neon_v<absneg_str><mode>): New.
8520 (neon_v<fp16_rnd_str><mode>): New.
8521 (neon_vrsqrte<mode>): New.
8522 (neon_vpaddv4hf): New.
8523 (neon_vadd<mode>): New.
8524 (neon_vsub<mode>): New.
8525 (neon_vmulf<mode>): New.
8526 (neon_vfma<VH:mode>): New.
8527 (neon_vfms<VH:mode>): New.
8528 (neon_vc<cmp_op><mode>): New.
8529 (neon_vc<cmp_op><mode>_fp16insn): New
8530 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8531 (neon_vca<cmp_op><mode>): New.
8532 (neon_vca<cmp_op><mode>_fp16insn): New.
8533 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8534 (neon_vc<cmp_op>z<mode>): New.
8535 (neon_vabd<mode>): New.
8536 (neon_v<maxmin>f<mode>): New.
8537 (neon_vp<maxmin>fv4hf: New.
8538 (neon_<fmaxmin_op><mode>): New.
8539 (neon_vrecps<mode>): New.
8540 (neon_vrsqrts<mode>): New.
8541 (neon_vrecpe<mode>): New (VH variant).
8542 (neon_vdup_lane<mode>_internal): New.
8543 (neon_vdup_lane<mode>): New.
8544 (neon_vcvt<sup><mode>): New (VCVTHI variant).
8545 (neon_vcvt<sup><mode>): New (VH variant).
8546 (neon_vcvt<sup>_n<mode>): New (VH variant).
8547 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8548 (neon_vcvt<vcvth_op><sup><mode>): New.
8549 (neon_vmul_lane<mode>): New.
8550 (neon_vmul_n<mode>): New.
8551 * config/arm/unspecs.md (UNSPEC_VCALE): New
8552 (UNSPEC_VCALT): New.
8553 (UNSPEC_VFMA_LANE): New.
8554 (UNSPECS_VFMS_LANE): New.
8556 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8558 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8559 ("*extzv<mode><clobbercc_or_nocc>"):
8560 Correct a typo in a comment.
8562 ("*insv<mode>_zEC12", "*insv<mode>_z10")
8563 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8564 ("*insv<mode>_zEC12_appendbitsleft")
8565 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8566 ("*insv<mode>_z10_appendbitsleft"): Ditto.
8567 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8568 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8569 Provide pattern with operands switched.
8570 ("*pre_z10_extv<mode>"):
8571 Use new subst patterns.
8572 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8573 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8574 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8575 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8576 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8577 ("*<risbg_n>_sidi_ior_and_lshiftrt")
8578 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8580 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8581 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8582 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8584 ("SINT"): New mode_iterator with SI, HI, QI.
8585 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8586 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8589 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8591 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8592 new interface of s390_contiguous_bitmask_p.
8593 ("contiguous_bitmask_nowrap_operand"): New predicate.
8594 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8595 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8596 of s390_contiguous_bitmask_p.
8597 ("NxxDw"): Rename NxxDq constraint to NxxDw.
8598 ("NxxSw"): New constraint.
8599 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8600 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8602 (s390_contiguous_bitmask_nowrap_p): Export.
8603 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8604 former s390_contiguous_bitmask_p.
8605 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8606 detect contiguous bit ranges with wraparound. Change signature to
8607 return START and END position instead of POS and LENGTH.
8608 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8609 ranges with wraparound.
8610 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8611 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8612 Adapt to new signature of s390_contiguous_bitmask_p.
8614 2016-09-23 Bin Cheng <bin.cheng@arm.com>
8616 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8617 (create_intersect_range_checks): New.
8618 (vect_create_cond_for_alias_checks): Call above function.
8620 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8622 * config/arm/iterators.md (Code iterators): Fix some white-space
8626 (FCVT): Moved from vfp.md.
8627 (VCVT_HF_US_N): New.
8628 (VCVT_SI_US_N): New.
8633 (FCVTI32typename): Moved from vfp.md.
8634 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
8635 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
8636 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
8637 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
8638 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
8640 (fp16_rnd_str): New.
8641 (fp16_rnd_insn): New.
8642 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
8643 (UNSPEC_VCVT_HF_U_N): New.
8644 (UNSPEC_VCVT_SI_S_N): New.
8645 (UNSPEC_VCVT_SI_U_N): New.
8646 (UNSPEC_VCVTH_S): New.
8647 (UNSPEC_VCVTH_U): New.
8648 (UNSPEC_VCVTA_S): New.
8649 (UNSPEC_VCVTA_U): New.
8650 (UNSPEC_VCVTM_S): New.
8651 (UNSPEC_VCVTM_U): New.
8652 (UNSPEC_VCVTN_S): New.
8653 (UNSPEC_VCVTN_U): New.
8654 (UNSPEC_VCVTP_S): New.
8655 (UNSPEC_VCVTP_U): New.
8656 (UNSPEC_VCVTP_S): New.
8657 (UNSPEC_VCVTP_U): New.
8659 (UNSPEC_VRNDA): New.
8660 (UNSPEC_VRNDI): New.
8661 (UNSPEC_VRNDM): New.
8662 (UNSPEC_VRNDN): New.
8663 (UNSPEC_VRNDP): New.
8664 (UNSPEC_VRNDX): New.
8665 * config/arm/vfp.md (<absneg_str>hf2): New.
8667 (neon_v<fp16_rnd_str>hf): New.
8668 (neon_vrndihf): New.
8673 (*mulsf3neghf_vfp): New.
8674 (*negmulhf3_vfp): New.
8675 (*mulsf3addhf_vfp): New.
8676 (*mulhf3subhf_vfp): New.
8677 (*mulhf3neghfaddhf_vfp): New.
8678 (*mulhf3neghfsubhf_vfp): New.
8681 (fmsubhf4_fp16): New.
8685 (neon_vsqrthf): New.
8686 (neon_vrsqrtshf): New.
8687 (FCVT): Move to iterators.md.
8688 (FCVTI32typename): Likewise.
8689 (neon_vcvth<sup>hf): New.
8690 (neon_vcvth<sup>si): New.
8691 (neon_vcvth<sup>_nhf_unspec): New.
8692 (neon_vcvth<sup>_nhf): New.
8693 (neon_vcvth<sup>_nsi_unspec): New.
8694 (neon_vcvth<sup>_nsi): New.
8695 (neon_vcvt<vcvth_op>h<sup>si): New.
8696 (neon_<fmaxmin_op>hf): New.
8698 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8700 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
8701 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
8702 ("*insv<mode>_zEC12_appendbitsleft")
8703 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
8704 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
8706 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8708 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
8709 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
8710 construct values without normalization.
8711 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
8712 static local lhs_ops to vNULL.
8714 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8715 Jiong Wang <jiong.wang@arm.com>
8717 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
8718 available when FP16 instructions are available.
8719 (output_move_vfp): Add support for 16-bit data moves.
8720 (arm_validize_comparison): Fix some white-space. Support HFmode
8721 by conversion to SFmode.
8722 * config/arm/arm.md (truncdfhf2): Fix a comment.
8723 (extendhfdf2): Likewise.
8725 (movsicc): Fix some white-space.
8727 (movsfcc): Fix some white-space.
8729 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
8730 instructions are available.
8731 (*thumb2_movhi_vfp): Likewise.
8732 (*arm_movhi_fp16): New.
8733 (*thumb2_movhi_fp16): New.
8734 (*movhf_vfp_fp16): New.
8735 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
8736 (*movhf_vfp): Likewise.
8737 (extendhfsf2): Enable when VFP FP16 instructions are available.
8738 (truncsfhf2): Enable when VFP FP16 instructions are available.
8740 2016-09-23 Martin Liska <mliska@suse.cz>
8742 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
8744 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8746 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
8748 (arm_evpc_neon_vtrn): Likewise.
8749 (arm_evpc_neon_vrev): Likewise.
8750 (arm_evpc_neon_vext): Likewise.
8751 * config/arm/arm_neon.h (vbsl_f16): New.
8755 (vdup_lane_f16): New.
8756 (vdupq_lane_f16): New.
8769 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
8770 (vdup_lane): New (v8hf, v4hf variants).
8771 (vext): New (v8hf, v4hf variants).
8772 (vbsl): New (v8hf, v4hf variants).
8773 * config/arm/iterators.md (VDQWH): New.
8775 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
8776 (Scalar_mul_8_16): Fix white-space.
8777 (Is_d_reg): Add V4HF and V8HF.
8778 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
8779 (neon_vdup_lane<mode>): New.
8780 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
8781 (*neon_vtrn<mode>_insn): Likewise.
8782 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
8783 (*neon_vzip<mode>_insn): Likewise
8784 (neon_vuzp<mode>_internal): Likewise.
8785 (*neon_vuzp<mode>_insn): Likewise
8786 * config/arm/vec-common.md (vec_perm_const<mode>): New.
8788 2016-09-23 Jiong Wang <jiong.wang@arm.com>
8789 Matthew Wahab <matthew.wahab@arm.com>
8791 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
8792 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
8793 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
8794 available. Also fix some white-space.
8795 * config/arm/vfp.md (*arm_movhi_vfp): New.
8796 (*thumb2_movhi_vfp): New.
8798 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8800 * config/arm/arm-c.c (arm_cpu_builtins): Define
8801 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
8802 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
8804 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8806 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
8807 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
8808 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
8809 arm_v8_2a_fp16_neon_hw.
8810 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
8813 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8815 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
8816 arm_fp16_alternative_ok and arm_fp16_none_ok.
8818 2016-09-23 Martin Liska <mliska@suse.cz>
8820 * ipa-icf.c (sem_variable::merge): Replace adress with address.
8822 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8824 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
8826 ("armv8.2-a+fp16"): New.
8827 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
8828 (FL2_FP16INST): New.
8829 (FL2_FOR_ARCH8_2A): New.
8830 * config/arm/arm-tables.opt: Regenerate.
8831 * config/arm/arm.c (arm_arch8_2): New.
8832 (arm_fp16_inst): New.
8833 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
8834 for incompatible fp16-format settings.
8835 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
8836 (TARGET_NEON_FP16INST): New.
8837 (arm_arch8_2): Declare.
8838 (arm_fp16_inst): Declare.
8839 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
8840 march=armv8.2-a and march=armv8.2-a+fp16.
8841 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
8843 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
8844 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
8846 2016-09-23 Martin Liska <mliska@suse.cz>
8848 * doc/extend.texi: Remove fused-madd from i386 target options.
8850 2016-09-23 Martin Liska <mliska@suse.cz>
8852 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8855 2016-09-23 Martin Liska <mliska@suse.cz>
8857 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8860 2016-09-23 Martin Liska <mliska@suse.cz>
8863 * config/i386/i386.c (ix86_option_override_internal): Change
8864 signature and return false when there's an error related to
8866 (release_options_strings): New function.
8867 (ix86_valid_target_attribute_tree): Call the function.
8869 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8871 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
8872 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
8873 (gen_hsa_ctor_assignment): Likewise.
8874 * print-tree.c (print_node): Likewise.
8875 * tree-dump.c (dequeue_and_dump): Likewise.
8876 * tree-sra.c (sra_modify_constructor_assign): Likewise.
8877 * expr.c (store_constructor): Likewise.
8878 * fold-const.c (operand_equal_p): Likewise.
8879 * tree-pretty-print.c (dump_generic_node): Likewise.
8880 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
8881 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
8883 2016-09-23 Richard Biener <rguenther@suse.de>
8885 * hooks.h (hook_uint_uintp_false): Declare.
8887 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8889 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
8890 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
8892 2016-09-22 Martin Sebor <msebor@redhat.com>
8895 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
8896 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
8897 (target_int_min): Correct computation.
8898 (format_integer): Use long long as the argument for the ll length
8900 (format_floating): Use target_int_max().
8901 (get_string_length): Same.
8902 (format_string): Avoid setting the bounded flag for strings
8904 (try_substitute_return_value): Avoid setting range info when
8905 the result isn't bounded.
8906 * varasm.c (assemble_name): Increase buffer size.
8908 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
8909 Terry Guo <terry.guo@arm.com>
8911 * target.def (elf_flags_numeric): New target hook.
8912 * targhooks.h (default_asm_elf_flags_numeric): New.
8913 * varasm.c (default_asm_elf_flags_numeric): New.
8914 (default_elf_asm_named_section): Use new target hook.
8915 * config/arm/arm.opt (mpure-code): New.
8916 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
8917 * config/arm/arm.c (arm_asm_init_sections): Add section
8918 attribute to default text section if -mpure-code.
8919 (arm_option_check_internal): Diagnose use of option with
8920 non supported targets and/or options.
8921 (arm_asm_elf_flags_numeric): New.
8922 (arm_function_section): New.
8923 (arm_elf_section_type_flags): New.
8924 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
8926 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
8927 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
8929 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
8931 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
8933 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8935 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
8936 * rtl.h: Adjust prototype.
8938 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8940 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
8941 (prev_active_insn): Likewise.
8942 (active_insn_p): Likewise.
8943 * rtl.h: Adjust prototypes.
8944 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8945 * config/arc/arc.md: Likewise.
8946 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
8947 (branch_needs_nop_p): Likewise.
8948 (use_skip_p): Likewise.
8949 * config/sh/sh.c (gen_block_redirect): Likewise.
8950 (split_branches): Likewise.
8951 * reorg.c (optimize_skip): Likewise.
8952 (fill_simple_delay_slots): Likewise.
8953 (fill_slots_from_thread): Likewise.
8954 (relax_delay_slots): Likewise.
8955 * resource.c (mark_target_live_regs): Likewise.
8957 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8959 * config/cris/cris.c (cris_asm_output_case_end): Change argument
8961 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
8962 (prev_nonnote_nondebug_insn): Likewise.
8963 * config/cris/cris-protos.h: Adjust prototype.
8965 * jump.c (rtx_renumbered_equal_p): Adjust.
8967 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8969 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
8970 * rtl.h: Adjust prototype.
8971 * config/sh/sh.md: Adjust.
8972 * dwarf2out.c (add_var_loc_to_decl): Likewise.
8974 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8976 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
8977 (prev_nondebug_insn): Likewise.
8978 * loop-doloop.c (doloop_condition_get): Likewise.
8979 * rtl.h: Adjust prototype.
8980 * cfgloop.h: Likewise.
8982 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8984 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
8985 (prev_nonnote_insn): Likewise.
8986 * jump.c (reversed_comparison_code_parts): Likewise.
8987 (reversed_comparison): Likewise.
8988 * rtl.h: Adjust prototypes.
8989 * config/arc/arc.md: Adjust.
8990 * cse.c (find_comparison_args): Likewise.
8991 * reorg.c (redundant_insn): Change return type to rtx_insn *.
8992 (fix_reg_dead_note): Change argument type to rtx_insn *.
8993 (delete_prior_computation): Likewise.
8994 (delete_computation): Likewise.
8995 (fill_slots_from_thread): Adjust.
8996 (relax_delay_slots): Likewise.
8997 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8998 (simplify_relational_operation_1): Likewise.
8999 (simplify_ternary_operation): Likewise.
9001 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9003 * config/arc/arc-protos.h (arc_label_align): Change type of
9004 variables from rtx to rtx_insn *.
9005 * config/arc/arc.c (arc_label_align): Likewise.
9006 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
9007 * config/bfin/bfin.c (workaround_speculation): Likewise.
9008 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
9009 (find_last_same_clock): Likewise.
9010 (reorg_split_calls): Likewise.
9011 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
9012 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
9013 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
9014 (same_cmp_following_p): Likewise.
9015 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
9016 (same_cmp_following_p): Likwise.
9017 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
9018 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
9019 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
9020 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
9021 (rl78_alloc_physical_registers_cmp): Likewise.
9022 (rl78_alloc_physical_registers_umul): Likewise.
9023 (rl78_calculate_death_notes): Likewise.
9024 * config/s390/s390-protos.h (s390_label_align): Likewise.
9025 * config/s390/s390.c (s390_label_align): Likewise.
9026 * config/sh/sh.c (barrier_align): Likewise.
9027 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
9028 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
9029 (emit_cbcond_nop): Likewise.
9031 2016-09-22 Martin Liska <mliska@suse.cz>
9034 * ipa-icf.c (sem_variable::merge): Yield merge operation if
9035 alias address matters, not necessarily address of original.
9037 2016-09-22 Richard Biener <rguenther@suse.de>
9040 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
9043 2016-09-22 Richard Biener <rguenther@suse.de>
9046 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
9047 from constant folding results.
9048 (gimple_resimplify2): Likewise.
9049 (gimple_resimplify3): Likewise.
9051 2016-09-22 Richard Biener <rguenther@suse.de>
9054 * expr.c (expand_expr_real_1): Guard array access against negative
9057 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9059 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
9061 (format_floating): Likewise.
9063 2016-09-22 Jakub Jelinek <jakub@redhat.com>
9066 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
9067 for all IFN_GOMP_SIMD_* internal fns, not just for
9068 IFN_GOMP_SIMD_ORDERED_*.
9070 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9073 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
9074 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
9075 instructions when you want to invert the test.
9076 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
9077 correct order for XXSEL.
9078 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
9079 for using XSCMP{EQ,GT,GE}DP.
9081 2016-09-21 David Malcolm <dmalcolm@redhat.com>
9083 * genconstants.c (main): Introduce noop_reader and convert call
9084 to read_md_files to a method call.
9085 * genenums.c (main): Likewise.
9086 * genmddeps.c (main): Likewise.
9087 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
9088 rtx_reader_ptr->get_top_level_filename ().
9089 (write_tm_preds_h): Likewise.
9090 (write_insn_preds_c): Likewise.
9091 * gensupport.c (class gen_reader): New subclass of rtx_reader.
9092 (rtx_handle_directive): Convert to...
9093 (gen_reader::handle_unknown_directive): ...this.
9094 (init_rtx_reader_args_cb): Convert return type from bool to
9095 rtx_reader *. Create a gen_reader instance, using it for the
9096 call to read_md_files. Return it if no errors occur.
9097 (init_rtx_reader_args): Convert return type from bool to
9099 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9100 (init_rtx_reader_args_cb): Likewise.
9101 * read-md.c (struct file_name_list): Move to class rtx_reader.
9102 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
9103 (read_md_filename): Delete in favor of
9104 rtx_reader::m_read_md_filename.
9105 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
9106 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
9107 (base_dir): Delete in favor of rtx_reader::m_base_dir.
9108 (first_dir_md_include): Delete in favor of
9109 rtx_reader::m_first_dir_md_include.
9110 (last_dir_md_include_ptr): Delete in favor of
9111 rtx_reader::m_last_dir_md_include_ptr.
9112 (max_include_len): Delete.
9113 (rtx_reader_ptr): New.
9114 (fatal_with_file_and_line): Use get_filename and get_lineno
9115 accessors of rtx_reader_ptr.
9116 (require_char_ws): Likewise.
9117 (rtx_reader::read_char): New method, based on ::read_char.
9118 (rtx_reader::unread_char): New method, based on ::unread_char.
9119 (read_escape): Use get_filename and get_lineno accessors of
9121 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
9122 (read_string): Use get_filename and get_lineno accessors of
9124 (rtx_reader::rtx_reader): New ctor.
9125 (rtx_reader::~rtx_reader): New dtor.
9126 (handle_include): Convert from a function to...
9127 (rtx_reader::handle_include): ...this method, converting
9128 handle_directive from a callback to a virtual function.
9129 (handle_file): Likewise, converting to...
9130 (rtx_reader::handle_file): ...this method.
9131 (handle_toplevel_file): Likewise, converting to...
9132 (rtx_reader::handle_toplevel_file): ...this method.
9133 (rtx_reader::get_current_location): New method.
9134 (parse_include): Convert from a function to...
9135 (rtx_reader::add_include_path): ...this method, dropping redundant
9136 update to unused max_include_len.
9137 (read_md_files): Convert from a function to...
9138 (rtx_reader::read_md_files): ...this method, converting
9139 handle_directive from a callback to a virtual function.
9140 (noop_reader::handle_unknown_directive): New method.
9141 * read-md.h (directive_handler_t): Delete this typedef.
9143 (read_md_file): Delete.
9144 (read_md_lineno): Delete.
9145 (read_md_filename): Delete.
9146 (class rtx_reader): New class.
9147 (rtx_reader_ptr): New decl.
9148 (class noop_reader): New subclass of rtx_reader.
9149 (read_char): Reimplement in terms of rtx_reader::read_char.
9150 (unread_char): Reimplement in terms of rtx_reader::unread_char.
9151 (read_md_files): Delete.
9152 * read-rtl.c (read_rtx_code): Update for deletion of globals
9153 read_md_filename and read_md_lineno.
9155 2016-09-21 Jason Merrill <jason@redhat.com>
9157 * input.h (from_macro_definition_at): New.
9159 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9161 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
9163 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9165 PR tree-optimization/77550
9166 * tree-vect-stmts.c (create_array_ref): Change parameters.
9167 (get_group_alias_ptr_type): New function.
9168 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
9170 2016-09-21 Marek Polacek <polacek@redhat.com>
9172 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
9173 Add falls through comment.
9175 2016-09-21 Richard Biener <rguenther@suse.de>
9177 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
9178 (replace_child): Likewise.
9179 (remove_child_TAG): Adjust.
9180 (move_marked_base_types): Likewise.
9181 (prune_unused_types_prune): Clear die_sib of removed children.
9183 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
9186 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
9187 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
9189 2016-09-21 Richard Biener <rguenther@suse.de>
9191 PR tree-optimization/77648
9192 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
9194 (make_transitive_closure_constraints): Adjust comment.
9195 (make_any_offset_constraints): New function.
9196 (handle_rhs_call): Make sure to first expand a pointer to all
9197 subfields before transitively closing it.
9198 (handle_const_call): Likewise. Properly expand returned
9200 (handle_pure_call): Likewise.
9202 2016-09-21 Richard Biener <rguenther@suse.de>
9203 Jakub Jelinek <jakub@redhat.com>
9205 PR tree-optimization/77621
9206 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
9207 group at non-vectorizable stmts.
9209 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9211 PR tree-optimization/72835
9212 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
9213 (make_new_ssa_for_all_defs): Likewise.
9214 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
9216 2016-09-20 Martin Sebor <msebor@redhat.com>
9219 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
9220 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
9221 * config/linux.c (gnu_libc_printf_pointer_format): New function.
9222 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
9223 * config/sol2.c (solaris_printf_pointer_format): New function.
9224 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
9226 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
9227 * doc/tm.texi: Regenerate.
9228 * gimple-fold.h (get_range_strlen): New function.
9229 (get_maxval_strlen): Declare existing function.
9230 * gimple-fold.c (get_range_strlen): Add arguments and compute both
9231 maximum and minimum.
9232 (get_range_strlen): Define overload.
9233 (get_maxval_strlen): Adjust.
9234 * gimple-ssa-sprintf.c: New file and pass.
9235 * passes.def (pass_sprintf_length): Add new pass.
9236 * targhooks.h (default_printf_pointer_format): Declare new function.
9237 (gnu_libc_printf_pointer_format): Same.
9238 (solaris_libc_printf_pointer_format): Same.
9239 * targhooks.c (default_printf_pointer_format): Define new function.
9240 * tree-pass.h (make_pass_sprintf_length): Declare new function.
9241 * print-tree.c: Increase buffer size.
9243 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9245 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
9247 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9249 * common.opt: New option -fipa-vrp.
9250 * ipa-cp.c (ipa_get_vr_lat): New.
9251 (ipcp_vr_lattice::print): Likewise.
9252 (print_all_lattices): Call ipcp_vr_lattice::print.
9253 (ipcp_vr_lattice::meet_with): New.
9254 (ipcp_vr_lattice::meet_with_1): Likewise.
9255 (ipcp_vr_lattice::top_p): Likewise.
9256 (ipcp_vr_lattice::bottom_p): Likewsie.
9257 (ipcp_vr_lattice::set_to_bottom): Likewise.
9258 (set_all_contains_variable): Call VR set_to_bottom.
9259 (initialize_node_lattices): Init VR lattices.
9260 (propagate_vr_accross_jump_function): New.
9261 (propagate_constants_accross_call): Call
9262 propagate_vr_accross_jump_function.
9263 (ipcp_store_vr_results): New.
9264 (ipcp_driver): Handle VR.
9265 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
9266 (ipa_set_jf_unknown): Likewise.
9267 (ipa_compute_jump_functions_for_edge): Likewise.
9268 (ipa_node_params_t::duplicate): Likewise.
9269 (ipa_write_jump_function): Likewise.
9270 (ipa_read_jump_function): Likewise.
9271 (write_ipcp_transformation_info): Likewise.
9272 (read_ipcp_transformation_info): Likewise.
9273 (ipcp_update_vr): New.
9274 (ipcp_transform_function): Handle VR.
9275 * ipa-prop.h (struct ipa_vr): New.
9276 * cgraph.c: Include tree-vrp.h.
9277 * cgraphunit.c: Likewise.
9278 * ipa-utils.c: Likewise.
9281 * toplev.c: Likewise.
9282 * ipa-devirt.c: Likewise.
9283 * ipa-inline-transform.c: Likewise.
9284 * ipa-inline.c: Likewise.
9285 * ipa-profile.c: Likewise.
9287 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9289 * doc/invoke.texi: Document -fdump-tree-evrp.
9290 * passes.def: Define new pass_early_vrp.
9291 * timevar.def: Define new TV_TREE_EARLY_VRP.
9292 * tree-pass.h (make_pass_early_vrp): New.
9293 * tree-ssa-propagate.c: Make replace_uses_in non static.
9294 * tree-ssa-propagate.h: Export replace_uses_in.
9295 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
9296 (extract_range_from_assert): Factor out
9297 extract_range_for_var_from_comparison_expr.
9298 (vrp_initialize_lattice): New.
9299 (vrp_initialize): Factor out vrp_initialize_lattice.
9300 (vrp_valueize): Fix it to reject complex value ranges.
9301 (vrp_free_lattice): New.
9302 (evrp_dom_walker::before_dom_children): Likewise.
9303 (evrp_dom_walker::after_dom_children): Likewise.
9304 (evrp_dom_walker::push_value_range): Likewise.
9305 (evrp_dom_walker::pop_value_range): Likewise.
9306 (execute_early_vrp): Likewise.
9307 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
9308 (make_pass_early_vrp): New.
9310 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9312 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
9313 instead of exact_log2.
9315 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9318 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9319 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9320 (ix86_add_stmt_cost): Penalize DFmode vector operations
9321 for !TARGET_VECTORIZE_DOUBLE.
9323 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
9325 * doc/invoke.texi (Warning Options): Simplify language.
9326 (Optimize Options): Complete sentence.
9328 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
9330 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
9333 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9336 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9337 inits on power8 and above, use the VMRGEW instruction instead of a
9340 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9341 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9344 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9346 * config/aarch64/arm_neon.h
9347 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9348 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9349 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9351 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9353 * config/var/vax.h (ELIMINABLE_REGS): Define.
9354 (INITIAL_ELIMINATION_OFFSET): Define.
9356 2016-09-20 Jakub Jelinek <jakub@redhat.com>
9359 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9360 cast to void * if the cast is from some other pointer type.
9362 2016-09-20 Richard Biener <rguenther@suse.de>
9364 PR tree-optimization/77646
9365 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9368 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9370 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9371 attributes to all inlined functions and make them extern.
9373 2016-09-20 Richard Biener <rguenther@suse.de>
9375 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9377 * debug.c (do_nothing_debug_hooks): Adjust.
9378 * dbxout.c (dbx_debug_hooks): Likewise.
9379 * sdbout.c (sdb_debug_hooks): Likewise.
9380 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9381 (dwarf2out_finish): Move producer, filename and
9383 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
9384 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9386 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9389 * doc/invoke.texi: Document -Wint-in-bool-context.
9392 * dwarf2out.c (output_loc_operands): Fix an assertion.
9394 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9396 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9397 (CR_DECIMAL_DIG): New macro.
9399 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9401 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9404 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
9406 PR rtl-optimization/77416
9407 * lra-remat.c (operand_to_remat): Process hard coded insn
9410 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9412 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9413 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9415 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9417 * target.def (lra_p): Wordsmithing.
9418 * doc/tm.texi: Regenerate.
9420 2016-09-19 Jakub Jelinek <jakub@redhat.com>
9421 Jan Hubicka <jh@suse.cz>
9424 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9425 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9426 Call ultimate_alias_target just once, not up to 4 times.
9428 2016-09-19 Richard Biener <rguenther@suse.de>
9430 * dwarf2out.c (early_dwarf_finished): New global.
9431 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9433 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9434 if called from LTO exit early.
9435 (dwarf2out_late_global_decl): When being during the early
9436 debug phase do not add locations but only const value attributes.
9437 Adjust the way we generate early DIEs for LTO.
9439 2016-09-19 Richard Biener <rguenther@suse.de>
9442 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9443 proper niter to bound the loops.
9445 2016-09-19 Richard Biener <rguenther@suse.de>
9447 PR tree-optimization/77514
9448 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9449 search for folded stmt.
9451 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
9453 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9454 * tree-pass.h (make_pass_early_thread_jumps): Declare.
9455 * tree-ssa-threadbackward.c (fsm_find_thread_path,
9456 fsm_find_thread_path, profitable_jump_thread_path,
9457 fsm_find_control_statement_thread_paths,
9458 find_jump_threads_backwards): Add speed_p parameter.
9459 (pass_data_early_thread_jumps): New pass.
9460 (make_pass_early_thread_jumps): New function.
9462 2016-09-17 Andreas Schwab <schwab@suse.de>
9464 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9465 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9467 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
9469 * recog.c (rest_of_handle_split_after_reload): Delete.
9470 (pass_split_after_reload::gate): New method.
9471 (pass_split_after_reload::execute): Call split_all_insns directly.
9473 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
9475 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9476 parameters for functions taking long long arguments.
9478 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9481 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9482 splat with truncate.
9484 2016-09-16 Jason Merrill <jason@redhat.com>
9486 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9488 * hwint.c (exact_log2): Use pow2p_hwi.
9489 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9490 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9491 * builtins.c (get_object_alignment_2, get_object_alignment)
9492 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9494 * calls.c (compute_argument_addresses, store_one_arg): Use
9496 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9497 * combine.c (force_to_mode): Use least_bit_hwi.
9498 (contains_muldiv, find_split_point, combine_simplify_rtx)
9499 (simplify_if_then_else, simplify_set, force_to_mode)
9500 (if_then_else_cond, simplify_and_const_int_1)
9501 (simplify_compare_const): Use pow2p_hwi.
9502 * cse.c (fold_rtx): Use pow2p_hwi.
9503 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9505 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9506 (init_expmed_one_conv): Use pow2p_hwi.
9507 * expr.c (is_aligning_offset): Use pow2p_hwi.
9508 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9509 (fold_binary_loc): Use pow2p_hwi.
9510 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9511 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9512 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9513 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9515 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9516 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9517 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9518 * omp-low.c (oacc_loop_fixed_partitions)
9519 (oacc_loop_auto_partitions): Use least_bit_hwi.
9520 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9521 * stor-layout.c (place_field): Use least_bit_hwi.
9522 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9523 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9524 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9525 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9526 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9527 * tree-vect-data-refs.c (vect_analyze_group_access_1)
9528 (vect_grouped_store_supported, vect_grouped_load_supported)
9529 (vect_permute_load_chain, vect_shift_permute_load_chain)
9530 (vect_transform_grouped_load): Use pow2p_hwi.
9531 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9532 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9533 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9535 * tsan.c (instrument_expr): Use least_bit_hwi.
9536 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9538 2016-09-16 Andreas Schwab <schwab@suse.de>
9540 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9542 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9544 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9547 * combine.c (rest_of_handle_combine): If any edges have been purged,
9548 free dominators if available.
9550 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9551 Eric Botcazou <ebotcazou@adacore.com>
9554 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9555 through into expand_addsub_overflow after expand_neg_overflow.
9557 2016-09-15 David Malcolm <dmalcolm@redhat.com>
9559 * diagnostic-show-locus.c
9560 (selftest::test_fixit_insert_containing_newline): New function.
9561 (selftest::test_fixit_replace_containing_newline): New function.
9562 (selftest::diagnostic_show_locus_c_tests): Call the above.
9564 2016-09-15 Bin Cheng <bin.cheng@arm.com>
9566 PR tree-optimization/77503
9567 * tree-vect-loop.c (vectorizable_reduction): Record reduction
9568 code for CONST_COND_REDUCTION at analysis stage and use it at
9570 * tree-vectorizer.h (struct _stmt_vec_info): New field.
9571 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9572 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9575 2016-09-15 Richard Biener <rguenther@suse.de>
9578 * fold-const.c (split_tree): Do not split constant ~X.
9580 2016-09-15 Jakub Jelinek <jakub@redhat.com>
9582 PR rtl-optimization/77425
9583 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9587 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9588 use %qs instead of %s where desirable, use argument instead of arg in
9589 the diagnostic wording, add list of supported strategies and
9591 (ix86_option_override_internal): Emit target("m...") instead of
9592 option("m...") in the diagnostic. Use %qs instead of %s in invalid
9593 -march/-mtune option diagnostic. Add list of supported arches/tunings
9594 and spellcheck hint. Remove prefix, suffix and sw variables, use
9595 main_args_p ? "..." : "..." in diagnostics to make translation
9598 2016-09-15 Richard Biener <rguenther@suse.de>
9600 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9601 extra offset argument.
9602 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9603 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9604 to reflect new offset parameter.
9605 * doc/tm.texi: Regenerate.
9606 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9607 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9609 (darwin_asm_output_dwarf_offset): Likewise.
9610 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9612 (darwin_asm_output_dwarf_offset): Pass offset argument through.
9613 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9614 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9616 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
9619 * ipa-icf.c (set_alias_uids): New function.
9620 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
9621 all the merged variable's referring aliases.
9623 2016-09-15 Richard Biener <rguenther@suse.de>
9625 PR tree-optimization/77514
9626 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
9627 only forced_stmts sequence.
9629 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
9631 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
9632 * cfgexpand.c (update_alias_info_with_stack_vars): Use
9633 FOR_EACH_SSA_NAME to iterate over SSA variables.
9634 (pass_expand::execute): Likewise.
9635 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
9636 * tree-cfg.c (dump_function_to_file): Likewise.
9637 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
9638 (update_ssa): Likewise.
9639 * tree-ssa-alias.c (dump_alias_info): Likewise.
9640 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9641 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
9642 (create_outofssa_var_map): Likewise.
9643 (coalesce_ssa_name): Likewise.
9644 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
9645 * tree-ssa-pre.c (compute_avail): Likewise.
9646 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
9647 (scc_vn_restore_ssa_info): Likewise.
9648 (free_scc_vn): Likwise.
9649 (run_scc_vn): Likewise.
9650 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9651 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
9652 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9653 * tree-ssa.c (verify_ssa): Likewise.
9655 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
9657 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
9658 and mips64r2 as default 32-bit and 64-bit architectures.
9659 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
9660 as default 32-bit and 64-bit architectures.
9662 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
9664 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
9667 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9669 * target.def (lra_p): Change commentary (for the manual) for the
9671 * doc/tm.texi: Regenerate.
9673 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9675 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
9676 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
9677 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
9678 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
9680 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9682 * targhooks.c (default_lra_p): Return true instead of false.
9684 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9686 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
9687 hook_bool_void_false.
9688 * config/avr/avr.c: Ditto.
9689 * config/bfin/bfin.c: Ditto.
9690 * config/c6x/c6x.c: Ditto.
9691 * config/cr16/cr16.c: Ditto.
9692 * config/cris/cris.c: Ditto.
9693 * config/epiphany/epiphany.c: Ditto.
9694 * config/fr30/fr30.c: Ditto.
9695 * config/frv/frv.c: Ditto.
9696 * config/h8300/h8300.c: Ditto.
9697 * config/ia64/ia64.c: Ditto.
9698 * config/iq2000/iq2000.c: Ditto.
9699 * config/lm32/lm32.c: Ditto.
9700 * config/m32c/m32c.c: Ditto.
9701 * config/m32r/m32r.c: Ditto.
9702 * config/m68k/m68k.c: Ditto.
9703 * config/mcore/mcore.c: Ditto.
9704 * config/microblaze/microblaze.c: Ditto.
9705 * config/mmix/mmix.c: Ditto.
9706 * config/mn10300/mn10300.c: Ditto.
9707 * config/moxie/moxie.c: Ditto.
9708 * config/msp430/msp430.c: Ditto.
9709 * config/nios2/nios2.c: Ditto.
9710 * config/nvptx/nvptx.c: Ditto.
9711 * config/pa/pa.c: Ditto.
9712 * config/pdp11/pdp11.c: Ditto.
9713 * config/rl78/rl78.c: Ditto.
9714 * config/sparc/sparc.c: Ditto.
9715 * config/spu/spu.c: Ditto.
9716 * config/stormy16/stormy16.c: Ditto.
9717 * config/tilegx/tilegx.c: Ditto.
9718 * config/tilepro/tilepro.c: Ditto.
9719 * config/v850/v850.c: Ditto.
9720 * config/vax/vax.c: Ditto.
9721 * config/visium/visium.c: Ditto.
9722 * config/xtensa/xtensa.c: Ditto.
9724 2016-09-14 Jakub Jelinek <jakub@redhat.com>
9727 * tsan.c: Include target.h.
9728 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
9729 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
9730 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
9731 BUILT_IN_ATOMIC_TEST_AND_SET entries.
9732 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
9734 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9735 Martin Liska <mliska@suse.cz>
9738 * predict.c (force_edge_cold): Add braces to a condition.
9740 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9742 PR rtl-optimization/77289
9743 * lra-constraints.c (get_final_hard_regno): Removed.
9744 (get_hard_regno): Add new parameter final_p.
9745 (get_reg_class): Directly call lra_get_elimination_hard_regno.
9746 (operands_match_p): Adjust call to get_hard_regno.
9747 (uses_hard_regs_p): Likewise.
9748 (process_alt_operands): Likewise.
9750 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
9753 * config/msp430/msp430.c (msp430_start_function): Emit an error
9754 if a function is both weak and specifies an interrupt number.
9756 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9758 PR tree-optimization/77454
9759 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
9760 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
9763 2016-09-13 Tamar Christina <tamar.christina@arm.com>
9765 * config/aarch64/aarch64-builtins.c
9766 (aarch64_init_simd_builtins): Fix builtin type signature printing.
9768 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
9770 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
9771 SFmode and SCmode arguments by reference.
9773 2016-09-13 David Malcolm <dmalcolm@redhat.com>
9775 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
9777 (selftest::test_one_liner_fixit_insert_before): ...this, and update
9778 for renaming of add_fixit_insert to add_fixit_insert_before.
9779 (selftest::test_one_liner_fixit_insert_after): New function.
9780 (selftest::test_one_liner_fixit_validation_adhoc_locations):
9781 Update for renaming of add_fixit_insert to add_fixit_insert_before.
9782 (selftest::test_one_liner_many_fixits): Likewise.
9783 (selftest::test_diagnostic_show_locus_one_liner): Update for
9784 renaming, call new test function.
9785 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
9786 renaming of add_fixit_insert to add_fixit_insert_before.
9787 (selftest::test_fixit_consolidation): Likewise.
9788 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
9790 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
9791 (selftest::test_applying_fixits_insert_before): ...this.
9792 (selftest::test_applying_fixits_insert): Update for renaming of
9793 add_fixit_insert to add_fixit_insert_before.
9794 (selftest::test_applying_fixits_insert_after): New function.
9795 (selftest::test_applying_fixits_insert_after_at_line_end): New
9797 (selftest::test_applying_fixits_insert_after_failure): New function.
9798 (selftest::test_applying_fixits_multiple): Update for renaming of
9799 add_fixit_insert to add_fixit_insert_before.
9800 (selftest::change_line): Likewise.
9801 (selftest::test_applying_fixits_unreadable_file): Likewise.
9802 (selftest::test_applying_fixits_line_out_of_range): Likewise.
9803 (selftest::test_applying_fixits_column_validation): Likewise.
9804 (selftest::test_applying_fixits_column_validation): Likewise.
9805 (selftest::edit_context_c_tests): Update for renamed test function;
9806 call new test functions.
9808 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
9810 PR tree-optimization/77536
9811 PR rtl-optimization/68212
9812 * config/rs6000/rs6000.md (div->recip splitter): Remove
9813 optimize_insn_for_speed_p condition.
9815 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
9817 * optabs.c (prepare_cmp_insn): Update documentation comment.
9819 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9820 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9823 * opts.h (candidates_list_and_hint): Declare.
9824 * opts-common.c (candidates_list_and_hint): New function.
9825 (cmdline_handle_error): Use it.
9827 2016-09-12 David Malcolm <dmalcolm@redhat.com>
9829 * edit-context.c (edited_line::get_len): New accessor.
9830 (edited_file::print_diff): Split out hunk-printing into...
9831 (edited_file::print_diff_hunk): New method.
9832 (edited_file::print_diff_line): New method.
9834 2016-09-12 Andrew Pinski <apinski@cavium.com>
9836 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
9838 * config/aarch64/aarch64.c (thunderx_tunings): Enable
9839 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
9840 (aarch64_operands_ok_for_ldpstp): Return false if
9841 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
9842 was SImode and the alignment is less than 8 byte.
9843 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9845 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
9848 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
9850 2016-09-12 Marek Polacek <polacek@redhat.com>
9852 * doc/extend.texi: Use lowercase "boolean".
9853 * doc/invoke.texi: Likewise.
9854 * doc/md.texi: Likewise.
9855 * target.def: Likewise.
9856 * doc/tm.texi: Regenerated.
9858 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9861 * expmed.c (synth_mult): Delete duplicate mode check.
9863 2016-09-10 Tom de Vries <tom@codesourcery.com>
9866 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
9868 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
9869 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
9871 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
9873 PR rtl-optimization/77289
9874 * lra-constraints.c (get_final_hard_regno): Add support for non hard
9875 register numbers. Remove support for subregs.
9876 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
9877 (get_reg_class): Delete removed get_final_hard_regno() argument.
9878 (uses_hard_regs_p): Call get_final_hard_regno().
9880 2016-09-09 Martin Sebor <msebor@redhat.com>
9884 * pretty-print.c (pp_quoted_string): New function.
9885 (pp_format): Call it for %c and %s directives.
9887 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9889 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
9890 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
9891 INITIAL_ELIMINATION_OFFSET) : Update documentation.
9892 * target.def (frame_pointer_required, can_eliminate): Likewise.
9893 * doc/tm.texi: Regenerated.
9894 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
9896 * df-scan.c (df_hard_reg_init): Likewise.
9897 * ira.c (ira_setup_eliminable_regset): Likewise.
9898 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
9899 init_elim_table): Likewise.
9900 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
9901 set_initial_elim_offsets, update_eliminables,
9902 init_elim_table): Likewise.
9903 * rtlanal.c (get_initial_register_offset): Likewise.
9904 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9905 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9906 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9907 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9908 * config/fr30/fr30.h: Fix comment.
9909 * config/frv/frv.c: Likewise.
9910 * config/frv/frv.h: Likewise.
9911 * config/ft32/ft32.h: Likewise.
9912 * config/visium/visium.h: Likewise.
9913 * config/pa/pa64-linux.h: Likewise.
9914 * config/v850/v850.h: Likewise.
9915 * config/cris/cris.c: Likewise.
9916 * config/ia64/ia64.h: Likewise.
9917 * config/moxie/moxie.h: Likewise.
9918 * config/m32r/m32r.h: Likewise.
9920 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9923 * config.in: Regenerate.
9924 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
9926 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
9927 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
9928 static-libmpxwrappers case.
9929 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
9930 MPX_LD_AS_NEEDED_GUARD_POP.
9931 * configure: Regenerate.
9932 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
9933 defined if linker support "--push-state"/"--pop-state".
9935 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9937 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
9939 2016-09-09 Joseph Myers <joseph@codesourcery.com>
9941 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
9942 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
9943 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
9944 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
9945 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
9946 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
9947 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
9949 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
9950 width macros from TS 18661-1.
9951 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
9953 2016-09-08 Jakub Jelinek <jakub@redhat.com>
9956 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
9957 OMP_CLAUSE_SAFELEN_EXPR.
9959 2016-09-07 David Malcolm <dmalcolm@redhat.com>
9961 * Makefile.in (OBJS): Add substring-locations.o.
9962 * langhooks-def.h (class substring_loc): New forward decl.
9963 (lhd_get_substring_location): New decl.
9964 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
9965 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
9966 * langhooks.c (lhd_get_substring_location): New function.
9967 * langhooks.h (class substring_loc): New forward decl.
9968 (struct lang_hooks): Add field get_substring_location.
9969 * substring-locations.c: New file, taking definition of
9970 format_warning_va and format_warning_at_substring from
9971 c-family/c-format.c, making them non-static.
9972 * substring-locations.h (class substring_loc): Move class here
9973 from c-family/c-common.h. Add and rewrite comments.
9974 (format_warning_va): New decl.
9975 (format_warning_at_substring): New decl.
9976 (get_source_location_for_substring): Add comment.
9978 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
9980 * config/i386/i386.c: Add 'U' suffix to processor feature bits
9981 to avoid -Wnarrowing warning.
9982 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
9983 * opts.c: Likewise for SANITIZER_OPT bitmasks.
9985 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
9987 * config/aarch64/aarch64.c (aarch64_legitimize_address):
9988 Avoid use of base_offset if offset already in range.
9990 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
9992 * config/sh/sh-protos.h (struct sh_atomic_model,
9993 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9994 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9995 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
9996 * config/sh/sh.h (struct sh_atomic_model,
9997 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9998 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9999 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
10000 Guard with __cplusplus.
10002 2016-09-06 Jakub Jelinek <jakub@redhat.com>
10005 * config/i386/i386.c (ix86_expand_builtin): For builtin with
10006 unsupported or unknown ISA, use expand_call.
10008 2016-09-06 Martin Liska <mliska@suse.cz>
10010 PR gcov-profile/77378
10011 PR gcov-profile/77466
10012 * tree-profile.c (tree_profiling): Detect whether target can use
10013 -fprofile-update=atomic.
10015 2016-09-06 Richard Biener <rguenther@suse.de>
10017 PR tree-optimization/77479
10018 * tree-vrp.c (update_value_range): Extend overflow handling to
10021 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10024 * config/i386/i386.md (isa): Add x64_avx512bw.
10025 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
10026 (kmov_isa): New mode attr.
10027 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
10028 (*zero_extend<mode>si2): Likewise.
10029 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
10031 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
10033 * doc/invoke.texi (SPU Options): nops -> NOPs.
10034 (x86 Options): Ditto.
10036 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10038 PR middle-end/77475
10039 * toplev.c (process_options): Temporarily set input_location
10040 to UNKNOWN_LOCATION around targetm.target_option.override () call.
10042 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
10044 PR rtl-optimization/77452
10045 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
10046 inner-mode reference to a CONST_VECTOR constant in the constant pool.
10048 2016-09-05 Marek Polacek <polacek@redhat.com>
10051 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
10053 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10056 * gensupport.c (alter_output_for_subst_insn): Remove redundant
10057 *insn_out == '*' test. Don't copy unnecessary to yet another
10058 memory buffer, and don't leak it.
10060 PR rtl-optimization/77425
10061 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
10063 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
10065 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
10067 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10069 * common.opt (fdiagnostics-generate-patch): New option.
10070 * diagnostic.c: Include "edit-context.h".
10071 (diagnostic_initialize): Initialize context->edit_context_ptr.
10072 (diagnostic_finish): Delete context->edit_context_ptr.
10073 (diagnostic_report_diagnostic): Add fix-it hints from the
10074 diagnostic to context->edit_context_ptr, if any.
10075 * diagnostic.h (class edit_context): Add forward decl.
10076 (struct diagnostic_context): Add field "edit_context_ptr".
10077 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10078 -fdiagnostics-generate-patch.
10079 (-fdiagnostics-generate-patch): New item.
10080 * toplev.c: Include "edit-context.h".
10081 (process_options): Set global_dc->edit_context_ptr to a new
10082 edit_context if the options need one.
10083 (toplev::main): Handle -fdiagnostics-generate-patch by using
10084 global_dc->edit_context_ptr.
10086 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10089 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
10090 map and firstprivate clauses on target construct for _Atomic
10092 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
10093 on target construct for _Atomic qualified decls.
10094 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
10096 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
10097 _Atomic qualified arguments not mentioned in uniform clause.
10099 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10101 * Makefile.in (OBJS-libcommon): Add edit-context.o.
10102 * diagnostic-color.c (color_dict): Add "diff-filename",
10103 "diff-hunk", "diff-delete", and "diff-insert".
10104 (parse_gcc_colors): Update default value of GCC_COLORS in comment
10105 to reflect above changes.
10106 * doc/invoke.texi (-fdiagnostics-color): Update description of
10107 default GCC_COLORS, and of the supported capabilities.
10108 * edit-context.c: New file.
10109 * edit-context.h: New file.
10110 * input.c (struct fcache): Add field "missing_trailing_newline".
10111 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
10113 (add_file_to_cache_tab): Likewise.
10114 (fcache::fcache): Likewise.
10115 (get_next_line): Update c->missing_trailing_newline.
10116 (location_missing_trailing_newline): New function.
10117 * input.h (location_missing_trailing_newline): New decl.
10118 * selftest-run-tests.c (selftest::run_tests): Call
10119 edit_context_c_tests.
10120 * selftest.h (edit_context_c_tests): New decl.
10122 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10123 Richard Biener <rguenth@suse.de>
10125 PR tree-optimization/77444
10126 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
10127 as steptype, remove redundant initialization.
10129 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10132 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
10133 (sanopt_optimize_walker): Optimize away
10134 __asan_before_dynamic_init (...) followed by
10135 __asan_after_dynamic_init () without intervening memory loads/stores.
10136 * ipa-pure-const.c (special_builtin_state): Handle
10137 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
10138 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
10140 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10142 * cfg.c (free_original_copy_tables): Replace second assignment of
10143 bb_copy = NULL by bb_original = NULL.
10145 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10148 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
10149 assignment added in r216794.
10151 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10153 * Makefile.in (OBJS): Add typed-splay-tree.o.
10154 * selftest-run-tests.c (selftest::run_tests): Call
10155 typed_splay_tree_c_tests.
10156 * selftest.h (typed_splay_tree_c_tests): New decl.
10157 * typed-splay-tree.c: New file.
10158 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
10159 (typed_splay_tree::max): New method.
10160 (typed_splay_tree::min): New method.
10161 (typed_splay_tree::foreach): New method.
10162 (typed_splay_tree::closure): New struct.
10163 (typed_splay_tree::inner_foreach_fn): New function.
10165 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10167 * ipa-cp.c (ipcp_store_bits_results): Change option name from
10168 -fipa-cp-bit to -fipa-bit-cp.
10170 2016-09-01 Martin Sebor <msebor@redhat.com>
10172 PR tree-optimization/71831
10173 * tree-object-size.h: Return bool instead of the size and add
10174 argument for the size.
10175 * tree-object-size.c (compute_object_offset): Update signature.
10176 (addr_object_size): Same.
10177 (compute_builtin_object_size): Return bool instead of the size
10178 and add argument for the size. Handle POINTER_PLUS_EXPR when
10179 optimization is disabled.
10180 (expr_object_size): Adjust.
10181 (plus_stmt_object_size): Adjust.
10182 (pass_object_sizes::execute): Adjust.
10183 * builtins.c (fold_builtin_object_size): Adjust.
10184 * doc/extend.texi (Object Size Checking): Update.
10185 * ubsan.c (instrument_object_size): Adjust.
10187 2016-09-01 Martin Sebor <msebor@redhat.com>
10189 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
10190 it fits the output of the formatted function regardless of its
10192 * genmodes.c (parser::parse_expr): Same.
10193 * gimplify.c (gimplify_asm_expr): Same.
10194 * passes.c (pass_manager::register_one_dump_file): Same.
10195 * print-tree.c (print_node): Same.
10197 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10199 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
10201 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10203 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
10205 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10207 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
10208 * config/rs6000/vector.md: Ditto.
10209 * config/rs6000/vsx.md: Ditto.
10211 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10213 * ipa-inline-analysis.c (param_change_prob): Get to the base object
10214 first in all cases.
10216 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10218 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
10219 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
10220 *return_and_restore_gpregs_<mode>_r11,
10221 *return_and_restore_gpregs_<mode>_r12,
10222 *return_and_restore_gpregs_<mode>_r1,
10223 *return_and_restore_fpregs_<mode>_r11,
10224 *return_and_restore_fpregs_<mode>_r12,
10225 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
10226 directly instead of via the "l" constraint. Renumber operands.
10229 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10231 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
10232 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
10233 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
10234 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
10235 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
10236 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
10237 *call_value_nonlocal_darwin64, reload_macho_picbase,
10238 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
10239 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
10240 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
10241 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
10242 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
10243 *save_fpregs_<mode>_r1): Ditto.
10244 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
10245 *return_and_restore_gpregs_spe): Ditto.
10247 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10249 * config/rs6000/rs6000.md
10250 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
10251 the use of the link register.
10252 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
10254 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10255 Michael Meissner <meissner@linux.vnet.ibm.com>
10258 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
10259 reg+reg addressing for TImode.
10260 (rs6000_legitimate_address_p): Only allow register indirect
10261 addressing for TImode, even without TARGET_QUAD_MEMORY.
10263 2016-09-01 Richard Biener <rguenther@suse.de>
10265 PR middle-end/77436
10266 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
10267 check whether the result fits the desired result type.
10269 2016-09-01 Nathan Sidwell <nathan@acm.org>
10271 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
10273 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
10275 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
10277 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
10279 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10281 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
10282 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
10283 for comparisons of integer ZERO_EXTEND against zero.
10285 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10287 * config/i386/i386.c (ix86_option_override_internal): Also disable the
10288 STV pass if -mstackrealign is enabled.
10290 2016-08-31 Ilya Verbin <iverbin@gmail.com>
10292 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
10295 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10297 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
10298 (layout_range::intersects_line_p): New method.
10299 (test_range_contains_point_for_single_point): Rename to...
10300 (test_layout_range_for_single_point): ...this, and add testing
10301 for layout_range::intersects_line_p.
10302 (test_range_contains_point_for_single_line): Rename to...
10303 (test_layout_range_for_single_line): ...this, and add testing
10304 for layout_range::intersects_line_p.
10305 (test_range_contains_point_for_multiple_lines): Rename to...
10306 (test_layout_range_for_multiple_lines): ...this, and add testing
10307 for layout_range::intersects_line_p.
10308 (layout::layout): Populate m_fixit_hints.
10309 (layout::get_expanded_location): Handle the case of a line-span
10311 (layout::validate_fixit_hint_p): New method.
10312 (get_line_span_for_fixit_hint): New function.
10313 (layout::calculate_line_spans): Add spans for fixit-hints.
10314 (layout::should_print_annotation_line_p): New method.
10315 (layout::print_any_fixits): Drop param "richloc", instead using
10316 validated fixits in m_fixit_hints. Add "const" to hint pointers.
10317 (diagnostic_show_locus): Avoid printing blank annotation lines.
10318 (selftest::test_diagnostic_context::test_diagnostic_context):
10319 Initialize show_column and start_span.
10320 (selftest::test_diagnostic_context::start_span_cb): New static
10322 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10323 (selftest::diagnostic_show_locus_c_tests): Update for function
10324 renamings. Call test_diagnostic_show_locus_fixit_lines.
10326 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10328 PR tree-optimization/73714
10329 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10331 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10333 * selftest.c: Move "namespace selftest {" to top of file,
10334 removing explicit "selftest::" qualifiers throughout.
10336 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10338 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10340 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10341 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10342 Replace builtin with vector extension.
10343 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10345 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10346 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10347 Replace builtin with vector extension.
10348 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10349 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10350 Replace builtin with vector extension.
10351 * config/i386/xmmintrin.h (__m128_u): New type.
10352 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10353 (_mm_load_ps, _mm_store_ps): Simplify.
10355 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
10357 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10359 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10361 * diagnostic-show-locus.c (colorizer::begin_state): Support more
10362 than 3 ranges per diagnostic by alternating between color 1 and
10364 (layout::layout): Replace use of rich_location::MAX_RANGES
10365 with richloc->get_num_locations ().
10366 (layout::calculate_line_spans): Replace use of
10367 rich_location::MAX_RANGES with m_layout_ranges.length ().
10368 (layout::print_annotation_line): Handle arbitrary numbers of
10369 ranges in caret-printing by defaulting to '^'.
10370 (selftest::test_one_liner_many_fixits): New function.
10371 (test_diagnostic_show_locus_one_liner): Call it.
10372 * diagnostic.c (diagnostic_initialize): Update for renaming
10373 of rich_location::MAX_RANGES to
10374 rich_location::STATICALLY_ALLOCATED_RANGES.
10375 * diagnostic.h (struct diagnostic_context): Likewise.
10377 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10379 * selftest.c (selftest::named_temp_file::named_temp_file): New
10381 (selftest::temp_source_file::~temp_source_file): Move to...
10382 (selftest::named_temp_file::~named_temp_file): ...here.
10383 (selftest::test_named_temp_file): New function.
10384 (selftest::selftest_c_tests): Call test_named_temp_file.
10385 * selftest.h (class named_temp_file): New class.
10386 (class temp_source_file): Convert to a subclass of named_temp_file.
10388 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
10390 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10391 USEs of LR_REGNO in returns and sibcalls.
10392 (rs6000_output_mi_thunk): Similar.
10393 (rs6000_sibcall_aix): Similar.
10394 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10395 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10396 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10397 Remove the USE of LR_REGNO from the patterns as well. Delete an
10399 (return_internal_<mode>): Delete.
10401 2016-08-30 Tamar Christina <tamar.christina@arm.com>
10403 * config/aarch64/aarch64-simd.md
10404 (aarch64_ld2<mode>_dreg_le): New.
10405 (aarch64_ld2<mode>_dreg_be): New.
10406 (aarch64_ld2<mode>_dreg): Removed.
10407 (aarch64_ld3<mode>_dreg_le): New.
10408 (aarch64_ld3<mode>_dreg_be): New.
10409 (aarch64_ld3<mode>_dreg): Removed.
10410 (aarch64_ld4<mode>_dreg_le): New.
10411 (aarch64_ld4<mode>_dreg_be): New.
10412 (aarch64_ld4<mode>_dreg): Removed.
10413 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10415 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10417 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10418 redundant location param.
10419 (test_one_liner_fixit_remove): Likewise.
10420 (test_one_liner_fixit_replace): Likewise.
10421 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10422 * gcc-rich-location.c
10423 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10424 get_range_from_loc. Drop overload taking a const char *.
10425 * gcc-rich-location.h
10426 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10429 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10431 * config/linux.c (linux_libc_has_function): Return true on musl.
10433 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10435 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10437 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
10439 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10440 used for abnormal egdes.
10442 2016-08-30 Jakub Jelinek <jakub@redhat.com>
10444 PR tree-optimization/72866
10445 * tree-vect-patterns.c (search_type_for_mask): Turn into
10446 a small wrapper, move all code to ...
10447 (search_type_for_mask_1): ... this new function. Add caching
10448 and adjust recursive calls.
10451 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10452 instead of lookup_type_die (type_main_variant (type)) even for array
10455 PR middle-end/77377
10456 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10457 constant pool reference return x instead of c.
10459 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
10461 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10464 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10467 (selftest::test_make_location_nonpure_range_endpoints): Fix
10470 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10472 * diagnostic-show-locus.c
10473 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10475 (selftest::test_diagnostic_show_locus_one_liner): Call it.
10476 * input.c (get_pure_location): Move to libcpp/line-map.c.
10477 * input.h (get_pure_location): Convert decl to an inline function
10478 calling implementation in libcpp.
10480 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
10483 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10484 template for intel asm dialect.
10485 (vec_set_hi_<mode><mask_name>): Ditto.
10487 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10489 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10490 (selftest::fail_formatted): Likewise.
10492 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10494 * input.c (make_location): Call get_start and get_finish
10495 on the endpoints to avoid storing packed ranges or ad-hoc
10497 (selftest::test_make_location_nonpure_range_endpoints): New function.
10498 (selftest::input_c_tests): Call it.
10499 * input.h (get_start): New inline function.
10501 2016-08-29 Tom de Vries <tom@codesourcery.com>
10504 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10507 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
10509 * Makefile.in (gcov-iov.h): Add dummy recipe.
10511 2016-08-29 Nathan Sidwell <nathan@acm.org>
10513 * config/nvptx/nvptx.c: #include tree-vrp.h.
10515 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
10518 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10519 HIGH+LO construct during reload.
10521 2016-08-28 Tom de Vries <tom@codesourcery.com>
10524 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10525 'sysv_abi va_list' attribute.
10526 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10527 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10530 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10532 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10533 * emit-rtl.c (unshare_all_rtl_1): Adjust.
10534 (unshare_all_rtl_again): Likewise.
10535 * function.c (assign_stack_local_1): Likewise.
10536 (assign_stack_temp_for_type): Likewise.
10538 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10540 * cfgbuild.c (make_edges): Adjust.
10541 * cfgrtl.c (can_delete_label_p): Likewise.
10542 * dwarf2cfi.c (create_trace_edges): Likewise.
10543 * except.c (sjlj_emit_dispatch_table): Likewise.
10544 * function.h (struct expr_status): make x_forced_labels a vector.
10545 * jump.c (rebuild_jump_labels_1): Adjust.
10546 * reload1.c (set_initial_label_offsets): Likewise.
10547 * stmt.c (force_label_rtx): Likewise.
10548 (expand_label): Likewise.
10550 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10552 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10554 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
10556 PR tree-optimization/71077
10557 PR tree-optimization/68542
10558 * fold-const.c (fold_relational_const): Fix folding of
10559 VECTOR_CST comparisons that have a scalar boolean result type.
10560 (selftest::test_vector_folding): New static function.
10561 (selftest::fold_const_c_tests): Call it.
10563 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
10565 * doc/extend.texi (SPU Built-in Functions): Remove stale
10566 references to material formerly at IBM and Sony.
10568 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
10571 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10573 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10575 * diagnostic-show-locus.c
10576 (selftest::test_fixit_consolidation): New function.
10577 (selftest::diagnostic_show_locus_c_tests): Call it.
10578 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10579 constructor based on source_range.
10581 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10583 * diagnostic-color.c (color_dict): Add "fixit-insert" and
10585 (parse_gcc_colors): Update description of default GCC_COLORS.
10586 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10587 (colorizer::set_fixit_insert): New method.
10588 (colorizer::set_fixit_delete): New method.
10589 (colorizer::get_color_by_name): New method.
10590 (colorizer::STATE_FIXIT_INSERT): New constant.
10591 (colorizer::STATE_FIXIT_DELETE): New constant.
10592 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
10593 fields in favor of new field "m_stop_color". Add fields
10594 "m_fixit_insert" and "m_fixit_delete".
10595 (colorizer::colorizer): Update for above changes. Replace
10596 colorize_start calls with calls to get_color_by_name.
10597 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10598 STATE_FIXIT_DELETE. Update for field renamings.
10599 (colorizer::finish_state): Simplify by using m_stop_color,
10600 rather than multiple identical "*_ce" fields.
10601 (colorizer::get_color_by_name): New method.
10602 (layout::print_any_fixits): Print insertions and replacements
10603 using the "fixit-insert" color, and deletions using the
10604 "fixit-delete" color.
10605 * doc/invoke.texi (-fdiagnostics-color): Update description of
10606 default GCC_COLORS, and of the supported capabilities.
10608 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
10610 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10611 current_function_static_stack_size variable with the static
10612 stack frame size of the current function when
10613 flag_stack_usage_info is enabled.
10615 2016-08-26 Nathan Sidwell <nathan@acm.org>
10617 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10618 assignment inside if condition.
10620 2016-08-26 Richard Biener <rguenther@suse.de>
10622 PR tree-optimization/69047
10623 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
10624 extracts similar to what FRE does.
10625 (non_rewritable_mem_ref_base): Likewise.
10627 2016-08-26 Joseph Myers <joseph@codesourcery.com>
10629 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
10630 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10631 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10632 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10633 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
10635 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10636 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10637 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10638 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
10639 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10641 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10644 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
10645 reservation duration to 15 cycles.
10646 (cortex_a8_vfp_macs): Likewise.
10647 (cortex_a8_vfp_macd): Likewise.
10648 (cortex_a8_vfp_divs): Likewise.
10649 (cortex_a8_vfp_divd): Likewise.
10651 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10653 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
10654 (aarch_macro_fusion_pair_p): Use above to avoid early return.
10656 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10657 Martin Jambhor <mjambor@suse.cz>
10659 * common.opt: New option -fipa-bit-cp.
10660 * doc/invoke.texi: Document -fipa-bit-cp.
10661 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
10662 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
10663 * tree-ssa-ccp.h: New header file.
10664 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
10665 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
10666 Replace all occurences of tree parameter by two new params: signop, int.
10667 (bit_value_unop_1): Change to bit_value_unop and export it.
10668 Replace all occurences of tree parameter by two new params: signop,
10670 (bit_value_binop): Change call from bit_value_binop_1 to
10672 (bit_value_assume_aligned): Likewise.
10673 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
10674 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
10676 (ccp_finalize): Skip processing if val->mask == 0.
10677 * ipa-cp.c: Include tree-ssa-ccp.h
10678 (ipcp_bits_lattice): New class.
10679 (ipcp_param_lattice (bits_lattice): New member.
10680 (print_all_lattices): Call ipcp_bits_lattice::print.
10681 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
10682 (initialize_node_lattices): Likewise.
10683 (propagate_bits_accross_jump_function): New function.
10684 (propagate_constants_accross_call): Call
10685 propagate_bits_accross_jump_function.
10686 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
10687 (ipcp_store_bits_results): New function.
10688 (ipcp_driver): Call ipcp_store_bits_results.
10689 * ipa-prop.h (ipa_bits): New struct.
10690 (ipa_jump_func): Add new member bits of type ipa_bits.
10691 (ipa_param_descriptor): Change decl to decl_or_type.
10692 (ipa_get_param): Change decl to decl_or_type and assert on
10694 (ipa_get_type): New function.
10695 (ipcp_transformation_summary): New member bits.
10696 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
10697 (ipa_populate_param_decls): Likewise.
10698 (ipa_dump_param): Likewise.
10699 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
10701 (ipa_set_jf_unknown): Set ipa_bits::known to false.
10702 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
10704 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
10705 (ipa_write_jump_function): Add streaming for ipa_bits.
10706 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
10707 (write_ipcp_transformation_info): Add streaming for ipa_bits
10708 summary for ltrans.
10709 (read_ipcp_transfomration_info): Add support for reading streamed
10711 (ipcp_update_bits): New function.
10712 (ipcp_transform_function): Call ipcp_update_bits.
10714 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
10716 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
10717 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
10719 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
10721 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
10723 2016-08-25 Richard Biener <rguenther@suse.de>
10725 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10726 Only add locations in late dwarf.
10727 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
10728 (dwarf2out_early_finish): But do it here.
10730 2016-08-24 Michael Collison <michael.collison@linaro.org>
10731 Michael Collison <michael.collison@arm.com>
10733 * config/arm/arm-modes.def: Add new condition code mode CC_V
10734 to represent the overflow bit.
10735 * config/arm/arm.c (maybe_get_arm_condition_code):
10736 Add support for CC_Vmode.
10737 (arm_gen_unlikely_cbranch): New function to generate common
10738 rtl conditional branches for overflow patterns.
10739 * config/arm/arm-protos.h: Add prototype for
10740 arm_gen_unlikely_cbranch.
10741 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
10742 addsi3_compareV_upper): New patterns to support signed
10743 builtin overflow add operations.
10744 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
10745 New patterns to support unsigned builtin add overflow operations.
10746 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
10747 builtin overflow subtract operations,
10748 (usubv<mode>4): New patterns to support unsigned builtin subtract
10749 overflow operations.
10750 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
10751 to support builtin overflow negate operations.
10753 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10756 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10758 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10759 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10762 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10764 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
10765 MULTILIB_OPTIONS should be used. Small wording fixes.
10766 * genmultilib: Memorize set of all option combinations in
10767 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
10768 found in MULTILIB_OPTIONS by checking if option set is listed in
10769 combination_space. Output new and existing error message to stderr.
10771 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10773 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
10774 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
10775 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
10776 (MULTILIB_REUSE): Remove reuse rules for option set including
10777 -mfpu=fp-armv8 and -mfpu=vfpv4
10779 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
10781 * config/arm/t-rtems: Add vfp multilib.
10783 2016-08-23 Ian Lance Taylor <iant@golang.org>
10785 * config/s390/s390.c (s390_asm_file_start): Call
10786 default_file_start.
10788 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10790 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
10791 initialization of all 0's to the 0 constant, instead of directly
10792 generating XOR. Add support for V4SImode vector initialization on
10793 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
10794 initialization. Change variables used in V4SFmode vector
10795 intialization. For V4SFmode vector splat on ISA 3.0, make sure
10796 any memory addresses are in index form. Add support for using
10797 VSPLTH/VSPLTB to initialize vector short and vector char vectors
10798 with all of the same element.
10799 (regno_or_subregno): New helper function to return a register
10800 number for either REG or SUBREG.
10801 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
10802 Use regno_or_subregno where possible.
10803 (rs6000_split_v4si_init_di_reg): New helper function to build up a
10804 DImode value from two SImode values in order to generate V4SImode
10805 vector initialization on 64-bit systems with direct move.
10806 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
10808 (rtx_is_swappable_p): V4SImode vector initialization insn is not
10810 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
10812 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
10813 attributes to initialize V8HImode and V16QImode vectors with the
10815 (VSX_SPLAT_COUNT): Likewise.
10816 (VSX_SPLAT_SUFFIX): Likewise.
10817 (UNSPEC_VSX_VEC_INIT): New unspec.
10818 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
10819 Allow SFmode values to come from Altivec registers.
10820 (vsx_init_v4si): New insn/split for V4SImode vector initialization
10821 on 64-bit systems with direct move.
10822 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
10823 vector initializations, to allow V4SImode vector initializations
10824 on 64-bit systems with direct move.
10825 (vsx_splat_v4si): Likewise.
10826 (vsx_splat_v4si_di): Likewise.
10827 (vsx_splat_v4sf): Likewise.
10828 (vsx_splat_v4sf_internal): Likewise.
10829 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
10831 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
10832 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
10833 initializing V8HImode and V16QImode vectors with the same
10835 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
10836 optimization if -maltivec=be.
10838 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
10840 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
10841 attribute for alternatives 3 and 4.
10843 2016-08-23 David Malcolm <dmalcolm@redhat.com>
10845 * selftest.c (selftest::assert_str_contains): New function.
10846 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
10847 * selftest.h (selftest::assert_str_contains): New decl.
10848 (ASSERT_STR_CONTAINS): New macro.
10850 2016-08-23 Richard Biener <rguenther@suse.de>
10852 PR tree-optimization/77286
10853 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
10855 (vect_transform_loop): Split exit edges of loop and scalar
10856 loop if required and at the appropriate time.
10858 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10860 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10861 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10863 Correct a typo in a comment.
10865 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10867 * config/s390/s390.md ("*andc_split"): New splitter for and with
10870 2016-08-23 Richard Biener <rguenther@suse.de>
10872 PR tree-optimization/27336
10873 * tree-vrp.c (infer_value_range): Handle stmts that can throw
10874 by looking for a non-EH edge.
10875 (process_assert_insertions_for): Likewise.
10877 2016-08-23 Richard Biener <rguenther@suse.de>
10879 PR middle-end/77305
10880 * statistics.c (statistics_counter_event): Robustify against
10883 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10885 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10886 for targets amdfam10 and barcelona.
10888 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
10890 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
10891 (zero_extend<mode>di2): Ditto.
10892 (*zero_extend<mode>si2): Ditto.
10893 (*zero_extendqihi2): Ditto.
10895 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10897 PR middle-end/77269
10898 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
10899 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
10901 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
10903 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
10904 identical consecutive elements.
10905 [SSA_NAME]: Print the name's def stmt on its own line. When printing
10906 the node's def stmt, avoid printing an unwanted trailing newline by
10907 replacing the call to print_gimple_stmt() with its inlined body and
10908 adjusting it to not set pp_needs_newline and to call pp_flush()
10909 instead of pp_newline_and_flush().
10911 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10913 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
10914 (float32_type_node, float64_type_node, float32x_type_node)
10915 (float128x_type_node): New macros.
10916 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
10917 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
10918 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
10919 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
10920 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
10921 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
10922 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
10923 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
10924 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
10925 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
10926 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
10927 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
10928 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
10929 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
10930 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
10931 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
10932 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
10933 (copysign, fabs, huge_val, inf, nan, nans): Use it.
10934 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
10936 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
10937 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
10938 * doc/extend.texi (Other Builtins): Document these built-in
10940 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
10943 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
10945 * doc/install.texi (Binaries): www.opencsw.org now uses https.
10947 2016-08-22 Richard Biener <rguenther@suse.de>
10949 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
10951 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
10954 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
10955 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
10956 non-SSE2 athlons only, otherwise prefer SSE prefetches.
10958 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10960 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
10961 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
10962 (vrp_visit_switch_stmt): Likewise.
10963 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
10964 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
10965 (vrp_visit_stmt): Use extract_range_from_stmt.
10966 (vrp_visit_phi_node): Use extract_range_from_phi_node.
10968 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10970 * Makefile.in: Add tree-vrp.h to GTFILES.
10971 * gengtype.c (open_base_files): Add tree-vrp.h.
10972 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
10973 * builtins.c: Likewise.
10974 * fold-const.c: Likewise.
10975 * gimple-builder.c: Likewise.
10976 * gimple-laddress.c: Likewise.
10977 * hsa-gen.c: Likewise.
10978 * internal-fn.c: Likewise.
10980 * targhooks.c: Liewise,
10981 * tree-ssa-address.c: Likewise.
10982 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
10983 * tree-vrp.c (struct value_range): Move to tree-vrp.h
10984 * tree-vrp.h: New file.
10986 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10988 PR tree-optimization/61839
10989 * tree-vrp.c (two_valued_val_range_p): New.
10990 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
10991 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
10992 Also Convert VAR BINOP CST where VAR is two-valued to
10993 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
10995 2016-08-19 David Malcolm <dmalcolm@redhat.com>
10997 * diagnostic-show-locus.c
10998 (layout::annotation_line_showed_range_p): New method.
10999 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
11000 Reimplement case fixit_hint::REPLACE to cover removals, and
11001 replacements where the range of the replacement isn't one
11002 of the ranges in the rich_location.
11003 (test_one_liner_fixit_replace): Likewise.
11004 (selftest::test_one_liner_fixit_replace_non_equal_range): New
11006 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
11008 (selftest::test_diagnostic_show_locus_one_liner): Call the new
11010 * diagnostic.c (print_parseable_fixits): Remove case
11011 fixit_hint::REMOVE.
11013 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
11016 * config/i386/i386.c (ix86_option_override_internal): Remove
11017 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
11018 Enable SSE prefetch also for TARGET_PREFETCHWT1.
11019 Do not try to enable TARGET_PRFCHW ISA flag here.
11020 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
11021 Rewrite expander function body.
11022 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
11024 2016-08-19 Joseph Myers <joseph@codesourcery.com>
11027 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
11028 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
11029 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
11030 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
11031 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
11032 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
11033 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
11034 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
11035 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
11037 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
11039 (struct floatn_type_info): New structure type.
11040 (floatn_nx_types): New variable declaration.
11041 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
11042 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
11043 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
11044 * tree.c (floatn_nx_types): New variable.
11045 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
11046 corresponding complex types.
11047 * target.def (floatn_mode): New hook.
11048 * targhooks.c: Include "real.h".
11049 (default_floatn_mode): New function.
11050 * targhooks.h (default_floatn_mode): New prototype.
11051 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
11053 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
11054 effective-target and dg-add-options keywords.
11055 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
11056 Document new effective-target keywords.
11057 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
11058 * doc/tm.texi: Regenerate.
11059 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
11060 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
11061 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
11063 * real.h (struct real_format): Add field ieee_bits.
11064 * real.c (ieee_single_format, mips_single_format)
11065 (motorola_single_format, spu_single_format, ieee_double_format)
11066 (mips_double_format, motorola_double_format)
11067 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
11068 (ieee_extended_intel_128_format)
11069 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
11070 (mips_extended_format, ieee_quad_format, mips_quad_format)
11071 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
11072 (decimal_double_format, decimal_quad_format, ieee_half_format)
11073 (arm_half_format, real_internal_format: Initialize ieee_bits
11075 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
11076 float128_type_node. Set float80_type_node to float64x_type_node
11077 if appropriate and long_double_type_node not appropriate.
11078 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
11079 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
11080 Initialize ieee_bits field.
11081 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
11082 (rs6000_init_builtins): Set ieee128_float_type_node to
11083 float128_type_node.
11084 (rs6000_floatn_mode): New function.
11086 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11088 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
11089 _rdseed64_step): Uglify argument names and/or local variable names
11090 in inline functions.
11091 * config/i386/rtmintrin.h (_xabort): Likewise.
11092 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
11093 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
11094 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
11095 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
11096 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
11097 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
11098 _mm_maskz_ternarylogic_epi32): Likewise.
11099 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
11100 __lwpins32, __lwpins64): Likewise.
11101 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
11102 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
11103 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
11104 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
11105 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
11106 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
11107 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
11108 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
11109 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
11110 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
11111 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
11112 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
11113 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
11114 _mm256_mask_i64gather_epi32): Likewise.
11115 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11116 * config/i386/ia32intrin.h (__writeeflags): Likewise.
11117 * config/i386/pkuintrin.h (_wrpkru): Likewise.
11118 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
11119 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
11120 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
11121 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
11122 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
11123 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
11124 _mm512_mask_prefetch_i64scatter_ps): Likewise.
11125 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11126 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
11127 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
11128 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
11129 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
11130 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
11131 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
11132 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
11134 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
11136 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
11137 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
11139 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
11140 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
11142 (_rdpkru_u32): Add space after function name.
11144 * config/i386/t-i386 (i386-c.o): Don't depend on
11145 i386-builtin-types.inc.
11146 (i386.o): Depend on i386-builtin-types.inc.
11148 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
11151 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
11152 Use const_vec_duplicate to check for duplicated elements.
11154 2016-08-19 Richard Biener <rguenther@suse.de>
11156 PR tree-optimization/77290
11157 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11158 Fix flag_tree_parallelize_loops check.
11160 2016-08-19 Richard Biener <rguenther@suse.de>
11162 * match.pd (x | 0 -> x): Add.
11164 2016-08-19 Richard Biener <rguenther@suse.de>
11166 PR tree-optimization/77286
11167 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11168 Deal with virtual PHIs being out-of-order.
11170 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11172 * doc/invoke.texi (fverbose-asm): Note that source code lines
11173 are emitted, and provide an example.
11174 * final.c (asm_show_source): New function.
11175 (final_scan_insn): Call asm_show_source.
11177 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11179 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
11180 param with diagnostic_kind.
11181 (class colorizer): Similarly replace field m_diagnostic with
11183 (colorizer::colorizer): Replace diagnostic
11184 param with diagnostic_kind.
11185 (colorizer::begin_state): Update for above field change.
11186 (layout::layout): Replace diagnostic param with rich_location *
11187 and diagnostic_kind.
11188 (diagnostic_show_locus): Replace diagnostic param with richloc
11189 and diagnostic_kind.
11190 (class selftest::test_diagnostic_context): New class.
11191 (selftest::test_diagnostic_show_locus_unknown_location): New
11193 (selftest::test_one_liner_simple_caret): New function.
11194 (selftest::test_one_liner_caret_and_range): New function.
11195 (selftest::test_one_liner_multiple_carets_and_ranges): New
11197 (selftest::test_one_liner_fixit_remove): New function.
11198 (selftest::test_one_liner_fixit_replace): New function.
11199 (selftest::test_diagnostic_show_locus_one_liner): New function.
11200 (selftest::diagnostic_show_locus_c_tests): Call the new test
11202 * diagnostic.c (diagnostic_initialize): Initialize
11203 colorize_source_p, show_ruler_p and parseable_fixits_p.
11204 (default_diagnostic_finalizer): Update for change to
11205 diagnostic_show_locus.
11206 (diagnostic_append_note): Likewise.
11207 * diagnostic.h (diagnostic_show_locus): Replace
11208 const diagnostic_info * param with location * and diagnostic_t.
11210 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11212 * input.c (saved_line_table): New global.
11213 (class selftest::temp_line_table): Rename to line_table_test and
11214 move declaration to selftest.h, and drop field m_old_line_table.
11215 (selftest::temp_line_table::temp_line_table): Rename ctor to...
11216 (selftest::line_table_test::line_table_test): ...this. Add a
11217 default ctor. Store current value of line_table within
11219 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
11220 (selftest::line_table_test::~line_table_test): ...this, and
11221 restore line_table from the saved_line_table, rather than
11223 (selftest::test_accessing_ordinary_linemaps): Update for above
11225 (selftest::test_lexer): Likewise.
11226 (struct selftest::lexer_test): Likewise.
11227 (selftest::lexer_test::lexer_test): Likewise.
11228 (selftest::input_c_tests): Move the looping over test cases from
11230 (selftest::for_each_line_table_case): New function.
11231 * input.h (saved_line_table): New decl.
11232 * selftest.h (struct selftest::line_table_case): New forward decl.
11233 (class selftest::line_table_test): New class, moved here from
11234 selftest::temp_line_table in input.c, and renamed.
11235 (selftest::for_each_line_table_case): New decl.
11237 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
11240 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
11242 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11244 PR middle-end/70895
11245 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
11246 enclosing parallel construct for reduction variables on OpenACC loop
11249 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
11251 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
11252 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
11254 (function_to_dwarf_procedure): Update comment.
11256 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11258 * input.c (diagnostics_file_cache_forcibly_evict_file): New
11260 * input.h (diagnostics_file_cache_forcibly_evict_file): New
11262 * selftest.c (selftest::temp_source_file::~temp_source_file):
11263 Evict m_filename from the diagnostic file cache.
11265 2016-08-18 Richard Biener <rguenther@suse.de>
11267 * tree-pass.h (make_pass_materialize_all_clones): Declare.
11268 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
11269 make_pass_materialize_all_clones): New simple IPA pass encapsulating
11270 clone materialization.
11271 * passes.def (all_late_ipa_passes): Start with
11272 pass_materialize_all_clones.
11273 * cgraphunit.c (symbol_table::compile): Remove call to
11274 materialize_all_clones.
11275 * tree-into-ssa.c: Include statistics.h.
11276 (update_ssa): Count number of times we do incremental/rewrite
11279 2016-08-18 Richard Biener <rguenther@suse.de>
11281 PR tree-optimization/77282
11282 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11283 When doing auto-parallelizing also prevent use of PHIs that
11284 carry dependences across loop backedges.
11286 2016-08-18 Tamar Christina <tamar.christina@arm.com>
11287 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11289 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
11291 2016-08-18 Richard Biener <rguenther@suse.de>
11293 * ssa-iterators.h (ssa_vuse_operand): New inline.
11294 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
11295 (predicate_all_scalar_phis): Use remove_phi_node to remove
11296 phi nodes predicated. Delay removing virtual PHIs.
11297 (predicate_mem_writes): Update virtual operands.
11298 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
11299 (tree_if_conversion): Do not rewrite virtual SSA form.
11300 * tree-phinodes.c (release_phi_node): Make static.
11301 * tree-phinodes.h (release_phi_node): Remove.
11303 2016-08-18 Jakub Jelinek <jakub@redhat.com>
11305 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
11306 codes that appear in bdesc_* arrays, instead include i386-builtin.def
11307 twice to define those.
11308 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
11309 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
11310 bdesc_multi_arg): Define by including i386-builtin.def the third time.
11311 * config/i386/i386-builtin.def: New file.
11313 2016-08-17 David Malcolm <dmalcolm@redhat.com>
11315 * input.c (get_source_range_for_char): Rename to...
11316 (selftest::get_source_range_for_char): ...this, and move within
11317 the #if CHECKING_P guard.
11318 (get_num_source_ranges_for_substring): Rename to...
11319 (selftest::get_num_source_ranges_for_substring): ...this, move
11320 within the #if CHECKING_P guard, and make static.
11321 (selftest::assert_num_substring_ranges): Initialize
11324 2016-08-18 Alan Modra <amodra@gmail.com>
11326 PR rtl-optimization/72771
11327 * reload.c (find_reloads): Don't assume that a subreg mem is OK
11328 when find_reloads_toplev returns address_reloaded==-1.
11329 (alternative_allows_const_pool_ref): Update comment.
11331 2015-08-17 Alan Hayward <alan.hayward@arm.com>
11333 PR tree-optimization/71752
11334 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11335 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11337 2016-08-17 Jakub Jelinek <jakub@redhat.com>
11339 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11340 instead of testing ECF_NORETURN bit in gimple_call_flags.
11341 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11342 * predict.c (tree_bb_level_predictions): Likewise.
11343 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11345 PR middle-end/77259
11346 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11347 turning a call into __builtin_unreachable-like noreturn call, adjust
11348 gimple_call_set_fntype.
11349 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11350 gimple_call_fntype has void return type.
11352 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
11354 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11355 maybe_lookup_decl, to handle nested acc loop directives.
11357 2016-08-17 Richard Biener <rguenther@suse.de>
11359 PR tree-optimization/76490
11360 * tree-vrp.c (update_value_range): Preserve overflow infinities
11361 when intersecting with ranges from get_range_info.
11362 (operand_less_p): Handle overflow infinities correctly.
11363 (value_range_constant_singleton): Use vrp_operand_equal_p
11364 to handle overflow max/min correctly.
11365 (vrp_valueize): Likewise.
11366 (union_ranges): Likewise.
11367 (intersect_ranges): Likewise.
11368 (vrp_visit_phi_node): Improve iteration limitation to only
11369 apply when we'll possibly re-visit the PHI via a changed argument
11372 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
11374 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11375 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11376 rather than those that should not be built.
11378 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
11381 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11383 2016-08-17 Richard Biener <rguenther@suse.de>
11385 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11386 (verify_vssa): New function verifying virtual SSA form.
11387 (verify_ssa): Call it.
11388 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11389 Do not apply loop-closed SSA handling to virtuals.
11390 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11391 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11392 when rewriting their symbol.
11393 (prepare_def_site_for): Likewise.
11394 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11395 operands of moved stmts.
11397 2016-08-17 Richard Biener <rguenther@suse.de>
11399 PR tree-optimization/23855
11400 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11401 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11402 find guards to hoist. Do not update SSA form but rewrite virtuals
11403 into loop closed SSA.
11404 (find_loop_guard): Adjust to skip already hoisted guards. Do
11405 not mark virtuals for renaming or update SSA form.
11407 2016-08-17 Martin Liska <mliska@suse.cz>
11409 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11410 a LONG_LONG_TYPE_SIZE comparison.
11411 * gcov-io.h: Remove macro definitions.
11412 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11413 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11416 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11418 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11419 that builtins not mentioned in bdesc_* arrays come first, then
11420 the ones mentioned in bdesc_* arrays in the order they appear in
11421 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11422 IX86_BUILTIN__BDESC_*_LAST enumerator.
11423 (bdesc_mpx): Fix up a comment typo.
11424 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11425 __builtin_ia32_vpcomneu[bwdq] builtins.
11426 (BDESC_VERIFY, BDESC_VERIFYS): Define.
11427 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11428 enum ix86_builtins ordering.
11429 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11430 for direct bdesc_* array member access instead of searching all the
11431 arrays until an fcode match is found.
11433 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
11435 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11436 pattern as define_insn_and_split. Split insn before reload to
11438 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
11439 <shift_insn><mode>3_1.
11440 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
11441 <rotate_insn><mode>3_1.
11443 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11446 * input.c (get_source_range_for_substring): Rename to...
11447 (get_source_location_for_substring): ...this, adding param
11448 "caret_idx", and converting output param from source_range * to
11450 (get_source_range_for_char): New function.
11451 (get_num_source_ranges_for_substring): Update comment to reflect
11453 (assert_char_at_range): Update to use get_source_range_for_char
11454 rather than get_source_range_for_substring.
11455 (test_lexer_string_locations_concatenation_2): Likewise.
11456 * substring-locations.h (get_source_range_for_substring): Rename
11458 (get_source_location_for_substring): ...this, and adding param
11459 "caret_idx", and converting output param from source_range * to
11462 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11464 * input.c (class selftest::temp_source_file): Move to
11466 (selftest::temp_source_file::temp_source_file): Move to
11468 (selftest::temp_source_file::~temp_source_file): Likewise.
11469 * selftest.c (selftest::temp_source_file::temp_source_file): Move
11471 (selftest::temp_source_file::~temp_source_file): Likewise.
11472 * selftest.h (class selftest::temp_source_file): Move here from
11475 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11478 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
11479 inlining, add cgraph edge for the added __builtin_unreachable call.
11481 PR middle-end/67485
11482 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11483 only cast it to SHWI for the final comparison.
11485 2016-08-16 Martin Liska <mliska@suse.cz>
11487 PR gcov-profile/36412
11488 * doc/gcov.texi: Document --hash-filenames(-x).
11489 * gcov.c (print_usage): Add the option.
11490 (process_args): Process the option, sort options alphabetically.
11491 (md5sum_to_hex): New function.
11492 (make_gcov_file_name): Do the md5sum and append it to a
11495 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11497 PR tree-optimization/69848
11498 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11499 and swtich operands to avoid additional NOT instruction.
11500 (vcond<v_cmp_mixed><mode>): Ditto.
11501 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11503 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
11505 * doc/install.texi (*-*-solaris2*): Adjust latest change.
11507 2016-08-16 Richard Biener <rguenther@suse.de>
11509 PR tree-optimization/76783
11510 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
11511 BB visited flags at start.
11513 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11515 PR tree-optimization/72817
11516 PR tree-optimization/73450
11517 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11518 multiple_of_p for adjusted IV.base.
11520 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
11523 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11524 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11525 for !flag_finite_math_only or flag_signed_zeros.
11526 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11527 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
11528 depend on flag_finite_math_only.
11529 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11531 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11532 (*ieee_smin<mode>3): Ditto.
11533 (*ieee_smax<mode>3): Ditto.
11534 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11535 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11537 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
11538 depend on flag_finite_math_only.
11539 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11540 (*mmx_<code>v2sf3): Remove.
11541 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11542 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11543 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11545 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11547 PR rtl-optimization/73650
11548 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11549 it is not a simple move.
11551 2016-08-15 Martin Liska <mliska@suse.cz>
11554 * gcc.c (do_spec_1): Call save_string with the right size.
11555 (save_string): Do an assert about string we copy.
11557 2016-08-15 Richard Biener <rguenther@suse.de>
11559 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11560 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11562 (pass_data_stv): Likewise.
11564 2016-08-15 Richard Biener <rguenther@suse.de>
11566 PR tree-optimization/73434
11567 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11568 TBAA info on the base when forwarding a non-invariant address.
11570 2016-08-15 Jakub Jelinek <jakub@redhat.com>
11572 * dwarf2out.c (struct checksum_attributes): Add
11573 at_string_length_bit_size and at_string_length_byte_size fields.
11574 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11575 and DW_AT_string_length_byte_size.
11576 (die_checksum_ordered): Handle at_string_length_bit_size and
11577 at_string_length_byte_size.
11578 (gen_array_type_die): For dwarf_version >= 5 emit
11579 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11580 (adjust_string_types): For dwarf_version >= 5 remove
11581 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11582 (resolve_addr): Likewise.
11585 * dwarf2out.c (string_types): New variable.
11586 (gen_array_type_die): Change early_dwarf handling of
11587 DW_AT_string_length, create DW_OP_call4 referencing the
11588 length var temporarily. Handle parameters that are pointers
11590 (adjust_string_types): New function.
11591 (gen_subprogram_die): Temporarily set string_types to local var,
11592 call adjust_string_types if needed.
11593 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11595 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11597 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
11599 * doc/install.texi (*-*-solaris2*): Fix version number and document
11600 requirement on GNU make for building libjava with the Solaris linker.
11602 2016-08-15 Martin Liska <mliska@suse.cz>
11603 Jakub Jelinek <jakub@redhat.com>
11605 PR tree-optimization/72824
11606 * tree-loop-distribution.c (const_with_all_bytes_same)
11607 <case VECTOR_CST>: Fix a typo.
11609 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
11612 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11613 Renamed from _mm512_undefined_si512.
11614 (_mm_undefined_si512): New definition.
11616 2016-08-13 Richard Biener <rguenther@suse.de>
11618 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11619 into PHIs and update the lattice for its def.
11621 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11624 * ubsan.c (instrument_si_overflow): Pass true instead of false
11626 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
11627 of bbs. Return TODO_cleanup_cfg if any returned true.
11629 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11631 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
11632 ISA 3.0 MTVSRDD instruction.
11633 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
11636 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11638 PR tree-optimization/71083
11639 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
11640 bitfield access when possible.
11642 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
11644 PR middle-end/71654
11645 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
11646 sign-changing cast from a shorter unsigned type to a wider
11649 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11651 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
11652 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
11653 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
11655 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11657 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11658 Correct costs for vec_construct.
11660 2016-08-12 Bin Cheng <bin.cheng@arm.com>
11662 PR tree-optimization/69848
11663 * tree-vectorizer.h (enum vect_def_type): New condition reduction
11664 type CONST_COND_REDUCTION.
11665 * tree-vect-loop.c (vectorizable_reduction): Support new condition
11666 reudction type CONST_COND_REDUCTION.
11668 2016-08-12 Richard Biener <rguenther@suse.de>
11670 PR tree-optimization/57326
11671 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
11672 returning an SSA name.
11673 (phi_translate_1): When fully_constant_expression returns a NAME
11674 make sure we have a leader for it.
11676 2016-08-12 Martin Liska <mliska@suse.cz>
11677 Adam Fineman <afineman@afineman.com>
11679 * gcov.c (process_file): Create .gcov file when .gcda
11682 2016-08-12 Marek Polacek <polacek@redhat.com>
11685 * alias.c (find_base_value): Adjust fall through comment.
11686 * cfgexpand.c (expand_debug_expr): Likewise.
11687 * combine.c (find_split_point): Likewise.
11688 (expand_compound_operation): Likewise. Add FALLTHRU.
11689 (make_compound_operation): Adjust fall through comment.
11690 (canon_reg_for_combine): Add FALLTHRU.
11691 (force_to_mode): Adjust fall through comment.
11692 (simplify_shift_const_1): Likewise.
11693 (simplify_comparison): Likewise.
11694 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
11696 * config/aarch64/predicates.md: Likewise.
11697 * config/i386/i386.c (function_arg_advance_32): Likewise.
11698 (ix86_gimplify_va_arg): Likewise.
11699 (print_reg): Likewise.
11700 (ix86_print_operand): Likewise.
11701 (ix86_build_const_vector): Likewise.
11702 (ix86_expand_branch): Likewise.
11703 (ix86_sched_init_global): Adjust fall through comment.
11704 (ix86_expand_args_builtin): Add FALLTHRU.
11705 (ix86_expand_builtin): Likewise.
11706 (ix86_expand_vector_init_one_var): Likewise.
11707 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
11708 (rs6000_adjust_cost): Likewise.
11709 (insn_must_be_first_in_group): Likewise.
11710 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
11711 * dbxout.c (dbxout_symbol): Adjust fall through comment.
11712 * df-scan.c (df_uses_record): Likewise.
11713 * dojump.c (do_jump): Add FALLTHRU.
11714 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
11716 (resolve_args_picking_1): Adjust fall through comment.
11717 (loc_list_from_tree_1): Likewise.
11718 * expmed.c (make_tree): Likewise.
11719 * expr.c (expand_expr_real_2): Add FALLTHRU.
11720 (expand_expr_real_1): Likewise. Adjust fall through comment.
11721 * fold-const.c (const_binop): Adjust fall through comment.
11722 (fold_truth_not_expr): Likewise.
11723 (fold_cond_expr_with_comparison): Add FALLTHRU.
11724 (fold_binary_loc): Likewise.
11725 (contains_label_1): Adjust fall through comment.
11726 (multiple_of_p): Likewise.
11727 * gcov-tool.c (process_args): Add FALLTHRU.
11728 * genattrtab.c (check_attr_test): Likewise.
11729 (write_test_expr): Likewise.
11730 * genconfig.c (walk_insn_part): Likewise.
11731 * genpreds.c (validate_exp): Adjust fall through comment.
11732 (needs_variable): Likewise.
11733 * gensupport.c (get_alternatives_number): Add FALLTHRU.
11734 (subst_dup): Likewise.
11735 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
11736 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
11737 (gimplify_scan_omp_clauses): Add FALLTHRU.
11738 (goa_stabilize_expr): Likewise.
11739 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
11741 * hsa-gen.c (get_address_from_value): Likewise.
11742 * ipa-icf.c (sem_function::hash_stmt): Likewise.
11743 * ira.c (ira_setup_alts): Add FALLTHRU.
11744 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
11746 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
11747 * opts.c (common_handle_option): Likewise.
11748 * read-rtl.c (read_rtx_code): Likewise.
11749 * real.c (round_for_format): Likewise.
11750 * recog.c (asm_operand_ok): Likewise.
11751 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
11752 * reload1.c (set_label_offsets): Likewise.
11753 (eliminate_regs_1): Likewise.
11754 (reload_reg_reaches_end_p): Likewise.
11755 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
11756 (rtx_cost): Likewise.
11757 * sched-rgn.c (is_exception_free): Likewise.
11758 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
11759 * stor-layout.c (int_mode_for_mode): Likewise.
11760 * toplev.c (print_to_asm_out_file): Likewise.
11761 (print_to_stderr): Likewise.
11762 * tree-cfg.c (gimple_verify_flow_info): Likewise.
11763 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
11764 (chrec_fold_multiply): Likewise.
11765 (evolution_function_is_invariant_rec_p): Likewise.
11766 (for_each_scev_op): Likewise.
11767 * tree-data-ref.c (siv_subscript_p): Likewise.
11768 (get_references_in_stmt): Likewise.
11769 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
11770 (substitute_in_expr): Likewise.
11771 (type_cache_hasher::equal): Likewise.
11772 (walk_type_fields): Likewise.
11773 * var-tracking.c (adjust_mems): Add FALLTHRU.
11774 (set_dv_changed): Adjust fall through comment.
11775 * varasm.c (default_function_section): Add FALLTHRU.
11777 2016-08-12 Marek Polacek <polacek@redhat.com>
11780 * tree-complex.c (expand_complex_division): Add missing break.
11782 2016-08-12 Richard Biener <rguenther@suse.de>
11784 * passes.c (execute_todo): Do not push/pop TV_TODO.
11785 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
11786 (execute_one_pass): Likewise.
11787 * common.opt (ftime-report-details): New switch.
11788 * doc/invoke.texi (ftime-report-details): Document.
11789 * timevar.h (timer::print_row): Adjust signature.
11790 (timer::all_zero): New static helper.
11791 (timer::child_map_t): New typedef.
11792 (timer::time_var_def): Add children field.
11793 * timevar.c (timer::named_items::print): Adjust.
11794 (timer::~timer): Free timevar recorded children.
11795 (timer::pop_internal): When -ftime-report-details record
11796 time spent in sub-timevars.
11797 (timer::print_row): Adjust.
11798 (timer::print): Print sub-timevar stats, use all_zero.
11799 * timevar.def (TV_TODO): Remove.
11801 2016-08-12 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/72851
11804 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
11805 worklists to use bitmaps indexed in execution order.
11806 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
11807 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
11808 (cfg_blocks): Make a bitmap.
11809 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
11811 (cfg_blocks_empty_p): Adjust.
11812 (cfg_blocks_add): Likewise.
11813 (cfg_blocks_get): Likewise.
11814 (add_ssa_edge): Likewise.
11815 (add_control_edge): Likewise.
11816 (simulate_stmt): Likewise.
11817 (process_ssa_edge_worklist): Likewise.
11818 (simulate_block): Likewise.
11819 (ssa_prop_init): Compute PRE order and stmt UIDs.
11820 (ssa_prop_fini): Adjust.
11821 (ssa_propagate): Adjust.
11823 2016-08-12 Richard Biener <rguenther@suse.de>
11825 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
11826 the currently executable edges have fixed ranges. Always
11827 go through update_value_range.
11829 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
11833 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
11834 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
11835 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
11836 (LANG_HOOKS_DECLS): Add it.
11837 * langhooks.h (struct lang_hooks_for_decls): Add
11838 function_decl_defaulted. Const_tree-ify
11839 function_decl_explicit_p and function_decl_deleted_p.
11840 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
11841 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
11842 also at strict DWARF v5.
11845 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
11846 TYPE_QUAL_CONST in reference-typed decls.
11849 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
11850 in DW_OP_pieces, just enough to handle pointers to member
11852 (gen_remaining_tmpl_value_param_die_attribute): Use a location
11853 expression on DWARFv5 if a constant value doesn't work.
11855 2016-08-11 David Malcolm <dmalcolm@redhat.com>
11857 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
11858 * selftest.c (selftest::test_assertions): New function.
11859 (selftest::selftest_c_tests): New function.
11860 * selftest.h (selftest::selftest_c_tests): New declaration.
11862 2016-08-11 Richard Biener <rguenther@suse.de>
11863 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11865 PR rtl-optimization/72855
11866 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
11868 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11871 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
11872 (vsx_store_<mode>): Likewise.
11874 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11876 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
11877 TImode CONST_WIDE_INT store.
11878 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
11880 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11882 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
11883 mode if unaligned SSE load and store are optimal.
11885 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11887 PR tree-optimization/71083
11888 * tree-predcom.c (ref_at_iteration): Correctly align the
11891 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11893 * config/s390/s390-builtin-types.def: Add INT128 types.
11894 * config/s390/s390-builtins.def: Add INT128 variants for the add
11895 sub low-level builtins dealing with TImode.
11896 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
11897 via subreg when expanding a builtin.
11898 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
11899 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
11901 * config/s390/vecintrin.h: Adjust builtin names accordingly.
11902 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
11903 ("vec_addc<mode>", "vec_addc_u128"): Merge to
11904 "vacc<bhfgq>_<mode>".
11905 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
11906 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
11907 ("vec_subc<mode>", "vec_subc_u128"): Merge to
11908 "vscbi<bhfgq>_<mode>".
11909 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
11910 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
11912 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11914 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
11916 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11918 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
11919 unused declaration.
11920 (vcond<v_cmp_mixed><mode>): Ditto.
11921 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11923 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11925 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
11926 variable explicitly, also assert on it before use.
11928 2016-08-11 Richard Biener <rguenther@suse.de>
11930 PR tree-optimization/72772
11931 * cfgloopmanip.c (create_preheader): Use split_edge if there
11932 is a single loop entry, avoiding degenerate PHIs.
11934 2016-08-11 Richard Biener <rguenther@suse.de>
11936 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
11937 unconditional TODO_cleanup_cfg.
11938 (pass_thread_jumps::execute): Initialize loops, perform a CFG
11939 cleanup only if we threaded a jump.
11941 2016-08-11 Alan Modra <amodra@gmail.com>
11944 * lra-constraints.c (simplify_operand_subreg): Allow subreg
11945 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
11946 slow. Emit two reloads for slow mem case, first loading in
11947 fast innermode, then converting to required mode.
11949 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11951 * config/rs6000/altivec.h (vec_extract_exp): New macro.
11952 (vec_extract_sig): New macro.
11953 (vec_insert_exp): New macro.
11954 (vec_test_data_class): New macro.
11955 (scalar_extract_exp): New macro.
11956 (scalar_extract_sig): New macro.
11957 (scalar_insert_exp): New macro.
11958 (scalar_test_data_class): New macro.
11959 (scalar_test_neg): New macro.
11960 (scalar_cmp_exp_gt): New macro.
11961 (scalar_cmp_exp_lt): New macro.
11962 (scalar_cmp_exp_eq): New macro.
11963 (scalar_cmp_exp_unordered): New macro.
11964 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
11965 to enforce constraint that operand is a 7-bit unsigned literal.
11966 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
11967 for power9 built-ins.
11968 (BU_P9V_VSX_2): Likewise.
11969 (BU_P9V_64BIT_VSX_2): Likewise.
11970 (VSEEDP): Add scalar extract exponent support.
11971 (VSEESP): Add scalar extract signature support.
11972 (VSTDCNDP): Add scalar test negative support.
11973 (VSTDCNSP): Likewise.
11974 (VSIEDP): Add scalar insert exponent support.
11975 (VSCEDPGT): Add scalar compare exponent greater than support.
11976 (VSCEDPLT): Add scalar compare exponent less than support.
11977 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
11978 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
11979 (VSTDCDP): Add scalar test data class support.
11980 (VSTDCSP): Likewise.
11981 (VSEEDP): Add overload support for scalar extract exponent
11983 (VSESDP): Add overload support for scalar extract signature
11985 (VSTDCN): Add overload support for scalar test negative
11987 (VSTDCNDP): Add overload support for scalar test negative
11989 (VSTDCNSP): Add overload support for scalar test negative
11991 (VSIEDP): Add overload support for scalar insert exponent
11993 (VSTDC): Add overload support for scalar test data class
11995 (VSTDCDP): Add overload support for scalar test data class
11997 (VSTDCSP): Add overload support for scalar test data class
11999 (VSCEDPGT): Add overload support for scalar compare exponent
12000 greater than operation.
12001 (VSCEDPLT): Add overload support for scalar compare exponent
12002 less than operation.
12003 (VSCEDPEQ): Add overload support for scalar compare exponent
12004 test-for-equality operation.
12005 (VSCEDPUO): Add overload support for scalar compare exponent
12006 test-for-unordered operation.
12007 (VEEDP): Add vector extract exponent support.
12009 (VESDP): Add vector extract significand support.
12011 (VIEDP): Add vector insert exponent support.
12013 (VTDCDP): Add vector test data class support.
12014 (VTDCSP): Likewise.
12015 (VES): Add overload support for vector extract significand operation.
12018 (VEE): Add overload support for vector extract exponent operation.
12021 (VTDC): Add overload support for vector test data class operation.
12022 (VTDCDP): Likewise.
12023 (VTDCSP): Likewise.
12024 (VIE): Add overload support for vector insert exponent operation.
12027 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12028 overloaded binary floating point functions.
12029 (altivec_resolve_overloaded_builtin): Improve error messages to
12030 distinguish between functions not supported in the current
12031 compiler configuration and functions that were invoked with an
12032 invalid parameter combination, and include the built-in function
12033 name in both error messages.
12034 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
12036 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
12038 (rs6000_expand_binop_builtin): Add check to enforce that argument
12039 2 of the test data class operations is a 7-bit unsigned literal.
12040 (rs6000_invalid_builtin): Add code to issue an error message if a
12041 built-in function that requires the power9_vector and -m32
12042 command-line options is compiled without these options.
12043 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
12044 (UNSPEC_VSX_SXSIGDP): New value.
12045 (UNSPEC_VSX_SXSIGPDP): New value.
12046 (UNSPEC_VSX_SIEXPDP): New value.
12047 (UNSPEC_VSX_SCMPEXPDP): New value.
12048 (UNSPEC_VSX_STSTDC): New value.
12049 (UNSPEC_VSX_VXEXP): New value.
12050 (UNSPEC_VSX_VXSIG): New value.
12051 (UNSPEC_VSX_VIEXP): New value.
12052 (UNSPEC_VSX_VTSTDC): New value.
12053 (xsxexpdp): New insn for scalar extract exponent.
12054 (xsxsigdp): New insn for scalar extract significand.
12055 (xsiexpdp): New insn for scalar insert exponent.
12056 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
12057 (*xscmpexpdp): New insn for scalar compare exponents.
12058 (xststdc<Fvsx): New expansion for both single- and
12059 double-precision scalar test data class operations.
12060 (xststdcneg<Fvsx>): New expansion for both single- and
12061 double-precision scalar test for negative value operations.
12062 (*xststdc<Fvsx>): New insn for scalar test data class
12064 (xvxexp<VSs>): New insn for single- and double-precision
12065 vector extract exponent operation.
12066 (xvxsig<VSs>): New insn for single- and double-precision
12067 vector extract significand operation.
12068 (xviexp<VSs>): New insn for single- and double-precision
12069 vector insert exponent operation.
12070 (xvtstdc<VSs>): New insn for single- and double-precision
12071 vector test data class operation.
12072 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12073 built-in functions to represent the Power9 binary floating-point
12074 support instructions.
12076 2016-08-10 bin cheng <bin.cheng@arm.com>
12078 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
12080 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12081 Renlin Li <renlin.li@arm.com>
12082 Bin Cheng <bin.cheng@arm.com>
12084 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
12085 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
12086 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
12087 (aarch64_vcond_internal<mode><mode>): Delete pattern.
12088 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
12089 (vcond<v_cmp_result><mode>): Ditto.
12090 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
12091 (vcondu<mode><mode>): Ditto.
12092 (vcond<v_cmp_mixed><mode>): New pattern.
12093 (vcondu<mode><v_cmp_mixed>): New pattern.
12094 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
12095 of aarch64_vcond_internal.
12097 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12098 Renlin Li <renlin.li@arm.com>
12099 Bin Cheng <bin.cheng@arm.com>
12101 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
12102 (vec_cmp<mode><v_cmp_result>): New pattern.
12103 (vec_cmpu<mode><mode>): New pattern.
12104 (vcond_mask_<mode><v_cmp_result>): New pattern.
12106 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12108 PR tree-optimization/71734
12109 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
12110 REF_LOOP, invoke ref_indep_loop_p_1.
12111 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
12112 to ref_indep_loop_p.
12113 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
12114 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
12115 is inside LOOP, do not cache dpendence value for loops with
12117 (ref_indep_loop_p_2): Delete function.
12118 (can_sm_ref_p): Pass LOOP as additional argument to
12121 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12124 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
12125 being an offsettable address.
12127 2016-08-10 Martin Liska <mliska@suse.cz>
12129 PR gcov-profile/58306
12130 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
12131 atomic variants of profile update functions.
12133 2016-08-10 Martin Liska <mliska@suse.cz>
12135 Cherry picked (and modified) from google-4_7 branch
12136 2012-12-26 Rong Xu <xur@google.com>
12137 * common.opt (fprofile-update): Add new flag.
12138 * coretypes.h: Define enum profile_update.
12139 * doc/invoke.texi: Document -fprofile-update.
12140 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
12141 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
12142 * tree-profile.c (gimple_init_edge_profiler): Generate
12143 also atomic profiler update.
12144 (gimple_gen_edge_profiler): Likewise.
12146 2016-08-10 David Malcolm <dmalcolm@redhat.com>
12148 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
12149 stack_usage_file to NULL after fclose calls.
12151 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12154 * reload.c (push_reload): Compute subreg_in_class for
12155 subregs of constants and plus expressions. Remove special
12156 handling of SYMBOL_REFs.
12158 2016-08-10 Alan Modra <amodra@gmail.com>
12161 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
12162 SImode for TARGET_E500_DOUBLE when given SImode.
12164 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
12166 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
12167 unused variable __O.
12169 2016-08-09 Martin Liska <mliska@suse.cz>
12171 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
12172 _gcov_reset to __gcov_reset.
12173 * doc/gcov-tool.texi: Fix typo.
12175 2016-08-09 Martin Liska <mliska@suse.cz>
12177 * value-prof.c (gimple_divmod_values_to_profile): Do not
12178 instrument MOD histogram if a value is not a SSA name.
12180 2016-08-09 Martin Liska <mliska@suse.cz>
12182 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
12185 2016-08-09 Renlin Li <renlin.li@arm.com>
12187 PR middle-end/64971
12188 * calls.c (prepare_call_address): Convert funexp to Pmode when
12190 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
12191 (sibcall_value): Likewise.
12193 2016-08-09 Marek Polacek <polacek@redhat.com>
12196 * cselib.c (cselib_expand_value_rtx_1): Add return.
12197 * gengtype.c (dbgprint_count_type_at): Likewise.
12198 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
12199 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
12201 2016-08-09 Martin Jambor <mjambor@suse.cz>
12204 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
12205 if instance is a MEM_REF.
12207 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
12210 * config/i386/i386.md (*movtf_internal): Use
12211 lra_in_progress || reload_completed instead of !can_create_pseudo_p
12212 in the insn constraint.
12213 (*movxf_internal): Ditto.
12214 (*movdf_internal): Ditto.
12215 (*movsf_internal): Ditto.
12217 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12219 PR tree-optimization/72772
12220 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12223 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12225 PR tree-optimization/72772
12226 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
12228 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
12229 parameter STOP and update calls. Move expand_simple_operations
12230 function call from here...
12231 (simplify_using_initial_conditions): ...to here. Delete parameter
12233 (tree_simplify_using_condition): Delete parameter STOP.
12234 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
12235 simplify_using_initial_conditions.
12237 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
12240 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
12241 Use create_tmp_var_raw instead of create_tmp_var.
12243 2016-08-09 Richard Biener <rguenther@suse.de>
12245 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
12246 Treat same SSA names related.
12248 2016-08-09 Jakub Jelinek <jakub@redhat.com>
12250 PR tree-optimization/72824
12251 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
12252 real_zerop is not negative.
12254 2016-08-09 Richard Biener <rguenther@suse.de>
12256 PR tree-optimization/71802
12257 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
12258 all merge opportunities with the predecessor.
12260 2016-08-09 Richard Biener <rguenther@suse.de>
12263 * ipa-prop.c (ipa_modify_formal_parameters): Build
12264 parameter types with natural alignment also for the
12267 2016-08-08 Andi Kleen <ak@linux.intel.com>
12269 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
12271 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12274 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
12275 do-nothing langhook.
12276 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
12277 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
12278 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
12279 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
12281 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12284 * input.c: Ensure that HAVE_ICONV is defined.
12286 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12288 PR middle-end/72781
12289 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
12290 private vars for lastprivate and for linear iterator.
12292 PR middle-end/68762
12293 * omp-simd-clone.c: Include varasm.h.
12294 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
12295 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
12296 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
12297 update function name.
12299 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12301 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
12302 (avr_diagnose_devicespecs_error): Remove.
12303 (avr_devicespecs_file): Remove composing absolute path for specfile
12304 and its verbose info. Remove conditions to check specs-file,
12306 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12308 PR rtl-optimization/72821
12309 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
12310 just return false for them.
12312 2016-08-08 Alan Modra <amodra@gmail.com>
12315 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12316 toc refs created during reload. Update function comment.
12318 2016-08-08 Alan Modra <amodra@gmail.com>
12321 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12322 alternatives. Put loads first, then stores, and reg/reg moves
12323 within same class later. Delete attr length.
12325 2016-08-08 Alan Modra <amodra@gmail.com>
12328 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12329 (mem_operand_ds_form): New predicate.
12330 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12331 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12332 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12333 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12334 (extendsfdf2_fpr): Replace o constraint with wY.
12336 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
12338 * tree-ssa-threadbackward.c: Include tree-inline.h
12339 (profitable_jump_thread_path): Use estimate_num_insns to estimate
12340 size of copied block; for cold paths reduce duplication.
12341 (find_jump_threads_backwards): Remove redundant tests.
12342 (pass_thread_jumps::gate): Enable for -Os.
12344 2016-08-07 Jakub Jelinek <jakub@redhat.com>
12347 * stor-layout.c (layout_decl): Fix up formatting.
12348 (relayout_decl): Allow DECL to be FIELD_DECL.
12350 2016-08-07 Alan Modra <amodra@gmail.com>
12352 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12354 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12356 * data-streamer-in.c (streamer_read_wide_int): New.
12357 (streamer_read_widest_int): Renamed function.
12358 * data-streamer-out.c (streamer_write_wide_int): New
12359 (streamer_write_widest_int): Renamed function.
12360 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12362 (input_cfg): Call renamed function.
12363 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12365 (output_cfg): Call renamed function.
12366 * data-streamer.h: Add declarations.
12368 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12370 * tree-ssa-ccp.c (extend_mask): New param sgn.
12371 Remove ORing with wi::mask.
12372 (get_default_value): Adjust call to extend_mask to pass sign.
12373 (evaluate_stmt): Likewise.
12375 2016-08-06 Jakub Jelinek <jakub@redhat.com>
12377 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12380 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12382 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12383 transform if operand's type is pointer to function or method.
12385 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12387 PR tree-optimization/18046
12388 * tree-ssa-threadedge.c: Include cfganal.h.
12389 (simplify_control_statement_condition): If simplifying a
12390 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12391 with the dominating ASSERT_EXPR before handing it off to VRP.
12392 Mention that a CASE_LABEL_EXPR may be returned.
12393 (thread_around_empty_blocks): Adjust to handle
12394 simplify_control_statement_condition() returning a
12396 (thread_through_normal_block): Likewise.
12397 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12398 a switch statement by trying to determine which case label
12401 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
12403 PR rtl-optimization/69847
12404 * lra-constraints.c (process_invariant_for_inheritance): Save
12405 pattern instead of src.
12406 (remove_inheritance_pseudos): Use the pattern. Add assert.
12408 2016-08-05 David Malcolm <dmalcolm@redhat.com>
12410 * input.c (string_concat::string_concat): New constructor.
12411 (string_concat_db::string_concat_db): New constructor.
12412 (string_concat_db::record_string_concatenation): New method.
12413 (string_concat_db::get_string_concatenation): New method.
12414 (string_concat_db::get_key_loc): New method.
12415 (class auto_cpp_string_vec): New class.
12416 (get_substring_ranges_for_loc): New function.
12417 (get_source_range_for_substring): New function.
12418 (get_num_source_ranges_for_substring): New function.
12419 (class selftest::lexer_test_options): New class.
12420 (struct selftest::lexer_test): New struct.
12421 (class selftest::ebcdic_execution_charset): New class.
12422 (selftest::ebcdic_execution_charset::s_singleton): New variable.
12423 (selftest::lexer_test::lexer_test): New constructor.
12424 (selftest::lexer_test::~lexer_test): New destructor.
12425 (selftest::lexer_test::get_token): New method.
12426 (selftest::assert_char_at_range): New function.
12427 (ASSERT_CHAR_AT_RANGE): New macro.
12428 (selftest::assert_num_substring_ranges): New function.
12429 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12430 (selftest::assert_has_no_substring_ranges): New function.
12431 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12432 (selftest::test_lexer_string_locations_simple): New function.
12433 (selftest::test_lexer_string_locations_ebcdic): New function.
12434 (selftest::test_lexer_string_locations_hex): New function.
12435 (selftest::test_lexer_string_locations_oct): New function.
12436 (selftest::test_lexer_string_locations_letter_escape_1): New function.
12437 (selftest::test_lexer_string_locations_letter_escape_2): New function.
12438 (selftest::test_lexer_string_locations_ucn4): New function.
12439 (selftest::test_lexer_string_locations_ucn8): New function.
12440 (selftest::uint32_from_big_endian): New function.
12441 (selftest::test_lexer_string_locations_wide_string): New function.
12442 (selftest::uint16_from_big_endian): New function.
12443 (selftest::test_lexer_string_locations_string16): New function.
12444 (selftest::test_lexer_string_locations_string32): New function.
12445 (selftest::test_lexer_string_locations_u8): New function.
12446 (selftest::test_lexer_string_locations_utf8_source): New function.
12447 (selftest::test_lexer_string_locations_concatenation_1): New
12449 (selftest::test_lexer_string_locations_concatenation_2): New
12451 (selftest::test_lexer_string_locations_concatenation_3): New
12453 (selftest::test_lexer_string_locations_macro): New function.
12454 (selftest::test_lexer_string_locations_stringified_macro_argument):
12456 (selftest::test_lexer_string_locations_non_string): New function.
12457 (selftest::test_lexer_string_locations_long_line): New function.
12458 (selftest::test_lexer_char_constants): New function.
12459 (selftest::input_c_tests): Call the new test functions once per
12460 case within the line_table test matrix.
12461 * input.h (struct string_concat): New struct.
12462 (struct location_hash): New struct.
12463 (class string_concat_db): New class.
12464 * substring-locations.h: New header.
12466 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12468 PR tree-optimization/72810
12469 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12470 the type of the case labels when truncating.
12472 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12475 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12476 (aarch64_fp16_ptr_type_node): Likewise.
12477 * config/aarch64/aarch64-simd-builtins.c
12478 (aarch64_fp16_ptr_type_node): Define.
12479 (aarch64_init_fp16_types): New, refactored out of...
12480 (aarch64_init_builtins): ...here, update to call
12481 aarch64_init_fp16_types.
12482 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12484 (aapcs_vfp_sub_candidate): Likewise.
12486 2016-08-05 Martin Liska <mliska@suse.cz>
12487 Joshua Cranmer <Pidgeot18@gmail.com>
12489 * gcov.c (line_t::has_block): New function.
12490 (enum loop_type): New enum.
12491 (handle_cycle): New function.
12492 (unblock): Likewise.
12493 (circuit): Likewise.
12494 (get_cycles_count): Likewise.
12495 (accumulate_line_counts): Use new loop detection algorithm.
12497 2016-08-05 Martin Liska <mliska@suse.cz>
12499 * gcov.c (output_intermediate_file): Rename
12500 function_info::line_next to next_file_fn.
12501 (process_file): Likewise.
12502 (read_graph_file): Likewise.
12503 (accumulate_line_counts): Likewise.
12504 (output_lines): Likewise.
12506 2016-08-05 Richard Biener <rguenther@suse.de>
12508 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12509 restriction on threading to a loop header.
12511 2016-08-05 Richard Biener <rguenther@suse.de>
12513 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12514 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12515 adjust loop info accordingly.
12517 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12519 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12520 before folding call to __builtin_constant_p with parameters to false.
12522 2016-08-05 Alan Modra <amodra@gmail.com>
12524 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12525 code accidentally committed 2016-05-02 providing class when given
12528 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12530 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12531 the case label ranges that partially overlap with OP's value
12534 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
12537 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12538 Cast builtin function result to __mmask16 instead of __mmask8.
12539 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12540 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12541 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12543 2016-08-04 David Malcolm <dmalcolm@redhat.com>
12545 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12546 (ASSERT_TRUE_AT): New macro.
12547 (ASSERT_FALSE): Reimplement in terms of...
12548 (ASSERT_FALSE_AT): New macro.
12549 (ASSERT_STREQ_AT): Fix typo in comment.
12551 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12553 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12554 labels are exhaustive, designate the label with the widest
12555 range to be the default label.
12557 2016-08-04 Andrew Pinski <apinski@cavium.com>
12559 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12560 (thunderx_tunings): Use thunderx_vector_cost instead of
12561 generic_vector_cost.
12563 2016-08-04 Martin Liska <mliska@suse.cz>
12565 * gcov.c (main): Fix GNU coding style.
12566 (output_intermediate_file): Likewise.
12567 (process_file): Likewise.
12568 (generate_results): Likewise.
12569 (release_structures): Likewise.
12570 (create_file_names): Likewise.
12571 (find_source): Likewise.
12572 (read_graph_file): Likewise.
12573 (find_exception_blocks): Likewise.
12574 (canonicalize_name): Likewise.
12575 (make_gcov_file_name): Likewise.
12576 (mangle_name): Likewise.
12577 (accumulate_line_counts): Likewise.
12578 (output_branch_count): Likewise.
12579 (read_line): Likewise.
12581 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12583 PR rtl-optimization/71779
12584 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12585 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12586 or if it was truncated.
12588 PR rtl-optimization/70903
12589 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12591 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12593 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12594 accessing SSA_NAME_PTR_INFO.
12596 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12599 * common/config/avr/avr-common.c (avr_option_optimization_table)
12600 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12602 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12605 * config/avr/avr.md: New pattern to work around do_store_flag
12606 generating shift instructions for bit extractions.
12608 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12610 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12612 (add_equivalence): Likewise.
12613 (get_value_range): Allocate value range with vrp_value_range_pool.
12614 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12615 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12617 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
12619 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12620 the default for the rs6000 port.
12622 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12624 PR middle-end/71876
12625 * calls.c (special_function_p): Remove special handling of
12626 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
12627 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
12628 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
12630 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
12632 PR middle-end/72778
12633 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
12634 Don't stop on regular insns.
12636 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12638 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
12639 size to DImode boundary.
12640 (nvptx_propagate): Likewise.
12642 2016-08-03 Alan Modra <amodra@gmail.com>
12644 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
12645 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
12646 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12647 from -mefficient-unaligned-vector. Note that this affects fp too.
12649 2016-08-03 Alan Modra <amodra@gmail.com>
12651 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
12654 2016-08-03 Alan Modra <amodra@gmail.com>
12656 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
12657 to a reg. Localize vars.
12659 2016-08-03 Alan Modra <amodra@gmail.com>
12661 * config/rs6000/rs6000.opt: Remove negatives from help strings
12664 2016-08-03 Alan Modra <amodra@gmail.com>
12666 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
12667 Delete duplicated code.
12669 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12671 PR middle-end/72778
12672 * lra-spills.c (regno_in_use_p): New.
12673 (lra_final_code_change): Use it.
12675 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12677 PR rtl-optimization/69847
12678 * lra-int.h (struct lra-reg): Use restore_rtx instead of
12680 (lra_rtx_hash): New.
12681 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
12683 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
12684 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
12685 * lra-spills.c (lra_final_code_change): Don't delete insn when the
12686 next insn is USE with the same reg as the current insn source.
12687 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
12689 (lra_constraints_init): Call initiate_invariants.
12690 (lra_constraints_finish): Call finish_invariants.
12691 (struct invariant, invariant_t, invariant_ptr_t): New.
12692 (const_invariant_ptr_t, invariants, invariants_pool): New.
12693 (invariant_table, invariant_hash, invariant_eq_p): New.
12694 (insert_invariant, initiate_invariants, finish_invariants): New.
12695 (clear_invariants, invalid_invariant_regs): New.
12696 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
12697 instead of restore_regno.
12698 (invariant_p, process_invariant_for_inheritance): New.
12699 (inherit_in_ebb): Implement invariant inheritance.
12700 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
12701 (remove_inheritance_pseudos): Implement undoing invariant
12703 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
12704 instead of restore_regno.
12705 * lra-assigns.c (regno_live_length): New.
12706 (reload_pseudo_compare_func): Use regno_live_length.
12707 (assign_by_spills): Use restore_rtx instead of restore_regno.
12708 (lra_assign): Ditto. Initiate regno_live_length.
12710 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
12712 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
12713 __builtin_aarch64_fmindf.
12715 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12717 PR tree-optimization/34114
12718 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
12719 information for more control IVs.
12721 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12723 PR tree-optimization/34114
12724 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
12725 PLUS_EXPR case. Handle SSA_NAME case.
12727 2016-08-02 Tamar Christina <tamar.christina@arm.com>
12729 * config/aarch64/aarch64-simd-builtins.def
12730 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
12731 (__builtin_aarch64_fmaxdf): Likewise.
12732 (__builtin_aarch64_smin_nandf): Likewise.
12733 (__builtin_aarch64_smax_nandf): Likewise.
12734 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
12735 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
12736 (<fmaxmin><mode>3): ...this.
12737 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
12738 (vminnm_f64): Likewise.
12739 (vmin_f64): Likewise.
12740 (vmax_f64): Likewise.
12741 * config/aarch64/iterators.md (FMAXMIN): Merge with...
12742 (FMAXMIN_UNS): ...this.
12743 (fmaxmin): Merged with
12744 (fmaxmin_op): ...this...
12745 (maxmin_uns_op): ...in to this.
12747 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12749 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12750 Add support for vec_extract on vector float, vector int, vector
12751 short, and vector char vector types.
12752 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12753 vector float, vector int, vector short, and vector char
12754 optimizations on 64-bit ISA 2.07 systems for both constant and
12755 variable element numbers.
12756 (rs6000_split_vec_extract_var): Likewise.
12757 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
12758 Altivec registers on ISA 2.07 and above.
12759 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
12760 which never was matched due to the split occuring before register
12761 allocation (and the code would not have worked on little endian
12762 systems if it did match). Allow extracts to go to the Altivec
12763 registers if ISA 2.07 (power8). Change from using "" around the
12764 C++ code to using {}'s.
12765 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
12766 vec_extracts when the vector is in memory.
12767 (vsx_extract_v4sf_var): New insn to optimize vector float
12768 vec_extracts when the element number is variable on 64-bit ISA
12770 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
12771 for 64-bit ISA 2.07 as well as ISA 3.0.
12772 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
12773 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
12774 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
12775 optimize vector int, vector short, and vector char vec_extracts
12776 when the vector is in memory.
12777 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
12778 optimize vector int, vector short, and vector char vec_extracts
12779 when the element number is variable.
12781 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12784 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
12785 does not overlap with other symbol flags.
12787 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
12789 * config/aarch64/aarch64.h (aarch64_frame):
12790 Remove padding0 and hardfp_offset. Add locals_offset,
12791 initial_adjust, callee_adjust, callee_offset and final_adjust.
12792 * config/aarch64/aarch64.c (aarch64_layout_frame):
12793 Remove unused padding0 and hardfp_offset initializations.
12794 Choose frame layout and set frame variables accordingly.
12795 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
12796 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
12797 (aarch64_pop_regs): Likewise.
12798 (aarch64_expand_prologue): Remove all decision code, just emit
12799 prolog according to frame variables.
12800 (aarch64_expand_epilogue): Remove all decision code, just emit
12801 epilog according to frame variables.
12802 (aarch64_initial_elimination_offset): Use offset to local/arg area.
12804 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
12807 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
12808 fix_debug_reg_uses after changing source register mode to
12809 V1TImode if source register is undefined.
12811 2015-08-01 Alan Hayward <alan.hayward@arm.com>
12813 PR tree-optimization/71818
12814 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
12815 with non invariant evolutions
12817 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12820 * config/avr/avr.md (length) [branch]: Correct insn length
12821 attribute for forward branches.
12823 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12825 * doc/extend.texi (AVR Built-in Functions): Document
12826 __builtin_avr_nops.
12827 * config/avr/builtins.def (NOPS): New.
12828 * config/avr/avr.c (avr_expand_nops): New static function.
12829 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
12831 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12833 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
12834 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
12837 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
12839 * config/aarch64/aarch64.c (vulcan_tunings): Update
12840 vulcan L1 cache_line_size.
12842 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
12844 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
12845 function that takes a vector memory address, a hard register, an
12846 element number and a temporary base register, and recreates an
12847 address that points to the appropriate element within the vector.
12848 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
12849 (rs6000_split_vec_extract_var): Add support for the target of a
12850 vec_extract with variable element number being a scalar memory
12852 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
12854 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
12855 vsx_extract_<mode>_load insn with a new insn that optimizes
12856 storing either element to a memory location, using scratch
12857 registers to pick apart the vector and reconstruct the address.
12858 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
12859 (vsx_extract_<mode>_store): Rework alternatives to more correctly
12860 support Altivec registers. Add support for ISA 3.0 Altivec d-form
12862 (vsx_extract_<mode>_var): Add support for extracting a variable
12863 element number from memory.
12865 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12867 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
12868 when testing for compares against constants of the form 0xabab.
12870 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12872 PR tree-optimization/57558
12873 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
12875 (vect_loop_versioning): Support versioning with niter assumptions.
12876 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
12877 (vect_get_loop_niters): New parameter. Reimplement to support
12878 assumptions in loop niter info.
12879 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
12880 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
12881 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
12882 Support loop versioning for niters.
12883 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
12884 (vect_free_loop_info_assumptions): New function.
12885 (vectorize_loops): Free loop niter info for loops with flag
12886 LOOP_F_ASSUMPTIONS set if vectorization failed.
12887 * tree-vectorizer.h (struct _loop_vec_info): New field
12888 num_iters_assumptions.
12889 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
12890 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
12891 (LOOP_REQUIRES_VERSIONING): New macro.
12892 (vect_free_loop_info_assumptions): New decl.
12894 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12896 * cfgloop.h (struct loop): New field constraints.
12897 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
12898 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
12900 * cfgloop.c (alloc_loop): Initialize new field.
12901 * cfgloopmanip.c (copy_loop_info): Copy constraints.
12902 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
12903 Adjust niter analysis wrto loop constraints.
12904 * doc/loop.texi (@node Number of iterations): Add description for loop
12907 2016-07-29 Marek Polacek <polacek@redhat.com>
12910 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
12911 (ix86_expand_round_builtin): Likewise.
12913 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12914 Georg-Johann Lay <avr@gjlay.de>
12916 PR rtl-optimization/71976
12917 * combine.c (get_last_value): Return 0 if the argument for which
12918 the function is called has a wider mode than the recorded value.
12920 2016-07-29 Marek Polacek <polacek@redhat.com>
12923 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
12924 (altivec_expand_st_builtin): Likewise.
12926 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12928 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
12929 introduced in r238381.
12931 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
12933 PR middle-end/68217
12934 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
12935 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
12937 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12939 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
12941 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12942 Add support for vec_extract of vector double or vector long having
12943 a variable element number on 64-bit ISA 2.07 systems or newer.
12944 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
12946 (rs6000_split_vec_extract_var): New function to split a
12947 vec_extract built-in function with variable element number.
12948 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
12950 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
12951 (UNSPEC_VSX_EXTRACT): Likewise.
12952 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
12953 direct move instructions to be generated on 64-bit ISA 2.07
12954 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
12956 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
12957 arguments for vec_extract variable element.
12958 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
12959 vec_extract with variable element on V2DFmode and V2DImode
12961 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
12962 -mupper-regs-df requirement, since it isn't needed.
12963 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
12964 do direct moves on 64-bit systems, which allows optimization of
12965 vec_extract on 64-bit ISA 2.07 systems and newer.
12967 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12968 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12970 * config/aarch64/aarch64.md
12971 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
12972 statement and type.
12973 (<optab>qihi2_aarch64): Likewise, and split into two.
12974 (extendqihi2_aarch64): New.
12975 (zero_extendqihi2_aarch64): New.
12976 * config/aarch64/iterators.md (ldrxt): Remove.
12977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
12980 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12982 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
12984 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12986 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
12987 (aarch64_push_reg): New function to push 1 or 2 registers.
12988 (aarch64_pop_reg): New function to pop 1 or 2 registers.
12989 (aarch64_expand_prologue): Use aarch64_push_regs.
12990 (aarch64_expand_epilogue): Use aarch64_pop_regs.
12992 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
12994 PR tree-optimization/71734
12995 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
12996 attribute instead of REF_LOOP and use it.
12997 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
12998 set it for Loops having non-zero safelen attribute.
12999 (ref_indep_loop_p): Pass zero as initial value for safelen.
13001 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
13003 PR middle-end/72657
13005 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
13006 call using chkp_gimple_call_builtin_p.
13007 (chkp_copy_bounds_for_assign): Likewise.
13009 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13011 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
13012 * config/arm/arm-protos.h (struct tune_params): Likewise.
13013 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13014 (cortex_a9_sched_adjust_cost): Likewise.
13015 (fa726te_sched_adjust_cost): Likewise.
13016 (arm_adjust_cost): Likewise.
13017 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
13018 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
13019 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
13020 * config/i386/i386.c (ix86_adjust_cost): Likewise.
13021 * config/ia64/ia64.c: Likewise.
13022 * config/m68k/m68k.c: Likewise.
13023 * config/mep/mep.c (mep_adjust_cost): Likewise.
13024 * config/microblaze/microblaze.c (microblaze_adjust_cost):
13026 * config/mips/mips.c (mips_adjust_cost): Likewise.
13027 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
13029 * config/pa/pa.c (pa_adjust_cost): Likewise.
13030 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
13031 (rs6000_debug_adjust_cost): Likewise.
13032 * config/sh/sh.c (sh_adjust_cost): Likewise.
13033 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
13034 (hypersparc_adjust_cost): Likewise.
13035 (sparc_adjust_cost): Likewise.
13036 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
13037 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
13038 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
13040 * config/visium/visium.c (visium_adjust_cost): Likewise.
13041 * doc/tm.texi: Regenerate.
13042 * haifa-sched.c (dep_cost_1): Adjust.
13043 * target.def: Merge adjust_cost and adjust_cost_2.
13045 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13047 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
13049 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13051 * store-motion.c (struct st_expr): Make pattern_regs a vector.
13052 (extract_mentioned_regs): Append to a vector instead of
13053 returning a rtx_expr_list.
13054 (st_expr_entry): Adjust.
13055 (free_st_expr_entry): Likewise.
13056 (store_ops_ok): Likewise.
13057 (store_killed_in_insn): Likewise.
13058 (find_moveable_store): Likewise.
13060 2016-07-28 Martin Liska <mliska@suse.cz>
13062 PR gcov-profile/68025
13063 * tree-profile.c (tree_profiling): Respect
13064 no_profile_instrument_function attribute.
13065 * doc/extend.texi: Document no_profile_instrument_function
13068 2016-07-28 Martin Liska <mliska@suse.cz>
13070 PR rtl-optimization/70944
13071 * combine.c (make_compound_operation):
13072 Do not allow make_compound_operation for vector mode
13074 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
13076 PR middle-end/71994
13077 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
13078 before calling get_ops.
13080 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13082 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
13083 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
13084 (BITS_PER_UNIT_LOG): Remove.
13085 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
13086 * expr.c (expand_assignment): Likewise.
13087 * stor-layout.c (initialize_sizetypes): Likewise.
13089 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13091 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
13092 signature of rs6000_expand_vector_extract so that the element
13093 number is a RTX instead of a constant integer.
13094 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
13096 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
13097 (altivec_expand_vec_ext_builtin): Likewise.
13098 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
13099 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
13100 MFVSRLD instruction.
13102 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13104 * input.c (get_pure_location): Move here from tree.c.
13105 (make_location): Likewise. Add header comment.
13106 (selftest::test_accessing_ordinary_linemaps): Verify
13107 pure_location_p, make_location, get_location_from_adhoc_loc and
13108 get_range_from_loc.
13109 * input.h (get_pure_location): Move declaration here from tree.h.
13110 (get_finish): Likewise for inline function.
13111 (make_location): Likewise for declaration.
13112 * tree.c (get_pure_location): Move to input.c.
13113 (make_location): Likewise.
13114 * tree.h (get_pure_location): Move declaration to tree.h.
13115 (get_finish): Likewise for inline function.
13116 (make_location): Likewise for declaration.
13118 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13120 PR middle-end/71078
13121 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
13123 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13125 * system.h (STATIC_ASSERT): Use static_assert if building
13126 with C++11 onwards.
13128 2016-07-27 Richard Biener <rguenther@suse.de>
13130 PR tree-optimization/72517
13131 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
13132 Revert change to not compute read-read dependences.
13134 2016-07-27 Richard Biener <rguenther@suse.de>
13136 * predict.c (set_even_probabilities): Make nedges unsigned.
13138 2016-07-27 Martin Liska <mliska@suse.cz>
13140 * predict.c (set_even_probabilities): Handle unlikely edges.
13141 (combine_predictions_for_bb): Likewise.
13143 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13146 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
13147 __float128 support when we don't have hardware support, so that
13148 the IEEE built-in functions like isgreater, first call __unordkf3
13149 to make sure neither operand is a NaN, and if both operands are
13150 ordered, do the normal comparison.
13152 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13154 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
13156 (extract_code_and_val_from_cond_with_ops): Verify that name is
13157 either cond_op0 or cond_op1.
13159 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13161 PR tree-optimization/18046
13162 * genmodes.c (emit_mode_size_inline): Emit an assert that
13163 verifies that mode is a valid array index.
13164 (emit_mode_nuinits_inline): Likewise.
13165 (emit_mode_inner_inline): Likewise.
13166 (emit_mode_unit_size_inline): Likewise.
13167 (emit_mode_unit_precision_inline): Likewise.
13168 * tree-vrp.c: Include params.h.
13169 (find_switch_asserts): Register edge assertions for the default
13170 label which correspond to the anti-ranges of each case label.
13171 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
13172 * doc/invoke.texi: Document it.
13174 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13176 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
13177 and unnecessary call to gimple_bb.
13179 2016-07-26 Richard Biener <rguenther@suse.de>
13181 PR rtl-optimization/71984
13182 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
13185 2016-07-26 Richard Biener <rguenther@suse.de>
13187 PR middle-end/72517
13188 * expmed.c (extract_bit_field_1): Constrain the vector mode
13189 with element size matching the extraction mode size when
13190 choosing a better vector mode to do the extraction from.
13192 2016-07-26 Richard Biener <rguenther@suse.de>
13193 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13195 PR middle-end/70920
13196 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
13199 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13201 * tree-ssa-structalias.c (struct scc_info): Change types of
13202 members to auto_sbitmap and auto_vec.
13203 (scc_info::scc_info): New constructor.
13204 (scc_info::~scc_info): New destructor.
13205 (init_scc_info): Remove.
13206 (free_scc_info): Remove.
13207 (find_indirect_cycles): Adjust.
13208 (perform_var_substitution): Likewise.
13209 (free_var_substitution_info): Likewise.
13211 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13213 * tree-outof-ssa.c (struct elim_graph): Change type of members
13214 to auto_vec and auto_sbitmap.
13215 (elim_graph::elim_graph): New constructor.
13216 (delete_elim_graph): Remove.
13217 (expand_phi_nodes): Adjust.
13219 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13221 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
13222 (new_elim_graph): Adjust.
13223 (clear_elim_graph): Likewise.
13224 (delete_elim_graph): Likewise.
13225 (elim_graph_size): Likewise.
13226 (elim_graph_add_node): Likewise.
13227 (elim_graph_add_edge): Likewise.
13228 (elim_graph_remove_succ_edge): Likewise.
13229 (eliminate_name): Likewise.
13230 (eliminate_build): Likewise.
13231 (elim_forward): Likewise.
13232 (elim_unvisited_predecessor): Likewise.
13233 (elim_backward): Likewise.
13234 (elim_create): Likewise.
13235 (eliminate_phi): Likewise.
13236 (expand_phi_nodes): Likewise.
13238 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13240 * bt-load.c (compute_out): Use auto_sbitmap class.
13241 (link_btr_uses): Likewise.
13242 * cfganal.c (mark_dfs_back_edges): Likewise.
13243 (post_order_compute): Likewise.
13244 (inverted_post_order_compute): Likewise.
13245 (pre_and_rev_post_order_compute_fn): Likewise.
13246 (single_pred_before_succ_order): Likewise.
13247 * cfgexpand.c (pass_expand::execute): Likewise.
13248 * cfgloop.c (verify_loop_structure): Likewise.
13249 * cfgloopmanip.c (fix_bb_placements): Likewise.
13250 (remove_path): Likewise.
13251 (update_dominators_in_loop): Likewise.
13252 * cfgrtl.c (break_superblocks): Likewise.
13253 * ddg.c (check_sccs): Likewise.
13254 (create_ddg_all_sccs): Likewise.
13255 * df-core.c (df_worklist_dataflow): Likewise.
13256 * dse.c (dse_step3): Likewise.
13257 * except.c (eh_region_outermost): Likewise.
13258 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13259 * gcse.c (prune_expressions): Likewise.
13260 (prune_insertions_deletions): Likewise.
13261 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
13262 * graph.c (draw_cfg_nodes_no_loops): Likewise.
13263 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
13264 * lcm.c (compute_earliest): Likewise.
13265 (compute_farthest): Likewise.
13266 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
13267 (unroll_loop_runtime_iterations): Likewise.
13268 (unroll_loop_stupid): Likewise.
13269 * lower-subreg.c (decompose_multiword_subregs): Likewise.
13270 * lra-lives.c: Likewise.
13271 * lra.c (lra): Likewise.
13272 * modulo-sched.c (schedule_reg_moves): Likewise.
13273 (optimize_sc): Likewise.
13274 (get_sched_window): Likewise.
13275 (sms_schedule_by_order): Likewise.
13276 (check_nodes_order): Likewise.
13277 (order_nodes_of_sccs): Likewise.
13278 (order_nodes_in_scc): Likewise.
13279 * recog.c (split_all_insns): Likewise.
13280 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13281 * reload1.c (reload): Likewise.
13282 * sched-rgn.c (haifa_find_rgns): Likewise.
13283 (split_edges): Likewise.
13284 (compute_trg_info): Likewise.
13285 * sel-sched.c (init_seqno): Likewise.
13286 * store-motion.c (remove_reachable_equiv_notes): Likewise.
13287 * tree-into-ssa.c (update_ssa): Likewise.
13288 * tree-ssa-live.c (live_worklist): Likewise.
13289 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
13290 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13292 (try_peel_loop): Likewise.
13293 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
13295 * tree-ssa-pre.c (compute_antic): Likewise.
13296 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13297 * tree-stdarg.c (reachable_at_most_once): Likewise.
13298 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13299 * var-tracking.c (vt_find_locations): Likewise.
13301 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13303 * sbitmap.h (auto_sbitmap): New class.
13305 2016-07-26 Alan Modra <amodra@gmail.com>
13308 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
13311 2016-07-25 David Malcolm <dmalcolm@redhat.com>
13313 * input.c (selftest::temp_source_file::temp_source_file): Fix
13314 missing "%s" in fprintf.
13316 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
13318 PR middle-end/71732
13319 * cselib.c (cselib_process_insn): Invalidate argument slots for
13322 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13324 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13325 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13326 vmulxh_lane_f16, vmulxh_laneq_f16): New.
13328 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13330 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13331 * config/aarch64/aarch64.md (fma, fnma): Support HF.
13332 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13334 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13336 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13337 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13339 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13340 (add<mode>3): Likewise.
13341 (sub<mode>3): Likewise.
13342 (mul<mode>3): Likewise.
13343 (div<mode>3): Likewise.
13344 (*div<mode>3): Likewise.
13345 (<fmaxmin><mode>3): Extend to HF.
13346 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13347 (fabd<mode>3): Likewise.
13348 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13349 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13350 (aarch64_fmulx<mode>): Likewise.
13351 (aarch64_fac<optab><mode>): Likewise.
13352 (aarch64_frecps<mode>): Likewise.
13353 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13354 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13355 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13356 (VSDQ_HSDI): Support HI.
13357 (fcvt_target, FCVT_TARGET): Likewise.
13358 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13359 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13360 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13361 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13362 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13363 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13364 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13365 vrsqrtsh_f16): New.
13367 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13369 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13370 * config/aarch64/aarch64-builtins.c (hi_UP): New.
13371 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13372 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13374 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13375 (aarch64_cm<optab><mode>): Likewise.
13376 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13377 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13378 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13379 (sqrt<mode>2): Likewise.
13380 (*sqrt<mode>2): Likewise.
13381 (abs<mode>2): Likewise.
13382 (<optab><mode>hf2): New pattern for HF mode.
13383 (<optab>hihf2): Likewise.
13384 * config/aarch64/arm_neon.h: Include arm_fp16.h.
13385 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13386 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13388 * config/aarch64/arm_fp16.h: New file.
13389 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13390 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13391 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13392 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13393 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13394 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13395 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13396 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13397 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13398 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13399 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13400 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13403 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13405 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13406 reduc_smin_scal_): Use VDQIF_F16.
13407 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13408 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13410 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13411 * config/aarch64/iterators.md (VDQIF_F16): New.
13412 (vp): Support HF modes.
13413 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13414 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13416 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13418 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13419 "*aarch64_mulx_elt_from_dup<mode>".
13420 (*aarch64_mul3_elt<mode>): Update schedule type.
13421 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13422 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13423 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13424 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13425 (f, fp): Support HF modes.
13426 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13427 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13428 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13429 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13430 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13431 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13433 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13435 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13436 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13438 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13441 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13443 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13444 * config/aarch64/aarch64-simd.md
13445 (aarch64_rsqrts<mode>): Extend to HF modes.
13446 (fabd<mode>3): Likewise.
13447 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13448 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13449 (aarch64_<maxmin_uns>p<mode>): Likewise.
13450 (<su><maxmin><mode>3): Likewise.
13451 (<maxmin_uns><mode>3): Likewise.
13452 (<fmaxmin><mode>3): Likewise.
13453 (aarch64_faddp<mode>): Likewise.
13454 (aarch64_fmulx<mode>): Likewise.
13455 (aarch64_frecps<mode>): Likewise.
13456 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13457 (add<mode>3): Extend to HF modes.
13458 (sub<mode>3): Likewise.
13459 (mul<mode>3): Likewise.
13460 (div<mode>3): Likewise.
13461 (*div<mode>3): Likewise.
13462 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13464 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13465 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13466 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13467 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13468 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13469 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13470 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13471 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13472 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13473 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13474 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13475 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13476 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13477 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13479 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13481 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13482 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13483 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13484 (neg<mode>2): Likewise.
13485 (abs<mode>2): Likewise.
13486 (<frint_pattern><mode>2): Likewise.
13487 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13488 (<optab><VDQF:mode><fcvt_target>2): Likewise.
13489 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13490 (ftrunc<VDQF:mode>2): Likewise.
13491 (<optab><fcvt_target><VDQF:mode>2): Likewise.
13492 (sqrt<mode>2): Likewise.
13493 (*sqrt<mode>2): Likewise.
13494 (aarch64_frecpe<mode>): Likewise.
13495 (aarch64_cm<optab><mode>): Likewise.
13496 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13498 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13499 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13501 * config/aarch64/arm_neon.h (vdup_n_f16): New.
13502 (vdupq_n_f16): Likewise.
13503 (vld1_dup_f16): Use vdup_n_f16.
13504 (vld1q_dup_f16): Use vdupq_n_f16.
13505 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13506 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13507 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13508 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13509 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13510 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13511 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13512 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13513 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13514 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13515 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13516 vsqrt_f16, vsqrtq_f16): New.
13518 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13520 * config/aarch64/aarch64-simd.md
13521 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13522 (aarch64_ext<mode>): Likewise.
13523 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13524 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13525 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13527 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13529 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13530 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13531 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13532 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13533 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13534 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13535 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13537 (vmov_n_f16): Reimplement using vdup_n_f16.
13538 (vmovq_n_f16): Reimplement using vdupq_n_f16..
13540 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13542 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13543 "frame_related_p". Generate CFA annotation when it's necessary.
13544 (aarch64_expand_prologue): Use aarch64_add_constant.
13545 (aarch64_expand_epilogue): Likewise.
13546 (aarch64_output_mi_thunk): Pass "false" when calling
13547 aarch64_add_constant.
13549 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13551 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13554 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13556 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13557 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13558 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13559 (aarch64_build_constant): Delete.
13561 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
13564 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13566 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13567 flag_toplevel_reorder.
13569 2016-07-25 Richard Biener <rguenther@suse.de>
13571 * cgraph.c (cgraph_node::verify_node): Compare against builtin
13572 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13573 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13574 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13575 (streamer_get_builtin_tree): Likewise.
13576 (streamer_write_builtin): Likewise.
13577 * lto-streamer.h (LTO_builtin_decl): Remove.
13578 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13579 (lto_input_scc): Remove LTO_builtin_decl handling.
13580 (lto_input_tree_1): Liekwise.
13581 * lto-streamer-out.c (lto_output_tree_1): Remove special
13582 handling of builtins.
13583 (DFS::DFS): Likewise.
13584 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13585 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13587 (streamer_write_builtin): Remove.
13589 2016-07-25 Martin Liska <mliska@suse.cz>
13591 * lto-cgraph.c (input_symtab): Don't call get_working_sets
13592 if flag_auto_profile is set to true.
13594 2016-07-25 Martin Liska <mliska@suse.cz>
13596 PR gcov-profile/71868
13597 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13598 have a function with multiple latches, count them all.
13600 2016-07-25 Martin Liska <mliska@suse.cz>
13602 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13604 2016-07-25 Martin Liska <mliska@suse.cz>
13606 PR tree-optimization/71987
13607 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13608 just for SSA_NAMEs. Fix GNU coding style.
13610 2016-07-25 Martin Liska <mliska@suse.cz>
13612 PR gcov-profile/64874
13613 * gcov-io.h: Update command about file format.
13614 * gcov-iov.c (main): Adapt the numbering scheme.
13616 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13618 PR middle-end/66726
13619 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13620 whose result is used in PHI.
13621 (final_range_test_p): Likewise.
13622 (maybe_optimize_range_tests): Likewise.
13624 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13626 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13627 Reformat two multi-line strings.
13629 2016-07-22 Martin Sebor <msebor@redhat.com>
13631 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
13633 2016-07-22 Martin Sebor <msebor@redhat.com>
13636 * doc/extend.texi (Compound Literals): Correct and clarify.
13637 (Cast to Union): Same.
13639 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
13641 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13642 comments to explain why certain error messages make mention of
13643 undocumented options.
13644 (rs6000_invalid_builtin): Change error messages to replace mention
13645 of undocumented options with mention of the -mcpu=power9 option
13646 that enables those undocumented options.
13647 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
13648 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
13649 definition of this macro to correct an existing error.
13650 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
13651 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
13652 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
13653 descriptions of built-in functions so that they depend on
13654 -mcpu=power9 instead of on the corresponding undocumented flags.
13655 * doc/invoke.texi (Option Summary): Remove all mention of newly
13656 undocumented flags.
13657 (IBM RS/6000 and PowerPC Options): Likewise.
13658 * doc/md.texi (Constraints for Particuliar Machines): Remove all
13659 mention of newly undocumented flags.
13661 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
13663 * ipa-cp.c (determine_versionability): Do not create constprop clones,
13664 when target_clones attribute is set.
13666 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13668 * common.opt (funsafe-loop-optimizations): Mark ignore.
13669 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
13670 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
13672 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
13673 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
13675 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13677 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13679 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13681 (number_of_iterations_exit): Warn missed loop optimization for
13682 possible infinite loops.
13684 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
13687 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
13688 when to emit a ".machine" pseudo-op.
13690 2016-07-22 Martin Liska <mliska@suse.cz>
13692 PR gcov-profile/69028
13693 PR gcov-profile/62047
13694 * coverage.c (coverage_compute_lineno_checksum): Do not
13695 calculate checksum for fns w/o xloc.file.
13696 (coverage_compute_profile_id): Likewise.
13698 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
13700 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
13701 (avr_secondary_reload): ...and implementation.
13702 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
13703 * config/avr/avr.md (reload_in<mode>): Remove insns.
13704 (adjust_len) [lpm]: Remove insn attribute value.
13705 * config/avr/predicates.md (flash_operand): Remove insn predicate.
13707 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13709 PR middle-end/71876
13710 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
13712 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
13713 * calls.c (special_function_p): Remove the special handling of the
13714 "__builtin_" prefix.
13716 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13718 PR middle-end/71876
13719 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
13720 if STMT may be an alloca call.
13721 (gimple_alloca_call_p, alloca_call_p): Return only true for the
13722 builtin alloca call.
13723 * calls.h (gimple_maybe_alloca_call_p): New function.
13724 * tree-inline.c (inline_forbidden_p_stmt): Use
13725 gimple_maybe_alloca_call_p here.
13727 2016-07-21 David Malcolm <dmalcolm@redhat.com>
13729 * spellcheck-tree.c (best_macro_match::best_macro_match):
13730 Explictly specify the template arguments when invoking the base
13731 class constructor, to help older C++ compilers.
13733 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13736 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
13737 before builtin_decl_implicit.
13739 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13741 * optabs.c (emit_condiitonal_move): Short circuit for identical
13744 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13746 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
13747 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
13748 (noce_conversion_profitable_p): New.
13749 (noce_try_store_flag_constants): Use it.
13750 (noce_try_addcc): Likewise.
13751 (noce_try_store_flag_mask): Likewise.
13752 (noce_try_cmove): Likewise.
13753 (noce_try_cmove_arith): Likewise.
13754 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
13756 (noce_convert_multiple_sets): Move cost model to here, from...
13757 (bb_ok_for_noce_convert_multiple_sets) ...here.
13758 (noce_process_if_block): Update calls for above changes.
13759 (noce_find_if_block): Record new noce_if_info parameters.
13761 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13763 * target.def (max_noce_ifcvt_seq_cost): New.
13764 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
13765 * doc/tm.texi: Regenerate.
13766 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
13767 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
13768 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
13769 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
13770 * doc/invoke.texi: Document new params.
13772 2016-07-21 Richard Biener <rguenther@suse.de>
13774 PR tree-optimization/71947
13775 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
13776 ranges have useful limit_vr information.
13778 2016-07-21 Richard Biener <rguenther@suse.de>
13780 * function-tests.c (build_trivial_generic_function): Set
13781 BLOCK_SUPERCONTEXT of DECL_INITIAL.
13782 * omp-low.c (create_omp_child_function): Likewise.
13783 (grid_expand_target_grid_body): Likewise.
13784 * cgraphunit.c (init_lowered_empty_function): Likewise.
13785 (cgraph_node::expand_thunk): Likewise.
13786 * tree-parloops.c (create_loop_fn): Likewise.
13787 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
13789 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13791 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
13794 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
13796 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
13797 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
13798 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
13799 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
13800 values for insn attribute.
13801 * config/avr/avr.c (avr_out_insert_notbit): New function.
13802 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
13803 ADJUST_LEN_INSV_NOTBIT_0/_7.
13804 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
13806 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13808 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
13809 (chrec_convert_1, chrec_convert): Ditto.
13810 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
13811 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
13812 * tree-vrp.c (adjust_range_with_scev): Ditto.
13813 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
13814 (scev_var_range_cant_overflow): New function.
13815 (scev_probably_wraps_p): New parameter. Call above function.
13816 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
13818 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13820 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13821 by removing computation of may_be_zero.
13823 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13825 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
13827 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
13829 Improving concepts performance and diagnostics.
13830 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
13831 for constraint satisfaction and subsumption.
13832 * timevar.h (auto_timevar): New constructor that matches the push/pop
13833 pattern of usage in pt.c.
13835 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
13837 * hwint.h (HOST_WIDE_INT_0): New define.
13838 (HOST_WIDE_INT_0U): Ditto.
13839 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
13840 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
13841 * simplify-rtx.c: Ditto.
13842 * tree-object-size.c: Ditto.
13844 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13846 * config/s390/s390.c (s390_encode_section_info): Remove mode size
13849 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
13851 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
13852 * combine.c: Use HOST_WIDE_INT_M1U instead of
13853 ~(unsigned HOST_WIDE_INT) 0.
13854 * double-int.h: Ditto.
13856 * dwarf2asm.c:Ditto.
13858 * genmodes.c: Ditto.
13860 * read-rtl.c: Ditto.
13861 * tree-ssa-loop-ivopts.c: Ditto.
13862 * tree-ssa-loop-prefetch.c: Ditto.
13863 * tree-vect-generic.c: Ditto.
13864 * tree-vect-patterns.c: Ditto.
13867 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13869 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
13870 constant addresses outside [0,0xc0] into a register.
13871 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
13872 cases where the base address register is unused after.
13873 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
13874 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
13875 (avr_out_store_psi_reg_disp_tiny): Same.
13877 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13879 Implement attribute progmem on reduced Tiny cores by adding
13880 flash offset 0x4000 to respective symbols.
13883 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
13884 documentation how it works on reduced Tiny cores.
13885 (AVR Named Address Spaces): No support for reduced Tiny.
13886 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
13887 (avr_address_tiny_pm_p): New static function.
13888 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
13889 if the address is in progmem.
13890 (avr_assemble_integer): Same.
13891 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
13892 for symbol_ref in progmem.
13893 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
13894 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
13895 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
13897 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
13899 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
13900 * configure: Regenerate.
13901 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
13902 (USE_THIN_ARCHIVES): New variable.
13903 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
13904 this archive as a thin archive.
13906 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13908 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
13909 same location as last time, don't skip if we have fix-it hints.
13910 Clarify the skipping logic by converting it from one "if" clause
13911 to repeated "if" clauses.
13912 * spellcheck-tree.c: Include "cpplib.h".
13913 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
13914 (best_macro_match::best_macro_match): New constructor.
13915 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
13916 Move here from c/c-decl.c.
13917 (class best_macro_match): Move here from c/c-decl.c, converting
13918 from a typedef to a subclass, gaining a ctor.
13920 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13922 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
13923 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
13925 (avr_addr_space_diagnose_usage): ...and implementation.
13926 (avr_addr_space_supported_p): New function.
13927 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
13928 report bad address space usage if that space is supported.
13929 (avr_insert_attributes): Same. No more complain about unsupported
13931 * config/avr/avr-c.c (tm_p.h): Include it.
13932 (avr_cpu_cpp_builtins): Only define addr-space related built-in
13933 macro if avr_addr_space_supported_p.
13935 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13937 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13938 flag_toplevel_reorder.
13940 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13942 * gcc-rich-location.c
13943 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
13945 * gcc-rich-location.h
13946 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
13948 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13950 * target.def (addr_space): Add new diagnose_usage to hook vector.
13951 * targhooks.c (default_addr_space_diagnose_usage): Add default
13952 implementation and...
13953 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
13954 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
13955 is some address space, call targetm.addr_space.diagnose_usage.
13956 * doc/tm.texi.in (Named Address Spaces): Add anchor for
13957 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
13958 * doc/tm.texi: Regenerate.
13960 2016-07-20 Martin Liska <mliska@suse.cz>
13962 PR middle-end/71898
13963 * graphite-isl-ast-to-gimple.c (later_of_the_two):
13964 Properly handly PHI stmts.
13966 2016-07-20 Bin Cheng <bin.cheng@arm.com>
13968 PR tree-optimization/71503
13969 PR tree-optimization/71683
13970 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
13973 2016-07-20 Martin Liska <mliska@suse.cz>
13975 * doc/invoke.texi (-fipa-ra): Document when the option is
13976 disabled. Fix a typo.
13978 2016-07-20 Martin Liska <mliska@suse.cz>
13980 * Makefile.in: Include fibonacci_heap.c
13981 * fibonacci_heap.c: New file.
13982 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
13983 (fibonacci_heap::union_with): Fix deletion of the second heap.
13984 * selftest-run-tests.c (selftest::run_tests): Incorporate
13985 fibonacci heap tests.
13986 * selftest.h: Declare fibonacci_heap_c_tests.
13988 2016-07-20 Martin Liska <mliska@suse.cz>
13990 * selftest-run-tests.c (selftest::run_tests): New function.
13991 * selftest.h (sreal_c_tests): Declare.
13992 * sreal.c (sreal_verify_basics): New function.
13993 (verify_aritmetics): Likewise.
13994 (sreal_verify_arithmetics): Likewise.
13995 (verify_shifting): Likewise.
13996 (sreal_verify_shifting): Likewise.
13997 (void sreal_c_tests): Likewise.
13999 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14001 PR rtl-optimization/71916
14002 * cfgrtl.c (contains_no_active_insn_p): Return false also for
14003 bb which have a single succ fake edge.
14005 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
14008 * dwarf2out.c (gen_subprogram_die): Only call
14009 gen_unspecified_parameters_die while dumping early dwarf.
14011 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14013 PR middle-end/71874
14014 * gimple-fold.c (fold_builtin_memory_op): Use
14015 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
14017 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
14019 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
14020 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
14021 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
14022 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
14023 * combine.c: Ditto.
14026 * double-int.c: Ditto.
14028 * dwarf2out.c: Ditto.
14031 * fold-const.c: Ditto.
14032 * function.c: Ditto.
14034 * genmodes.c: Ditto.
14038 * loop-doloop.c: Ditto.
14039 * loop-invariant.c: Ditto.
14040 * loop-iv.c: Ditto.
14045 * rtlanal.c: Ditto.
14046 * simplify-rtx.c: Ditto.
14047 * stor-layout.c: Ditto.
14049 * tree-ssa-loop-ivopts.c: Ditto.
14050 * tree-vect-generic.c: Ditto.
14051 * tree-vect-patterns.c: Ditto.
14056 * wide-int-print.cc: Ditto.
14057 * wide-int.cc: Ditto.
14058 * wide-int.h: Ditto.
14060 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14062 * selftest.c (selftest::assert_streq): Handle NULL values of
14063 val_actual and val_expected.
14065 2016-07-19 Martin Jambor <mjambor@suse.cz>
14068 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
14069 rather than cgraph_create_node to get a call graph node.
14071 2016-07-19 Richard Biener <rguenther@suse.de>
14073 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
14074 handle all tcc_constant bases and valueize SSA names.
14075 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
14076 tcc_constant bases.
14078 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14080 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
14081 the flags of the exit block and bb2, not just the entry block.
14083 2016-07-19 Richard Biener <rguenther@suse.de>
14085 PR tree-optimization/71901
14086 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14087 align member, group stuff with the bitfield.
14088 (vn_ref_op_align_unit): New inline.
14089 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
14090 record element alignment and operand 3 unchanged.
14091 (ao_ref_init_from_vn_reference): Adjust.
14092 (valueize_refs_1): Likewise.
14093 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14095 2016-07-19 Richard Biener <rguenther@suse.de>
14097 PR tree-optimization/71908
14098 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
14099 symbolic constants in a more reliable way.
14101 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
14103 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
14105 (vect_update_inits_of_drs): Likewise.
14106 (vect_create_cond_for_alias_checks): Likewise.
14107 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
14109 2016-07-19 Richard Biener <rguenther@suse.de>
14112 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
14113 with an abstract origin that is not an inlined function outer
14114 scope add a self-reference as abstract origin.
14115 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
14117 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14120 * config/rs6000/rs6000.c (rs6000_function_value): Fix
14121 unintentional System V.4 structure return breakage for structures
14122 with a single floating point element.
14124 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14126 PR tree-optimization/71734
14127 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
14128 contains REF, use it to check safelen, assume that safelen value
14129 must be greater 1, fix style.
14130 (ref_indep_loop_p_2): Add REF_LOOP argument.
14131 (ref_indep_loop_p): Pass LOOP as additional argument to
14132 ref_indep_loop_p_2.
14134 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
14136 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
14137 allocation in the prologue.
14138 * explow.c (get_dynamic_stack_base): New function to return an address
14139 expression for the dynamic stack base.
14140 (get_dynamic_stack_size): New function to do the required dynamic stack
14141 space size calculations.
14142 (allocate_dynamic_stack_space): Use new functions.
14143 (align_dynamic_address): Move some code from
14144 allocate_dynamic_stack_space to new function.
14145 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
14147 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14149 * config/s390/s390.c (s390_encode_section_info): Always set
14150 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
14153 2016-07-18 Richard Biener <rguenther@suse.de>
14155 PR tree-optimization/71893
14156 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
14157 for sizetype cast added by array_ref_element_size.
14158 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14160 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
14162 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
14163 register parameters. Remove code to initialize argument pointer
14164 on TARGET_64BIT. Optimize call to _mcount when it can be reached
14165 using a pc-relative branch. Cleanup conditional code.
14166 * config/pa/pa.md (call_mcount): New expander.
14167 (call_mcount_nonpic): New insn.
14168 (call_mcount_pic): New insn and split.
14169 (call_mcount_pic_post_reload): New insn.
14170 (call_mcount_64bit): New insn and split.
14171 (call_mcount_64bit_post_reload): New insn.
14173 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
14175 * config/avr/predicates.md (const_m255_to_m1_operand): New.
14176 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
14177 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
14178 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
14179 (*usum_widenqihi3, *udiff_widenqihi3)
14180 (*addhi3_zero_extend.const): New combiner insns.
14181 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
14182 just 1 bit is affected.
14183 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
14184 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
14186 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
14188 * omp-low.c (lower_omp_target): Mark data clauses with
14189 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
14190 zero-length subarrays.
14192 2016-07-15 Richard Biener <rguenther@suse.de>
14194 PR tree-optimization/71881
14195 * tree-loop-distribution.c (destroy_loop): Remove blocks in
14196 reverse DOM order to make debug temp generation happy.
14198 2016-07-15 Richard Biener <rguenther@suse.de>
14200 PR tree-optimization/71887
14201 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
14202 verify it is not zero for division / modulo handling.
14203 (value_replacement): Adjust.
14205 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
14206 Julian Brown <julian@codesourcery.com>
14208 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
14209 * config/aarch64/aarch64-cost-tables.h
14210 (vulcan_extra_costs): New variable.
14211 * config/aarch64/aarch64.c
14212 (vulcan_addrcost_table): Likewise.
14213 (vulcan_regmove_cost): Likewise.
14214 (vulcan_vector_cost): Likewise.
14215 (vulcan_branch_cost): Likewise.
14216 (vulcan_tunings): Likewise.
14218 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
14220 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
14221 (output_in_order): Loop over undefined variables too. Output them
14222 via assemble_undefined_decl. Skip variables that correspond to hard
14223 registers or have value-exprs.
14224 * varpool.c (symbol_table::output_variables): Handle undefined
14225 variables together with defined ones.
14227 2016-07-15 Richard Biener <rguenther@suse.de>
14229 * tree-ssa-pre.c (get_representative_for): Make sure to return
14230 the value number of SSA names.
14231 (phi_translate_1): get_representative_for cannot return NULL.
14232 (do_pre_regular_insertion): Remove redundant call to
14233 fully_constant_expression.
14234 (do_pre_partial_partial_insertion): Likewise.
14236 2016-07-15 Bin Cheng <bin.cheng@arm.com>
14238 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
14239 (derive_simple_iv_with_niters): New function.
14240 (simple_iv): Rewrite using simple_iv_with_niters.
14241 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
14242 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14244 (number_of_iterations_exit): Rewrite using above function.
14245 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14248 2016-07-15 Richard Biener <rguenther@suse.de>
14250 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
14251 vec_construct cost.
14253 2016-07-14 Jakub Jelinek <jakub@redhat.com>
14255 PR tree-optimization/71872
14256 * tree-data-ref.c (get_references_in_stmt): Ignore references
14257 with is_gimple_constant get_base_address.
14259 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14261 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
14262 (TARGET_HAVE_LDACQD): New macro.
14263 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
14264 than TARGET_HAVE_LDACQ.
14265 (arm_load_acquire_exclusivedi): Likewise.
14266 (arm_store_release_exclusivedi): Likewise.
14268 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14270 PR rtl-optimization/71878
14271 * lra-constraints.c (match_reload): Pass information about other
14272 output operands. Create new unique register value if matching input
14273 operand shares same register value as output operand being considered.
14274 (curr_insn_transform): Record output operands already processed.
14276 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14279 PR tree-optimization/70923
14280 * tree-vect-patterns.c: Include mult-synthesis.h.
14281 (target_supports_mult_synth_alg): New function.
14282 (synth_lshift_by_additions): Likewise.
14283 (apply_binop_and_append_stmt): Likewise.
14284 (vect_synth_mult_by_constant): Likewise.
14285 (target_has_vecop_for_code): Likewise.
14286 (vect_recog_mult_pattern): Use above functions to synthesize vector
14287 multiplication by integer constants.
14289 2016-07-14 Alan Modra <amodra@gmail.com>
14291 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
14292 gpr alternatives. Correct '*' placement on Y,r alternative.
14293 Add '*' on operand 1 of r,r alternative.
14295 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14297 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
14298 * expmed.h: ... Here.
14300 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
14302 * gimple.h (stmt_can_terminate_bb_p): New function.
14303 * tree-cfg.c (need_fake_edge_p): Rename to ...
14304 (stmt_can_terminate_bb_p): ... this; return true if stmt can
14305 throw external; handle const and pure calls.
14306 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
14308 2016-07-14 Richard Biener <rguenther@suse.de>
14310 PR tree-optimization/71866
14311 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
14312 (do_hoist_insertion): Avoid endless recursion when we
14313 didn't insert anything because we managed to simplify
14314 things down to a constant or SSA name.
14315 (fully_constant_expression): Re-write in terms of ...
14316 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
14317 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14318 vn_nary_build_or_lookup_1.
14319 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14320 (vn_nary_build_or_lookup): ... this which now wraps it.
14322 2016-07-14 Alan Modra <amodra@gmail.com>
14325 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14326 with p9_vector override before power9-dform override.
14328 2016-07-13 Andi Kleen <ak@linux.intel.com>
14330 * value-prof.c (gimple_value_profile_transformations): Don't run
14331 when auto_profile is on.
14333 2016-07-13 Andi Kleen <ak@linux.intel.com>
14335 * auto-profile.c (update_inlined_ind_target,
14336 afdo_indirect_call): Print information to dump file.
14338 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
14340 * genrecog.c (special_predicate_operand_p): New function.
14341 (predicate_name): Move function.
14342 (validate_pattern): Don't warn about missing mode for all
14343 define_special_predicate predicates.
14345 2016-07-13 Bin Cheng <bin.cheng@arm.com>
14347 * tree-vect-data-refs.c (vect_no_alias_p): New function.
14348 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14349 resolve alias checks which are known at compilation time.
14350 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14351 alias checks are resolved. Move dump info for too many runtime
14352 alias checks to here...
14353 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14355 2016-07-13 Richard Biener <rguenther@suse.de>
14357 PR tree-optimization/24574
14358 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14359 position and add shift, rotate, divison and modulo support
14361 (value_replacement): Pass in argument position to absorbing_element_p.
14363 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
14366 * ipa-inline-transform.c (inline_call): Support
14367 instrumented thunks.
14369 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14371 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14372 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14374 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14375 Baseline. Make initial alternative TARGET_32BIT only.
14376 (udivsi3): Likewise.
14377 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14378 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14381 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14383 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14384 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14385 availability with TARGET_HAVE_MOVT.
14386 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14387 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14388 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14390 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14391 extra instruction if MOVW is available. Use a cost variable
14392 incremented by COSTS_N_INSNS (1) when the condition match rather than
14393 returning an arithmetic expression based on COSTS_N_INSNS. Make
14394 constant with bottom half word zero cost 2 instruction if MOVW is
14396 * config/arm/arm.md (define_attr "arch"): Add v8mb.
14397 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14398 target is ARMv8-M Baseline.
14399 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14400 (arm_movtas_ze): Likewise.
14401 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14402 alternative for constants satisfying j constraint.
14403 (thumb1_movsi_insn): Likewise.
14404 (movsi splitter for K alternative): Tighten condition to not trigger
14405 if movt is available and j constraint is satisfied.
14406 (Pe immediate splitter): Likewise.
14407 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14408 constant fitting in an halfword to use MOVW.
14409 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14412 2016-07-13 Richard Biener <rguenther@suse.de>
14414 PR middle-end/71104
14415 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14416 gimplifying the LHS. Make sure to gimplify a returning twice
14417 call LHS without using SSA names.
14419 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14421 * tree-data-ref.c (find_data_references_in_stmt): Remove
14422 unnecessary call to vec::release.
14423 (graphite_find_data_references_in_stmt): Likewise.
14424 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14425 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14427 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14429 * cfgexpand.c (expand_used_vars): Make the type of a local
14431 * genmatch.c (lower_for): Likewise.
14432 * haifa-sched.c (haifa_sched_init): Likewise.
14433 (add_to_speculative_block): Likewise.
14434 (create_check_block_twin): Likewise.
14435 * predict.c (handle_missing_profiles): Likewise.
14436 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14437 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14438 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14440 (maybe_lower_iteration_bound): Likewise.
14441 * tree-ssa-sccvn.c (DFS): Likewise.
14442 * tree-stdarg.c (reachable_at_most_once): Likewise.
14443 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14444 (vectorizable_store): Likewise.
14446 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14448 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14449 (sccvn_dom_walker): make cond_stack an auto_vec.
14451 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14453 * ree.c (struct ext_state): Make type of members auto_vec.
14454 (find_and_remove_re): Adjust.
14456 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14458 * cfgexpand.c (struct stack_vars_data): Make type of fields
14460 (expand_used_vars): Adjust.
14462 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14464 * ipa.c (record_cdtor_fn): Adjust.
14465 (build_cdtor_fns): Likewise.
14466 (ipa_cdtor_merge): Make static_ctors and static_dtors local
14469 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14471 * genextract.c (struct accum_extract): Add constructor and make
14473 (gen_insn): Adjust.
14475 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14477 * tree.c (struct free_lang_data_d): Add constructor and change
14478 types of members to ones that automatically manage resources.
14479 (fld_worklist_push): Adjust.
14480 (find_decls_types): Likewise.
14481 (find_decls_types_in_eh_region): Likewise.
14482 (free_lang_data_in_cgraph): Stop manually creating and
14483 destroying members of free_lang_data_d.
14485 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
14487 PR rtl-optimization/68961
14488 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14489 peephole variant. Use sse_reg_operand predicates.
14491 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
14493 * config/i386/predicates.md (x86_64_immediate_operand)
14494 <case CONST_INT>: Remove unneeded truncation to DImode.
14495 <case CONST>: Ditto.
14496 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14498 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14501 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14502 The xxperm and xxpermr instructions require that the 2nd input
14503 operand overlap with the output operand, and not the 1st.
14504 (altivec_vperm_v8hiv16qi): Likewise.
14505 (altivec_vperm_<mode>_uns_internal): Likewise.
14506 (altivec_vpermr_<mode>_internal): Likewise.
14507 (vperm_v8hiv4si): Likewise.
14508 (vperm_v16qiv8hi): Likewise.
14510 2016-07-12 Nathan Sidwell <nathan@acm.org>
14512 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14513 when -mno-pic-data-is-text-relative is in effect, by default.
14514 * doc/invoke.texi (mpic-data-is-text-relative): Document new
14515 behavior and clarify.
14517 2016-07-12 Martin Liska <mliska@suse.cz>
14519 * params.def: Add avg-loop niter.
14520 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14521 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14522 * doc/invoke.texi: Document the new parameter.
14524 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14526 PR middle-end/71700
14527 * expr.c (store_constructor): Mask sign-extended bits when widening
14528 sub-word constructor element at the start of a word.
14530 2016-07-12 Martin Liska <mliska@suse.cz>
14532 * Makefile.in: Append rule for params-options.h.
14533 * params-options.h: New file.
14535 2016-07-12 Martin Liska <mliska@suse.cz>
14537 * ira-build.c (mark_loops_for_removal): Properly iterate
14540 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
14541 Richard Biener <rguenther@suse.de>
14543 PR tree-optimization/23286
14544 PR tree-optimization/70159
14545 * doc/invoke.texi: Document -fcode-hoisting.
14546 * common.opt (fcode-hoisting): New flag.
14547 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14548 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14549 (do_regular_insertion): Rename to ...
14550 (do_pre_regular_insertion): ... this and amend general comments
14551 on insertion strathegy.
14552 (do_partial_partial_insertion): Rename to ...
14553 (do_pre_partial_partial_insertion): ... this.
14554 (do_hoist_insertion): New function.
14555 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14556 and call do_hoist_insertion properly.
14558 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14559 (pass_pre::execute): Register hoist_insert stats.
14561 2016-07-12 Jakub Jelinek <jakub@redhat.com>
14563 PR middle-end/71716
14564 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14565 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14566 is different from mode's bitsize. Small cleanup.
14568 2016-07-12 Richard Biener <rguenther@suse.de>
14570 PR rtl-optimization/68961
14571 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14572 to simplify to a non-constant.
14574 2016-07-11 Jakub Jelinek <jakub@redhat.com>
14576 PR middle-end/71758
14577 * omp-low.c (expand_omp_target): Gimplify device.
14579 PR tree-optimization/71823
14580 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14581 to get vec_oprnds2 from op2.
14583 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
14585 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14586 Hoist common subexpressions.
14587 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14589 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
14592 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14593 prevent generation of 'stxsiwx' on pre Power8 hardware.
14595 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14597 * input.c: Include cpplib.h.
14598 (selftest::temp_source_file): New class.
14599 (selftest::temp_source_file::temp_source_file): New ctor.
14600 (selftest::temp_source_file::~temp_source_file): New dtor.
14601 (selftest::should_have_column_data_p): New function.
14602 (selftest::test_should_have_column_data_p): New function.
14603 (selftest::temp_line_table): New class.
14604 (selftest::temp_line_table::temp_line_table): New ctor.
14605 (selftest::temp_line_table::~temp_line_table): New dtor.
14606 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14607 it to create a temp_line_table.
14608 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14609 locations that are known to have column data.
14610 (selftest::line_table_case): New struct.
14611 (selftest::test_reading_source_line): Move tempfile handling
14612 to class temp_source_file.
14613 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14614 (selftest::assert_token_loc_eq): New function.
14615 (ASSERT_TOKEN_LOC_EQ): New macro.
14616 (selftest::test_lexer): New function.
14617 (selftest::boundary_locations): New array.
14618 (selftest::input_c_tests): Call test_should_have_column_data_p.
14619 Loop over a test matrix of interesting values of location and
14620 default_range_bits, calling test_lexer on each case in the matrix.
14621 Move call to test_accessing_ordinary_linemaps into the matrix.
14622 * selftest.h (ASSERT_EQ): Reimplement in terms of...
14623 (ASSERT_EQ_AT): New macro.
14625 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
14628 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14629 Don't convert TImode in debug insn.
14631 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14633 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
14634 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
14635 (tree_type_common::lang_flag_7): New.
14636 (tree_type_common::spare): Reduce size.
14637 * tree.h (TYPE_ALIGN_OK): Remove.
14638 (TYPE_LANG_FLAG_7): New.
14639 (get_inner_reference): Adjust header.
14640 * print-tree.c (print_node): Adjust.
14641 * expr.c (get_inner_reference): Remove parameter keep_aligning.
14642 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
14643 calls to get_inner_reference.
14644 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
14645 handling of TYPE_ALIGN_OK.
14646 * builtins.c (get_object_alignment_2): Adjust call to
14647 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
14648 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
14650 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
14651 * cfgexpand.c (expand_debug_expr): Likewise.
14652 * dbxout.c (dbxout_expand_expr): Likewise.
14653 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
14654 loc_list_from_tree, fortran_common): Likewise.
14655 * fold-const.c (optimize_bit_field_compare,
14656 decode_field_reference, fold_unary_loc, fold_comparison,
14657 split_address_to_core_and_offset): Likewise.
14658 * gimple-laddress.c (execute): Likewise.
14659 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
14660 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
14661 * hsa-gen.c (gen_hsa_addr): Likewise.
14662 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
14663 * tsan.c (instrument_expr): Likewise.
14664 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
14665 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
14666 * tree-affine.c (tree_to_aff_combination,
14667 get_inner_reference_aff): Adjust calls to get_inner_reference.
14668 * tree-data-ref.c (split_constant_offset_1,
14669 dr_analyze_innermost): Likewise.
14670 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
14671 * tree-sra.c (ipa_sra_check_caller): Likewise.
14672 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
14673 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
14674 bswap_replace): Likewise.
14675 * tree-vect-data-refs.c (vect_check_gather,
14676 vect_analyze_data_refs): Likewise.
14677 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
14678 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
14681 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14683 * Makefile.in (selftest-valgrind): New phony target.
14684 * function-tests.c (selftest::build_cfg): Delete pass instances
14685 created by the test.
14686 (selftest::convert_to_ssa): Likewise.
14687 (selftest::test_expansion_to_rtl): Likewise.
14688 * tree-cfg.c (selftest::test_linear_chain): Release dominator
14690 (selftest::test_diamond): Likewise.
14692 2016-07-11 Richard Biener <rguenther@suse.de>
14694 PR tree-optimization/71816
14695 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
14696 than replacing all of its operands.
14698 2016-07-11 Alan Modra <amodra@gmail.com>
14700 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
14701 (ctr<mode>): Add unspec.
14702 (ctr<mode>_internal*): Likewise.
14704 2016-07-08 James Bowman <james.bowman@ftdichip.com>
14706 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
14707 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
14709 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
14711 PR rtl-optimization/71621
14712 * lra-constraints.c (process_alt_operands): Check combination of
14713 reg class and mode.
14715 2016-07-08 Jason Merrill <jason@redhat.com>
14716 Richard Biener <rguenther@suse.de>
14718 P0145: Refining Expression Order for C++.
14719 * gimplify.c (initial_rhs_predicate_for): New.
14720 (gimplfy_modify_expr): Gimplify RHS before LHS.
14722 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14725 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14726 Allow standard error handling to take over when a wrong number
14727 of arguments is presented to __builtin_vec_ld () or
14728 __builtin_vec_st ().
14730 2016-07-08 Jiong Wang <jiong.wang@arm.com>
14732 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
14737 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
14738 __builtin_aarch64_fmaxv2sf.
14739 (vmaxnmq_f32): Likewise.
14740 (vmaxnmq_f64): Likewise.
14741 (vminnm_f32): Likewise.
14742 (vminnmq_f32): Likewise.
14743 (vminnmq_f64): Likewise.
14745 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14748 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
14749 enable -mfloat128-hardware by default.
14750 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
14751 that IEEE 128-bit hardware support needs.
14752 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14753 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
14754 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
14755 floating point requires.
14756 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14757 -mfloat128 and -mfloat128-hardware changes.
14759 2016-07-08 Alan Hayward <alan.hayward@arm.com>
14761 PR tree-optimization/71667
14762 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
14764 2016-07-08 Martin Liska <mliska@suse.cz>
14766 PR middle-end/71606
14767 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
14768 folding produces SAVE_EXPRs, thus return false for the type.
14770 2016-07-07 Martin Liska <mliska@suse.cz>
14772 * file-find.c (remove_prefix): New function.
14773 * file-find.h (remove_prefix): Declare the function.
14774 * gcc-ar.c (main): Skip a folder of the wrapper if
14775 a wrapped binary would point to the same file.
14777 2016-07-07 Jan Hubicka <jh@suse.cz>
14779 * tree-scalar-evolution.c (iv_can_overflow_p): export.
14780 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
14781 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
14783 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
14786 * ipa-inline-analysis.c (compute_inline_parameters): Set
14787 local.can_change_signature to false for intrumentation
14790 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14792 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
14793 with TARGET_HAVE_MOVT.
14794 (TARGET_HAVE_MOVT): Define.
14795 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
14796 availability with TARGET_HAVE_MOVT.
14797 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
14799 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
14801 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
14802 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
14803 * config/arm/constraints.md (define_constraint "j"): Use
14804 TARGET_HAVE_MOVT to check MOVT availability.
14806 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14808 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
14810 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14812 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
14813 (armv8-m.main): Likewise.
14814 (armv8-m.main+dsp): Likewise.
14815 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
14816 (FL_FOR_ARCH8M_MAIN): Likewise.
14817 * config/arm/arm-tables.opt: Regenerate.
14818 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
14819 armv8-m.main+dsp to BE8_LINK_SPEC.
14820 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
14821 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
14822 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
14823 Baseline and Mainline.
14824 (arm_option_override_internal): Also disable arm_restrict_it when
14825 !arm_arch_notm. Update comment for -munaligned-access to also cover
14827 (arm_file_start): Increase buffer size for printing architecture name.
14828 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
14829 and armv8-m.main+dsp.
14830 (mno-unaligned-access): Clarify that this is disabled by default for
14831 ARMv8-M Baseline architectures as well.
14833 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14835 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
14836 decide whether to prevent some libgcc routines being included for some
14837 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
14838 link between this condition and the one in
14839 libgcc/config/arm/lib1func.S.
14841 2016-07-07 Richard Biener <rguenther@suse.de>
14843 * tree-ssa-pre.c: Include alias.h.
14844 (compute_avail): If we have multiple VN_REFERENCEs with the
14845 same hashtable entry adjust that to make it a valid replacement
14846 for all of them with respect to alignment and aliasing
14847 when doing insertion.
14848 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
14849 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
14851 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
14855 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
14856 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
14859 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14861 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
14862 (adjust_mems): Adjust.
14863 (adjust_insn): Likewise.
14864 (prepare_call_arguments): Likewise.
14866 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14868 * gcse.c (struct ls_expr): Make stores field a vector.
14869 (ldst_entry): Adjust.
14870 (free_ldst_entry): Likewise.
14871 (print_ldst_list): Likewise.
14872 (compute_ld_motion_mems): Likewise.
14873 (update_ld_motion_stores): Likewise.
14875 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14877 * gcse.c (struct ls_expr): Remove loads field.
14878 (ldst_entry): Adjust.
14879 (free_ldst_entry): Likewise.
14880 (print_ldst_list): Likewise.
14881 (compute_ld_motion_mems): Likewise.
14883 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14885 * store-motion.c (struct st_expr): Make antic_stores a vector.
14886 (st_expr_entry): Adjust.
14887 (free_st_expr_entry): Likewise.
14888 (print_store_motion_mems): Likewise.
14889 (find_moveable_store): Likewise.
14890 (compute_store_table): Likewise.
14891 (remove_reachable_equiv_notes): Likewise.
14892 (replace_store_insn): Likewise.
14893 (build_store_vectors): Likewise.
14895 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14897 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
14898 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
14900 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
14902 PR tree-optimization/71518
14903 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
14904 misalign also for outer loops with negative step.
14906 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
14908 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
14909 (cortex_a53_shift): Add mov_shift.
14910 (cortex_a53_shift_reg): Add new reservation for register shifts.
14911 (cortex_a53_alu): Remove bfm.
14912 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
14913 (cortex_a53_alu_extr): Add new reservation for EXTR.
14914 (bypasses): Improve bypass modelling.
14916 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14919 * config/avr/avr.c (avr_asm_select_section): Strip off
14920 SECTION_DECLARED from flags when calling get_section.
14922 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14924 * tree-vectorizer.h (vect_memory_access_type): Add
14925 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
14926 * tree-vect-stmts.c (compare_step_with_zero): New function.
14927 (perm_mask_for_reverse): Move further up file.
14928 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
14930 (get_negative_load_store_type): New function.
14931 (get_load_store_type): Call it. Add an ncopies argument.
14932 (vectorizable_mask_load_store): Update call accordingly and
14933 remove tests for negative steps.
14934 (vectorizable_store, vectorizable_load): Likewise. Handle new
14935 memory_access_types.
14937 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14939 * tree-vectorizer.h (vect_memory_access_type): New enum.
14940 (_stmt_vec_info): Add a memory_access_type field.
14941 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
14942 (vect_model_store_cost): Take an access type instead of a boolean.
14943 (vect_model_load_cost): Likewise.
14944 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
14945 vect_model_store_cost and vect_model_load_cost.
14946 * tree-vect-stmts.c (vec_load_store_type): New enum.
14947 (vect_model_store_cost): Take an access type instead of a
14948 store_lanes_p boolean. Simplify tests.
14949 (vect_model_load_cost): Likewise, but for load_lanes_p.
14950 (get_group_load_store_type, get_load_store_type): New functions.
14951 (vectorizable_store): Use get_load_store_type. Record the access
14952 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
14953 (vectorizable_load): Likewise.
14954 (vectorizable_mask_load_store): Likewise. Replace is_store
14955 variable with vls_type.
14957 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14959 * tree-vectorizer.h (vect_grouped_load_supported): Add a
14960 single_element_p parameter.
14961 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14962 Check the PR65518 case here rather than in vectorizable_load.
14963 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
14964 * tree-vect-stmts.c (vectorizable_load): Likewise.
14966 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14968 * tree-vectorizer.h (gather_scatter_info): New structure.
14969 (vect_check_gather_scatter): Return a bool rather than a decl.
14970 Replace return-by-pointer arguments with a single
14971 gather_scatter_info *.
14972 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
14973 (vect_analyze_data_refs): Update call accordingly.
14974 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14975 (vectorizable_mask_load_store): Likewise. Also record the
14976 offset dt and vectype in the gather_scatter_info.
14977 (vectorizable_store): Likewise.
14978 (vectorizable_load): Likewise.
14980 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14982 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
14983 strided groups, use the cost of N scalar accesses instead
14984 of ncopies vector accesses.
14985 (vect_model_load_cost): Likewise.
14987 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14989 * tree-vect-stmts.c (vect_cost_group_size): Delete.
14990 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
14991 variable to indicate when once-per-group costs are being used.
14992 (vect_model_load_cost): Likewise. Fix comment and misindented code.
14994 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14996 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
14997 peeling-for-gaps condition.
14999 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15001 * config/s390/s390.c (s390_expand_vec_init): Force initializer
15002 element to register if it doesn't match general_operand.
15004 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
15005 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15007 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
15009 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
15010 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
15011 (SIGNBIT): New mode iterator.
15012 (Fsignbit): New mode attribute.
15013 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
15014 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
15015 when direct moves are available.
15016 (signbit<mode>2_dm): New define_insn_and_split).
15017 (signbit<mode>2_dm2): New define_insn.
15019 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15021 PR rtl-optimization/71594
15022 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
15023 into subregs of appropriate mode before trying to emit a conditional
15026 2016-07-05 Jan Hubicka <jh@suse.cz>
15028 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
15029 (simple_iv): Use it.
15031 2016-07-05 Jan Hubicka <jh@suse.cz>
15033 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
15035 2016-07-05 Jiong Wang <jiong.wang@arm.com>
15037 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
15040 2016-07-05 Jan Hubicka <jh@suse.cz>
15042 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
15045 2016-07-05 Richard Biener <rguenther@suse.de>
15047 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
15048 Handle empty else block.
15049 (is_feasible_trace): Likewise.
15050 (split_paths): Likewise.
15052 2016-07-05 Richard Biener <rguenther@suse.de>
15054 * tree-loop-distribution.c (distribute_loop): Fix issue with
15055 the cost model loop.
15057 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
15059 * config/arm/neon-testgen.ml: Delete.
15060 * config/arm/neon.ml: Delete.
15062 2016-07-04 Jakub Jelinek <jakub@redhat.com>
15065 * tree.c (attribute_value_equal): Use get_attribute_name instead of
15066 directly using TREE_PURPOSE.
15068 2016-07-04 Jiong Wang <jiong.wang@arm.com>
15070 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
15071 * config/aarch64/aarch64_neon.h: Likewise.
15072 * config/aarch64/arm_neon.h: Likewise.
15073 * config/aarch64/atomics.md: Likewise.
15074 * config/aarch64/aarch64-simd-builtins.def: Likewise.
15075 * doc/invoke.texi: Likewise.
15077 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15079 * config/s390/s390.md: Add "z13" cpu_facility.
15080 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
15081 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
15082 condition" type instructions.
15084 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15085 Jeff Law <law@redhat.com>
15087 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
15088 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
15090 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
15092 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
15093 permutation for TARGET_AVX512F.
15094 (ix86_expand_vec_one_operand_perm_avx512): New function.
15095 (expand_vec_perm_1): Invoke introduced function.
15096 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15097 it may be not valid after vectorization.
15099 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15102 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
15103 typo in comment. Only force to memory if it is a weak
15104 external reference.
15106 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
15107 Jiong Wang <jiong.wang@arm.com>
15109 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
15110 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
15111 (AARCH64_FL_F16): New.
15112 (AARCH64_FL_FOR_ARCH8_2): New.
15113 (AARCH64_ISA_8_2): New.
15114 (AARCH64_ISA_F16): New.
15115 (TARGET_FP_F16INST): New.
15116 (TARGET_SIMD_F16INST): New.
15117 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
15118 ("fp"): Disabling "fp" also disables "fp16".
15119 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
15120 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
15121 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
15122 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
15124 2016-07-04 Jan Beulich <jbeulich@suse.com>
15126 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
15128 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15131 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
15132 the insns, use an insn form that does not adjust the offset on
15133 little endian systems.
15135 2016-07-01 Jan Beulich <jbeulich@suse.com>
15137 * varasm.c (get_variable_section): Validate initializer in
15138 named .bss-like sections.
15140 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15142 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
15143 Exchange the order of the second and third operands in the vpermr
15144 instruction tmeplate.
15146 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
15149 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
15150 Disallow TDmode values.
15152 2016-07-01 Alan Modra <amodra@gmail.com>
15154 PR rtl-optimization/71709
15155 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
15156 being set, not referenced.
15158 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15160 PR tree-optimization/70729
15161 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
15162 of loop since it can be not valid after transformation.
15164 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15166 * config/arm/arm.c (thumb_reload_in_hi): Delete.
15167 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
15169 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
15171 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
15174 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15177 * config/rs6000/constraints.md (wY constraint): New constraint to
15178 match the requirements for the LXSD and STXSD instructions.
15179 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
15180 predicate to match the requirements for the LXSD and STXSD
15182 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
15183 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
15184 to make sure that the bottom 2 bits of offset are 0, the address
15185 form is offsettable, and no updating is done in the address mode.
15186 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
15187 (movdi_internal32): Likewise
15188 (movdi_internal64): Likewise.
15190 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15192 PR tree-optimization/71707
15193 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
15194 strinfo even for ADDR_EXPR ptr.
15196 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15198 * config/rs6000/altivec.md (darn_32): Change the condition to
15199 TARGET_P9_MISC instead of TARGET_MODULO.
15200 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
15201 condition expression.
15202 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
15203 condition expression.
15204 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
15205 (DFP_TEST): New code iterator.
15206 (dfptstsfi_<code>_mode>): New define_expand.
15207 (*dfp_sgnfcnc_<mode>): New define_insn.
15208 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
15209 definition next to BU_P9_MISC_1 definition and change the MASK
15210 value to RS6000_BTM_P9_MISC.
15211 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
15212 (BU_P9_64BIT_MISC_0): Likewise.
15213 (BU_P9_DFP_MISC_0): New macro definition.
15214 (BU_P9_DFP_MISC_1): New macro definition.
15215 (BU_P9_DFP_MISC_2): New macro definition.
15216 (BU_P9_DFP_OVERLOAD_1): New macro definition.
15217 (BU_P9_DFP_OVERLOAD_2): New macro definition.
15218 (BU_P9_DFP_OVERLOAD_3): New macro definition.
15219 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
15220 (TSTSFI_LT_TD): Likewise.
15221 (TSTSFI_EQ_DD): Likewise.
15222 (TSTSFI_EQ_TD): Likewise.
15223 (TSTSFI_GT_DD): Likewise.
15224 (TSTSFI_GT_TD): Likewise.
15225 (TSTSFI_OV_DD): Likewise.
15226 (TSTSFI_OV_TD): Likewise.
15227 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
15228 (TSTSFI_LT_DD): Likewise.
15229 (TSTSFI_LT_TD): Likewise.
15230 (TSTSFI_EQ): Likewise.
15231 (TSTSFI_EQ_DD): Likewise.
15232 (TSTSFI_EQ_TD): Likewise.
15233 (TSTSFI_GT): Likewise.
15234 (TSTSFI_GT_DD): Likewise.
15235 (TSTSFI_GT_TD): Likewise.
15236 (TSTSFI_OV): Likewise.
15237 (TSTSFI_OV_DD): Likewise.
15238 (TSTSFI_OV_TD): Likewise.
15239 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15240 overloaded test significance functions.
15241 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15242 OPTION_MASK_P9_MISC into the representation of this mask.
15243 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
15245 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
15246 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
15248 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
15249 argument is a 6-bit unsigned literal value if the icode argument
15250 represents a DFP test significance built-in call.
15251 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
15252 flag used independently and in combination with the
15253 RS6000_BTM_64BIT flag.
15254 (rs6000_opt_masks): Add entry for power9-misc command-line option.
15255 (rs6000_builtin_mask_names): Add entry for power9-misc
15256 command-line option.
15257 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
15258 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
15259 RS6000_BTM_P9_MISC macros.
15260 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
15261 option and change the description of the -mpower9-vector option to
15262 enable only vector instructions, removing its erroneously claimed
15263 support for scalar instructions.
15264 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15265 the ISA 3.0 digital floating point test significance built-in
15268 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
15270 * config/aarch64/aarch64.c (cortexa35_tunings):
15271 Enable AES fusion. Use cortexa57_branch_cost.
15272 (cortexa53_tunings): Use cortexa57_branch_cost.
15273 (cortexa72_tunings): Use cortexa57_branch_cost.
15274 Use AUTOPREFETCHER_WEAK.
15275 (cortexa73_tunings): Use cortexa57_branch_cost.
15277 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15278 James Greenhalgh <james.greenhalgh@arm.com>
15280 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
15281 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
15282 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
15283 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
15284 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
15285 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
15286 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
15287 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
15288 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
15289 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
15290 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
15291 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
15292 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
15295 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
15296 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15298 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
15300 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
15302 2016-06-30 David Malcolm <dmalcolm@redhat.com>
15305 * gcc.c (driver::build_option_suggestions): Pass "option" to
15306 add_misspelling_candidates.
15307 * opts-common.c (add_misspelling_candidates): Add "option" param;
15308 use it to avoid adding negated forms for options marked with
15310 * opts.h (add_misspelling_candidates): Add "option" param.
15312 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15314 PR middle-end/71693
15315 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15316 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15317 first when permuting bitwise operation with rotate. Cast
15318 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15320 2016-06-29 David Malcolm <dmalcolm@redhat.com>
15322 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15323 for misspelled param names.
15324 * params.c: Include spellcheck.h.
15325 (find_param_fuzzy): New function.
15326 * params.h (find_param_fuzzy): New prototype.
15327 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15328 * spellcheck.h (struct edit_distance_traits<const char *>):
15331 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
15333 * config/rs6000/predicates.md (const_0_to_7_operand): New
15334 predicate, recognize 0..7.
15335 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15336 support for doing extracts from V16QImode, V8HImode, V4SImode
15338 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15339 vector extract support.
15340 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15341 for ISA 3.0 vector extract.
15342 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15343 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15344 extracts of a constant element number from small integer vectors
15345 on 64-bit ISA 3.0 systems.
15346 (vsx_extract_<mode>_di): Likewise.
15347 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15348 say when we can do ISA 3.0 vector extracts.
15349 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15350 registers, using the stxsiwx instruction.
15352 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
15354 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15355 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15356 qdf24xx_regmove_cost, qdf24xx_tunings): New.
15357 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15358 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15359 * config/arm/arm.c (arm_qdf24xx_tune): New.
15361 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
15363 * config/aarch64/aarch64.c (cortexa53_tunings):
15364 Increase loop alignment to 8. Set function alignment to 16.
15365 (cortexa35_tunings): Likewise.
15366 (cortexa57_tunings): Increase loop alignment to 8.
15367 (cortexa72_tunings): Likewise.
15368 (cortexa73_tunings): Likewise.
15370 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
15372 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15373 for arm_fp16_ok and arm_fp16_hw.
15374 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15375 arm_fp16_alternative.
15377 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
15379 PR tree-optimization/71655
15380 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15381 types when swapping operands.
15383 2016-06-29 Martin Liska <mliska@suse.cz>
15385 PR middle-end/71585
15386 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15387 * ipa-inline-transform.c (inline_call): Remove unnecessary call
15388 of build_optimization_node.
15390 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15392 PR tree-optimization/70729
15393 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15394 independent in loops having positive safelen value.
15395 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15396 it may be not valid after vectorization.
15398 2016-06-29 Jakub Jelinek <jakub@redhat.com>
15400 PR tree-optimization/71625
15401 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
15402 is sorted by ascending list->offset. If PTR is non-NULL and there is
15403 previous strinfo, call get_stridx_plus_constant.
15404 (get_stridx): Pass exp as second argument to get_addr_stridx.
15405 (addr_stridxptr): Add missing list = list->next, so that there can be
15406 more than one entries in the list. Bump limit from 16 to 32. Ensure
15407 the list is sorted by ascending list->offset.
15408 (get_stridx_plus_constant): Adjust so that it can be also called with
15409 ADDR_EXPR instead of SSA_NAME as PTR.
15410 (handle_char_store): Pass NULL_TREE as second argument to
15413 2016-06-29 Richard Biener <rguenther@suse.de>
15415 PR rtl-optimization/68961
15416 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15418 2016-06-29 Richard Biener <rguenther@suse.de>
15420 PR middle-end/71002
15421 * alias.c (component_uses_parent_alias_set_from): Handle
15422 type punning through union accesses by using the union alias set.
15423 * gimple.c (gimple_get_alias_set): Remove union type punning case.
15425 2016-07-29 Richard Biener <rguenther@suse.de>
15427 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15428 precision not matching mode precision.
15430 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
15432 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15433 pa_output_arg_descriptor.
15434 (call_val_symref_64bit_post_reload): Likewise.
15435 (call_val_powf_64bit_post_reload): Likewise.
15436 (sibcall_internal_symref_64bit): Likewise.
15437 (sibcall_value_internal_symref_64bit): Likewise.
15439 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15441 PR middle-end/71626
15442 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15443 a constant, force its SUBREG_REG into memory or register instead
15446 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15449 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15450 * doc/invoke.texi (AVR Options): Document it.
15452 2016-06-28 Walter Lee <walt@tilera.com>
15454 * config/tilegx/linux.h: Do not include arch/icache.h
15455 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15456 * config/tilepro/linux.h: Do not include arch/icache.h
15457 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15459 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
15461 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15462 for big-endian BIT_FIELD_REF.
15464 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
15466 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15467 ('size' attribute): Add '128'.
15469 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15470 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15471 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15472 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15473 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15474 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15475 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15476 *trunc<mode>df2_odd): Set size attribute to '128'.
15477 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15478 * config/rs6000/power6.md (power6-fp): Include dfp type.
15479 * config/rs6000/power7.md (power7-fp): Likewise.
15480 * config/rs6000/power8.md (power8-fp): Likewise.
15481 * config/rs6000/power9.md: New file.
15482 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15483 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15484 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15486 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15487 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15488 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15489 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15490 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15491 dfp_dscri_<mode>): Change type attribute to dfp.
15492 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15493 attribute to vecsimple.
15494 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15495 and prefetch streams.
15496 (rs6000_option_override_internal): Remove temporary code setting
15497 tuning to power8. Don't set rs6000_sched_groups for power9.
15498 (last_scheduled_insn): Change to rtx_insn *.
15499 (divide_cnt, vec_load_pendulum): New variables.
15500 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15501 (rs6000_issue_rate): Set issue rate for Power9.
15502 (is_power9_pairable_vec_type): New.
15503 (power9_sched_reorder2): New.
15504 (rs6000_sched_reorder2): Call new function for Power9 specific
15506 (insn_must_be_first_in_group): Remove Power9.
15507 (insn_must_be_last_in_group): Likewise.
15508 (force_new_group): Likewise.
15509 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15510 Initialize divide_cnt/vec_load_pendulum.
15511 (_rs6000_sched_context, rs6000_init_sched_context,
15512 rs6000_set_sched_context): Handle context save/restore of new
15515 2016-06-28 Richard Biener <rguenther@suse.de>
15517 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15518 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15519 COMPONENT_REF operand.
15520 (nonoverlapping_component_refs_p): Likewise.
15521 * stor-layout.c (start_bitfield_representative): Mark
15522 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15524 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15526 * Makefile.in: Don't cat ../stage_current if it does not exist.
15528 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15529 last argument is a bit-field.
15531 PR rtl-optimization/71673
15532 * internal-fn.c (expand_arith_overflow_result_store): Use
15533 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15534 expand_simple_binop.
15536 PR middle-end/66867
15537 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15538 expand_ifn_atomic_compare_exchange): New functions.
15539 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15540 * tree.h (build_call_expr_internal_loc): Rename to ...
15541 (build_call_expr_internal_loc_array): ... this. Fix up type of
15543 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15544 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15545 ATOMIC_COMPARE_EXCHANGE result.
15546 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15547 * gimple-fold.h (optimize_atomic_compare_exchange_p,
15548 fold_builtin_atomic_compare_exchange): New prototypes.
15549 * gimple-fold.c (optimize_atomic_compare_exchange_p,
15550 fold_builtin_atomic_compare_exchange): New functions..
15551 * tree-ssa.c (execute_update_addresses_taken): If
15552 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15553 of call when finding addressable vars, and if such var becomes
15554 non-addressable, call fold_builtin_atomic_compare_exchange.
15556 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
15559 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15560 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15562 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
15564 * config/rs6000/rs6000.md ('type' attribute): Add
15565 veclogical,veccmpfx,vecexts,vecmove insn types.
15566 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15567 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15568 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15569 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15570 *nabs<mode>2_hw): Change type to vecmove.
15571 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15572 *boolcc<mode>3_internal, *eqv<mode>3_internal,
15573 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15574 *ieee_128bit_vsx_abs<mode>2_internal,
15575 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15576 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15577 *ieee128_mtvsrd_32bit): Change type to veclogical.
15578 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15579 *movdi_internal32, *movdi_internal64): Update insn types.
15580 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15581 vsx_extract_<mode>): Change type to veclogical.
15582 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15583 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15584 *vsx_sign_extend_si_v2di): Change type to vecexts.
15585 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15586 type to veclogical.
15587 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15588 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15589 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15590 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15591 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15592 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15593 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15594 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15595 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15596 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15597 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15598 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15599 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15600 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15601 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15602 (ppc7450-vecsimple): Add veclogical, vecmove.
15603 (ppc7450-veccmp): Add veccmpfx.
15604 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15606 (ppc8540_vector_compare): Add veccmpfx.
15607 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15608 * config/rs6000/cell.md (cell-fp): Add fpsimple.
15609 (cell-vecsimple): Add veclogical, vecmove.
15610 (cell-veccmp): Add veccmpfx.
15611 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15612 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15614 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15615 * config/rs6000/power4.md (power4-fp): Add fpsimple.
15616 (power4-vecsimple): Add veclogical, vecmove.
15617 (power4-veccmp): Add veccmpfx.
15618 * config/rs6000/power5.md (power5-fp): Add fpsimple.
15619 * config/rs6000/power6.md (power6-fp): Add fpsimple.
15620 (power6-vecsimple): Add veclogical, vecmove.
15621 (power6-veccmp): Add veccmpfx.
15622 * config/rs6000/power7.md (power7-fp): Add fpsimple.
15623 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
15624 * config/rs6000/power8.md (power8-fp): Add fpsimple.
15625 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
15626 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
15627 * config/rs6000/titan.md (titan_fp): Add fpsimple.
15628 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
15630 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
15632 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
15635 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15636 OPTION_MASK_P9_DFORM_VECTOR.
15637 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
15638 disable -mpower9-dform-vector when using reload.
15639 (quad_address_p): Remove 'gpr_p' argument and all associated code.
15640 New 'strict' argument. Update all callers. Add strict addressing
15642 (rs6000_legitimate_offset_address_p): Remove call to
15643 virtual_stack_registers_memory_p.
15644 (rs6000_legitimize_reload_address): Add quad address support.
15645 (rs6000_legitimate_address_p): Move call to quad_address_p above
15646 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
15647 to account for new strict usage.
15648 (rs6000_output_move_128bit): Adjust quad_address_p args to account
15649 for new strict usage.
15650 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
15652 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
15659 * config/i386/i386.c (ix86_spill_class): Disable condition to
15660 always return NO_REGS.
15662 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
15664 * predict.c: Include gimple-pretty-print.h
15665 (predicted_by_loop_heuristics_p): Check also
15666 PRED_LOOP_EXIT_WITH_RECURSION
15667 (predict_loops): Find self recursive calls and use special purpose
15668 predictors for them; dump log about decisions.
15669 (pass_profile::execute): Dump info about #of iterations.
15670 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
15671 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
15673 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
15675 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
15676 output_asm_insn calls and shorten long lines. Output .CALL
15677 argument descriptor using pa_output_arg_descriptor. Add various
15678 inline $$dyncall and other optimizations.
15679 (pa_attr_length_indirect_call): Adjust ordering and lengths.
15681 2016-06-25 Jakub Jelinek <jakub@redhat.com>
15683 PR tree-optimization/71643
15684 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
15687 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
15688 leak a bitmap if dep_bb is NULL.
15690 PR tree-optimization/71631
15691 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
15692 to rewrite_expr_tree even if negate_result, move new_lhs var
15693 declaration and initialization earlier, for powi_result set afterwards
15694 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
15695 if new_lhs != lhs, and don't shadow gsi var.
15697 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15699 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
15700 Add in_loop parameter.
15701 (predict_loops): Add loop guard heuristics.
15702 * predict.def (PRED_LOOP_GUARD): New heuristics.
15704 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15706 * predict.c: Include ipa-utils.h
15707 (tree_bb_level_prediction): Predict recursive calls.
15708 (tree_estimate_probability_bb): Skip inexpensive calls for call
15710 * predict.def (PRED_RECURSIVE_CALL): New.
15712 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15714 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
15715 (BU_FLOAT128_1): Likewise.
15717 (COPYSIGNQ): Likewise.
15718 (RS6000_BUILTIN_NANQ): Likewise.
15719 (RS6000_BUILTIN_NANSQ): Likewise.
15720 (RS6000_BUILTIN_INFQ): Likewise.
15721 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
15722 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
15723 (TARGET_FOLD_BUILTIN): New #define.
15724 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
15725 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
15726 (rs6000_fold_builtin): New target hook implementation, handling
15727 folding of 128-bit NaNs and infinities.
15728 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
15729 entries are filled in to avoid problems during bootstrap
15730 self-test; define builtins for 128-bit NaNs and infinities.
15731 (rs6000_opt_mask): Add entry for float128.
15732 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
15733 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
15734 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
15735 (const_str_type_node): New #define.
15736 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
15737 to a define_expand that dispatches to either copysign<mode>3_soft
15738 or copysign<mode>3_hard.
15739 (copysign<mode>3_hard): Rename from copysign<mode>3.
15740 (copysign<mode>3_soft): New define_insn.
15741 * doc/extend.texi: Document new builtins.
15743 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15745 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
15746 PRIu64 instead of lu.
15748 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
15751 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
15752 copy the type name.
15754 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15756 PR tree-optimization/71647
15757 * omp-low.c (lower_rec_input_clauses): Convert
15758 omp_clause_aligned_alignment (c) to size_type_node for the
15759 last argument of __builtin_assume_aligned.
15761 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
15763 * configure.ac (calling ___tls_get_addr via GOT): New
15764 assembler/linker check.
15765 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
15766 assembler and linker supports calling ___tls_get_addr via GOT.
15767 Otherise, defined to 0.
15768 * config.in: Regenerated.
15769 * configure: Likewise.
15770 * config/i386/constraints.md (Yb): New constraint.
15771 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
15772 (REG_CLASS_NAMES): Likewise.
15773 (REG_CLASS_CONTENTS): Likewise.
15774 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
15775 the b constraint with the Yb constraint. Call ___tls_get_addr
15776 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
15778 (*tls_local_dynamic_base_32_gnu): Likewise.
15779 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
15780 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
15781 (*tls_local_dynamic_base_64_<mode>): Likewise.
15783 2016-06-24 Martin Liska <mliska@suse.cz>
15785 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
15786 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
15788 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
15789 argument to true if the expected number of iterations is
15792 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
15794 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
15795 assemble for 32bit target.
15796 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
15797 and $ld_ix86_gld_32_opt to link for 32bit target.
15798 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
15799 * configure: Regenerate.
15801 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15803 * config/arm/arm.c (int_log2): Delete definition and prototype.
15804 (shift_op): Use exact_log2 instead of int_log2.
15805 (vfp3_const_double_for_fract_bits): Likewise.
15807 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15809 * internal-fn.c (expand_arith_set_overflow): New function.
15810 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
15812 (expand_arith_overflow_result_store): Likewise. Handle precision
15813 smaller than mode precision.
15814 * tree-vrp.c (extract_range_basic): For imag part, handle
15815 properly signed 1-bit precision result.
15816 * doc/extend.texi (__builtin_add_overflow): Document that last
15817 argument can't be pointer to enumerated or boolean type.
15818 (__builtin_add_overflow_p): Document that last argument can't
15819 have enumerated or boolean type.
15821 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15822 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15824 * config/rs6000/predicates.md (splat_input_operand): Rework.
15825 Don't allow constants, since the insns that use this predicate
15826 don't support constants. Constants are handled by other insns
15827 that are created via combine. During and after register
15828 allocation, only allow indexed or indirect addresses, and not
15829 general addresses. Only allow modes supported by the hardware.
15830 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
15831 comment. Move check for using VSPLTIS<x> to a common location,
15832 instead of doing it in two different places.
15834 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
15836 * config/i386/driver-i386.c (host_detect_local_cpu): Set
15837 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
15838 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
15839 signature_CENTAUR_ebx.
15841 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
15845 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
15846 (as_ix86_gas_32_opt): This.
15847 (ld_ix86_tls_ldm_opt): Renamed to ...
15848 (ld_ix86_gld_32_opt): This.
15849 (R_386_TLS_LDM reloc): Updated.
15850 (R_386_GOT32X reloc): New assembler/linker check.
15851 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
15852 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
15854 * config.in: Regenerated.
15855 * configure: Likewise.
15856 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
15857 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
15858 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
15859 if ix86_force_load_from_GOT_p returns true.
15860 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
15861 ix86_force_load_from_GOT_p returns true.
15862 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
15863 the external function address via the GOT slot.
15864 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
15865 HAVE_AS_IX86_GOT32X before returning false.
15866 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
15867 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
15869 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
15871 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
15873 2016-06-23 Andi Kleen <ak@linux.intel.com>
15875 * Makefile.in: Regenerate.
15876 * doc/install.texi: Document autoprofiledbootstrap.
15878 2016-06-23 Andi Kleen <ak@linux.intel.com>
15880 * config/i386/gcc-auto-profile: New file.
15882 2016-06-23 Martin Liska <mliska@suse.cz>
15884 PR middle-end/71619
15885 * predict.c (predict_loops): Revert the hunk that was removed
15888 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
15890 * config.gcc: Add support for arm*-*-phoenix* targets.
15891 * config/arm/t-phoenix: New.
15892 * config/phoenix.h: New.
15894 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
15895 H.J. Lu <hongjiu.lu@intel.com>
15898 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
15899 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
15900 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
15901 ix86_force_load_from_GOT_p returns true.
15902 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
15903 ix86_force_load_from_GOT_p returns true.
15904 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
15905 ix86_force_load_from_GOT_p returns true.
15906 (ix86_expand_move): Load the external function address via the
15907 GOT slot if ix86_force_load_from_GOT_p returns true.
15908 * config/i386/predicates.md (x86_64_immediate_operand): Return
15909 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
15910 (x86_64_zext_immediate_operand): Ditto.
15912 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
15914 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
15916 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15919 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
15920 * diagnostic.c (pedwarn_at_rich_loc): New function.
15921 * spellcheck.h (best_match::best_match): Add a
15922 "best_distance_so_far" optional parameter.
15923 (best_match::set_best_so_far): New method.
15924 (best_match::get_best_distance): New accessor.
15925 (best_match::get_best_candidate_length): New accessor.
15927 2016-06-22 Nick Clifton <nickc@redhat.com>
15929 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
15930 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
15931 modes are accepted as well.
15932 (ucompare_loc_descriptor): Likewise.
15933 (minmax_loc_descriptor): Likewise.
15934 (clz_loc_descriptor): Likewise.
15935 (popcount_loc_descriptor): Likewise.
15936 (bswap_loc_descriptor): Likewise.
15937 (rotate_loc_descriptor): Likewise.
15938 (mem_loc_descriptor): Likewise.
15939 (loc_descriptor): Likewise.
15941 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15943 * common.opt (fdiagnostics-parseable-fixits): New option.
15944 * diagnostic.c: Include "selftest.h".
15945 (print_escaped_string): New function.
15946 (print_parseable_fixits): New function.
15947 (diagnostic_report_diagnostic): Call print_parseable_fixits.
15948 (selftest::assert_print_escaped_string): New function.
15949 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
15950 (selftest::test_print_escaped_string): New function.
15951 (selftest::test_print_parseable_fixits_none): New function.
15952 (selftest::test_print_parseable_fixits_insert): New function.
15953 (selftest::test_print_parseable_fixits_remove): New function.
15954 (selftest::test_print_parseable_fixits_replace): New function.
15955 (selftest::diagnostic_c_tests): New function.
15956 * diagnostic.h (struct diagnostic_context): Add field
15957 "parseable_fixits_p".
15958 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
15959 -fdiagnostics-parseable-fixits.
15960 (-fdiagnostics-parseable-fixits): New option.
15961 * opts.c (common_handle_option): Handle
15962 -fdiagnostics-parseable-fixits.
15963 * selftest-run-tests.c (selftest::run_tests): Call
15964 selftest::diagnostic_c_tests.
15965 * selftest.h (selftest::diagnostic_c_tests): New prototype.
15967 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
15969 PR tree-optimization/71488
15970 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
15971 comparison of boolean vectors.
15972 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
15973 of boolean vectors using bitwise operations.
15975 2016-06-22 Andreas Schwab <schwab@suse.de>
15977 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
15978 Remove declaration.
15980 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
15982 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
15984 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
15986 * config/i386/i386.c (print_reg): Emit an error message on attempt to
15989 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15991 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
15992 * config/arm/arm-cores.def (cortex-a73): New entry.
15993 (cortex-a73.cortex-a35): Likewise.
15994 (cortex-a73.cortex-a53): Likewise.
15995 * config/arm/arm-tables.opt: Regenerate.
15996 * config/arm/arm-tune.md: Likewise.
15997 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
15998 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15999 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
16000 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16001 * doc/invoke.texi (ARM Options): Document cortex-a73,
16002 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
16004 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16006 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
16007 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
16008 (cortex-a73.cortex-a35): Likewise.
16009 (cortex-a73.cortex-a53): Likewise.
16010 * config/aarch64/aarch64-tune.md: Regenerate.
16011 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
16012 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
16015 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16017 * configure.ac (gcc_cv_as_compress_debug): Remove
16018 --compress-debug-sections as extra as switch.
16019 Handle gas --compress-debug-sections=type.
16020 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
16021 Handle gld --compress-debug-sections=type.
16022 * configure: Regenerate.
16024 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
16026 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
16028 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
16030 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
16031 (do_rewrite): likewise.
16033 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16035 * common/config/mep/mep-common.c: Remove.
16036 * config.gcc: Remove mep-* support.
16037 * config/mep/constraints.md: Remove.
16038 * config/mep/default.h: Remove.
16039 * config/mep/intrinsics.h: Remove.
16040 * config/mep/intrinsics.md: Remove.
16041 * config/mep/ivc2-template.h: Remove.
16042 * config/mep/mep-c5.cpu: Remove.
16043 * config/mep/mep-core.cpu: Remove.
16044 * config/mep/mep-default.cpu: Remove.
16045 * config/mep/mep-ext-cop.cpu: Remove.
16046 * config/mep/mep-intrin.h: Remove.
16047 * config/mep/mep-ivc2.cpu: Remove.
16048 * config/mep/mep-pragma.c: Remove.
16049 * config/mep/mep-protos.h: Remove.
16050 * config/mep/mep.c: Remove.
16051 * config/mep/mep.cpu: Remove.
16052 * config/mep/mep.h: Remove.
16053 * config/mep/mep.md: Remove.
16054 * config/mep/mep.opt: Remove.
16055 * config/mep/predicates.md: Remove.
16056 * config/mep/t-mep: Remove.
16057 * doc/install.texi: Remove mep-* documentation.
16058 * doc/md.texi: Likewise.
16060 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16062 * config.gcc: Remove support for avr-rtems.
16063 * config/avr/gen-avr-mmcu-specs.c: Likewise.
16064 * config/avr/rtems.h: Remove.
16065 * config/avr/t-rtems: Remove.
16067 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16069 * config.gcc: Remove m32r-rtems support.
16070 * config/m32r/rtems.h: Remove.
16072 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16074 * config.gcc: Remove h8300-rtems support.
16075 * config/h8300/rtems.h: Remove.
16076 * config/h8300/t-rtems: Remove.
16078 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16080 * config.gcc: Remove support for knetbsd.
16081 * configure.ac: Likewise.
16082 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
16083 * config/knetbsd-gnu.h: Remove.
16084 * configure: Regenerate.
16086 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16088 * config.gcc: Remove support for openbsd 2 and 3.
16089 * config/openbsd-oldgas.h: Remove.
16091 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16093 * config.gcc: Remove interix support.
16094 * config/i386/i386-interix.h: Remove.
16095 * config/i386/interix.opt: Remove.
16096 * config/i386/t-interix: Remove.
16097 * configure: Regenerate.
16098 * configure.ac: Remove interix support.
16099 * doc/install.texi: Remove interix documentation.
16101 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
16103 * config/rs6000/rs6000.h: Add conditional preprocessing directives
16104 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
16107 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16109 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
16110 they are both PLACEHOLDER_EXPRs.
16112 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16114 * stor-layout.c (layout_type): Move setting complex MODE to
16115 layout_type, instead of setting it ahead of time by the caller.
16116 * tree.c (build_complex_type): Likewise.
16118 2016-06-21 Martin Liska <mliska@suse.cz>
16120 * predict.c (force_edge_cold): Replace imposisble with
16123 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16125 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
16126 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
16128 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16130 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
16132 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
16133 Ilya Enkovich <ilya.enkovich@intel.com>
16136 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16137 New member function to convert V1TImode register to SUBREG
16138 TImode in debug insn.
16139 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
16140 after changing register mode to V1TImode.
16142 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
16144 * config/aarch64/aarch64-cores.def (vulcan): New core.
16145 * config/aarch64/aarch64-tune.md: Regenerate.
16146 * doc/invoke.texi: Document vulcan as an available option.
16148 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16150 * cse.c (canon_asm_operands): New function extracted from...
16151 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
16152 either standalone or member of a PARALLEL.
16154 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16157 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
16158 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
16159 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
16161 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16164 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
16165 constant addresses if can_create_pseudo_p.
16167 2016-06-21 Jakub Jelinek <jakub@redhat.com>
16169 PR tree-optimization/71588
16170 * tree-ssa-strlen.c (valid_builtin_call): New function.
16171 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
16174 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16176 PR middle-end/71581
16177 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
16178 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
16179 for conversion of scalar user var to complex type and use the
16180 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
16183 PR rtl-optimization/71591
16184 * toplev.c (toplev::run_self_tests): If no_backend, complain and
16185 don't run any tests.
16187 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
16190 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
16191 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
16192 space for PIC with non-v32 and the common non-PIC "jump".
16194 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16197 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
16198 returned values and add UN*/LTGT/*ORDERED cases with values matching
16199 D operand modifier on vcmp for AVX.
16201 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16203 * config/aarch64/aarch64.opt
16204 (mpc-relative-literal-loads): Rename internal option name.
16205 * config/aarch64/aarch64.c
16206 (aarch64_nopcrelative_literal_loads): Rename to
16207 aarch64_pcrelative_literal_loads.
16208 (aarch64_expand_mov_immediate): Likewise.
16209 (aarch64_secondary_reload): Likewise.
16210 (aarch64_can_use_per_function_literal_pools_p): Likewise.
16211 (aarch64_override_options_after_change_1): Rename and simplify logic.
16212 (aarch64_classify_symbol): Merge large model checks into switch,
16213 remove pc-relative load check.
16215 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16217 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
16218 costs relative to the cost of a register move.
16220 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16222 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
16223 (vcvt_n_f64_u64): Likewise.
16224 (vcvt_n_s64_f64): Likewise.
16225 (vcvt_n_u64_f64): Likewise.
16226 (vcvt_f64_s64): Likewise.
16227 (vrecpe_f64): Likewise.
16228 (vcvt_f64_u64): Likewise.
16229 (vrecps_f64): Likewise.
16231 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16233 * config/aarch64/aarch64.md
16234 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
16236 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
16238 * config/aarch64/aarch64-builtins.c
16239 (aarch64_types_binop_uss_qualifiers): Delete.
16240 (TYPES_BINOP_USS): Likewise.
16241 (aarch64_types_binop_sus_qualifiers): Likewise.
16242 (TYPES_BINOP_SUS): Likewise.
16243 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
16244 (TYPES_FCVTIMM_SUS): Likewise.
16245 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
16247 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
16248 (fcvtzs): Use SHIFTIMM rather than BINOP.
16249 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
16251 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16253 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
16254 costs relative to the cost of a register move.
16256 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16258 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
16259 Allow scalar/single vector modes to be tieable.
16261 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16263 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
16265 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16267 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
16269 * tree.h (TYPE_ALIGN): Likewise.
16271 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16274 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
16276 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16278 * config/avr/avr.c (avr_print_operand): Fix "format not a string
16279 literal" build warnings.
16280 (avr_print_operand_address): Dito.
16282 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
16285 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
16286 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
16288 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
16290 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
16292 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
16295 * reload1.c (reload): Pass 0 to finish_spills when called because
16296 update_eliminables_and_spill returns true and remove did_spill.
16297 (finish_spills): Adjust comment and document GLOBAL parameter.
16299 2016-06-17 DJ Delorie <dj@redhat.com>
16302 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
16303 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
16304 (umulqihi3_virt): Likewise.
16305 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
16306 (umulqihi3_real): Likewise.
16308 2016-06-17 Martin Liska <mliska@suse.cz>
16310 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
16312 2016-06-17 Martin Liska <mliska@suse.cz>
16314 * predict.def: PRED_LOOP_EXIT from 92 to 85.
16316 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
16318 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16320 (vaddq_f32): Likewise.
16321 (vmul_f32): Likewise.
16322 (vmulq_f32): Likewise.
16323 (vsub_f32): Likewise.
16324 (vsubq_f32): Likewise.
16326 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16328 PR tree-optimization/71347
16329 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16330 cost for all uses in group.
16332 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16334 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16335 insert gimple seq if it's not empty.
16337 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16339 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16341 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16342 rather than OFFSET.
16343 (comp_dr_with_seg_len_pair): Ditto.
16344 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
16345 struct dr_with_seg_len_pair against DR_OFFSET.
16346 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16347 DR_OFFSET directly.
16349 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
16351 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16353 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
16355 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16356 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16357 (pa_output_millicode_call): Likewise.
16358 (pa_output_call): Likewise.
16359 (pa_output_indirect_call): Likewise.
16360 (pa_asm_output_mi_thunk): Likewise.
16362 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16364 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16366 2016-06-16 Martin Liska <mliska@suse.cz>
16368 * predict.c (combine_predictions_for_insn): When we find a first
16369 match predictor, we should consider just predictors with
16370 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
16371 DS theory predictor.
16372 (combine_predictions_for_bb): Likewise.
16374 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16376 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16377 with base of reference to struct.
16379 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16381 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16383 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16386 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16387 progmem_swtable_section.
16388 (progmem_swtable_section): Remove.
16389 (avr_asm_function_rodata_section): Remove.
16390 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16391 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16393 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
16395 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16396 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16397 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16398 signature_CENTAUR_ebx.
16399 * config/i386/i386.c (ix86_option_override_internal): Add
16400 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16401 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16402 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16404 2016-06-16 Martin Liska <mliska@suse.cz>
16406 * predict.def: Add fortran loop preheader predictor.
16407 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16408 fold IFN_BUILTIN_EXPECT with a known constant argument.
16410 2016-06-16 Martin Liska <mliska@suse.cz>
16412 * predict.def: Add 'Fortran' to display text of all
16413 PRED_FORTRAN_* predictors.
16415 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16418 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16419 [IA64_BUILTIN_NANSQ]: Ditto.
16420 (ia64_fold_builtin): New function.
16421 (TARGET_FOLD_BUILTIN): New define.
16422 (ia64_init_builtins) Declare const_string_type node.
16423 Add __builtin_nanq and __builtin_nansq builtin functions.
16424 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16426 2016-06-16 Nick Clifton <nickc@redhat.com>
16428 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16429 MSP430_HWMULT_ prefix to enum values.
16430 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16431 * config/msp430/msp430.c: Update use of enum values.
16432 * config/msp430/msp430.md: Likewise.
16433 * config/msp430/msp430.opt: Likewise.
16435 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
16437 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16438 of comparsions in the last iteration.
16440 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16441 Joern Rennecke <joern.rennecke@embecosm.com>
16443 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16445 (arc_needs_pcl_p): Add GOTOFFPC.
16446 (arc_legitimate_pic_addr_p): Likewise.
16447 (arc_output_pic_addr_const): Likewise.
16448 (arc_legitimize_pic_address): Generate a pc-relative address using
16450 (arc_output_libcall): Use @pcl syntax.
16451 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16452 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16453 (*movsi_insn): Use @pcl syntax.
16454 (doloop_begin_i): Likewise.
16456 2016-06-16 Martin Liska <mliska@suse.cz>
16458 * predict.def: Define a new predictor.
16460 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16462 * config/arc/arc.opt (mtp-regno): Update text.
16464 2016-06-16 Renlin Li <renlin.li@arm.com>
16466 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16468 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16471 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16472 (setcc + and peephole2): Likewise.
16474 PR rtl-optimization/71532
16475 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16478 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16480 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16481 DImode constants with XXSPLTIB in vector registers.
16482 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16483 vsx_extract_<mode>_internal{1,2} into a single insn that handles
16484 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16485 extraction of the element at the top of the register as a scalar
16487 (vsx_extract_<mode>_internal1): Likewise.
16488 (vsx_extract_<mode>_internal2): Likewise.
16489 * config/rs6000/constraints.md (wi constraint): Remove a comment
16490 about DImode not being allowed in Altivec registers.
16491 (wB constraint): New constraint for constants that can be
16492 generated in Altivec registers with VSPLTISW/VUPKHSW.
16493 * config/rs6000/predicates.md (xxspltib_constant_split): Update
16495 (xxspltib_constant_nosplit): Likewise.
16496 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16497 support for -mupper-regs-di to enable DImode to go into Altivec
16499 (POWERPC_MASKS): Likewise.
16500 (power7 cpu): Likewise.
16501 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16502 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16503 for DImode being allowed in Altivec registers. Update wi/wj
16504 constraints. Set scalar_in_vmx_p flag.
16505 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16506 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
16507 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16508 (rs6000_opt_masks): Add -mupper-regs-di.
16509 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16510 direct move to use wi and not wj.
16511 (lfiwzx): Likewise.
16512 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16514 (floatunssi<mode>2_lfiwzx_mem): Likewise.
16515 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16516 any VSX register, instead of just Altivec registers, to allow
16517 either operand to be an Altivec register or both.
16518 (fixuns_trunc<mode>di2_fctiduz): Likewise.
16519 (movdi_internal32): Add support for -mupper-regs-di. Add support
16520 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
16521 the alternatives and attributes to be lined up to be easier to
16523 (movdi_internal64): Likewise.
16524 (64-bit DImode splitters): Change predicates to only split loading
16525 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
16526 load constants in ISA 3.0 or ISA 2.07 respectively.
16527 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16528 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
16529 mention -mcpu=power9 sets these options.
16530 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16533 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16536 * config/avr/avr.c (avr_set_current_function): Warn misspelled
16537 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16538 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16539 by default to warn misspelled interrupt/ signal handler.
16540 * doc/invoke.texi (AVR Options): Document it. Update description
16541 for -nodevicelib option.
16543 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16545 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16546 up parentheses. Use GET_MODE_UNIT_BITSIZE.
16547 (aarch64_<sur>shll2_n<mode>): Likewise.
16549 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
16551 PR middle-end/71529
16552 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16553 DECL_CONTEXT for copied arguments.
16555 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16557 PR tree-optimization/71483
16558 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16561 2016-06-15 Martin Liska <mliska@suse.cz>
16563 * predict.c (tree_predict_by_opcode): Call predict_edge_def
16564 instead of predict_edge w/o a probability.
16566 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16568 PR tree-optimization/71439
16569 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16572 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16574 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16575 register subregs in SET_SRC.
16577 2016-06-15 Richard Biener <rguenther@suse.de>
16579 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16580 store restrictions.
16582 2016-06-15 Richard Biener <rguenther@suse.de>
16584 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16585 not consider dependences between accesses that belong to the
16587 (vect_analyze_data_ref_dependences): Do not analyze read-read
16588 or self-dependences.
16590 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16592 * spellcheck-tree.c: Include spellcheck-tree.h rather than
16594 (find_closest_identifier): Reimplement in terms of
16595 best_match<tree,tree>.
16596 * spellcheck-tree.h: New file.
16597 * spellcheck.c (struct edit_distance_traits<const char *>): New
16599 (find_closest_string): Reimplement in terms of
16600 best_match<const char *, const char *>.
16601 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16602 overload to spellcheck-tree.h.
16603 (find_closest_identifier): Likewise.
16604 (struct edit_distance_traits<T>): New template.
16605 (class best_match): New class.
16607 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16609 * selftest-run-tests.c (selftest::run_tests): Call
16610 selftest::spellcheck_tree_c_tests.
16611 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16612 * spellcheck-tree.c: Include selftest.h and stringpool.h.
16613 (selftest::test_find_closest_identifier): New function.
16614 (selftest::spellcheck_tree_c_tests): New function.
16615 * spellcheck.c (selftest::test_find_closest_string): Verify that
16616 the order of the vec does not affect the results for this case.
16617 (selftest::test_data): New array.
16618 (selftest::test_metric_conditions): New function.
16619 (selftest::spellcheck_c_tests): Add a test of case-comparison.
16620 Call selftest::test_metric_conditions.
16622 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16624 * config/rs6000/rs6000-builtin.def (commentary): Typo.
16625 (BU_P9_MISC_1): Likewise.
16626 (BU_P9_64BIT_MISC_0): Likewise.
16627 (BU_P9_MISC_0): Likewise.
16629 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16631 * gcc-rich-location.c
16632 (gcc_rich_location::add_fixit_misspelled_id): New method.
16633 * gcc-rich-location.h
16634 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
16636 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
16638 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
16639 FreeBSD 11 and above.
16641 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
16643 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
16645 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16647 * expmed.h: Close parenthesis in "at your option" in copyright
16649 * lower-subreg.h: Likewise.
16651 2016-06-14 Richard Biener <rguenther@suse.de>
16653 PR middle-end/71526
16654 * genmatch.c (expr::gen_transform): Use in_type for comparisons
16657 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16659 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16661 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
16662 mask+shift version.
16663 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
16665 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
16666 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
16668 2016-06-14 Richard Biener <rguenther@suse.de>
16670 PR tree-optimization/71522
16671 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
16672 copying into float copying.
16674 2016-06-14 Jakub Jelinek <jakub@redhat.com>
16676 PR tree-optimization/71520
16677 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
16678 (replace_block_by): Move user labels from bb1 to bb2.
16680 2016-06-14 Richard Biener <rguenther@suse.de>
16682 PR middle-end/71310
16684 * expr.h (get_bit_range): Declare.
16685 * expr.c (get_bit_range): Export.
16686 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
16687 word_mode again to constrain the bitfield access.
16689 2016-06-14 Richard Biener <rguenther@suse.de>
16691 PR tree-optimization/71521
16692 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
16693 division int_const_binop against zero divisor.
16695 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16697 * config/i386/i386.md (signbittf2): New expander.
16698 * config/i386/sse.md (ptesttf2): New insn pattern.
16700 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16703 * input.c (selftest::test_reading_source_line): Avoid reading from
16704 __FILE__ by creating a tempfile with known content and reading
16707 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16709 * pretty-print.c (assert_pp_format_colored): Skip the test if
16711 (test_pp_format): Remove comment about GCC_COLORS.
16713 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16715 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
16716 * pretty-print.c (assert_pp_format_va): Add location param and use
16717 it with ASSERT_STREQ_AT.
16718 (assert_pp_format): Add location param and pass it to
16719 assert_pp_format_va.
16720 (assert_pp_format_colored): Likewise.
16721 (ASSERT_PP_FORMAT_1): New.
16722 (ASSERT_PP_FORMAT_2): New.
16723 (ASSERT_PP_FORMAT_3): New.
16724 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
16725 explicitly, or implicitly via the above macros.
16726 * selftest.c (selftest::pass): Use a selftest::location rather
16727 than file and line.
16728 (selftest::fail): Likewise. Print the function name.
16729 (selftest::fail_formatted): Likewise.
16730 (selftest::assert_streq): Use a selftest::location rather than
16732 * selftest.h (selftest::location): New struct.
16733 (SELFTEST_LOCATION): New macro.
16734 (selftest::pass): Accept a const location & rather than file
16736 (selftest::fail): Likewise.
16737 (selftest::fail_formatted): Likewise.
16738 (selftest::assert_streq): Likewise.
16739 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
16740 (ASSERT_FALSE): Likewise.
16741 (ASSERT_EQ): Likewise.
16742 (ASSERT_NE): Likewise.
16743 (ASSERT_STREQ): Likewise.
16744 (ASSERT_PRED1): Likewise.
16745 (ASSERT_STREQ_AT): New macro.
16747 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16749 * selftest.c (selftest::fail_formatted): New function.
16750 (selftest::assert_streq): New function.
16751 * selftest.h (selftests::fail_formatted): New decl.
16752 (selftest::assert_streq): New decl.
16753 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
16755 2016-06-13 Jeff Law <law@redhat.com>
16757 PR tree-optimization/71403
16758 * tree-ssa-threadbackward.c
16759 (convert_and_register_jump_thread_path): No longer accept reference
16760 to path. Do not pop items off the path anymore.
16761 (fsm_find_control_statement_thread_paths): Do not allow threading
16762 to a deeper loop nest. Pop the last item off the path here rather
16763 than in convert_and_register_jump_thread_path.
16765 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16766 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
16768 [AArch64] Emit division using the Newton series
16770 * config/aarch64/aarch64-protos.h
16771 (cpu_approx_modes): Add new member "division".
16772 (aarch64_emit_approx_div): Declare new function.
16773 * config/aarch64/aarch64.c
16774 (generic_approx_modes): New member "division".
16775 (exynosm1_approx_modes): Likewise.
16776 (xgene1_approx_modes): Likewise.
16777 (aarch64_emit_approx_div): Define new function.
16778 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
16779 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
16780 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
16781 * doc/invoke.texi (-mlow-precision-div): Describe new option.
16783 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16784 Wilco Dijkstra <wilco.dijkstra@arm.com>
16786 [AArch64] Emit square root using the Newton series
16788 * config/aarch64/aarch64-protos.h
16789 (aarch64_emit_approx_rsqrt): Replace with new function
16790 "aarch64_emit_approx_sqrt".
16791 (cpu_approx_modes): New member "sqrt".
16792 * config/aarch64/aarch64.c
16793 (generic_approx_modes): New member "sqrt".
16794 (exynosm1_approx_modes): Likewise.
16795 (xgene1_approx_modes): Likewise.
16796 (aarch64_emit_approx_rsqrt): Replace with new function
16797 "aarch64_emit_approx_sqrt".
16798 (aarch64_override_options_after_change_1): Handle new option.
16799 * config/aarch64/aarch64-simd.md
16800 (rsqrt<mode>2): Use new function instead.
16801 (sqrt<mode>2): New expansion and insn definitions.
16802 * config/aarch64/aarch64.md: Likewise.
16803 * config/aarch64/aarch64.opt
16804 (mlow-precision-sqrt): Add new option description.
16805 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
16807 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16809 [AArch64] Add more choices for the reciprocal square root approximation
16811 Allow a target to prefer such operation depending on the operation mode.
16813 * config/aarch64/aarch64-protos.h
16814 (AARCH64_APPROX_MODE): New macro.
16815 (AARCH64_APPROX_{NONE,ALL}): Likewise.
16816 (cpu_approx_modes): New structure.
16817 (tune_params): New member "approx_modes".
16818 * config/aarch64/aarch64-tuning-flags.def
16819 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
16820 * config/aarch64/aarch64.c
16821 (generic_approx_modes): New core "cpu_approx_modes" structure.
16822 (exynosm1_approx_modes): Likewise.
16823 (xgene1_approx_modes): Likewise.
16824 (generic_tunings): New member "approx_modes".
16825 (cortexa35_tunings): Likewise.
16826 (cortexa53_tunings): Likewise.
16827 (cortexa57_tunings): Likewise.
16828 (cortexa72_tunings): Likewise.
16829 (exynosm1_tunings): Likewise.
16830 (thunderx_tunings): Likewise.
16831 (xgene1_tunings): Likewise.
16832 (use_rsqrt_p): New argument for the mode and use new member from
16834 (aarch64_builtin_reciprocal): Devise mode from builtin.
16835 (aarch64_optab_supported_p): New argument for the mode.
16836 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
16838 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16840 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
16841 RS6000_BTM_MODULO flag into the set of flags that are considered
16842 to be part of the common configuration.
16844 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16846 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
16847 difference unsigned.
16848 (vec_absdb): New macro for vector absolute difference unsigned
16850 (vec_absdh): New macro for vector absolute difference unsigned
16852 (vec_absdw): New macro for vector absolute difference unsigned word.
16853 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
16854 (vadu<mode>3): New insn.
16855 (*p9_vadu<mode>3): New insn.
16856 * config/rs6000/rs6000-builtin.def (vadub): New built-in
16858 (vaduh): New built-in definition.
16859 (vaduw): New built-in definition.
16860 (vadu): New overloaded built-in definition.
16861 (vadub): New overloaded built-in definition.
16862 (vaduh): New overloaded built-in definition.
16863 (vaduw): New overloaded built-in definition.
16864 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16865 overloaded vector absolute difference unsigned functions.
16866 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16867 the ISA 3.0 vector absolute difference unsigned built-in functions.
16869 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
16871 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
16872 update shared_lookup_references only once after changing operands.
16874 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
16876 PR middle-end/71373
16877 * tree-nested.c (convert_nonlocal_omp_clauses)
16878 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
16880 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
16881 * tree.def (CASE_LABEL_EXPR): Likewise.
16883 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
16886 * input.c (test_builtins): Fix an assertion.
16888 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16890 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
16891 (paritysi2): Ditto.
16893 (isinf<mode>2): Ditto.
16895 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16897 * ggc-tests.c (test_finalization): Only test need_finalization_p
16898 for GCC_VERSION >= 4003.
16900 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16902 * config/s390/vecintrin.h: Fix file description in comment.
16904 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16906 * config/s390/s390-builtin-types.def: Change builtin type naming
16907 scheme to match builtin-types.def.
16909 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
16911 * fold-const.c (optimize_minmax_comparison): Remove.
16912 (fold_comparison): Remove call to the above.
16913 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
16914 New transformations.
16916 2016-06-13 Alan Hayward <alan.hayward@arm.com>
16918 PR tree-optimization/71416
16919 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
16922 2016-06-13 Martin Liska <mliska@suse.cz>
16924 * predict.c (enum predictor_reason): Prefix enum with REASON_.
16925 (combine_predictions_for_insn): Likewise.
16926 (prune_predictions_for_bb): Likewise.
16927 (combine_predictions_for_bb): Likewise.
16929 2016-06-13 Richard Biener <rguenther@suse.de>
16931 PR tree-optimization/71505
16932 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
16933 assert match comment.
16935 2016-06-13 Marek Polacek <polacek@redhat.com>
16937 PR middle-end/71476
16938 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
16939 gimplify_switch_expr.
16940 (warn_switch_unreachable_r): New function.
16942 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16945 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
16948 2016-06-13 Richard Biener <rguenther@suse.de>
16950 PR middle-end/64516
16951 * fold-const.c (fold_unary_loc): Preserve alignment when
16952 folding a VIEW_CONVERT_EXPR into a MEM_REF.
16954 2016-06-13 Martin Liska <mliska@suse.cz>
16957 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
16958 w/ -fsanitize=bounds.
16960 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16962 * config/i386/i386.c (ix86_init_builtins): Calculate
16963 FLOAT128_FTYPE_CONST_STRING function type only once.
16964 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
16965 built-in functions are available for x86-32 and x86-64 targets.
16967 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16970 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
16971 New primitive type.
16972 (FLOAT128_FTYPE_CONST_STRING): New function type.
16973 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
16974 [IX86_BUILTIN_NANSQ]: Ditto.
16975 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16976 (ix86_init_builtin_types): Declare const_string_type_node.
16977 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
16979 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16980 * doc/extend.texi (x86 Built-in Functions): Document
16981 __builtin_nanq and __builtin_nansq.
16983 2016-06-11 Jiong Wang <jiong.wang@arm.com>
16986 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
16987 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
16988 length for pop patterns.
16989 (arm_attr_length_push_multi): Update comments.
16990 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
16992 (*pop_multiple_with_writeback_and_return): Likewise.
16993 (*pop_multiple_with_return): Likewise.
16995 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
16997 PR middle-end/71310
16998 * fold-const.c (optimize_bit_field_compare): Don't try to use
16999 word_mode unconditionally for reading the bit field, look at
17000 DECL_BIT_FIELD_REPRESENTATIVE instead.
17002 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
17004 PR middle-end/71478
17005 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
17006 vector integer type.
17008 2016-06-10 Jakub Jelinek <jakub@redhat.com>
17010 PR middle-end/71494
17011 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
17012 without LABEL_DECL, set *handled_ops_p to false instead of true.
17014 2016-06-10 Martin Sebor <msebor@redhat.com>
17017 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
17018 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
17019 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
17021 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
17022 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
17023 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
17024 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
17025 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
17026 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
17027 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
17028 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
17030 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17032 * config/arm/arm.h (pool_vector_label,
17033 return_used_this_function): Remove.
17035 2016-06-10 Jeff Law <law@redhat.com>
17037 PR tree-optimization/71335
17038 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
17039 zero length paths here.
17040 (convert_and_register_jump_thread_path): Remove hacks related to
17041 duplicated blocks in the jump thread path.
17042 (fsm_find_control_statement_thread_paths): Avoid putting the same
17043 block on the thread path twice, but ensure the thread path is
17044 unchanged from the caller's point of view.
17046 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17048 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
17049 * predict.def (PRED_LOOP_BRANCH): Remove.
17051 2016-06-10 David Malcolm <dmalcolm@redhat.com>
17053 * Makefile.in (OBJS): Add ggc-tests.o.
17054 (GTFILES): Add ggc-tests.c.
17055 * ggc-tests.c: New file.
17056 * selftest-run-tests.c (selftest::run_tests): Call
17057 selftest::ggc_tests_c_tests.
17058 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
17060 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
17062 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
17064 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
17067 * varasm.c (place_block_symbol): Adjust alignment for asan protected
17068 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
17070 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17072 * profile.c: Include cfgloop.h.
17073 (branch_prob): Compute estimated number of iterations.
17074 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
17075 recompute estimate number of iterations from profile.
17077 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17079 PR inline-asm/68843
17080 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
17081 must be grouped on top of stack. Don't force early clobber
17082 on ordinary reg outputs.
17084 2016-06-10 Richard Biener <rguenther@suse.de>
17086 * targhooks.c (default_builtin_vectorization_cost): Adjust
17087 vec_construct cost.
17089 2016-06-10 Richard Biener <rguenther@suse.de>
17091 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
17092 to fold the RHS to a constant if possible.
17094 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
17096 PR middle-end/71373
17097 * tree-nested.c (convert_nonlocal_omp_clauses)
17098 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
17099 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17100 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
17102 * gimplify.c (gimplify_adjust_omp_clauses): Discard
17104 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
17106 * omp-low.c (scan_sharing_clauses): Don't expect
17107 OMP_CLAUSE__CACHE_.
17109 2016-06-10 Alan Hayward <alan.hayward@arm.com>
17111 PR tree-optimization/71407
17112 PR tree-optimization/71416
17113 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
17114 BIT_FIELD_REF type.
17116 2016-06-10 Richard Biener <rguenther@suse.de>
17118 PR middle-end/71477
17119 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
17121 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
17123 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
17125 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
17126 Jiong Wang <jiong.wang@arm.com>
17128 PR rtl-optimization/70751
17129 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
17130 spilled into memory.
17132 2016-06-09 Jonathan Yong <10walls@gmail.com>
17135 2015-09-21 Jonathan Yong <10walls@gmail.com>
17137 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17138 sysroot/usr/lib/32api for additional win32 libraries,
17139 fixes failing Cygwin bootstrapping.
17141 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
17143 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
17146 2016-06-09 David Malcolm <dmalcolm@redhat.com>
17149 * pretty-print.c (pp_indent): Specify that %p is printed in a
17150 host-dependent manner.
17151 (test_pp_format): Remove the test for %p.
17153 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
17155 * config/mips/mips.c (mips_output_jump): Fix formatting.
17157 2016-06-09 Richard Biener <rguenther@suse.de>
17159 PR tree-optimization/71462
17160 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
17163 2016-06-09 Martin Liska <mliska@suse.cz>
17165 * predict.c (dump_prediction): Add new argument.
17166 (enum predictor_reason): New enum.
17167 (struct predictor_hash): New struct.
17168 (predictor_hash::hash): New function.
17169 (predictor_hash::equal): Likewise.
17170 (not_removed_prediction_p): New function.
17171 (prune_predictions_for_bb): Likewise.
17172 (combine_predictions_for_bb): Prune predictions.
17174 2016-06-09 Martin Liska <mliska@suse.cz>
17176 * predict.c (filter_predictions): New function.
17177 (remove_predictions_associated_with_edge): Use the filter
17179 (equal_edge_p): New function.
17181 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
17183 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
17184 Correct usage of @samp vs @option, add @samp where appropriate.
17185 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
17186 Add armv6s-m and document it, as it is no official ARM name.
17188 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17190 * ifcvt.c (struct noce_if_info): Add transform_name field.
17191 (noce_try_move): Set if_info->transform_name to the function name.
17192 (noce_try_ifelse_collapse): Likewise.
17193 (noce_try_store_flag): Likewise.
17194 (noce_try_inverse_constants): Likewise.
17195 (noce_try_store_flag_constants): Likewise.
17196 (noce_try_addcc): Likewise.
17197 (noce_try_store_flag_mask): Likewise.
17198 (noce_try_cmove): Likewise.
17199 (noce_try_cmove_arith): Likewise.
17200 (noce_try_minmax): Likewise.
17201 (noce_try_abs): Likewise.
17202 (noce_try_sign_mask): Likewise.
17203 (noce_try_bitop): Likewise.
17204 (noce_convert_multiple_sets): Likewise.
17205 (noce_process_if_block): Print if_info->transform_name to
17206 dump_file if transformation succeeded.
17208 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17210 * config/arm/cortex-a57.md (cortex_a57_alu):
17213 2016-06-08 Martin Sebor <msebor@redhat.com>
17214 Jakub Jelinek <jakub@redhat.com>
17218 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
17219 BUILT_IN_MUL_OVERFLOW_P): New builtins.
17220 * builtins.c: Include gimple-fold.h.
17221 (fold_builtin_arith_overflow): Handle
17222 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
17223 (fold_builtin_3): Likewise.
17224 * doc/extend.texi (Integer Overflow Builtins): Document
17225 __builtin_{add,sub,mul}_overflow_p.
17227 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
17229 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
17230 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
17232 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
17234 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
17235 Rewrite, looking one level down for records and arrays.
17237 2016-06-08 David Malcolm <dmalcolm@redhat.com>
17239 * pretty-print.c: Include "selftest.h".
17240 (pp_format): Fix comment.
17241 (identifier_to_locale): Likewise.
17242 (selftest::test_basic_printing): New function.
17243 (selftest::assert_pp_format): New function.
17244 (selftest::test_pp_format): New function.
17245 (selftest::pretty_print_c_tests): New function.
17246 * selftest-run-tests.c (selftest::run_tests): Call
17247 selftest::pretty_print_c_tests.
17248 * selftest.h (pretty_print_c_tests): New declaration.
17250 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17252 * invoke.texi (max-loop-headers-insns): Document.
17253 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
17254 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
17255 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
17257 2016-06-08 Richard Biener <rguenther@suse.de>
17259 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
17260 on strided SLP loads and fall back to scalar loads in case
17261 we can't chunk them.
17263 2016-06-08 Richard Biener <rguenther@suse.de>
17265 PR tree-optimization/71452
17266 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
17267 type used for the SSA rewrite has enough precision to cover
17268 the dynamic type of the location.
17270 2016-06-08 Jakub Jelinek <jakub@redhat.com>
17271 Richard Biener <rguenther@suse.de>
17274 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
17275 the same as DECL_P (base0) for indirect_base0. Use equality_code
17276 in one further place.
17278 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
17280 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
17281 to one word if the field is known to overlap other words.
17282 (extract_bit_field_1): Likewise.
17283 (store_split_bit_field): Remove compensating code.
17284 (extract_split_bit_field): Likewise.
17286 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
17290 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
17292 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17294 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
17296 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
17297 (arch64_addpv4sf): Delete.
17298 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
17299 "gen_aarch64_addpv4sf".
17300 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
17302 (vpadds_f32): Likewise.
17303 (vpaddq_f32): Likewise.
17304 (vpaddq_f64): Likewise.
17306 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17308 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
17310 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
17311 to VALLF. Rename to "fabd<mode>3".
17312 "*fabd_scalar<mode>3): Delete.
17313 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
17315 (vabdd_f64): Likewise.
17316 (vabd_f32): Likewise.
17317 (vabd_f64): Likewise.
17318 (vabdq_f32): Likewise.
17319 (vabdq_f64): Likewise.
17321 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17323 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17325 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17326 "aarch64_rsqrts<mode>".
17327 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17328 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
17330 (vrsqrtsd_f64): Likewise.
17331 (vrsqrts_f32): Likewise.
17332 (vrsqrts_f64): Likewise.
17333 (vrsqrtsq_f32): Likewise.
17334 (vrsqrtsq_f64): Likewise.
17336 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17338 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17340 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17341 "aarch64_rsqrte<mode>".
17342 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17343 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
17345 (vrsqrted_f64): Likewise.
17346 (vrsqrte_f32): Likewise.
17347 (vrsqrte_f64): Likewise.
17348 (vrsqrteq_f32): Likewise.
17349 (vrsqrteq_f64): Likewise.
17351 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17353 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17355 (fcvtzs): Likewise.
17356 (fcvtzu): Likewise.
17357 * config/aarch64/aarch64-simd.md
17358 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17359 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17360 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17362 (vcvt_n_f32_u32): Likewise.
17363 (vcvt_n_s32_f32): Likewise.
17364 (vcvt_n_u32_f32): Likewise.
17365 (vcvtq_n_f32_s32): Likewise.
17366 (vcvtq_n_f32_u32): Likewise.
17367 (vcvtq_n_f64_s64): Likewise.
17368 (vcvtq_n_f64_u64): Likewise.
17369 (vcvtq_n_s32_f32): Likewise.
17370 (vcvtq_n_s64_f64): Likewise.
17371 (vcvtq_n_u32_f32): Likewise.
17372 (vcvtq_n_u64_f64): Likewise.
17373 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17374 (VSDQ_SDI): Likewise.
17375 (fcvt_target): Support V4DI, V4SI and V2SI.
17376 (FCVT_TARGET): Likewise.
17378 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17380 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17381 (TYPES_BINOP_SUS): Likewise.
17382 (aarch64_simd_builtin_data): Update include file name.
17383 (aarch64_builtins): Likewise.
17384 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17385 for conversion between scalar float-point and fixed-point.
17387 (fcvtzs): Likewise.
17388 (fcvtzu): Likewise.
17389 * config/aarch64/aarch64.md
17390 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17391 pattern for conversion between scalar float to fixed-pointer.
17392 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17393 (UNSPEC_FCVTZS): New UNSPEC enumeration.
17394 (UNSPEC_FCVTZU): Likewise.
17395 (UNSPEC_SCVTF): Likewise.
17396 (UNSPEC_UCVTF): Likewise.
17397 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17399 (vcvtd_n_f64_u64): Likewise.
17400 (vcvtd_n_s64_f64): Likewise.
17401 (vcvtd_n_u64_f64): Likewise.
17402 (vcvtd_n_f32_s32): Likewise.
17403 (vcvts_n_f32_u32): Likewise.
17404 (vcvtd_n_s32_f32): Likewise.
17405 (vcvts_n_u32_f32): Likewise.
17406 * config/aarch64/iterators.md (fcvt_target): Support integer to float
17408 (FCVT_TARGET): Likewise.
17409 (FCVT_FIXED2F): New iterator.
17410 (FCVT_F2FIXED): Likewise.
17411 (fcvt_fixed_insn): New define_int_attr.
17413 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17415 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17416 some statements was removed.
17418 2016-06-08 Alan Hayward <alan.hayward@arm.com>
17420 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17421 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17422 (vect_can_advance_ivs_p): likewise.
17423 (vect_update_ivs_after_vectorizer): likewise.
17424 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17425 (vect_analyze_scalar_cycles_1): likewise.
17426 (vect_analyze_loop_operations): likewise.
17427 (report_vect_op): likewise.
17428 (vect_is_slp_reduction): likewise.
17429 (vect_is_simple_reduction): likewise.
17430 (get_initial_def_for_induction): likewise.
17431 (vect_transform_loop): likewise.
17432 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17433 (vect_recog_sad_pattern): likewise.
17434 (vect_recog_widen_sum_pattern): likewise.
17435 (vect_recog_widening_pattern): likewise.
17436 (vect_recog_divmod_pattern): likewise.
17437 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17438 (vect_analyze_slp_instance): likewise.
17439 (vect_transform_slp_perm_load): likewise.
17440 (vect_schedule_slp_instance): likewise.
17442 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17444 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17445 (return_prediction): PRED_CONST_RETURN predict return as not taken.
17446 * predict.def (PRED_CONTINUE): Change hitrate 50->67
17447 (PRED_LOOP_BRANCH): Document predictor as broken.
17448 (PRED_LOOP_EXIT): Change hitrate 91->92.
17449 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17450 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17451 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17452 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17453 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17454 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17455 (PRED_CALL): Chane hitrate 71->67.
17456 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17457 (PRED_GOTO): Document as unused right now.
17458 (PRED_CONST_RETURN): Change hitrate 67->69
17459 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17460 (PRED_NULL_RETURN): Change hitrate 91->90.
17461 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17462 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17463 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17465 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
17467 * config/rs6000/altivec.h: Add __builtin_vec_mul.
17468 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17469 special case Altivec builtin.
17470 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17471 VSX_BUILTIN_VEC_MUL (replaced with special case code).
17472 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17473 code for ALTIVEC_BUILTIN_VEC_MUL.
17474 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17475 for __builtin_vec_mul.
17477 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
17479 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17482 2016-06-07 David Malcolm <dmalcolm@redhat.com>
17484 * spellcheck.c (selftest::test_find_closest_string): New function.
17485 (spellcheck_c_tests): Call the above.
17487 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17489 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17491 2016-06-07 Jakub Jelinek <jakub@redhat.com>
17493 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17494 Yv=Yv,C alternatives.
17496 2016-06-07 Richard Biener <rguenther@suse.de>
17499 * common.opt (ffast-math): Make Optimization.
17501 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
17502 Prachi Godbole <prachi.godbole@imgtec.com>
17504 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17505 `fabs' and `fneg' type attributes.
17506 (p5600_fpu_fabs): Add `fmove' to the comment.
17508 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17510 * gimple.c: Include builtins.h
17511 (gimple_inexpensive_call_p): New function.
17512 * gimple.h (gimple_inexpensive_call_p): Declare.
17513 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17514 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17517 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
17519 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17520 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17521 warning_at_rich_loc, warning_n, pedwarn, permerror,
17522 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17523 sorry, fatal_error, internal_error, internal_error_no_backtrace):
17526 2016-06-07 Richard Biener <rguenther@suse.de>
17528 PR tree-optimization/71428
17529 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17530 BIT_FIELD_REF op vs. load.
17532 2016-06-07 Richard Biener <rguenther@suse.de>
17534 PR middle-end/71423
17535 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17538 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17540 * config/pa/pa.md (call): Generate indirect long calls to non-local
17541 functions on TARGET_64BIT.
17542 (call_value): Likewise.
17544 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17546 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17547 pattern and subsequent splitters.
17548 (call_val_reg_64bit_post_reload): Likewise.
17550 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17552 PR middle-end/71408
17553 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17554 propagate_op_to_single_use.
17556 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17558 PR middle-end/71281
17559 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17561 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
17563 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17564 (enum x86_dirflag_state): New enum.
17565 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17566 (machine_function): Remove needs_cld.
17567 (ix86_current_function_needs_cld): Remove.
17568 * config/i386/i386.c (ix86_set_func_type): Set
17569 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17570 (ix86_expand_prologue): Do not emit CLD here.
17571 (ix86_dirflag_mode_needed): New function.
17572 (ix86_dirflag_mode_entry): Ditto.
17573 (ix86_mode_needed): Handle X86_DIRFLAG entity.
17574 (ix86_mode_after): Ditto.
17575 (ix86_mode_entry): Ditto.
17576 (ix86_mode_exit): Ditto.
17577 (ix86_emit_mode_set): Ditto.
17578 * config/i386/i386.md (strmov_singleop): Set
17579 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17580 Do not set ix86_current_function_needs_cld.
17582 (strset_singleop): Ditto.
17584 (cmpstrnqi_nz_1): Ditto.
17585 (cmpstrnqi_1): Ditto.
17586 (strlenqi_1): Ditto.
17588 2016-06-06 Jakub Jelinek <jakub@redhat.com>
17590 PR tree-optimization/71259
17591 * tree-vect-slp.c (vect_get_constant_vectors): For
17592 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17593 one for constant op, and use COND_EXPR for non-constant.
17595 2016-06-06 David Malcolm <dmalcolm@redhat.com>
17597 * Makefile.in (OBJS): Add function-tests.o,
17598 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17599 selftest-run-tests.o.
17600 (OBJS-libcommon): Add selftest.o.
17601 (OBJS-libcommon-target): Add selftest.o.
17602 (all.internal): Add "selftest".
17603 (all.cross): Likewise.
17604 (selftest): New phony target.
17605 (s-selftest): New target.
17606 (selftest-gdb): New phony target.
17607 (COLLECT2_OBJS): Add selftest.o.
17608 * bitmap.c: Include "selftest.h".
17609 (selftest::test_gc_alloc): New function.
17610 (selftest::test_set_range): New function.
17611 (selftest::test_clear_bit_in_middle): New function.
17612 (selftest::test_copying): New function.
17613 (selftest::test_bitmap_single_bit_set_p): New function.
17614 (selftest::bitmap_c_tests): New function.
17615 * common.opt (fself-test): New.
17616 * diagnostic-show-locus.c: Include "selftest.h".
17617 (make_range): New function.
17618 (test_range_contains_point_for_single_point): New function.
17619 (test_range_contains_point_for_single_line): New function.
17620 (test_range_contains_point_for_multiple_lines): New function.
17621 (assert_eq): New function.
17622 (test_get_line_width_without_trailing_whitespace): New function.
17623 (selftest::diagnostic_show_locus_c_tests): New function.
17624 * et-forest.c: Include "selftest.h".
17625 (selftest::test_single_node): New function.
17626 (selftest::test_simple_tree): New function.
17627 (selftest::test_disconnected_nodes): New function.
17628 (selftest::et_forest_c_tests): New function.
17629 * fold-const.c: Include "selftest.h".
17630 (selftest::assert_binop_folds_to_const): New function.
17631 (selftest::assert_binop_folds_to_nonlvalue): New function.
17632 (selftest::test_arithmetic_folding): New function.
17633 (selftest::fold_const_c_tests): New function.
17634 * function-tests.c: New file.
17635 * gimple.c: Include "selftest.h".
17636 Include "gimple-pretty-print.h".
17637 (selftest::verify_gimple_pp): New function.
17638 (selftest::test_assign_single): New function.
17639 (selftest::test_assign_binop): New function.
17640 (selftest::test_nop_stmt): New function.
17641 (selftest::test_return_stmt): New function.
17642 (selftest::test_return_without_value): New function.
17643 (selftest::gimple_c_tests): New function.
17644 * hash-map-tests.c: New file.
17645 * hash-set-tests.c: New file.
17646 * input.c: Include "selftest.h".
17647 (selftest::assert_loceq): New function.
17648 (selftest::test_accessing_ordinary_linemaps): New function.
17649 (selftest::test_unknown_location): New function.
17650 (selftest::test_builtins): New function.
17651 (selftest::test_reading_source_line): New function.
17652 (selftest::input_c_tests): New function.
17653 * rtl-tests.c: New file.
17654 * selftest-run-tests.c: New file.
17655 * selftest.c: New file.
17656 * selftest.h: New file.
17657 * spellcheck.c: Include "selftest.h".
17658 (selftest::levenshtein_distance_unit_test_oneway): New function,
17659 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
17660 (selftest::levenshtein_distance_unit_test): Likewise.
17661 (selftest::spellcheck_c_tests): Likewise.
17662 * toplev.c: Include selftest.h.
17663 (toplev::run_self_tests): New.
17664 (toplev::main): Handle -fself-test.
17665 * toplev.h (toplev::run_self_tests): New.
17666 * tree.c: Include "selftest.h".
17667 (selftest::test_integer_constants): New function.
17668 (selftest::test_identifiers): New function.
17669 (selftest::test_labels): New function.
17670 (selftest::tree_c_tests): New function.
17671 * tree-cfg.c: Include "selftest.h".
17672 (selftest::push_fndecl): New function.
17673 (selftest::test_linear_chain): New function.
17674 (selftest::test_diamond): New function.
17675 (selftest::test_fully_connected): New function.
17676 (selftest::tree_cfg_c_tests): New function.
17677 * vec.c: Include "selftest.h".
17678 (selftest::safe_push_range): New function.
17679 (selftest::test_quick_push): New function.
17680 (selftest::test_safe_push): New function.
17681 (selftest::test_truncate): New function.
17682 (selftest::test_safe_grow_cleared): New function.
17683 (selftest::test_pop): New function.
17684 (selftest::test_safe_insert): New function.
17685 (selftest::test_ordered_remove): New function.
17686 (selftest::test_unordered_remove): New function.
17687 (selftest::test_block_remove): New function.
17688 (selftest::reverse_cmp): New function.
17689 (selftest::test_qsort): New function.
17690 (selftest::vec_c_tests): New function.c.
17691 * wide-int.cc: Include selftest.h and wide-int-print.h.
17692 (selftest::from_int <wide_int>): New function.
17693 (selftest::from_int <offset_int>): New function.
17694 (selftest::from_int <widest_int>): New function.
17695 (selftest::assert_deceq): New function.
17696 (selftest::assert_hexeq): New function.
17697 (selftest::test_printing <VALUE_TYPE>): New function template.
17698 (selftest::test_ops <VALUE_TYPE>): New function template.
17699 (selftest::test_comparisons <VALUE_TYPE>): New function template.
17700 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
17702 (selftest::wide_int_cc_tests): New function.
17704 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17706 PR middle-end/37780
17707 * ifcvt.c (noce_try_ifelse_collapse): New function.
17709 (noce_process_if_block): Call noce_try_ifelse_collapse.
17710 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
17711 (simplify_ternary_operation): Use the above to simplify
17712 conditional CLZ/CTZ expressions.
17714 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17716 PR middle-end/37780
17717 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
17718 define_insn_and_split.
17720 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17722 PR middle-end/37780
17723 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
17725 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
17728 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
17729 Implicitly clobber memory for basic asm with non-empty assembler
17730 string. Use targetm.md_asm_adjust also here.
17731 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
17732 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
17733 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
17734 non-empty assembler string.
17735 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
17736 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
17737 (decode_asm_operands): Handle basic asm in PARALLEL block.
17738 (extract_insn): Handle basic asm in PARALLEL block.
17739 * doc/extend.texi: Mention new behavior of basic asm.
17740 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
17741 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
17742 branch_needs_nop_p): Use asm_noperands.
17744 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
17746 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
17747 Include the M7 SPARC DFA scheduler.
17748 New attribute v3pipe.
17749 Annotate insns with v3pipe where appropriate.
17750 Define cpu_feature vis4.
17751 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
17752 Add (V8QI "8") to vbits.
17753 Add insns {add,sub}v8qi3
17754 Add insns ss{add,sub}v8qi3
17755 Add insns us{add,sub}{v8qi,v4hi}3
17756 Add insns {min,max}{v8qi,v4hi,v2si}3
17757 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
17758 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
17759 * config/sparc/niagara4.md: Add a comment explaining the
17760 discrepancy between the documented latenty numbers and the
17762 * config/sparc/niagara7.md: New file.
17763 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
17764 supports SPARC5 and VIS 4.0 instructions.
17765 * configure: Regenerate.
17766 * config.in: Likewise.
17767 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
17768 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
17769 TARGET_CPU_niagara7.
17770 (ASM_CPU64_DEFAULT_SPEC): Likewise.
17771 (CPP_CPU_SPEC): Handle niagara7.
17772 (ASM_CPU_SPEC): Likewise.
17773 * config/sparc/sparc-opts.h (processor_type): Add
17774 PROCESSOR_NIAGARA7.
17775 (mvis4): New option.
17776 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
17777 (AS_NIAGARA7_FLAG): Define.
17778 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
17779 (CPP_CPU64_DEFAULT_SPEC): Likewise.
17780 (CPP_CPU_SPEC): Handle niagara7.
17781 (ASM_CPU_SPEC): Likewise.
17782 * config/sparc/sparc.c (niagara7_costs): Define.
17783 (sparc_option_override): Handle niagara7 and adjust cache-related
17784 parameters with better values for niagara cpus. Also support VIS4.
17785 (sparc32_initialize_trampoline): Likewise.
17786 (sparc_use_sched_lookahead): Likewise.
17787 (sparc_issue_rate): Likewise.
17788 (sparc_register_move_cost): Likewise.
17789 (dump_target_flag_bits): Support VIS4.
17790 (sparc_vis_init_builtins): Likewise.
17791 (sparc_builtins): Likewise.
17792 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
17794 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
17796 * config/sparc/sparc.opt (sparc_processor_type): New value
17798 * config/sparc/visintrin.h (__attribute__): Prototypes for the
17800 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
17802 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
17805 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
17807 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
17809 2016-06-06 Richard Biener <rguenther@suse.de>
17811 PR tree-optimization/71398
17812 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
17815 2016-06-05 James Bowman <james.bowman@ftdichip.com>
17817 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
17818 ft32_expand_prolog, ft32_expand_epilogue):
17819 Handle pretend_args.
17820 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
17821 * config/ft32/ft32.md: Add pretend_returner.
17823 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
17826 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17827 Copy op1 RTX to avoid invalid sharing.
17828 (ix86_expand_vector_move_misalign): Ditto.
17830 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
17832 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
17835 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
17837 * predict.c (predicted_by_loop_heuristics_p): New function.
17838 (predict_iv_comparison): Use it.
17839 (predict_loops): Walk from innermost loops; do not predict edges
17840 leaving multiple loops multiple times; implement
17841 PRED_LOOP_ITERATIONS_MAX heuristics.
17842 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
17844 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
17846 * cfg.c (check_bb_profile): Do not report mismatched profiles when
17847 only edges out of BB are EH edges.
17849 2016-06-04 Martin Sebor <msebor@redhat.com>
17850 Marcin Baczyński <marbacz@gmail.com>
17853 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
17854 a void expression in a void function.
17856 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17858 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
17859 aux; dump reasons of decisions.
17860 (should_duplicate_loop_header_p): Likewise.
17861 (do_while_loop_p): Likewise.
17862 (ch_base::copy_headers): Dump asi num insns duplicated.
17864 2016-06-04 Jakub Jelinek <jakub@redhat.com>
17866 PR tree-optimization/71405
17867 * tree-ssa.c (execute_update_addresses_taken): For clobber with
17868 incompatible type, build a new clobber with the right type instead
17869 of building a VIEW_CONVERT_EXPR around it.
17871 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17873 PR tree-optimization/52171
17874 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
17875 by_pieces_ninsns instead of move_by_pieces_ninsns.
17877 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17879 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
17880 for reg+reg addressing mode.
17882 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17884 * rs6000-c.c (c/c-tree.h): Add #include.
17885 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
17886 in C++ when found in the base position of vec_ld or vec_st.
17888 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17890 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
17891 use of profile unless profile status is PROFILE_READ.
17892 * profile.c (compute_branch_probabilities): Set profile status
17893 only after reporting predictor hitrates.
17895 2016-06-03 Joseph Myers <joseph@codesourcery.com>
17899 * common.opt (ffp-int-builtin-inexact): New option.
17900 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
17901 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
17902 (ceil@var{m}2): Document dependence on this option.
17903 * ipa-inline-transform.c (inline_call): Handle
17904 flag_fp_int_builtin_inexact.
17905 * ipa-inline.c (can_inline_edge_p): Likewise.
17906 * config/i386/i386.md (rintxf2): Do not test
17907 flag_unsafe_math_optimizations.
17908 (rint<mode>2_frndint): New define_insn.
17909 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
17910 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
17911 for 387 instead of extending and truncating.
17912 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
17913 !flag_trapping_math instead of flag_unsafe_math_optimizations.
17914 Change to frndint<mode>2_<rounding>.
17915 (frndintxf2_<rounding>_i387): Likewise. Change to
17916 frndint<mode>2_<rounding>_i387.
17917 (<rounding_insn>xf2): Likewise.
17918 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
17919 !flag_trapping_math instead of flag_unsafe_math_optimizations for
17920 x87. Test TARGET_ROUND || !flag_trapping_math ||
17921 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
17922 SSE. Use ROUND_NO_EXC in constant operand of
17923 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
17924 for 387 instead of extending and truncating.
17926 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
17927 Julia Koval <julia.koval@intel.com>
17939 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
17940 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
17941 all registers, except for function return registers if there are
17942 no caller-saved registers.
17943 (ix86_set_func_type): New function.
17944 (ix86_set_current_function): Call ix86_set_func_type to set
17945 no_caller_saved_registers and func_type. Call reinit_regs if
17946 caller-saved registers are changed. Don't allow MPX, SSE, MMX
17947 nor x87 instructions in interrupt handler nor function with
17948 no_caller_saved_registers attribute.
17949 (ix86_function_ok_for_sibcall): Return false if there are no
17950 caller-saved registers.
17951 (type_natural_mode): Don't warn ABI change for MMX in interrupt
17953 (ix86_function_arg_advance): Skip for callee in interrupt handler.
17954 (ix86_function_arg): Return special arguments in interrupt handler.
17955 (ix86_promote_function_mode): Promote pointer to word_mode only
17956 for normal functions.
17957 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
17959 (ix86_epilogue_uses): New function.
17960 (ix86_hard_regno_scratch_ok): Likewise.
17961 (ix86_save_reg): Preserve all registers in interrupt handler
17962 after reload. Preserve all registers, except for function return
17963 registers, if there are no caller-saved registers after reload.
17964 (find_drap_reg): Always use callee-saved register if there are
17965 no caller-saved registers.
17966 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
17967 for interrupt handler.
17968 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
17969 Emit cld instruction if stringops are used in interrupt handler
17970 or interrupt handler isn't a leaf function.
17971 (ix86_expand_epilogue): Generate interrupt return for interrupt
17972 handler and pop the 'ERROR_CODE' off the stack before interrupt
17973 return in exception handler.
17974 (ix86_expand_call): Disallow calling interrupt handler directly.
17975 If there are no caller-saved registers, mark all registers that
17976 are clobbered by the call which returns as clobbered.
17977 (ix86_handle_no_caller_saved_registers_attribute): New function.
17978 (ix86_handle_interrupt_attribute): Likewise.
17979 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
17981 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
17982 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
17983 accumulation in interrupt function if stack may be realigned to
17985 (EPILOGUE_USES): New.
17986 (function_type): New enum.
17987 (machine_function): Add func_type and no_caller_saved_registers.
17988 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
17989 (interrupt_return): New pattern.
17990 * doc/extend.texi: Document x86 interrupt and
17991 no_caller_saved_registers attributes.
17993 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
17995 PR tree-optimization/52171
17996 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
17997 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
17998 Look for constant strings. Move some code to emit_block_cmp_hints
18000 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
18001 * defaults.h (COMPARE_MAX_PIECES): New macro.
18002 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
18003 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
18004 (clear_by_pieces_1): Don't declare. Move definition before use.
18005 (can_do_by_pieces): New static function.
18006 (can_move_by_pieces): Use it. Return bool.
18007 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
18008 OP. All callers changed. Handle COMPARE_BY_PIECES.
18009 (class pieces_addr); New.
18010 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
18011 pieces_addr::adjust, pieces_addr::increment_address,
18012 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
18014 (class op_by_pieces_d): New.
18015 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
18017 (class move_by_pieces_d, class compare_by_pieces_d,
18018 class store_by_pieces_d): New subclasses of op_by_pieces_d.
18019 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
18020 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
18021 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
18022 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
18023 compare_by_pieces_d::finish_mode): New member functions.
18024 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
18026 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
18027 (emit_block_cmp_hints): New function.
18028 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
18029 use the newly defined classes.
18030 * expr.h (by_pieces_constfn): New typedef.
18031 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
18032 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
18033 (move_by_pieces_ninsns): Don't declare.
18034 (can_move_by_pieces): Change return value to bool.
18035 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
18036 (compare_by_pieces_branch_ratio): New hook.
18037 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
18038 (by_pieces_ninsns): Declare.
18039 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
18041 (default_compare_by_pieces_branch_ratio): New function.
18042 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
18043 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
18044 * doc/tm.texi: Regenerate.
18045 * tree-ssa-strlen.c: Include "builtins.h".
18046 (handle_builtin_memcmp): New static function.
18047 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
18048 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
18050 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18052 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
18053 relevant stmts which are simple and invariant.
18054 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
18055 instead of simple and invariant
18057 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18059 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
18060 (vectorizable_reduction): Check for new relevant state.
18061 (vectorizable_live_operation): vectorize live stmts using
18062 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
18063 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
18064 (vect_stmt_relevant_p): Check for stmts which are only used live.
18065 (process_use): Use of a stmt does not inherit it's live value.
18066 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
18067 (vect_analyze_stmt): Check for new relevant state.
18068 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
18069 outside the loop, but not inside it.
18071 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18073 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
18074 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
18075 (vect_get_vec_def_for_operand): Split out code.
18077 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18079 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
18081 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18083 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
18085 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18087 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
18089 2016-06-03 Jakub Jelinek <jakub@redhat.com>
18091 PR middle-end/71387
18092 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
18093 to noreturn e->callee->decl that has void return type and void
18094 arguments, adjust gimple_call_fntype and remove lhs even if it had
18095 previously addressable type.
18097 2016-06-02 Jeff Law <law@redhat.com>
18099 PR tree-optimization/71328
18100 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
18101 error when checking for a jump back onto the copied path.
18103 2016-06-02 David Malcolm <dmalcolm@redhat.com>
18105 * config/microblaze/microblaze.c (get_branch_target): Add return
18106 NULL_RTX for the non-CALL_P case.
18107 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
18108 (insert_wic): Remove unused local "j".
18110 2016-06-02 Martin Liska <mliska@suse.cz>
18112 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
18114 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
18115 Julia Koval <julia.koval@intel.com>
18117 * function.c (assign_parm_setup_stack): Force source into a
18118 register if needed.
18119 * target.def (function_incoming_arg): Update documentation to
18120 allow arbitrary address computation based on hard register.
18121 * doc/tm.texi: Regenerated.
18123 2016-06-02 Martin Liska <mliska@suse.cz>
18125 * predict.c (combine_predictions_for_bb): Fix first match in
18126 cases where a first predictor contains more than one occurence
18127 in list of predictors. Take the best value in such case.
18129 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18131 PR rtl-optimization/71295
18132 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
18133 offset would go over the size of the inner mode reject it.
18135 2016-06-02 Jakub Jelinek <jakub@redhat.com>
18137 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
18138 x=x,x and v=v,m instead of x=x,m.
18140 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
18141 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
18142 alternative to v=rm,C.
18144 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
18145 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
18146 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
18147 instead of vex for the last two above mentioned alternatives.
18149 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18152 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
18154 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
18156 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
18158 2016-06-01 David Malcolm <dmalcolm@redhat.com>
18160 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
18161 from int to unsigned.
18163 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18165 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
18166 alternatives, eliminating preferred register class. Add support
18167 for the MTVSRDD instruction in ISA 3.0.
18168 (vsx_splat_v4si_internal): Use splat_input_operand instead of
18169 reg_or_indexed_operand.
18170 (vsx_splat_v4sf_internal): Likewise.
18172 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18175 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
18176 for loading up all 0's or all 1's.
18178 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
18180 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
18182 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
18184 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
18186 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
18187 * gcc.c (set_source_date_epoch_envvar): New function, sets
18188 the SOURCE_DATE_EPOCH environment variable to the current time.
18190 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18192 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
18193 the factor for live Phi nodes.
18195 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18197 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
18198 * tree-parloops.c (parallelize_loops): likewise.
18199 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
18200 tree_unswitch_outer_loop): likewise.
18202 2016-06-01 Jakub Jelinek <jakub@redhat.com>
18204 PR middle-end/71371
18205 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
18206 around creation of the temporary.
18208 2016-06-01 Richard Biener <rguenther@suse.de>
18210 PR tree-optimization/71366
18211 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
18212 (unloop_loops): Move removing edges here ...
18213 (try_unroll_loop_completely): ... from here.
18214 (try_peel_loop): ... and here.
18215 (tree_unroll_loops_completely_1): Track parent loops via
18216 bitmap of header BBs.
18217 (tree_unroll_loops_completely): Adjust for that.
18219 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18221 * config/rs6000/altivec.h (vec_slv): New macro.
18222 (vec_srv): New macro.
18223 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
18224 (UNSPEC_VSRV): New value.
18227 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
18228 (vsrv): New builtin definition.
18229 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
18230 define argument types for new builtin.
18231 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
18233 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
18236 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
18237 Jocelyn Mayer <l_indien@magic.fr>
18240 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
18241 detect processor family for signature_CENTAUR_ebx.
18242 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
18243 signature_CENTAUR_ebx.
18244 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
18245 <default>: Pass x86-64 for has_longmode.
18247 2016-06-01 Nathan Sidwell <nathan@acm.org>
18249 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
18252 2016-06-01 Richard Biener <rguenther@suse.de>
18254 PR tree-optimization/71261
18255 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
18256 of stmts successfully put in the bool pattern. Remove
18257 single-use restriction.
18258 (adjust_bool_pattern_cast): Add cast at the use site via the
18259 pattern def sequence.
18260 (adjust_bool_pattern): Remove recursion, maintain a hash-map
18261 of patterned defs. Use the pattern def seqence instead of
18262 multiple independent patterns.
18263 (sort_after_uid): New qsort compare function.
18264 (adjust_bool_stmts): New function to process stmts in the bool
18265 pattern in IL order.
18266 (vect_recog_bool_pattern): Adjust.
18267 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
18268 (ifcvt_walk_pattern_tree): Likewise.
18269 (stmt_is_root_of_bool_pattern): Likewise.
18270 (ifcvt_repair_bool_pattern): Likewise.
18271 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
18273 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18275 * loop-unroll.c (decide_unroll_constant_iterations,
18276 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
18277 likely upper bounds.
18278 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
18280 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
18282 * tree-core.h (enum omp_clause_code): Remove
18283 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
18285 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18287 * config/arm/sync.md (arm_store_exclusive<mode>):
18288 Use 'H' output modifier on operands[2] rather than creating a new
18289 entry in out-of-bounds memory of the operands array.
18290 (arm_store_release_exclusivedi): Likewise.
18292 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18294 * config/arm/arm.c (arm_fusion_enabled_p): New function.
18295 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
18296 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
18297 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18299 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18301 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
18302 into account live statements for mask producers.
18304 2016-06-01 Richard Biener <rguenther@suse.de>
18306 PR tree-optimization/71311
18307 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
18308 restrict to non-INTEGER_CST @0.
18310 2016-06-01 Richard Biener <rguenther@suse.de>
18312 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
18313 (relational patterns): Use :c to avoid pattern duplications.
18315 2016-06-01 Richard Biener <rguenther@suse.de>
18317 * genmatch.c (comparison_code_p): New predicate.
18318 (swap_tree_comparison): New function.
18319 (commutate): Add for_vec parameter to append new for entries.
18320 Support commutating relational operators by swapping it alongside
18322 (lower_commutative): Adjust.
18323 (dt_simplify::gen): Do not pass artificial operators to gen
18325 (decision_tree::gen): Do not add artificial operators as parameters.
18326 (parser::parse_expr): Verify operator commutativity when :c is
18327 applied. Allow :C to override this.
18328 * match.pd: Adjust patterns to use :C instead of :c where required.
18330 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
18332 PR tree-optimization/71077
18333 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18334 the combining step, use boolean_false_node and boolean_true_node
18335 as the designated false/true return values.
18337 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18339 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18340 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18341 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18344 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18346 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18347 of flags impliying the register renaming.
18348 * toplev.c (process_options): Do not imply flag_rename_registers with
18351 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18353 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18354 default implementation.
18356 2016-05-31 Nathan Sidwell <nathan@acm.org>
18358 * dwarf2out.c (cur_line_info_table): Add GTY marker.
18360 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18362 * config/sh/constraints.md (b): Remove constraint.
18363 * config/sh/predicates.md (arith_reg_operand): Remove
18365 * config/sh/sh-modes.def (PDI): Remove.
18366 * config/sh/sh.c (sh_target_reg_class,
18367 sh_optimize_target_register_callee_saved): Remove functions.
18368 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18369 (sh_expand_epilogue): Update comment.
18370 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18371 sh_secondary_reload): Remove TARGET_REGS related code.
18372 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18373 TARGET_REGISTER_P): Remove macros.
18374 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18375 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18376 TR1_REG, TR2_REG): Remove constants.
18377 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18379 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18381 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18382 define_expand patterns.
18383 (adddi3_compact): Rename to adddi3.
18384 (subdi3_compact): Rename to subdi3.
18385 (*negdi2): Rename to negdi2.
18386 (*abs<mode>2): Rename to abs<mode>2.
18388 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18390 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18391 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18392 (atomic_sub_fetchsi): ... this new pattern.
18393 (mvtc): Add CC_REG clobber.
18395 2016-05-31 Marek Polacek <polacek@redhat.com>
18397 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18399 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18401 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18402 aarch64_fusion_enabled_p to check for fusion capabilities.
18404 2016-05-31 Richard Biener <rguenther@suse.de>
18406 PR tree-optimization/71352
18407 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18408 minus one and a negate.
18410 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18412 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18413 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18415 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18416 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18417 Remove use of aarch64_simd_attr_length_move, set length attribute
18419 (*aarch64_be_movoi): Likewise.
18420 (*aarch64_be_movci): Likewise.
18421 (*aarch64_be_movxi): Likewise.
18423 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18425 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18426 It no longer does that.
18427 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18429 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
18431 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18432 attribute __unused__.
18434 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
18436 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18437 * config/arm/arm.c (arm_arch_thumb1): Define.
18438 (arm_option_override): Initialize arm_arch_thumb1.
18439 * config/arm/arm.h (arm_arch_thumb1): Declare.
18440 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18441 support Thumb-1 ISA.
18443 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
18446 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18447 `Yv' for scalar operand.
18449 2016-05-31 Tom de Vries <tom@codesourcery.com>
18451 PR tree-optimization/69068
18452 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18453 phis with more than two args.
18455 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
18457 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18458 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18461 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
18463 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18465 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18467 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18468 cpu_32, cpu_64, tune_32 and tune_64.
18469 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18471 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18473 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18475 2016-05-30 Andi Kleen <ak@linux.intel.com>
18477 * auto-profile.c (read_profile): Replace asserts with errors
18478 when file does not exist.
18479 * gcov-io.c (gcov_read_words): Dito.
18481 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18483 * tree-cfg.c (print_loop): Print likely upper bounds.
18485 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18487 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18488 * opts.c (default_options): Enable peel loops at -O3.
18489 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18490 (try_peel_loop): Do not re-peel already peeled loops;
18491 use likely upper bounds; fix profile updating.
18492 (pass_complete_unroll::execute): Initialize peeled_loops.
18494 2016-05-30 Martin Liska <mliska@suse.cz>
18496 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18497 computed costs by frequency of BB they belong to.
18498 (get_scaled_computation_cost_at): New function.
18500 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
18501 Marc Glisse <marc.glisse@inria.fr>
18503 PR tree-optimization/71289
18504 * match.pd (-1 / B < A, A > -1 / B): New transformations.
18506 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18508 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18510 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18512 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18513 for peeled copies; avoid underflow when updating estimates; correctly
18514 scale loop profile.
18516 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18518 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18519 r236875. Corrected oe3 to oe2 as obvious.
18521 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18523 PR middle-end/71269
18524 PR middle-end/71252
18525 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18526 that inserted stmt will not dominate stmts that defines its operand.
18527 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18528 (rewrite_expr_tree_parallel): Likewise.
18530 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18532 PR middle-end/71252
18533 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18534 all fields including stmt_to_insert are swapped.
18536 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18538 * predict.h (force_edge_cold): Declare.
18539 * predict.c (force_edge_cold): New function.
18540 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18542 (canonicalize_loop_induction_variables): Fix formating.
18544 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
18546 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18547 (visium_expand_copysign): Use gen_int_mode directly.
18548 (visium_compute_frame_size): Minor tweaks.
18550 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18552 * tree-vect-loop.c (vect_analyze_loop_2): Use
18553 likely_max_stmt_executions_int.
18555 2016-05-30 Tom de Vries <tom@codesourcery.com>
18557 PR tree-optimization/69067
18558 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18560 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
18563 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18564 New peepholes to remove unneeded fild/fistp pairs.
18565 (define_peephole2 atomic_loaddi_fpu): Ditto.
18567 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18569 * predict.c (maybe_hot_frequency_p): Avoid division.
18571 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
18573 * doc/install.texi: Use https for shop.fsf.org.
18575 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18577 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18578 likely_max_stmt_executions_int.
18580 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18582 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18583 likely_max_stmt_executions_int.
18585 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18587 * profile.c (compute_branch_probabilities): Do not report hitrates
18589 (branch_prob): Report hitrates here.
18590 * predict.c (gimple_predict_edge): Do not assert profile status;
18591 fix formatting issues.
18593 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18595 * predict.c (edge_predicted_by_p): New function.
18596 (predict_paths_for_bb): Do not put multiple predictions of the same type
18599 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18601 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18604 2016-05-28 Alan Modra <amodra@gmail.com>
18606 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18608 2016-05-28 Alan Modra <amodra@gmail.com>
18610 PR rtl-optimization/71275
18611 * ira.c (ira): Free dominance info.
18613 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
18615 * doc/sourcebuild.texi: New address for upstream Go repository.
18617 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18619 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18620 (TARGET_ARM_V7M): Likewise.
18622 2016-05-26 Jeff Law <law@redhat.com>
18624 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
18625 (thread_across_edge): Remove calls to find_jump_threads_backwards.
18626 * passes.def: Add jump threading passes before DOM/VRP.
18627 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
18628 argument to a basic block from an edge. Remove tests which are
18630 (pass_data_thread_jumps, class pass_thread_jumps): New.
18631 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
18632 (make_pass_thread_jumps): Likewise.
18633 * tree-pass.h (make_pass_thread_jumps): Declare.
18635 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
18637 * config/visium/visium-protos.h (split_double_move): Rename into...
18638 (visium_split_double_move): ...this.
18639 (visium_split_double_add): Declare.
18640 * config/visium/visium.c (split_double_move): Rename into...
18641 (visium_split_double_move): ...this.
18642 (visium_split_double_add): New function.
18643 (visium_expand_copysign): Renumber operands for consistency.
18644 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
18645 (DFmode move splitter): Likewise.
18646 (*addi3_insn): Split by means of visium_split_double_add.
18647 (*adddi3_insn_flags): Delete.
18648 (*plus_plus_sltu<subst_arith>): New insn.
18649 (*subdi3_insn): Split by means of visium_split_double_add.
18650 (subdi3_insn_flags): Delete.
18651 (*minus_minus_sltu<subst_arith>): New insn.
18652 (*negdi2_insn): Split by means of visium_split_double_add.
18653 (*negdi2_insn_flags): Delete.
18655 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
18657 * configure.ac: Treat a --with-headers option without argument
18658 the same as the default (i.e. consult sys-include directory).
18659 * configure: Regenerate.
18661 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18663 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
18664 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
18666 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
18667 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18669 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18672 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
18673 tree-stdarg analysis results.
18674 (aarch64_setup_incoming_varargs): Likewise.
18676 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18678 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
18679 va_list_gpr_counter_field and va_list_fpr_counter_field.
18681 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
18684 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
18685 * config/aarch64/aarch64.c
18686 (aarch64_cannot_change_mode_class): Remove function.
18687 * config/aarch64/aarch64-protos.h
18688 (aarch64_cannot_change_mode_class): Remove.
18690 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18692 * cfgloop.c (record_niter_bound): Record likely upper bounds.
18693 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
18694 get_likely_max_loop_iterations_int): New.
18695 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
18696 any_likely_upper_bound.
18697 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
18699 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
18700 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
18702 (unroll_loop_constant_iterations): Likewise.
18703 (unroll_loop_runtime_iterations): Likewise.
18704 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
18705 * lto-streamer-out.c (output_cfg): Likewise.
18706 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
18708 (canonicalize_loop_induction_variables): Dump likely upper bounds.
18709 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
18710 (likely_max_loop_iterations): New.
18711 (likely_max_loop_iterations_int): New.
18712 (likely_max_stmt_executions): New.
18713 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
18714 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
18715 likely_max_stmt_executions): Declare.
18717 2016-05-27 Marek Polacek <polacek@redhat.com>
18719 PR middle-end/71308
18720 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
18722 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18724 * config/s390/s390.md (2x risbg splitters): Use
18725 reg_overlap_mentioned_p instead of rtx_equal_p.
18727 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18729 * combine.c (make_compound_operation): Take known zero bits into
18730 account when checking for possible zero_extend.
18732 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18734 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
18735 Use const_int_operand for operand 2 predicate. Simplify expand code
18738 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
18740 PR middle-end/71279
18741 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
18744 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18746 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
18747 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
18748 that returns CC_SESWPmode and CC_ZESWPmode.
18749 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
18751 (aarch64_rtx_costs): Likewise.
18753 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18755 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
18756 for ISA 3.0 min/max support.
18757 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
18758 conditional move support.
18759 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
18760 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
18762 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
18763 conditional moves where the comparison type is different from move
18765 (fp_minmax): New code iterator for smin/smax.
18766 (minmax): New code attributes for min/max.
18767 (SMINMAX): Likewise.
18768 (smax<mode>3): Combine min, max insns into one insn using the
18769 fp_minmax code iterator. Add support for ISA 3.0 min/max
18770 instructions that don't need -ffast-math.
18771 (s<minmax><mode>3): Likewise.
18772 (smax<mode>3_vsx): Likewise.
18773 (smin<mode>3): Likewise.
18774 (s<minmax><mode>3_vsx): Likewise.
18775 (smin<mode>3_vsx): Likewise.
18776 (pre-VSX min/max splitters): Likewise.
18777 (s<minmax><mode>3_fpr): Likewise.
18778 (movsfcc): Rewrite floating point conditional moves to combine
18779 SFmode/DFmode into a single insn.
18780 (mov<mode>cc): Likewise.
18781 (movdfcc): Likewise.
18782 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
18783 SFDF2 iterators to handle all combinations.
18784 (fseldfsf4): Likewise.
18785 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
18786 (fseldfdf4): Likewise.
18787 (fselsfdf4): Likewise.
18788 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
18789 comparison instructions that set a 0/-1 mask, and use it for
18790 floating point conditional move via XXSEL.
18791 (fpmask<mode>): Likewise.
18792 (xxsel<mode>): Likewise.
18793 * config/rs6000/predicates.md (min_max_operator): Delete, no
18795 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
18796 instructions that generate a 0/-1 mask for use with XXSEL.
18797 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
18798 say whether floating point min/max is available, either through
18799 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
18800 (TARGET_MINMAX_DF): Likewise.
18802 2016-05-27 Alan Modra <amodra@gmail.com>
18804 PR rtl-optimization/71275
18805 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
18806 for update_equiv_regs and combine_and_move_insns.
18808 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
18810 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
18811 if_then_else or cond RTXes to calculate attribute value.
18812 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
18813 <attr "length_immediate>: Ditto.
18814 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
18815 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
18816 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
18817 <attr "type">: Ditto.
18818 <attr "prefix_data16">: Ditto.
18819 <attr "prefix_extra">: Ditto.
18820 <attr "length_immediate">: Ditto.
18821 <attr "prefix">: Ditto.
18822 (vec_set<mode>_0) <attr "isa">: Ditto.
18823 <attr "prefix_extra">: Ditto.
18824 <attr "length_immediate">: Ditto.
18825 <attr "prefix">: Ditto.
18826 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
18827 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
18828 (sse2_storelpd) <attr "prefix_data16">: Ditto.
18829 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
18830 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
18831 <attr "length_immediate">: Ditto.
18832 <attr "prefix">: Ditto.
18833 (sse2_movsd) <attr "length_immediate">: Ditto.
18834 <attr "prefix">: Ditto.
18835 (vec_concatv2df) <attr "isa">: Ditto.
18836 <attr "prefix">: Ditto.
18837 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
18838 (*vec_extractv2di_1) <attr "isa">: Ditto.
18839 <attr "type">: Ditto.
18840 <attr "length_immediate">: Ditto.
18841 <attr "prefix_rex">: Ditto.
18842 <attr "prefix_extra">: Ditto.
18843 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
18844 <attr "prefix_extra">: Ditto.
18845 <attr "length_immediate">: Ditto.
18846 (vec_concatv2di) <attr "isa">: Ditto.
18847 <attr "prefix_extra">: Ditto.
18848 <attr "length_immediate">: Ditto.
18849 <attr "prefix">: Ditto.
18851 2016-05-26 Martin Liska <mliska@suse.cz>
18853 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
18855 (operator+): Likewise.
18856 (operator-): Likewise.
18857 (comp_cost::operator+=): Likewise.
18858 (comp_cost::operator-=): Likewise.
18859 (comp_cost::operator/=): Likewise.
18860 (comp_cost::operator*=): Likewise.
18861 (operator<): Likewise.
18862 (operator==): Likewise.
18863 (operator<=): Likewise.
18864 (new_cost): Remove.
18865 (infinite_cost_p): Likewise.
18866 (add_costs): Likewise.
18867 (sub_costs): Likewise.
18868 (compare_costs): Likewise.
18869 (set_group_iv_cost): Use the newly introduced functions.
18870 (get_address_cost): Likewise.
18871 (get_shiftadd_cost): Likewise.
18872 (force_expr_to_var_cost): Likewise.
18873 (split_address_cost): Likewise.
18874 (ptr_difference_cost): Likewise.
18875 (difference_cost): Likewise.
18876 (get_computation_cost_at): Likewise.
18877 (determine_group_iv_cost_generic): Likewise.
18878 (determine_group_iv_cost_address): Likewise.
18879 (determine_group_iv_cost_cond): Likewise.
18880 (autoinc_possible_for_pair): Likewise.
18881 (determine_group_iv_costs): Likewise.
18882 (cheaper_cost_pair): Likewise.
18883 (iv_ca_recount_cost): Likewise.
18884 (iv_ca_set_no_cp): Likewise.
18885 (iv_ca_set_cp): Likewise.
18886 (iv_ca_cost): Likewise.
18887 (iv_ca_new): Likewise.
18888 (iv_ca_dump): Likewise.
18889 (iv_ca_narrow): Likewise.
18890 (iv_ca_prune): Likewise.
18891 (iv_ca_replace): Likewise.
18892 (try_add_cand_for): Likewise.
18893 (try_improve_iv_set): Likewise.
18894 (find_optimal_iv_set): Likewise.
18896 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
18898 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
18899 that internal functions will clobber all caller-saved registers.
18901 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18903 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
18904 Return a better case_values_threshold when optimizing.
18906 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18908 * config/aarch64/aarch64-simd.md (aarch64_combinez):
18909 Add ? to integer variant.
18910 (aarch64_combinez_be): Likewise.
18912 2016-05-26 Jakub Jelinek <jakub@redhat.com>
18914 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
18915 instead of x constraint.
18916 (vcvtps2ph256<mask_name>): Likewise.
18918 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
18919 alternative. Formatting fix.
18921 * config/i386/sse.md
18922 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
18924 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
18925 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
18926 maybe_evex prefix instead of vex.
18927 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
18928 EXT_REX_SSE_REG_P (op0) case in the splitter.
18930 2016-05-25 Jeff Law <law@redhat.com>
18932 PR tree-optimization/71272
18933 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
18934 Update comments. Add test for empty path.
18936 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
18938 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
18939 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
18940 special case builtin.
18941 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18942 code for ALTIVEC_BUILTIN_VEC_CMPNE.
18943 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18944 for __builtin_vec_cmpne.
18946 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
18948 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
18949 redundant test and bail out if the type of the new operand is not
18950 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
18952 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18954 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
18955 (x_ix86_target_flags_explicit): Remove.
18956 * config/i386/i386.c (ix86_function_specific_save): Do not copy
18957 x_ix86_target_flags_explicit.
18958 (ix86_function_specific_restore): Ditto.
18960 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18961 H.J. Lu <hongjiu.lu@intel.com>
18964 * common/config/i386/i386-common.c
18965 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
18966 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
18967 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
18968 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
18969 (-mgeneral-regs-only): Add new option.
18970 * config/i386/i386.c (ix86_option_override_internal): Don't enable
18971 x87 instructions if only general registers are allowed.
18972 (ix86_target_string): Add ix86_flags argument. Handle additional
18973 flags options through ix86_flags argument. Update all callers.
18974 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
18976 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18978 PR rtl-optimization/66940
18979 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
18980 decrementing desired_val will not overflow before performing these
18983 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
18985 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
18986 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
18987 * config/i386/i386.c (enum ix86_builtins): Add
18988 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
18989 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
18990 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
18991 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
18992 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
18993 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
18994 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
18995 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
18996 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
18997 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
18998 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
18999 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
19000 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
19001 __builtin_ia32_cvtps2dq512_mask.
19002 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
19003 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
19004 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
19005 * config/i386/sse.md
19006 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
19008 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
19009 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
19011 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
19012 (avx512f_vec_pack_sfix_v8df): New define_expand.
19013 (avx512f_roundpd512): Rename to ...
19014 (avx512f_round<castmode>512): ... this. Change iterator.
19015 (avx512f_roundps512_sfix): New define_expand.
19016 (round<mode>2_sfix): Change iterator.
19018 2016-05-25 Nick Clifton <nickc@redhat.com>
19020 * config/msp430/msp430.c (msp430_attr): Produce an error if a
19021 static interrupt handler is detected.
19022 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
19023 default linker script.
19024 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
19025 the low part of a symbolic pointer.
19027 2016-05-25 Richard Biener <rguenther@suse.de>
19029 PR tree-optimization/71261
19030 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
19031 interesting stmt instead of immediate uses when looking
19032 for the use operand to replace.
19034 2016-05-25 Martin Liska <mliska@suse.cz>
19036 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
19038 2016-05-25 Richard Biener <rguenther@suse.de>
19040 PR tree-optimization/71264
19041 * tree-vect-stmts.c (vect_init_vector): Properly deal with
19044 2016-05-25 Martin Liska <mliska@suse.cz>
19046 PR tree-optimization/71239
19047 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
19048 if DECL_SIZE is NULL.
19050 2016-05-25 Richard Biener <rguenther@suse.de>
19052 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
19053 * tree-if-conv.c (pass_data_if_conversion): Use it.
19055 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19057 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
19058 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
19059 * varpool.c (varpool_node::get_availability): Likewise.
19061 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19063 * config/rs6000/altivec.md (VNEG iterator): New iterator for
19064 VNEGW/VNEGD instructions.
19065 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
19066 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
19067 support for ISA 3.0 VNEGW/VNEGD instructions.
19069 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
19071 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
19072 pointers inside OACC_DATA regions.
19073 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
19074 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
19075 (gimplify_adjust_omp_clauses): Fix typo in comment.
19077 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19079 * config/rs6000/altivec.md (VParity): New mode iterator for vector
19080 parity built-in functions.
19081 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
19083 (p9v_parity<mode>2): Likewise.
19084 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
19086 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
19087 (parity<mode>2): ISA 3.0 expander for vector parity.
19088 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
19090 (BU_P9_64BIT_MISC_0): Likewise.
19091 (BU_P9_MISC_0): Likewise.
19092 (BU_P9V_AV_1): Likewise.
19093 (BU_P9V_AV_2): Likewise.
19094 (BU_P9V_AV_3): Likewise.
19095 (BU_P9V_AV_P): Likewise.
19096 (BU_P9V_VSX_1): Likewise.
19097 (BU_P9V_OVERLOAD_1): Likewise.
19098 (BU_P9V_OVERLOAD_2): Likewise.
19099 (BU_P9V_OVERLOAD_3): Likewise.
19100 (VCTZB): Add vector count trailing zeros support.
19104 (VPRTYBD): Add vector parity support.
19105 (VPRTYBQ): Likewise.
19106 (VPRTYBW): Likewise.
19107 (VCTZ): Add overloaded vector count trailing zeros support.
19108 (VPRTYB): Add overloaded vector parity support.
19109 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19110 overloaded vector count trailing zeros and parity instructions.
19111 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
19112 vector parity support.
19113 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
19114 trailing zeros support.
19115 (vec_cntlz): Likewise.
19116 (vec_vctzb): Likewise.
19117 (vec_vctzd): Likewise.
19118 (vec_vctzh): Likewise.
19119 (vec_vctzw): Likewise.
19120 (vec_vprtyb): Add ISA 3.0 vector parity support.
19121 (vec_vprtybd): Likewise.
19122 (vec_vprtybw): Likewise.
19123 (vec_vprtybq): Likewise.
19124 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19125 the ISA 3.0 vector count trailing zeros and vector parity built-in
19128 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19130 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
19131 when there is stmt_to_insert.
19133 2016-05-24 Martin Sebor <msebor@redhat.com>
19136 * tree.h (complete_or_array_type_p): New inline function.
19138 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19140 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
19141 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
19142 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
19144 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
19145 Limit 1st alternative to noavx isa, split 2nd alternative into one
19146 noavx and one avx alternative, use *x and Bm in the former and
19147 x and m in the latter.
19149 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
19150 of sse4 for the first alternative, drop %v from the template
19151 and d operand modifier. Split second alternative into one sse4_noavx
19152 and one avx alternative, use *x instead of *v in the former and v
19153 instead of *v in the latter.
19154 (*sse4_1_extractps): Use noavx isa instead of * for the first
19155 alternative, drop %v from the template. Split second alternative into
19156 one noavx and one avx alternative, use *x instead of *v in the
19157 former and v instead of *v in the latter.
19158 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
19159 with noavx and the last one with avx.
19160 (sse4_1_phminposuw): Guard first alternative with noavx isa,
19161 split the second one into one noavx and one avx alternative,
19162 use *x and Bm in the former and x and m in the latter one.
19163 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
19166 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
19167 first two alternatives to noavx, use *x instead of *v in the second
19168 one, add avx alternative without *.
19169 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
19170 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
19171 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
19173 2016-05-24 Jeff Law <law@redhat.com>
19175 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
19176 New function, extracted from...
19177 (fsm_find_control_statement_thread_paths): Here. Use the new function.
19178 Allow simple copies and constant initializations in the SSA chain.
19180 2016-05-24 Marek Polacek <polacek@redhat.com>
19183 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
19186 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19189 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
19190 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
19191 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
19192 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
19193 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
19195 2016-05-24 Richard Biener <rguenther@suse.de>
19197 PR tree-optimization/71240
19198 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
19201 2016-05-24 Richard Biener <rguenther@suse.de>
19203 PR tree-optimization/71230
19204 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
19206 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19208 * tree-vectorizer.h (vectorizable_comparison): Delete.
19209 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
19210 PURE_SLP_STMT check.
19211 * tree-vect-stmts.c (vectorizable_call): Likewise.
19212 (vectorizable_simd_clone_call): Likewise.
19213 (vectorizable_conversion): Likewise.
19214 (vectorizable_assignment): Likewise.
19215 (vectorizable_shift): Likewise.
19216 (vectorizable_operation): Likewise.
19217 (vectorizable_load): Likewise.
19218 (vectorizable_condition): Likewise.
19219 (vectorizable_store): Likewise. Assert that we don't have
19221 (vectorizable_comparison): Make static. Remove redundant
19222 PURE_SLP_STMT check.
19223 (vect_transform_stmt): Assert that we always have an slp_node
19226 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19228 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
19229 operands[2] against 1 with comparison against CONST1_RTX.
19230 (<shift>di3_neon): Likewise.
19231 * config/arm/predicates.md (const0_operand): Replace with comparison
19232 against CONST0_RTX.
19234 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19236 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
19237 operands[2] against 1 with comparison against CONST1_RTX.
19238 (ashrdi3): Likewise.
19239 (lshrdi3): Likewise.
19240 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
19242 (ashrsi3): Likewise.
19243 (lshrsi3): Likewise.
19244 (rotrsi3): Likewise.
19245 (define_split above *compareqi_eq0): Likewise.
19246 (define_split above "prologue"): Likewise.
19247 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
19248 * config/arm/predicates.md (shift_operator): Likewise.
19249 (shift_nomul_operator): Likewise.
19250 (sat_shift_operator): Likewise.
19251 (thumb1_cmp_operand): Likewise.
19252 (const_neon_scalar_shift_amount_operand): Replace manual range
19253 check with IN_RANGE.
19254 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
19255 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
19257 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19259 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
19260 with HOST_WIDE_INT_1.
19262 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
19263 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
19264 (arm_canonicalize_comparison): Likewise.
19265 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
19267 (thumb1_size_rtx_costs): Likewise.
19268 (vfp_const_double_index): Replace cast of 1 to unsigned
19269 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19270 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
19272 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
19273 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19274 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
19275 HOST_WIDE_INT with HOST_WIDE_INT_1.
19277 2016-05-24 Marek Polacek <polacek@redhat.com>
19279 * tree-cfg.h (should_remove_lhs_p): New predicate.
19280 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19281 * gimplify.c (gimplify_modify_expr): Likewise.
19282 * tree-cfg.c (verify_gimple_call): Likewise.
19283 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19284 * gimple-fold.c: Include "tree-cfg.h".
19285 (gimple_fold_call): Use should_remove_lhs_p.
19287 2016-05-24 Richard Biener <rguenther@suse.de>
19289 PR tree-optimization/71253
19290 * cfganal.h (control_dependences): Make robust against edge
19292 (control_dependences::control_dependences): Remove edge_list argument.
19293 (control_dependences::get_edge): Remove.
19294 (control_dependences::get_edge_src): Add.
19295 (control_dependences::get_edge_dest): Likewise.
19296 (control_dependences::m_el): Make a vector of edge src/dest index.
19297 * cfganal.c (control_dependences::find_control_dependence): Adjust.
19298 (control_dependences::control_dependences): Likewise.
19299 (control_dependences::~control_dependence): Likewise.
19300 (control_dependences::get_edge): Remove.
19301 (control_dependences::get_edge_src): Add.
19302 (control_dependences::get_edge_dest): Likewise.
19303 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
19305 (perform_tree_ssa_dce): Adjust.
19306 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
19308 (pass_loop_distribution::execute): Adjust. Do loop destroying
19309 conditional on changed.
19311 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19314 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
19315 return. Reindent transformation comment and mention the ARM state
19318 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19320 PR middle-end/71252
19321 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19322 after build_and_add_sum creates new use stmt.
19324 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19326 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19327 load_lanes/grouped_load classification comes first. Don't check
19328 whether the vectorization factor is a multiple of the group size
19331 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19333 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19334 GROUP_GAP for single-element interleaving.
19335 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19338 2016-05-24 Richard Biener <rguenther@suse.de>
19340 PR middle-end/70434
19342 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19343 bases which are accessed with non-invariant indices.
19344 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19345 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19347 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19349 PR middle-end/71170
19350 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19351 (add_to_ops_vec): Add stmt_to_insert.
19352 (add_repeat_to_ops_vec): Init stmt_to_insert.
19353 (insert_stmt_before_use): New.
19354 (transform_add_to_multiply): Remove mult_stmt insertion and add it
19356 (get_ops): Init stmt_to_insert.
19357 (maybe_optimize_range_tests): Likewise.
19358 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19359 (rewrite_expr_tree_parallel): Likewise.
19360 (reassociate_bb): Likewise.
19362 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19365 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19366 ISA 3.0 xxperm fusion alternative.
19367 (altivec_vperm_v8hiv16qi): Likewise.
19368 (altivec_vperm_<mode>_uns_internal): Likewise.
19369 (vperm_v8hiv4si): Likewise.
19370 (vperm_v16qiv8hi): Likewise.
19372 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19373 Kelvin Nilsen <kelvin@gcc.gnu.org>
19375 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19376 vpermr/xxpermr on ISA 3.0.
19377 (altivec_expand_vec_perm_le): Likewise.
19378 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19379 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19382 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
19384 * config/i386/i386.h (IS_STACK_MODE): Enable for
19385 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
19386 SSE_FLOAT_MODE_P macros.
19387 * config/i386/i386.c (ix86_preferred_reload_class): Use
19388 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19389 Cleanup regclass processing for CONST_DOUBLE_P.
19390 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19391 (ix86_rtx_costs): Remove redundant TARGET_80387 check
19392 with IS_STACK_MODE macro.
19393 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19395 (*movdf_internal): Use IS_STACK_MODE macro.
19396 (*movsf_internal): Ditto.
19398 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
19400 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19401 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19403 2016-05-23 Jeff Law <law@redhat.com>
19405 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19407 (fsm_find_control_statement_thread_paths): Call it.
19409 2016-05-23 Martin Jambor <mjambor@suse.cz>
19412 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19413 from_global_constant if t is not NULL.
19415 2016-05-23 Marek Polacek <polacek@redhat.com>
19418 * common.opt (Wswitch-unreachable): New option.
19419 * doc/invoke.texi: Document -Wswitch-unreachable.
19420 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19423 2016-05-23 Bin Cheng <bin.cheng@arm.com>
19425 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19426 TMR_INDEX is non-NULL.
19428 2016-05-23 Richard Biener <rguenther@suse.de>
19430 PR tree-optimization/71230
19431 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19432 (try_special_add_to_ops): ... here. Always test for single-use.
19434 2016-05-23 Martin Jambor <mjambor@suse.cz>
19436 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19437 default block if a PHI node in the original one would be resized.
19439 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19441 PR tree-optimization/58135
19442 * tree-vect-slp.c: When group size is not multiple
19443 of vector size, allow splitting of store group at
19446 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
19448 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19450 2016-05-22 Jakub Jelinek <jakub@redhat.com>
19452 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19453 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19454 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
19457 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19458 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19459 v constraint instead of x and vinserti32x4 insn.
19461 * config/i386/sse.md (i128vldq): New mode iterator.
19462 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19463 avx512dq and avx512vl alternatives.
19465 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19466 constraint, use maybe_evex prefix instead of vex.
19467 (vec_dupv4sf): Use v constraint instead of x for output
19468 operand except for noavx alternative, use Yv constraint
19469 instead of x for input. Use maybe_evex prefix instead of vex.
19470 (*vec_dupv4si): Likewise.
19471 (*vec_dupv2di): Likewise.
19473 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19475 PR middle-end/40921
19476 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19477 (linearize_expr_tree): Call try_special_add_to_ops.
19478 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19480 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19482 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19483 to computed stack_usage.
19485 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19488 * config/avr/avr.md (define_expand "mov<mode>"): If the source
19489 operand is subreg (symbol_ref) then move the symbol ref to register.
19491 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
19493 * tree.c (array_at_struct_end_p): Look through MEM_REF.
19495 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
19497 PR middle-end/71179
19498 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19501 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19503 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19504 ranges by calling get_single_symbol and tidy up. Look more closely
19505 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19507 2016-05-20 Jeff Law <law@redhat.com>
19509 * bitmap.c (bitmap_find_bit): Remove useless test.
19511 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19513 * function.c (thread_prologue_and_epilogue_insns): Commit the
19514 insertion of the epilogue.
19516 2016-05-20 Martin Jambor <mjambor@suse.cz>
19518 PR tree-optimization/70884
19519 * tree-sra.c (initialize_constant_pool_replacements): Do not check
19520 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19521 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19522 of constant pool data as a reason for scalarization.
19524 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19526 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19527 for naked functions.
19528 (thumb1_expand_prologue): Likewise.
19530 2016-05-20 Nathan Sidwell <nathan@acm.org>
19532 * config/nvptx/nptx.c (nvptx_option_override): Only set
19533 flag_toplevel_reorder, if not explicitly specified. Set
19534 flag_no_common, unless explicitly specified.
19536 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19538 * calls.c (can_implement_as_sibling_call_p): Mark param
19539 reg_parm_stack_space with ATTRIBUTE_UNUSED.
19541 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
19543 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19544 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19545 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19547 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19548 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19549 and CASE_CONST_ANY.
19551 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
19553 * config/nvptx/nvptx.md (sincossf3): New pattern.
19555 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19557 * calls.c (maybe_complain_about_tail_call): New function.
19558 (initialize_argument_information): Call
19559 maybe_complain_about_tail_call when clearing *may_tailcall.
19560 (can_implement_as_sibling_call_p): Call
19561 maybe_complain_about_tail_call when returning false.
19562 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19563 ensure try_tail_call is set. Call maybe_complain_about_tail_call
19564 if tail-call optimization fails.
19565 * cfgexpand.c (expand_call_stmt): Initialize
19566 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19567 * gimple-pretty-print.c (dump_gimple_call): Dump
19568 gimple_call_must_tail_p.
19569 * gimple.c (gimple_build_call_from_tree): Call
19570 gimple_call_set_must_tail with the value of
19571 CALL_EXPR_MUST_TAIL_CALL.
19572 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19573 (gimple_call_set_must_tail): New function.
19574 (gimple_call_must_tail_p): New function.
19575 * print-tree.c (print_node): Update printing of TREE_STATIC
19576 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19577 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19578 trailing comment listing applicable flags.
19579 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19581 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19583 * calls.c (expand_call): Move "Rest of purposes for tail call
19584 optimizations to fail" to...
19585 (can_implement_as_sibling_call_p): ...this new function, and
19586 split into multiple "if" statements.
19588 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19590 * cfgloop.h (expected_loop_iterations_unbounded,
19591 expected_loop_iterations): Unconstify.
19592 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19593 profile with known upper bound; return 3 when profile is absent.
19594 (expected_loop_iterations): Update.
19596 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19598 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19599 and get_max_loop_iterations_int.
19601 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19603 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19604 realistic upper bounds here.
19606 2016-05-20 Jakub Jelinek <jakub@redhat.com>
19609 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19610 calls if the LHS is variable length or has addressable type.
19611 If targets[0]->decl is a noreturn call with void return type and
19612 zero arguments, adjust fntype and remove lhs in that case.
19614 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
19616 PR tree-optimization/71079
19617 PR tree-optimization/71206
19618 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19620 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19622 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
19623 (get_vec_alignment_for_array_decl): Likewise.
19624 (get_vec_alignment_for_record_decl): Likewise.
19625 (increase_alignment::execute): Move code to find alignment to
19626 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
19627 (type_align_map): New hash_map.
19629 2016-05-20 Richard Guenther <rguenther@suse.de>
19631 PR tree-optimization/29756
19632 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
19633 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
19634 * fold-const.c (operand_equal_p): Likewise.
19635 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
19636 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
19637 * tree-inline.c (estimate_operator_cost): Likewise.
19638 * tree-pretty-print.c (dump_generic_node): Likewise.
19639 * tree-ssa-operands.c (get_expr_operands): Likewise.
19640 * cfgexpand.c (expand_debug_expr): Likewise.
19641 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19642 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
19643 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
19644 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
19645 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
19646 (execute_update_addresses_taken): Do it.
19648 2016-05-20 Richard Biener <rguenther@suse.de>
19650 PR tree-optimization/71185
19651 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
19652 register operations.
19654 2016-05-20 Richard Biener <rguenther@suse.de>
19656 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
19657 gimple_seq_add_seq_without_update.
19658 (release_bb_predicate): Assert we have no operands to free.
19659 (if_convertible_loop_p_1): Calculate post dominators later.
19660 Do not free BB predicates here.
19661 (combine_blocks): Do not recompute BB predicates.
19662 (version_loop_for_if_conversion): Save BB predicates around
19665 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19667 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
19668 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
19669 code. Ignore sibcalls on EDGE_IGNORE edges.
19670 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
19671 on edges for sibcalls that run without prologue. The rest of the
19672 function is combined from...
19673 (fix_fake_fallthrough_edge): ... this, and ...
19674 (try_shrink_wrapping): ... a part of this. Remove the bb_with
19675 function argument, make it a local variable.
19677 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
19679 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
19680 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
19681 for 32-bit mode and SEH for 64-bit.
19682 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
19683 TARGET_64BIT_DEFAULT.
19685 2016-05-19 Ryan Burn <contact@rnburn.com>
19687 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
19688 * gengtype.c (open_base_files): Add cilk.h to ifiles.
19690 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
19692 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
19693 force pending loads from memory.
19695 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
19697 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
19698 (UNSPEC_DARN_32): New unspec constant.
19699 (UNSPEC_DARN_RAW): New unspec constant.
19700 (darn_32): New instruction.
19701 (darn_raw): New instruction.
19702 (darn): New instruction.
19703 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
19704 support and documentation for this macro.
19705 (BU_P9_MISC_1): New macro definition.
19706 (BU_P9_64BIT_MISC_0): New macro definition.
19707 (BU_P9_MISC_0): New macro definition.
19708 (darn_32): New builtin definition.
19709 (darn_raw): New builtin definition.
19710 (darn): New builtin definition.
19711 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
19712 RS6000_BUILTIN_0 directives to surround each occurrence of
19713 #include "rs6000-builtin.def".
19714 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
19715 RS6000_BTM_64BIT flags to the returned mask, depending on
19717 (def_builtin): Correct an error in the assignments made to the
19718 debugging variable attr_string.
19719 (rs6000_expand_builtin): Add support for no-operand built-in
19721 (builtin_function_type): Remove fatal_error assertion that is no
19723 (rs6000_common_init_builtins): Add support for no-operand built-in
19725 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
19727 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
19729 (RS6000_BTM_64BIT): New macro definition.
19730 * doc/extend.texi: Document __builtin_darn (void),
19731 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
19734 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
19736 * tree-vect-loop.c (vect_analyze_loop_2): Use also
19737 max_loop_iterations_int.
19739 2016-05-19 Marek Polacek <polacek@redhat.com>
19741 PR tree-optimization/71031
19742 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
19743 condition and adjust the code a bit.
19745 2016-05-19 Martin Liska <mliska@suse.cz>
19747 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
19748 auto_vec instead of vec.
19750 2016-05-19 Martin Liska <mliska@suse.cz>
19752 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
19754 2016-05-19 Martin Liska <mliska@suse.cz>
19756 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
19758 2016-05-19 Martin Liska <mliska@suse.cz>
19760 * ipa-pure-const.c (set_function_state): Remove an existing
19762 (remove_node_data): Do not free it as it's released
19763 in set_function_state.
19765 2016-05-19 Martin Liska <mliska@suse.cz>
19767 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
19770 2016-05-19 Martin Liska <mliska@suse.cz>
19772 * omp-simd-clone.c (simd_clone_adjust): Release vector.
19774 2016-05-19 Martin Liska <mliska@suse.cz>
19776 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
19777 an auto_vec instead of re-creating it.
19779 2016-05-19 Martin Liska <mliska@suse.cz>
19781 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
19782 auto_vec instead of vec.
19784 2016-05-19 Martin Liska <mliska@suse.cz>
19786 * lto-section-in.c (lto_get_section_data): Call
19787 lto_check_version with additional argument.
19788 * lto-streamer.c (lto_check_version): Add new argument.
19789 * lto-streamer.h (lto_check_version): Likewise.
19791 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19793 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
19794 Don't add cost of inner memory when handling sign-extended loads.
19796 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
19798 PR rtl-optimization/71148
19799 * cse.c (cse_main): Free dominance info.
19800 (rest_of_handle_cse): Don't free dominance info.
19801 (rest_of_handle_cse2): Likewise.
19802 (rest_of_handle_cse_after_global_opts): Likewise.
19804 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19807 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
19808 NULL_TREE early if NEON is not available. Remove now redundant check
19809 in ARM_CHECK_BUILTIN_MODE.
19811 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
19814 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
19815 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
19816 * doc/cpp.texi: Document new macros.
19818 2016-05-19 Bin Cheng <bin.cheng@arm.com>
19820 PR tree-optimization/69848
19821 * tree-vect-loop.c (vectorizable_reduction): Don't factor
19822 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
19824 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19826 * function.c (thread_prologue_and_epilogue_insn): Move the
19827 "goto epilogue_done" one block later.
19829 2016-05-19 Richard Biener <rguenther@suse.de>
19831 PR tree-optimization/70729
19832 * passes.def: Move LIM pass before PRE. Remove no longer
19833 required copyprop and move first DCE out of the loop pipeline.
19835 2016-05-18 David Malcolm <dmalcolm@redhat.com>
19838 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
19839 (OBJS-libcommon-target): ...here.
19840 * opts-common.c: Include spellcheck.h.
19841 (cmdline_handle_error): Build a vec of valid options and use it
19842 to suggest provide hints for misspelled arguments.
19844 2016-05-18 Jakub Jelinek <jakub@redhat.com>
19847 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
19848 lhs if it has TREE_ADDRESSABLE type.
19850 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
19853 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
19854 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
19856 2016-05-18 Martin Jambor <mjambor@suse.cz>
19859 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
19860 input for NOP_EXPR pass-through functions.
19861 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
19862 aggregate global constant VAR_DECLs in constant jump functions.
19864 2016-05-18 Martin Jambor <mjambor@suse.cz>
19867 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
19868 from TREE_READONLY parameters.
19870 2016-05-18 Martin Jambor <mjambor@suse.cz>
19873 * cgraph.h (cgraph_indirect_call_info): New field
19874 guaranteed_unmodified.
19875 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
19876 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19878 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
19879 pass the parameter value to ipa_find_agg_cst_for_param.
19880 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
19881 guaranteed_unmodified, store AA results there instead of bailing out
19883 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
19884 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
19885 (find_constructor_constant_at_offset): New function.
19886 (ipa_find_agg_cst_from_init): Likewise.
19887 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
19888 static initializers of contants, report back through a new paameter
19889 from_global_constant if that was the case.
19890 (try_make_edge_direct_simple_call): Also pass parameter value to
19891 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19893 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
19894 (ipa_read_indirect_edge_info): Likewise.
19895 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
19896 (ipa_load_from_parm_agg): Likewise.
19898 2016-05-18 Jiong Wang <jiong.wang@arm.com>
19900 PR rtl-optimization/71150
19901 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
19904 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19907 * config/rs6000/constraints.md (wE constraint): New constraint
19908 for a vector constant that can be loaded with XXSPLTIB.
19909 (wM constraint): New constraint for a vector constant of a 1's.
19910 (wS constraint): New constraint for a vector constant that can be
19911 loaded with XXSPLTIB and a vector sign extend instruction.
19912 * config/rs6000/predicates.md (xxspltib_constant_split): New
19913 predicates for wE/wS constraints.
19914 (xxspltib_constant_nosplit): Likewise.
19915 (easy_vector_constant): Add support for constants that can be
19916 loaded via XXSPLTIB.
19917 (all_ones_constant): New predicate for vector constant with all
19919 (splat_input_operand): Add support for ISA 3.0 word splat operations.
19920 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
19921 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
19922 instruction and possibly with a sign extension.
19923 (output_vec_const_move): Add support for XXSPLTIB. If we are
19924 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
19925 instead of XXLXOR/XXLORC.
19926 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
19928 (rs6000_legitimize_reload_address): Likewise.
19929 (rs6000_output_move_128bit): Use output_vec_const_move to emit
19931 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
19932 combine VSX_M and VSX_M2 into one iterator.
19933 (VSX_M2): Likewise.
19934 (VSINT_84): New iterators for loading constants with XXSPLTIB.
19935 (VSINT_842): Likewise.
19936 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
19937 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
19938 XXSPLTIB instruction.
19939 (xxspltib_<mode>_nosplit): Likewise.
19940 (xxspltib_<mode>_split): New insn to load up constants with
19941 XXSPLTIB and a sign extend instruction.
19942 (vsx_mov<mode>): Replace single move that handled all vector types
19943 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
19944 moves (when -mvsx-timode is in effect) into the main vector
19945 moves. Eliminate separate moves for <VSr> <VSa>, where the
19946 preferred register class (<VSr>) is listed first, and the
19947 secondary register class (<VSa>) is listed second with a '?' to
19948 discourage use. Prefer loading 0/-1 in any VSX register for ISA
19949 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
19950 that if the register was involved in a slow operation, the
19951 clear/set operation does not wait for the slow operation to
19952 finish. Adjust the length attributes for 32-bit mode. Use
19953 rs6000_output_move_128bit and drop the use of the string
19954 instructions for 32-bit movti when -mvsx-timode is in effect. Use
19955 spacing so that the alternatives and attributes don't generate
19956 long lines, and put things in columns, so that it is easier to
19957 match up the operands and attributes with the insn alternatives.
19958 (vsx_mov<mode>_64bit): Likewise.
19959 (vsx_mov<mode>_32bit): Likewise.
19960 (vsx_movti_64bit): Fold movti into normal vector moves.
19961 (vsx_movti_32bit): Likewise.
19962 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
19963 splat instructions.
19964 (vsx_splat_v4si_internal): Likewise.
19965 (vsx_splat_v4sf_internal): Likewise.
19966 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
19967 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
19968 extend vector elements.
19969 (vsx_sign_extend_hi_<mode>): Likewise.
19970 (vsx_sign_extend_si_v2di): Likewise.
19971 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
19973 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
19974 constraints. Add trailing period to wL documentation.
19976 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
19978 PR middle-end/71020
19979 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
19980 * tree-dfa.c (replace_abnormal_ssa_names): New function.
19981 * tree-call-cdce.c: Include tree-dfa.h.
19982 (can_guard_call_p): New function, extracted from...
19983 (can_use_internal_fn): ...here.
19984 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
19986 (shrink_wrap_one_built_in_call): Likewise.
19987 (use_internal_fn): Likewise.
19988 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
19989 and return void. Call replace_abnormal_ssa_names.
19990 (pass_call_cdce::execute): Check can_guard_call_p during the
19991 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
19992 will always change something.
19994 2016-05-18 Martin Jambor <mjambor@suse.cz>
19997 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
19998 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
20000 2016-05-18 Martin Jambor <mjambor@suse.cz>
20003 * ipa-inline.h (condition): New field size.
20004 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
20005 for comaprison and store it into the new condition.
20006 (evaluate_conditions_for_known_args): Use condition size to check
20007 access sizes for all but CHANGED conditions.
20008 (unmodified_parm_1): New parameter size_p, store access size into it.
20009 (unmodified_parm): Likewise.
20010 (unmodified_parm_or_parm_agg_item): Likewise.
20011 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
20012 (set_cond_stmt_execution_predicate): Extract access sizes and store
20013 them to conditions.
20014 (set_switch_stmt_execution_predicate): Likewise.
20015 (will_be_nonconstant_expr_predicate): Likewise.
20016 (will_be_nonconstant_predicate): Likewise.
20017 (inline_read_section): Stream condition size.
20018 (inline_write_summary): Likewise.
20020 2016-05-18 Richard Biener <rguenther@suse.de>
20022 * tree-ssa-loop-im.c (determine_max_movement): Properly add
20023 condition cost to PHI cost instead of total_cost.
20025 2016-05-18 Martin Liska <mliska@suse.cz>
20028 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
20031 2016-05-18 Richard Biener <rguenther@suse.de>
20033 * lto-streamer.h (LTO_major_version): Bump to 6.
20035 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20037 * function.c (make_split_prologue_seq, make_prologue_seq,
20038 make_epilogue_seq): New functions, factored out from...
20039 (thread_prologue_and_epilogue_insns): Here.
20041 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20043 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
20044 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
20045 of before. Add a comment.
20047 2016-05-18 Bin Cheng <bin.cheng@arm.com>
20049 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
20050 expression pointer, not pointer to the pointer.
20052 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20054 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
20055 (avx2_pbroadcast<mode>): Add another alternative with v instead
20056 of x constraints in it, using <pbroadcast_evex_isa> isa.
20057 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
20059 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
20060 constraint x instead of v in second alternative, add avx512bw
20063 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
20064 constraint x instead of v in second alternative, add avx512bw
20067 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
20068 constraint x instead of v in second alternative, add avx512bw
20071 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
20072 avx512bw alternative.
20074 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20076 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
20077 array to 128 chars.
20078 (define_insn "*andnottf3"): Ditto.
20079 (define_insn "*<code><mode>3"/any_logic): Ditto.
20080 (define_insn "*<code>tf3"/any_logic): Ditto.
20081 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
20082 operand to block AVX-512VL insn variant emit when it is not enabled.
20084 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20086 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
20087 constraint fot SF mode.
20089 2016-05-18 Petr Murzin <petr.murzin@intel.com>
20090 Kirill Yukhin <kirill.yukhin@intel.com>
20092 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
20094 (define_insn "rsqrt14<mode>"): Ditto.
20095 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20096 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
20097 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
20098 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
20099 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
20101 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
20102 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
20103 * config/i386/i386.c (ix86_print_operand): Expand check for size
20104 override codes for Intel syntax.
20106 2016-05-18 Richard Biener <rguenther@suse.de>
20108 PR tree-optimization/71168
20109 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
20110 initialization earlier.
20112 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
20114 * config/aarch64/aarch64-simd.md
20115 (aarch64_reduc_plus_internal<mode>): Rename to...
20116 (reduc_plus_scal): ...This, and remove previous implementation.
20118 2016-05-18 Richard Biener <rguenther@suse.de>
20120 * passes.def: Put late dse and cd_dce in canonical order.
20122 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
20124 * ipa-inline-transform.c (preserve_function_body_p): Look for
20125 first non-thunk clone.
20126 (save_function_body): Save into first non-thunk.
20127 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
20129 (lto_output_node): Inline thunks don't need body in every
20131 * lto-streamer-in.c: Do not fixup thunk clones.
20132 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
20134 * tree-inline.c (copy_bb): Be prepared for target node to be new after
20137 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20139 PR middle-end/63586
20140 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
20141 (reassociate_bb): Call transform_add_to_multiply.
20143 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20145 * config/aarch64/aarch64.c (all_extensions): Removed unused
20148 2016-05-17 Nathan Sidwell <nathan@acm.org>
20150 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
20151 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
20153 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
20155 PR tree-optimization/54579
20156 PR middle-end/55299
20157 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
20159 2016-05-17 Marek Polacek <polacek@redhat.com>
20162 * tree-inline.c (expand_call_inline): Call
20163 maybe_remove_unused_call_args.
20165 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
20167 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
20168 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
20169 * doc/md.texi (fmin@var{m}3): Likewise.
20171 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20173 * match.pd (X & C): New transformation.
20175 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20177 * match.pd (~X & Y): New transformation.
20179 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20181 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
20182 information for new SSA_NAME.
20183 (simplify_conversion_using_ranges): Get range through get_range_info
20184 instead of get_value_range.
20186 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20188 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
20189 Remove inline assembly.
20190 (vmvn_s16): Likewise.
20191 (vmvn_s32): Likewise.
20192 (vmvn_u8): Likewise.
20193 (vmvn_u16): Likewise.
20194 (vmvn_u32): Likewise.
20195 (vmvnq_s8): Likewise.
20196 (vmvnq_s16): Likewise.
20197 (vmvnq_s32): Likewise.
20198 (vmvnq_u8): Likewise.
20199 (vmvnq_u16): Likewise.
20200 (vmvnq_u32): Likewise.
20201 (vmvn_p8): Likewise.
20202 (vmvnq_p16): Likewise.
20204 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20206 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
20208 (vmul_n_s16): Likewise.
20209 (vmul_n_s32): Likewise.
20210 (vmul_n_u16): Likewise.
20211 (vmul_n_u32): Likewise.
20212 (vmulq_n_f32): Likewise.
20213 (vmulq_n_f64): Likewise.
20214 (vmulq_n_s16): Likewise.
20215 (vmulq_n_s32): Likewise.
20216 (vmulq_n_u16): Likewise.
20217 (vmulq_n_u32): Likewise.
20219 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20221 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
20222 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
20224 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20226 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
20227 to *aarch64_fma4_elt_from_dup<mode>.
20228 (*aarch64_fnma4_elt_to_128df): Rename to
20229 *aarch64_fnma4_elt_from_dup<mode>.
20230 * config/aarch64/arm_neon.h (vfma_n_f64): New.
20231 (vfms_n_f32): Likewise.
20232 (vfms_n_f64): Likewise.
20233 (vfmsq_n_f32): Likewise.
20234 (vfmsq_n_f64): Likewise.
20236 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
20238 * wide-int.h: Change fixed_wide_int_storage from class to struct.
20240 2016-05-17 Richard Biener <rguenther@suse.de>
20242 PR tree-optimization/71132
20243 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
20244 Only add control dependences for blocks in the loop.
20245 (build_rdg): Adjust.
20246 (generate_code_for_partition): Return whether loop should
20247 be destroyed and delay that.
20248 (distribute_loop): Likewise.
20249 (pass_loop_distribution::execute): Record loops to be destroyed
20250 and perform delayed destroying of loops.
20252 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20255 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
20257 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20259 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
20261 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
20264 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
20265 insertion point for instructions generated by validize_mem.
20267 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20269 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
20272 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20274 * config/aarch64/aarch64.c
20275 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
20276 rather than a macro.
20278 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20280 * doc/invoke.texi (AArch64 Options): Various updates.
20282 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20284 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
20285 into instrumentation thunks.
20286 * cif-code.def (CIF_CHKP): New.
20288 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
20290 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
20292 2016-05-16 Martin Jambor <mjambor@suse.cz>
20294 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
20295 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
20297 2016-05-16 Marek Polacek <polacek@redhat.com>
20299 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
20302 2016-05-16 Martin Jambor <mjambor@suse.cz>
20305 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
20306 the outlined kernel function.
20308 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
20310 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
20311 (ISA_HAS_DLSA): Ditto.
20313 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20315 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20317 2016-05-16 Nathan Sidwell <nathan@acm.org>
20319 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20320 (nvptx_name_replacement): Restore. Add comment.
20321 (write_fn_proto, write_fn_proto_from_insn,
20322 nvptx_output_call_insn): Restore
20323 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20325 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20327 * config/aarch64/aarch64.md
20328 (add<mode>3_compareC_cconly_imm): Remove use of %w.
20329 (add<mode>3_compareC_imm): Likewise.
20330 (<optab>si3_uxtw): Split into register and immediate variants.
20331 (andsi3_compare0_uxtw): Likewise.
20332 (and<mode>3_compare0): Likewise.
20333 (and<mode>3nr_compare0): Likewise.
20334 (stack_protect_test_<mode>): Don't use %x for memory operands.
20336 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20338 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20340 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20342 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20343 Split integer shifts into shift_reg and bfm.
20344 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20345 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20346 (ror<mode>3_insn): Likewise.
20347 (<optab>si3_insn_uxtw): Likewise.
20348 (<optab><mode>3_insn): Change to rotate_imm.
20349 (extr<mode>5_insn_alt): Likewise.
20350 (extrsi5_insn_uxtw): Likewise.
20351 (extrsi5_insn_uxtw_alt): Likewise.
20353 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20355 * doc/tm.texi: Regenerate.
20356 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20357 (TARGET_INVALID_RETURN_TYPE): Remove.
20358 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20359 TARGET_INVALID_RETURN_TYPE.
20360 * target.def (invalid_parameter_type): Remove.
20361 (invalid_return_type): Remove.
20363 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20365 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20366 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20368 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20370 (preserve_function_body_p): No need to preserve function body
20371 * cif-codes.def (CIF_THUNK): Remove.
20372 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20374 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20376 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20378 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20380 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20383 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20385 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20386 (inline_small_functions): Do not look for function symbol when
20389 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20391 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20394 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20395 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20396 Jiong Wang <jiong.wang@arm.com>
20398 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20399 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20400 Define __ARM_FP16_ARGS when appropriate.
20401 * config/arm/arm.c (arm_invalid_parameter_type): Remove
20403 (arm_invalid_return_type): Likewise.
20404 (TARGET_INVALID_PARAMETER_TYPE): Remove.
20405 (TARGET_INVALID_RETURN_TYPE): Remove.
20406 (aapcs_vfp_sub_candidate): Allow HFmode.
20407 (aapcs_vfp_allocate): Add comment. Support HFmode.
20408 (aapcs_vfp_allocate_return_reg): Likewise.
20409 (struct aapcs_cp_arg_layout): Slightly reword comments for
20410 is_return_candidate and allocate_return_reg.
20411 (output_mov_vfp): Update assert.
20412 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20414 (arm_invalid_parameter_type): Remove.
20415 (amr_invalid_return_type): Remove.
20416 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20417 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20418 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20420 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20422 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20423 * config/aarch64/arch64-protos.h
20424 (aarch64_legitimize_reload_address): Remove.
20425 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20428 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
20430 * configure.ac: Add ACX_NONCANONICAL_HOST.
20431 * configure: Regenerate.
20432 * Makefile.in: Set host_noncanonical.
20434 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
20437 * config/i386/i386.md (*movtf_internal): Before register allocation,
20438 do not allow FP constants for CM_MEDIUM memory model, allow only
20439 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20440 (*movxf_internal): Ditto.
20441 (*movdf_internal): Ditto.
20442 (*movsf_internal): Ditto.
20444 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20446 PR rtl-optimization/67483
20447 * combine.c (make_compound_operation): Don't call extract_left_shift
20448 with negative shift amounts.
20450 2016-05-13 Jakub Jelinek <jakub@redhat.com>
20453 * fold-const.c (fold_checksum_tree): Allow modification
20454 of TYPE_ALIAS_SET during folding.
20456 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20457 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20458 (ix86_split_to_parts): Likewise. Fix up formatting.
20460 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
20462 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20463 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20466 2016-05-13 Nathan Sidwell <nathan@acm.org>
20468 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20469 (nvptx_name_replacement): Delete.
20470 (write_fn_proto, write_fn_proto_from_insn,
20471 nvptx_output_call_insn): Remove nvptx_name_replacement call.
20472 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20473 * langhooks.c (add_builtin_funcction_common): Call
20474 targetm.mangle_decl_assembler_name.
20476 * config/nvptx/nvptx.c (write_fn_proto): Handle
20477 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20479 2016-05-13 Martin Liska <mliska@suse.cz>
20481 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20482 and PRIu64 in printf format.
20484 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20486 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20489 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20491 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20492 Change --param max-completely-peeled-times to
20493 --param max-completely-peel-times in dump file printing.
20495 2016-05-13 Richard Biener <rguenther@suse.de>
20497 PR tree-optimization/42587
20498 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20499 (find_bswap_or_nop_1): Likewise.
20500 (bswap_replace): Likewise.
20502 2016-05-13 Martin Liska <mliska@suse.cz>
20504 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20505 Initialize a variable with default value.
20507 2016-05-13 Martin Liska <mliska@suse.cz>
20509 * doc/invoke.texi: Enhance explanation of error recovery
20512 2016-05-13 Martin Liska <mliska@suse.cz>
20514 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20515 (struct cost_pair): Change inv_expr_id (int) to inv_expr
20516 (iv_inv_expr_ent *).
20517 (struct iv_inv_expr_ent): Comment struct fields.
20518 (sort_iv_inv_expr_ent): New function.
20519 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20520 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20521 a hash_map between iv_inv_expr_ent and number of usages.
20522 (niter_for_exit): Fix coding style.
20523 (tree_ssa_iv_optimize_init): Use renamed variable.
20524 (determine_base_object): Fix coding style.
20525 (alloc_iv): Likewise.
20526 (find_interesting_uses_outside): Likewise.
20527 (add_candidate_1): Likewise.
20528 (add_standard_iv_candidates): Likewise.
20529 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20530 (prepare_decl_rtl): Fix coding style.
20531 (get_address_cost): Likewise.
20532 (get_shiftadd_cost): Likewise.
20533 (force_expr_to_var_cost): Likewise.
20534 (compare_aff_trees): Likewise.
20535 (get_expr_id): Restructure the function.
20536 (get_loop_invariant_expr_id): Renamed to
20537 get_loop_invariant_expr.
20538 (get_computation_cost_at): Replace usage of inv_expr_id with
20540 (get_computation_cost): Likewise.
20541 (determine_group_iv_cost_generic): Likewise.
20542 (determine_group_iv_cost_address): Likewise.
20543 (iv_period): Fix coding style.
20544 (iv_elimination_compare_lt): Likewise.
20545 (may_eliminate_iv): Likewise.
20546 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
20548 (determine_group_iv_costs): Dump invariant expressions.
20549 (iv_ca_recount_cost): Use the newly added hash_map.
20550 (iv_ca_set_remove_invariants): Fix coding style.
20551 (iv_ca_set_add_invariants): Fix coding style.
20552 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20554 (iv_ca_set_cp): Likewise.
20555 (iv_ca_new): Initialize the newly added hash_map and remove
20556 initialization of fields.
20557 (iv_ca_free): Delete the hash_map.
20558 (iv_ca_dump): Dump invariant expressions.
20559 (iv_ca_extend): Fix coding style.
20560 (try_add_cand_for): Likewise.
20561 (create_new_ivs): Dump information about # of avg iterations and
20562 # of used invariant expressions.
20563 (rewrite_use_compare): Fix coding style.
20564 (free_loop_data): Set default value for max_inv_expr_id.
20566 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20568 * cse.c (rest_of_handle_cse): Use cleanup_cfg
20569 returned value cse_cfg_altered computation.
20570 (rest_of_handle_cse2): Likewise.
20571 (rest_of_handle_cse_after_global_opts): Likewise.
20573 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20576 * config/arm/arm.c (arm32_output_mi_thunk): New.
20577 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20578 to split Thumb1 vs TARGET_32BIT functionality.
20579 (arm_thumb1_mi_thunk): New.
20581 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20583 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20586 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20589 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20591 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
20593 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20594 (expand_builtin_trap): Emit a regular call.
20595 (set_builtin_user_assembler_name): Remove obsolete cases.
20596 * dse.c (scan_insn): Adjust.
20597 * except.c: Include calls.h.
20598 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20599 emit a regular call to setjmp.
20600 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20601 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20602 (emit_block_move_via_libcall): Delete.
20603 (block_move_fn): Delete.
20604 (init_block_move_fn): Likewise.
20605 (emit_block_move_libcall_fn): Likewise.
20606 (emit_block_op_via_libcall): New function.
20607 (set_storage_via_libcall): Tidy up and use memset builtin.
20608 (block_clear_fn): Delete.
20609 (init_block_clear_fn): Likewise.
20610 (clear_storage_libcall_fn): Likewise.
20611 (expand_assignment): Call emit_block_move_via_libcall.
20612 Do not include gt-expr.h.
20613 * expr.h (emit_block_op_via_libcall): Declare.
20614 (emit_block_copy_via_libcall): New inline function.
20615 (emit_block_move_via_libcall): Likewise.
20616 (emit_block_comp_via_libcall): Likewise.
20617 (block_clear_fn): Delete.
20618 (init_block_move_fn): Likewise.
20619 (init_block_clear_fn): Likewise.
20620 (emit_block_move_via_libcall): Likewise.
20621 (set_storage_via_libcall): Add default parameter value.
20622 * libfuncs.h (enum libfunc_index): Remove obsolete values.
20623 (abort_libfunc): Delete.
20624 (memcpy_libfunc): Likewise.
20625 (memmove_libfunc): Likewise.
20626 (memcmp_libfunc): Likewise.
20627 (memset_libfunc): Likewise.
20628 (setbits_libfunc): Likewise.
20629 (setjmp_libfunc): Likewise.
20630 (longjmp_libfunc): Likewise.
20631 (profile_function_entry_libfunc): Likewise.
20632 (profile_function_exit_libfunc): Likewise.
20633 (gcov_flush_libfunc): Likewise.
20634 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
20635 and DECL_VISIBILITY on the declaration.
20636 (init_optabs): Do not initialize obsolete libfuncs.
20637 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
20638 * tree-core.h (ECF_RET1): Define.
20639 (ECF_TM_PURE): Adjust.
20640 (ECF_TM_BUILTIN): Likewise.
20641 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
20642 (build_common_builtin_nodes): Initialize abort builtin.
20643 Add ECF_RET1 on memcpy, memmove and memset builtins.
20644 Pass final flags for alloca and alloca_with_align builtins.
20645 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
20647 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
20648 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
20649 set_storage_via_libcall and call emit_block_copy_via_libcall.
20651 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
20653 * config/i386/i386.md (*call_got_x32): Change operand 0 to
20654 DImode before it is passed to ix86_output_call_operand.
20655 (*call_value_got_x32): Ditto for operand 1.
20657 2016-05-12 Jiong Wang <jiong.wang@arm.com>
20659 PR rtl-optimization/70904
20660 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
20661 reload for wide mode.
20663 2016-05-12 Marek Polacek <polacek@redhat.com>
20666 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
20667 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
20668 * langhooks.h (incomplete_type_error): Likewise.
20669 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
20670 parameter, pass it down to incomplete_type_error.
20671 * tree.h (size_in_bytes): New inline overload.
20672 (size_in_bytes_loc): Renamed from size_in_bytes.
20674 2016-05-12 Richard Biener <rguenther@suse.de>
20676 PR tree-optimization/71059
20677 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
20678 nary before looking up or entering the expression into the VN
20680 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
20681 Make sure to re-use NARYs without result as inserted by
20684 2016-05-12 Richard Biener <rguenther@suse.de>
20686 PR tree-optimization/71062
20687 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
20689 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20690 vars_contains_restrict if the var is a restrict tag.
20691 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
20692 do not disambiguate pointers against it.
20693 (dump_points_to_solution): Re-structure and adjust for new
20694 vars_contains_restrict flag.
20695 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
20697 2016-05-12 Martin Liska <mliska@suse.cz>
20699 * doc/invoke.texi: Explain connection between
20700 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
20702 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
20704 PR tree-optimization/71006
20705 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20706 consider COND_EXPR as a mask producer.
20708 2016-05-12 Marek Polacek <polacek@redhat.com>
20711 * opts.c (common_handle_option): Detect missing argument for --help^.
20713 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20716 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
20717 when popping the PC and within an interrupt handler routine.
20718 Add missing tab to output of "ldmfd".
20719 (output_return_instruction): Output LDMFD with SP update rather
20720 than POP when returning from interrupt handler.
20722 2016-05-12 Jakub Jelinek <jakub@redhat.com>
20724 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
20725 TARGET_64BIT && TARGET_AVX512DQ.
20726 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
20727 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
20728 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
20729 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
20730 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
20731 (*vec_extractv4si_zext): Add avx512dq alternative.
20732 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
20733 use v instead of x constraint in other alternatives where possible.
20735 * config/i386/sse.md (sse2_loadld): Use v instead of x
20736 constraint in alternatives 0,1,4.
20738 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
20739 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
20740 v constraints instead of x and <pinsr_evex_isa> isa attribute.
20743 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
20744 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
20745 is not emitted unless TARGET_AVX512BW.
20746 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
20747 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
20748 for the result operand.
20750 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
20751 constraint instead of x in avx alternatives. Use maybe_evex instead
20754 * config/i386/constraints.md (Yv): New constraint.
20755 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
20756 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
20757 * config/i386/i386.md (avx512fvecmode): New mode attr.
20758 (*pushtf): Use v constraint instead of x.
20759 (*movtf_internal): Likewise. For TARGET_AVX512VL and
20760 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
20761 (*absneg<mode>2): Use Yv constraint instead of x constraint.
20762 (*absnegtf2_sse): Likewise.
20763 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
20764 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
20765 avx512f alternatives.
20766 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
20768 2016-05-12 Richard Biener <rguenther@suse.de>
20770 PR tree-optimization/71060
20771 * tree-data-ref.c (initialize_data_dependence_relation): Do not
20772 require exact match of DR_BASE_OBJECT but only matching address and
20775 2016-05-12 Richard Biener <rguenther@suse.de>
20777 PR tree-optimization/70986
20778 * cfganal.c: Include cfgloop.h.
20779 (dfs_find_deadend): Prefer to take edges exiting loops.
20781 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20783 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
20784 compile and run time.
20786 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
20789 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
20791 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
20793 * config/i386/i386.c (legitimize_pic_address): Use
20794 copy_to_suggested_reg instead of gen_movsi.
20796 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20798 * config/rs6000/predicates.md (quad_memory_operand): Move most of
20799 the code into quad_address_p and call it to share code with
20800 vsx_quad_dform_memory_operand.
20801 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
20803 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
20804 bit instead of being a separate word. Split -mpower9-dform into
20805 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20806 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
20807 for the register class supporting 128-bit quad word memory offsets.
20808 (mode_supports_vsx_dform_quad): Helper function to return if the
20809 register class uses quad word memory offsets.
20810 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
20811 (rs6000_debug_reg_global): Always print if we are using LRA or not.
20812 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
20813 instructions are enabled, set up the appropriate addr_masks for
20815 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
20816 -mpower9-dform-scalar, instead of -mpower9-dform.
20817 (rs6000_option_override_internal): Split -mpower9-dform into two
20818 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
20819 -mpower9-dform switch sets or clears both. If we are not using
20820 the LRA register allocator, do not enable -mpower9-dform-vector by
20821 default. If we are using LRA, enable -mpower9-dform-vector and
20822 -mvsx-timode if it is appropriate. Issue a warning if either
20823 -mpower9-dform-vector or -mvsx-timode are explicitly used without
20825 (quad_address_offset_p): New helper function to return if the
20826 offset is legal for quad word memory instructions.
20827 (quad_address_p): New function to determin if GPR or vector
20828 register quad word memory addresses are legal.
20829 (mem_operand_gpr): Validate quad word address offsets.
20830 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
20831 d-form (register + offset) instructions.
20832 (offsettable_ok_by_alignment): Likewise.
20833 (rs6000_legitimate_offset_address_p): Likewise.
20834 (legitimate_lo_sum_address_p): Likewise.
20835 (rs6000_legitimize_address): Likewise.
20836 (rs6000_legitimize_reload_address): Add more debug statements for
20838 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
20839 d-form instructions.
20840 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
20841 d-form instructions. Distinguish different cases in debug
20842 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
20843 d-form instructions.
20844 (rs6000_preferred_reload_class): Likewise.
20845 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
20846 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
20847 of the ISA 2.06 indexed memory instructions.
20848 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
20849 use them to save/restore the saved vector registers instead of
20850 using Altivec instructions.
20851 (rs6000_emit_epilogue): Likewise.
20852 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
20853 (rs6000_opt_masks): Split -mpower9-dform into
20854 -mpower9-dform-scalar and -mpower9-dform-vector.
20855 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
20857 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
20858 ISA 3.0 vector indexed memory instructions, and fold the code into
20859 the normal mov<mode> patterns.
20860 (p9_vecstore_<mode>): Likewise.
20861 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
20863 (vsx_movti_64bit): Likewise.
20864 (vsx_movti_32bit): Likewise.
20865 * config/rs6000/constraints.md (wO constraint): New constraint for
20866 ISA 3.0 vector d-form support.
20867 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
20868 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
20869 include -mpower9-dform-vector until we switch over to LRA.
20870 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
20871 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20872 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
20873 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20874 for -mpower9-dform and -mlra.
20875 * doc/md.texi (wO constraint): Document wO constraint.
20877 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
20879 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
20880 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
20881 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
20882 Move handling of non-insn arguments inline into the sole user:
20883 (output_trans_func): ...here.
20884 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
20885 in emitted function prototype.
20886 (output_internal_insn_latency_func): Ditto. Simplify.
20887 (output_internal_maximal_insn_latency_func): Ditto. Delete
20888 always-unused argument.
20889 (output_insn_latency_func): Ditto.
20890 (output_maximal_insn_latency_func): Ditto.
20892 2016-05-11 Richard Biener <rguenther@suse.de>
20894 PR tree-optimization/71055
20895 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
20896 sth with precision not equal to access size verify we don't chop
20899 2016-05-11 Richard Biener <rguenther@suse.de>
20902 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
20903 (dwarf2out_finish): Move retry_incomplete_types call ...
20904 (dwarf2out_early_finish): ... here.
20906 2016-05-11 Richard Biener <rguenther@suse.de>
20908 PR middle-end/71002
20909 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
20910 if the langhook insists on it.
20911 * fold-const.c (make_bit_field_ref): Add arg for the original
20912 reference and preserve its alias-set.
20913 (decode_field_reference): Take exp by reference and adjust it
20914 to the original memory reference.
20915 (optimize_bit_field_compare): Adjust callers.
20916 (fold_truth_andor_1): Likewise.
20917 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
20919 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
20921 PR middle-end/70807
20922 * cfgrtl.h (delete_insn_and_edges): Now return bool.
20923 * cfgrtl.c (delete_insn_and_edges): Likewise.
20924 * config/i386/i386.c (convert_scalars_to_vector): Remove
20926 * cse.c (cse_insn): Compute cse_cfg_altered.
20927 (delete_trivially_dead_insns): Likewise.
20928 (cse_cc_succs): Likewise.
20929 (rest_of_handle_cse): Free dominance info if required.
20930 (rest_of_handle_cse2): Likewise.
20931 (rest_of_handle_cse_after_global_opts): Likewise.
20933 2016-05-11 Alan Modra <amodra@gmail.com>
20935 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
20936 abi_v4_pass_in_fpr): New functions.
20937 (rs6000_function_arg_boundary): Exclude complex IBM long double
20938 from 64-bit alignment when ABI_V4.
20939 (rs6000_function_arg, rs6000_function_arg_advance_1,
20940 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
20942 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
20944 PR rtl-optimization/71028
20945 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
20946 jump with just a return in the fallthrough block if the branch
20947 block contains just a return as well.
20949 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
20951 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
20952 * match.pd ((X & Y) ^ Y): ... this.
20953 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
20954 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
20956 2016-05-10 David Malcolm <dmalcolm@redhat.com>
20958 * read-md.c (require_char_ws): New function.
20959 (read_string): Simplify using require_char_ws.
20960 (handle_constants): Likewise.
20961 (handle_enum): Likewise.
20962 (handle_file): Likewise.
20963 * read-md.h (require_char_ws): New declaration.
20964 * read-rtl.c (read_conditions): Simplify using require_char_ws.
20965 (read_mapping): Likewise.
20966 (read_rtx_code): Likewise.
20967 (read_nested_rtx): Likewise.
20969 2016-05-10 James Norris <jnorris@codesourcery.com>
20971 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
20972 if offloading is enabled and -fopenacc or -fopenmp is specified.
20973 (CRTOFFLOADEND): Likewise.
20974 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
20975 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
20977 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
20979 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
20980 gotoff_operand code paths. Use copy_to_suggested_regs and
20981 expand_simple_binop where appropriate. Cleanup.
20983 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20986 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
20988 (dimode_scalar_chain::vector_const_cost): New.
20989 (dimode_scalar_chain::compute_convert_gain): Handle constants.
20990 (dimode_scalar_chain::convert_op): Likewise.
20991 (dimode_scalar_chain::convert_insn): Likewise.
20993 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
20995 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
20996 unary operation, not a binary one.
20998 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21000 PR middle-end/70877
21001 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
21002 calls with type casted fndecl.
21004 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21006 PR tree-optimization/70786
21007 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
21008 * calls.c (initialize_argument_information): Bind bounds
21009 with corresponding args passed by reference.
21011 2016-05-10 Jakub Jelinek <jakub@redhat.com>
21014 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
21015 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
21016 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
21019 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21022 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
21023 code for a zero scale factor.
21024 (vsx_xvcvdpuxds_scale): Likewise.
21026 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21028 * diagnostic-show-locus.c (layout::layout): Call show_ruler
21029 if show_ruler_p was set on the context.
21030 (layout::show_ruler): New method.
21031 * diagnostic.h (struct diagnostic_context): Add field
21034 2016-05-10 Richard Biener <rguenther@suse.de>
21036 PR tree-optimization/71039
21037 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
21038 (chk_uses): New function.
21039 (propagate_with_phi): Verify we can safely replicate the lhs of an
21040 aggregate assignment on all incoming edges.
21042 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
21044 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
21046 (rx_atomic_sequence): New class.
21047 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
21048 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
21050 (rx_atomic_sequence::rx_atomic_sequence,
21051 rx_atomic_sequence::~rx_atomic_sequence): New functions.
21052 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
21053 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
21054 CTRLREG_INTB): New constants.
21055 (FETCHOP): New code iterator.
21056 (fethcop_name, fetchop_name2): New iterator code attributes.
21057 (QIHI): New mode iterator.
21058 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
21059 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
21060 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
21062 2016-05-10 Martin Liska <mliska@suse.cz>
21064 * tree-inline.c (remap_dependence_clique): Do not remap
21065 debugging statements.
21067 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21069 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
21070 ("*fixuns_truncdfdi2_z13")
21071 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
21072 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
21073 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
21075 2016-05-10 Richard Biener <rguenther@suse.de>
21077 PR tree-optimization/70497
21078 PR tree-optimization/28367
21079 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
21081 (visit_reference_op_load): ... here.
21082 (vn_reference_lookup_3): Use it to handle subreg-like accesses
21083 with simplified BIT_FIELD_REFs.
21084 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
21085 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
21088 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21090 * dwarf2out.c (add_abstract_origin_attribute): Adjust
21091 documentation comment. For BLOCK nodes, add a
21092 DW_AT_abstract_origin attribute that points to the DIE generated
21093 for the origin BLOCK.
21094 (gen_lexical_block_die): Call add_abstract_origin_attribute for
21095 blocks from inlined functions.
21097 2016-05-10 Alan Modra <amodra@gmail.com>
21100 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
21101 regrename modifying insns saving lr before __morestack call.
21102 * config/rs6000/rs6000.md (split_stack_return): Similarly for
21103 insns restoring lr after __morestack call.
21105 2016-05-09 Jakub Jelinek <jakub@redhat.com>
21107 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
21108 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
21110 * config/i386/sse.md (vec_interleave_high<mode>,
21111 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
21112 <avx512>_vpermt2var<mode>3_maskz): Likewise.
21114 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21116 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
21117 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
21118 parallel reassociation for power8 and forward.
21120 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
21122 * config/i386/i386.md (absneg splitters with general regs): Use
21123 general_reg_operand predicate.
21124 (btsq peephole2): Use x86_64_immediate_operand to check if new
21125 value is suitable for immediate operand. Generate emitted insn
21126 using RTL expressions.
21127 (btcq peephole2): Ditto.
21128 (btrq peephole2): Ditto. Generate correct immediate operand
21131 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21133 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
21136 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21138 * tree-affine.c (wide_int_constant_multiple_p): Add missing
21139 pointer dereference.
21141 2016-05-09 Richard Biener <rguenther@suse.de>
21143 PR tree-optimization/70985
21144 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
21145 op0 isn't a gimple register.
21147 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
21149 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
21150 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
21151 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
21152 (i6400_fpu_mult): New cpu units.
21153 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
21154 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
21155 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
21156 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
21157 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
21158 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
21159 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
21160 (i6400_msa_long_float4, i6400_msa_long_float5)
21161 (i6400_msa_long_float8, i6400_msa_fdiv_df)
21162 (i6400_msa_fdiv_sf): New reservations.
21163 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
21164 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
21165 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
21166 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
21167 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
21168 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
21169 (msa_short_cmp, msa_short_float2, msa_short_logic3)
21170 (msa_short_store4, msa_long_load, msa_short_store)
21171 (msa_long_logic, msa_long_float2, msa_long_float4)
21172 (msa_long_float5, msa_long_float8, msa_long_mult)
21173 (msa_long_fdiv, msa_long_div): New reservations.
21175 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
21176 Sameera Deshpande <sameera.deshpande@imgtec.com>
21177 Matthew Fortune <matthew.fortune@imgtec.com>
21178 Graham Stott <graham.stott@imgtec.com>
21179 Chao-ying Fu <chao-ying.fu@imgtec.com>
21181 * config.gcc: Add MSA header file for mips*-*-* target.
21182 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
21183 (Ubv8i, Urv8): New constraints.
21184 * config/mips/mips-ftypes.def: Add function types for MSA
21186 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
21187 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
21188 * config/mips/mips-msa.md: New file.
21189 * config/mips/mips-protos.h
21190 (mips_split_128bit_const_insns): New prototype.
21191 (mips_msa_idiv_insns): Likewise.
21192 (mips_split_128bit_move): Likewise.
21193 (mips_split_128bit_move_p): Likewise.
21194 (mips_split_msa_copy_d): Likewise.
21195 (mips_split_msa_insert_d): Likewise.
21196 (mips_split_msa_fill_d): Likewise.
21197 (mips_expand_msa_branch): Likewise.
21198 (mips_const_vector_same_val_p): Likewise.
21199 (mips_const_vector_same_bytes_p): Likewise.
21200 (mips_const_vector_same_int_p): Likewise.
21201 (mips_const_vector_shuffle_set_p): Likewise.
21202 (mips_const_vector_bitimm_set_p): Likewise.
21203 (mips_const_vector_bitimm_clr_p): Likewise.
21204 (mips_msa_vec_parallel_const_half): Likewise.
21205 (mips_msa_output_division): Likewise.
21206 (mips_ldst_scaled_shift): Likewise.
21207 (mips_expand_vec_cond_expr): Likewise.
21208 * config/mips/mips.c (enum mips_builtin_type): Add
21209 MIPS_BUILTIN_MSA_TEST_BRANCH.
21210 (mips_gen_const_int_vector_shuffle): New prototype.
21211 (mips_const_vector_bitimm_set_p): New function.
21212 (mips_const_vector_bitimm_clr_p): Likewise.
21213 (mips_const_vector_same_val_p): Likewise.
21214 (mips_const_vector_same_bytes_p): Likewise.
21215 (mips_const_vector_same_int_p): Likewise.
21216 (mips_const_vector_shuffle_set_p): Likewise.
21217 (mips_symbol_insns): Forbid loading symbols via immediate for
21219 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
21221 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
21223 (mips_lx_address_p): Add support load indexed address for MSA.
21224 (mips_address_insns): Add calculation of instructions needed for
21225 stores and loads for MSA.
21226 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
21227 CONST_VECTOR for MSA and let it fall through.
21228 (mips_ldst_scaled_shift): New function.
21229 (mips_subword_at_byte): Likewise.
21230 (mips_msa_idiv_insns): Likewise.
21231 (mips_legitimize_move): Validate MSA moves.
21232 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
21233 calculation of costs for MSA division.
21234 (mips_split_move_p): Check if MSA moves need splitting.
21235 (mips_split_move): Split MSA moves if necessary.
21236 (mips_split_128bit_move_p): New function.
21237 (mips_split_128bit_move): Likewise.
21238 (mips_split_msa_copy_d): Likewise.
21239 (mips_split_msa_insert_d): Likewise.
21240 (mips_split_msa_fill_d): Likewise.
21241 (mips_output_move): Handle MSA moves.
21242 (mips_expand_msa_branch): New function.
21243 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
21244 Reinstate 'y' modifier.
21245 (mips_file_start): Add MSA .gnu_attribute.
21246 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
21248 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
21249 (mips_class_max_nregs): Add register size for MSA supported mode.
21250 (mips_cannot_change_mode_class): Allow conversion between MSA
21251 vector modes and TImode.
21252 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
21254 (mips_secondary_reload_class): Force MSA loads/stores via memory.
21255 (mips_preferred_simd_mode): Add preffered modes for MSA.
21256 (mips_vector_mode_supported_p): Add MSA supported modes.
21257 (mips_autovectorize_vector_sizes): New function.
21258 (mips_msa_output_division): Likewise.
21259 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
21260 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
21261 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
21262 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
21263 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
21264 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
21265 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
21266 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
21267 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
21268 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
21269 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
21270 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
21271 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
21272 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
21273 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
21274 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
21275 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
21276 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
21277 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
21278 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
21279 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
21280 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
21281 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
21282 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
21283 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
21284 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
21285 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
21286 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
21287 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
21288 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
21289 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
21290 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
21291 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
21292 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
21293 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
21294 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
21295 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
21296 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
21297 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
21298 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
21299 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
21300 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
21301 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
21302 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
21303 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21304 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21305 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21306 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21307 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21308 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21309 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21310 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21311 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
21312 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
21313 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
21314 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
21315 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21316 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21317 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21318 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21319 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21320 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21321 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21322 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21323 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21324 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21325 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21326 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21327 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21328 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21329 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21330 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21331 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21332 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21333 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21334 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21335 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21336 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21337 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21338 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21339 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21340 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21341 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21342 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21343 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21344 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21345 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21346 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21347 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21348 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21349 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21350 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21351 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21352 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21353 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21354 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21355 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21356 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21357 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21358 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21359 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21360 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21361 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21362 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21363 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21364 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21365 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21366 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21367 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21368 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21369 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21370 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21371 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21372 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21373 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21374 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21375 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21376 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21377 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21378 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21379 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21380 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21381 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21382 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21383 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21384 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21385 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21386 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21387 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21388 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21389 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21390 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21391 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21392 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21393 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21394 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21395 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21396 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21397 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21398 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21399 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21400 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21401 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21402 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21403 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21404 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21405 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21406 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21407 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21408 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21409 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21411 (mips_get_builtin_decl_index): New array.
21412 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21413 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21414 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21415 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21416 (mips_init_builtins): Initialize mips_get_builtin_decl_index
21418 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21420 (mips_expand_builtin_insn): Prepare operands for
21421 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21422 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21423 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21424 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21425 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21426 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21427 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21428 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21429 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21430 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21431 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21432 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21433 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21434 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21435 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21436 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21437 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21438 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21439 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21440 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21441 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21442 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21443 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21444 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21445 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21446 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21447 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21448 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21449 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21450 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21451 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21452 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21453 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21454 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21455 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21456 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21457 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21458 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21459 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21460 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21461 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21462 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21463 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21464 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21465 These are set implicitly and an error is reported if overridden.
21466 (mips_expand_builtin_msa_test_branch): New function.
21467 (mips_expand_msa_shuffle): Likewise.
21468 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21469 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21470 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21471 (mips_expand_vec_unpack): Add support for MSA.
21472 (mips_expand_vector_init): Likewise.
21473 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21474 instead of const0_rtx.
21475 (mips_msa_vec_parallel_const_half): New function.
21476 (mips_gen_const_int_vector): Likewise.
21477 (mips_gen_const_int_vector_shuffle): Likewise.
21478 (mips_expand_msa_cmp): Likewise.
21479 (mips_expand_vec_cond_expr): Likewise.
21480 * config/mips/mips.h
21481 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21482 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21484 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21485 (ISA_HAS_MSA): New macro.
21486 (UNITS_PER_MSA_REG): Likewise.
21487 (BITS_PER_MSA_REG): Likewise.
21488 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21489 (MSA_REG_FIRST): New macro.
21490 (MSA_REG_LAST): Likewise.
21491 (MSA_REG_NUM): Likewise.
21492 (MSA_REG_P): Likewise.
21493 (MSA_REG_RTX_P): Likewise.
21494 (MSA_SUPPORTED_MODE_P): Likewise.
21495 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21496 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21497 * config/mips/mips.md: Include mips-msa.md.
21498 (alu_type): Add simd_add.
21499 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21500 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21501 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21502 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21503 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21504 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21505 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21506 simd_move, simd_load, simd_store. Choose "multi" for moves
21508 (qword_mode): New attribute.
21509 (insn_count): Add instruction count for quad moves.
21510 Increase the count for MIPS SIMD division.
21511 (UNITMODE): Add UNITMODEs for vector types.
21512 (addsub): New code iterator.
21513 * config/mips/mips.opt (mmsa): New option.
21514 * config/mips/msa.h: New file.
21515 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21517 * config/mips/mti-linux.h: Likewise.
21518 * config/mips/predicates.md
21519 (const_msa_branch_operand): New constraint.
21520 (const_uimm3_operand): Likewise.
21521 (const_uimm4_operand): Likewise.
21522 (const_uimm5_operand): Likewise.
21523 (const_uimm8_operand): Likewise.
21524 (const_imm5_operand): Likewise.
21525 (aq10b_operand): Likewise.
21526 (aq10h_operand): Likewise.
21527 (aq10w_operand): Likewise.
21528 (aq10d_operand): Likewise.
21529 (const_m1_operand): Likewise.
21530 (reg_or_m1_operand): Likewise.
21531 (const_exp_2_operand): Likewise.
21532 (const_exp_4_operand): Likewise.
21533 (const_exp_8_operand): Likewise.
21534 (const_exp_16_operand): Likewise.
21535 (const_vector_same_val_operand): Likewise.
21536 (const_vector_same_simm5_operand): Likewise.
21537 (const_vector_same_uimm5_operand): Likewise.
21538 (const_vector_same_uimm6_operand): Likewise.
21539 (const_vector_same_uimm8_operand): Likewise.
21540 (par_const_vector_shf_set_operand): Likewise.
21541 (reg_or_vector_same_val_operand): Likewise.
21542 (reg_or_vector_same_simm5_operand): Likewise.
21543 (reg_or_vector_same_uimm6_operand): Likewise.
21544 * doc/extend.texi (MIPS SIMD Architecture Functions): New
21546 * doc/invoke.texi (-mmsa): Document new option.
21548 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21550 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21551 * configure: Regenerate.
21552 * config.in: Regenerate.
21553 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21554 on -fvtable-verify.
21555 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21556 (ENDFILE_VTV_SPEC): Define.
21558 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
21560 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21561 registers in all interrupt handlers if necessary.
21562 (rl78_option_override): Add warning.
21563 (MUST_SAVE_MDUC_REGISTERS): New macro.
21564 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21565 * config/rl78/rl78.c (check_mduc_usage): New function.
21566 (mduc_regs): New structure to hold MDUC register data.
21567 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21568 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21569 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21570 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21571 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21572 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21574 2016-05-09 Bin Cheng <bin.cheng@arm.com>
21576 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21577 (tree-ssa-loop-niter.h): Ditto.
21578 (idx_within_array_bound, ref_within_array_bound): New functions.
21579 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21580 Factor out check on writable base object to ...
21581 (base_object_writable): ... here.
21583 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21585 * config/arm/arm.md (probe_stack): Add modes to set source
21588 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
21590 * regrename.c (base_reg_class_for_rename): New static function.
21591 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21593 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
21595 * cgraph.c (thunk_adjust): Export.
21596 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21597 * cgraphunit.c (thunk_adjust): Export.
21598 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21600 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21602 * tree-inline.c (expand_call_inline): Expand thunks inline.
21604 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
21607 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21608 (*sse2_vd_cvtss2sd): Ditto.
21609 * config/i386/i386.md
21610 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21611 Generate *sse2_vd_cvtsd2ss pattern.
21612 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21613 Generate *sse2_vd_cvtss2sd pattern.
21615 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21617 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21618 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
21621 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21623 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
21624 * config/sh/sh.c: Define and declare variables on first use throughout
21626 (current_function_interrupt): Change to bool type.
21627 (frame_insn): Rename to emit_frame_insn and update users.
21628 (push_regs): Use bool for 'interrupt_handler' argument.
21629 (save_schedule_s): Remove.
21630 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
21631 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
21632 targetm.asm_out.unaligned_op.di.
21633 (gen_far_branch): Remove redundant forward declaration.
21634 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
21635 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
21636 (sh_set_return_address, sh_function_ok_for_sibcall,
21637 scavenge_reg): Update comments.
21638 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
21639 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
21640 (sh_attr_renesas_p): Remove unnecessary parentheses.
21641 (branch_dest): Simplify.
21642 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
21643 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
21644 (CUMULATIVE_ARGS): Change macro to typedef.
21645 (current_function_interrupt): Change to bool type.
21646 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
21647 Surround with __cplusplus ifdef.
21648 (sh_compare_op0, sh_compare_op1): Remove.
21649 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
21651 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
21653 * config/arm/arm.md (arch): Add neon.
21654 (arch_enabled): Return yes for arch neon when TARGET_NEON.
21655 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
21656 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
21657 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
21658 attributes for alt renumbering. Mark alt 3 as non-predicable.
21659 (thumb2_movdf_vfp): Likewise.
21661 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
21663 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
21664 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
21665 (*andqi_1): Add preferred_for_speed attribute to disparage
21666 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
21667 (*<code>qi_1): Ditto.
21668 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
21669 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
21670 (*ashlqi3_1): Ditto.
21671 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
21672 Add preferred_for_size attribute to disparage alternative 0 and
21673 preferred_for_speed attribute to disparage alternative 1 for
21674 TARGET_PARTIAL_REG_STALL targets.
21676 2016-05-07 Tom de Vries <tom@codesourcery.com>
21678 PR tree-optimization/70956
21679 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
21682 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21684 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
21685 * config/sh/sh.c (sh_cbranch_distance): Implement it.
21686 * config/sh/sh.md (branch_zero): Remove define_attr.
21687 (define_delay): Disable delay slot if branch distance is one insn.
21689 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21691 * config/i386/i386.md (LEAMODE): New mode attribute.
21692 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
21693 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
21694 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
21695 operand 2 predicate.
21696 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
21697 (*lea<mode>_general_3): Ditto.
21698 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
21700 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21702 * genmddump.c (main): Convert argv from char ** to const char **.
21704 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21706 * coretypes.h (OVERRIDE): New macro.
21707 (FINAL): New macro.
21709 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
21711 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
21712 allow coalescing if the types are compatible.
21714 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21716 * pass_manager.h (pass_manager::register_pass_name): New method.
21717 (pass_manager::get_pass_by_name): New method.
21718 (pass_manager::create_pass_tab): New method.
21719 (pass_manager::m_name_to_pass_map): New field.
21720 * passes.c (name_to_pass_map): Delete global in favor of field
21721 "m_name_to_pass_map" of pass_manager.
21722 (register_pass_name): Rename from a function to...
21723 (pass_manager::register_pass_name): ...this method, updating
21724 for renaming of global "name_to_pass_map" to field
21725 "m_name_to_pass_map".
21726 (create_pass_tab): Rename from a function to...
21727 (pass_manager::create_pass_tab): ...this method, updating
21728 for renaming of global "name_to_pass_map" to field.
21729 (get_pass_by_name): Rename from a function to...
21730 (pass_manager::get_pass_by_name): ...this method.
21731 (enable_disable_pass): Convert use of get_pass_by_name to
21732 a method call, locating the pass_manager singleton.
21734 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21736 * genattr-common.c (main): Convert argv from char ** to const char **.
21737 * genattr.c (main): Likewise.
21738 * genattrtab.c (main): Likewise.
21739 * genautomata.c (initiate_automaton_gen): Likewise.
21741 * gencodes.c (main): Likewise.
21742 * genconditions.c (main): Likewise.
21743 * genconfig.c (main): Likewise.
21744 * genconstants.c (main): Likewise.
21745 * genemit.c (main): Likewise.
21746 * genenums.c (main): Likewise.
21747 * genextract.c (main): Likewise.
21748 * genflags.c (main): Likewise.
21749 * genmddeps.c (main): Likewise.
21750 * genopinit.c (main): Likewise.
21751 * genoutput.c (main): Likewise.
21752 * genpeep.c (main): Likewise.
21753 * genpreds.c (main): Likewise.
21754 * genrecog.c (main): Likewise.
21755 * gensupport.c (init_rtx_reader_args_cb): Likewise.
21756 (init_rtx_reader_args): Likewise.
21757 * gensupport.h (init_rtx_reader_args_cb): Likewise.
21758 (init_rtx_reader_args): Likewise.
21759 * gentarget-def.c (main): Likewise.
21760 * read-md.c (read_md_files): Likewise.
21761 * read-md.h (read_md_files): Likewise.
21763 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21765 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
21766 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
21767 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
21768 Remove unused predicate.
21769 (register_and_not_fp_reg_operand): Ditto.
21771 2016-05-06 Martin Liska <mliska@suse.cz>
21773 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
21774 instead of vec as the vector is local to the function.
21776 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21778 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
21779 avx512bw alternative.
21781 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
21782 before the ashr<mode>3 pattern.
21784 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
21785 v instead of x in vex or maybe_vex alternatives, use
21786 maybe_evex instead of vex in prefix.
21788 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
21789 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
21790 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
21791 in vex or maybe_vex alternatives, use maybe_evex instead of vex
21794 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
21795 v instead of x in vex or maybe_vex alternatives, use
21796 maybe_evex instead of vex in prefix.
21798 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
21799 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
21800 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
21801 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
21802 alternatives, use maybe_evex instead of vex in prefix.
21804 * config/i386/sse.md (vec_interleave_lowv4sf,
21805 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
21806 v instead of x in vex or maybe_vex alternatives, use
21807 maybe_evex instead of vex in prefix.
21809 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
21810 v instead of x in vex or maybe_vex alternatives, use
21811 maybe_evex instead of vex in prefix.
21813 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
21814 v constraint instead of x.
21816 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
21818 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
21819 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
21822 2016-05-06 Richard Biener <rguenther@suse.de>
21824 PR tree-optimization/70948
21825 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21826 Properly clobber all fields of va_list for __builtin_va_start.
21828 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
21831 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
21832 loop latch destination.
21834 2016-05-06 Martin Liska <mliska@suse.cz>
21836 * tree-ssa-uninit.c: Apply manual changes
21837 to the GNU coding style.
21838 (prune_uninit_phi_opnds): Rename from
21839 prune_uninit_phi_opnds_in_unrealizable_paths.
21841 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21843 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
21844 mspace): Remove deprecated options.
21845 * doc/invoke.texi (SH options): Remove -mspace.
21847 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21849 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
21851 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21853 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
21854 corresponding combine split pattern.
21856 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21859 * config/sh/predicates.md (long_displacement_mem_operand): New.
21860 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
21861 Add movi20, movi20s alternatives. Adjust length attribute for
21863 (movsi_ie): Allow for any FPU. Adjust length attribute for
21865 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
21866 attribute for alternatives.
21867 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
21868 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
21869 length attribute for alternatives.
21871 2016-05-06 Richard Biener <rguenther@suse.de>
21873 PR tree-optimization/70960
21874 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
21876 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21879 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
21880 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
21882 2016-05-06 Marek Polacek <polacek@redhat.com>
21885 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
21887 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21890 * config/sh/sh.md (*rotcr): Add another variant.
21892 2016-05-06 Richard Biener <rguenther@suse.de>
21894 PR middle-end/70931
21895 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
21897 2016-05-06 Richard Biener <rguenther@suse.de>
21899 PR middle-end/70941
21900 * fold-const.c (split_tree): Always convert to the original type
21903 2016-05-06 Richard Biener <rguenther@suse.de>
21905 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
21906 (fwprop_addr): Likewise.
21908 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21911 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
21913 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
21914 * config/i386/i386.md (push mem splitter): Use find_constant_src in
21915 the splitter condition.
21916 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
21917 the splitter condition.
21918 (FP float_extend load splitter): Ditto.
21920 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
21922 * config/i386/i386.md (peehole2 patterns): Change true_regnum
21923 to REGNO in all peephole2 patterns.
21924 (post-reload splitters): Change true_regnum to REGNO in
21925 post-reload splitters.
21926 (zero_extend splitters): Use general_reg_operand and
21927 nonimmediate_gr_operand predicates.
21929 2016-05-05 Jakub Jelinek <jakub@redhat.com>
21931 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
21932 v constraint instead of x.
21934 2016-05-05 Alan Modra <amodra@gmail.com>
21937 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
21938 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
21939 TARGET_NO_FP_IN_TOC for -mrelocatable.
21940 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
21941 TARGET_RELOCATABLE test.
21942 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21943 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21944 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21945 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21946 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21947 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21948 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21949 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21950 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
21951 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21953 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
21954 (rs6000_stack_info): Likewise.
21955 (rs6000_elf_asm_out_constructor): Likewise.
21956 (rs6000_elf_asm_out_destructor): Likewise.
21957 (rs6000_elf_declare_function_name): Likewise.
21958 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
21959 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
21962 2016-05-05 Alan Modra <amodra@gmail.com>
21964 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
21966 2016-05-05 Alan Modra <amodra@gmail.com>
21968 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
21969 out-of-line gpr restore for one or two regs if that would add
21972 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
21975 * config/i386/i386.md
21976 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
21977 Change to post-epilogue_completed late splitter. Use sse_reg_operand
21978 as operand 0 predicate.
21979 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
21981 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
21982 Ditto. Emit the pattern using RTX.
21984 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
21985 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
21986 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
21987 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
21989 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
21990 sse_reg_operand as operand 0 predicate.
21992 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
21993 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
21994 instead of gen_rtx_REG.
21995 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
21998 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22000 * function.c (emit_use_return_register_into_block): Delete.
22001 (gen_return_pattern): Delete.
22002 (emit_return_into_block): Delete.
22003 (active_insn_between): Delete.
22004 (convert_jumps_to_returns): Delete.
22005 (emit_return_for_exit): Delete.
22006 (thread_prologue_and_epilogue_insns): Delete all code dealing with
22007 simple_return for shrink-wrapped blocks.
22008 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
22009 end of blocks that need one.
22010 (get_unconverted_simple_return): Delete.
22011 (convert_to_simple_return): Delete.
22012 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
22013 (convert_to_simple_return): Ditto.
22015 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22017 * cfgcleanup.c (bb_is_just_return): New function.
22018 (try_optimize_cfg): Simplify jumps to return, branches to return,
22019 and branches around return.
22021 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22023 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
22024 branch to a return.
22026 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22030 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
22031 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
22032 assert flags & OEP_HASH_CHECK, instead of asserting it
22033 never happens. Handle TARGET_EXPR.
22034 * fold-const.c (operand_equal_p): For hash verification,
22035 or in OEP_HASH_CHECK into flags.
22037 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
22039 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
22041 (compute_samebase_partition_bases): Fix typo.
22043 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22045 * config/i386/sse.md (vec_interleave_highv8sf,
22046 vec_interleave_lowv8sf, vec_interleave_highv4df,
22047 vec_interleave_lowv4df): Remove constraints from expanders.
22049 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
22051 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22053 * tree-inline.c (expand_call_inline): Fix path dealing with
22054 making lhs of call statement undefined.
22056 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22058 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22059 Check availability on NODE, too.
22060 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
22061 (cgraph_node::call_for_symbol_and_aliases): Likewise.
22062 (varpool_node::call_for_symbol_and_aliase): Likewise.
22063 * ipa-pure-const.c (add_new_function): Analyze all bodies.
22064 (propagate_pure_const): Propagate across interposable functions, too.
22065 (skip_function_for_local_pure_const): Do not skip interposable bodies
22067 (pass_local_pure_const::execute): Update.
22069 2016-05-04 Marek Polacek <polacek@redhat.com>
22071 * doc/invoke.texi: Document -Wdangling-else.
22073 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22075 * config.gcc: Error out when conflicting multilib is detected. Do not
22076 loop over multilibs since no combination is legal.
22078 2016-05-04 Alan Modra <amodra@gmail.com>
22080 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
22081 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
22082 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22085 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
22087 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
22088 Clean up p5600 comments.
22090 2016-05-04 Richard Biener <rguenther@suse.de>
22092 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
22093 constructor simplifications.
22094 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
22096 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
22098 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
22099 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
22100 result.set_rtx is null instead of aborting.
22101 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
22103 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
22104 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
22105 *mov<mode>_store_postinc): New patterns.
22107 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
22109 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
22110 as commutative. Check both conversions are NOP.
22111 ((A & B) OP (C & B)): Remove.
22113 2016-05-04 Alan Modra <amodra@gmail.com>
22115 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
22117 2016-05-04 Alan Modra <amodra@gmail.com>
22120 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
22121 when cr2,3,4 are all fixed regs.
22123 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
22125 PR rtl-optimization/57193
22126 * opts.c (default_options_table): Revert OPT_frename_registers change.
22127 * doc/invoke.texi (-frename-registers, -O2): Likewise.
22129 2016-05-03 Martin Sebor <msebor@redhat.com>
22132 * builtins.c (fold_builtin_FILE): New function.
22133 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
22134 (fold_builtin_0): Call them.
22135 * gimplify.c (gimplify_call_expr): Remove the handling of
22136 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
22139 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
22140 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
22144 * doc/extend.texi (Function Names as Strings): Update __func__,
22145 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
22148 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22149 Richard Biener <rguenther@suse.de>
22151 PR tree-optimization/70916
22152 * tree-if-conv.c: Include cfganal.h.
22153 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
22154 and remove_fake_exit_edges around the optimization pass.
22156 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
22158 * cgraph.c (symbol_table::create_edge): Set inline_failed.
22159 (cgraph_edge::make_direct): Likewise.
22160 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
22161 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
22162 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
22163 (CIF_THUNK): New code.
22164 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
22165 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
22166 (compute_inline_parameters): Set inline_failed for thunks.
22167 (inline_analyze_function): Cleanup.
22168 * ipa-inline.c (can_inline_edge_p): Do not deal with
22169 call_stmt_cannot_inline_p.
22170 (can_early_inline_edge_p): Likewise.
22171 (early_inliner): Initialize inline_failed.
22172 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
22174 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
22176 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22177 from nonimm_ssenomem_operand.
22178 (nonimm_ssenomem_operand): New predicate.
22179 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
22180 as operand 0 predicate.
22181 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
22182 Disable unsupported alternatives using "enabled" attribute.
22183 Use register_ssemem_operand as operand 0 predicate.
22184 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
22186 2016-05-03 Marek Polacek <polacek@redhat.com>
22189 * input.c (expansion_point_location): New function.
22190 * input.h (expansion_point_location): Declare.
22192 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
22194 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
22195 occurence with frame_offset_ ones.
22197 2016-05-03 Alan Modra <amodra@gmail.com>
22199 PR rtl-optimization/70890
22200 * ira.c (combine_and_move_insns): When moving def_insn, remove
22201 equivs on use_insn.
22203 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
22205 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
22206 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
22207 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
22208 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
22210 2016-05-03 Alan Modra <amodra@gmail.com>
22212 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
22213 for SAVE_MULTIPLE/STORE_MULTIPLE.
22215 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22217 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
22218 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
22220 2016-05-03 Richard Biener <rguenther@suse.de>
22222 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
22224 (gimplify_arg): Likewise.
22225 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
22226 re-writing the result to a decl if required.
22227 (internal_get_tmp_var): Add allow_ssa parameter
22228 and override into_ssa with it.
22229 (get_formal_tmp_var): Adjust.
22230 (get_initialized_tmp_var): Add allow_ssa parameter.
22231 (gimplify_arg): Add allow_ssa parameter and avoid generating
22232 SSA names for the result false.
22233 (gimplify_call_expr): If the call may return twice do not
22234 gimplify parameters into SSA.
22235 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
22236 (gimplify_modify_expr): Adjust assert. For noreturn calls
22237 with a SSA name LHS adjust its def.
22238 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
22239 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
22240 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
22241 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
22242 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
22243 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
22244 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
22245 (optimize_target_teams): Do not allow SSA names for clause operands.
22246 (gimplify_expr): Likewise for where we mark the result addressable.
22247 * passes.def (pass_init_datastructures): Remove.
22248 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
22249 (rewrite_stmt): Likewise.
22250 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
22251 (replace_locals_op): Replace SSA names.
22252 (copy_gimple_seq_and_replace_locals): Init src_cfun.
22253 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
22254 * cgraph.c (release_function_body): Free CFG annotations only
22255 when we have a CFG. Simplify.
22256 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
22257 force_gimple_operand instead of get_initialized_tmp_var.
22258 * tree-pass.h (make_pass_init_datastructures): Remove.
22259 * tree-ssa.c (execute_init_datastructures): Remove.
22260 (pass_data_init_datastructures): Likewise.
22261 (class pass_init_datastructures): Likewise.
22262 (make_pass_init_datastructures): Likewise.
22263 * omp-low.c (create_omp_child_function): Init SSA data structures.
22264 (grid_expand_target_grid_body): Likewise.
22265 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
22266 name before adding it to names_to_release.
22267 (remove_bb): Always release SSA defs.
22268 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
22269 before dereferencing it.
22270 * cgraphunit.c (init_lowered_empty_function): Always
22271 int SSA data structures.
22272 * tree-ssanames.c (release_defs): Remove assert that we are in
22274 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
22276 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22277 Uros Bizjak <ubizjak@gmail.com>
22279 PR rtl-optimization/70467
22280 * config/i386/predicates.md (x86_64_hilo_int_operand,
22281 x86_64_hilo_general_operand): New predicates.
22282 * config/i386/constraints.md (Wd): New constraint.
22283 * config/i386/i386.md (mode attr di): Use Wd instead of e.
22284 (general_hilo_operand): New mode attr.
22285 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
22286 instead of <general_operand>.
22287 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
22288 x86_64_hilo_general_operand instead of <general_operand>.
22290 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22292 PR tree-optimization/70916
22293 * tree-if-conv.c (constant_or_ssa_name): Removed.
22294 (fold_build_cond_expr): Use is_gimple_val instead of
22295 constant_or_ssa_name.
22297 PR tree-optimization/70916
22298 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
22299 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
22302 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
22303 (optimize_atomic_bit_test_and): New function.
22304 (pass_fold_builtins::execute): Use it.
22305 * optabs.def (atomic_bit_test_and_set_optab,
22306 atomic_bit_test_and_complement_optab,
22307 atomic_bit_test_and_reset_optab): New optabs.
22308 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
22309 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
22310 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
22311 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
22312 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
22313 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
22314 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
22315 * doc/md.texi (atomic_bit_test_and_set@var{mode},
22316 atomic_bit_test_and_complement@var{mode},
22317 atomic_bit_test_and_reset@var{mode}): Document.
22318 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22319 atomic_bit_test_and_complement<mode>,
22320 atomic_bit_test_and_reset<mode>): New expanders.
22321 (atomic_bit_test_and_set<mode>_1,
22322 atomic_bit_test_and_complement<mode>_1,
22323 atomic_bit_test_and_reset<mode>_1): New insns.
22325 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
22327 PR rtl-optimization/70687
22328 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
22329 instead of unsigned HOST_WIDE_INT.
22331 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
22333 PR rtl-optimization/44281
22334 * hard-reg-set.h (struct target_hard_regs): New field
22335 x_fixed_nonglobal_reg_set.
22336 (fixed_nonglobal_reg_set): New macro.
22337 * reginfo.c (init_reg_sets_1): Initialize it.
22338 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22340 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22342 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22344 PR tree-optimization/56541
22345 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22346 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22347 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22348 (any_complicated_phi): new static variable.
22349 (aggressive_if_conv): delete.
22350 (if_convertible_phi_p): support phis with more than two arguments.
22351 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22352 critical pred edges.
22353 (ifcvt_split_critical_edges): support phis with more than two
22354 arguments by checking new parameter. only split critical edges
22356 (tree_if_conversion): handle simd pragma marked loop using new
22357 local variable aggressive_if_conv. check any_complicated_phi.
22359 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22361 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22364 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22366 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22369 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22371 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22372 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22373 define_insn_and_split.
22374 (mulsi3_i): New define_insn_and_split.
22375 (mulsi3_call): Convert to define_insn.
22376 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22377 Remove constraints.
22379 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22381 * machmode.h (mode_complex): Add support to give the complex mode
22383 (GET_MODE_COMPLEX_MODE): Likewise.
22384 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22385 stored by build_complex_type and gfc_build_complex_type instead of
22386 trying to figure out the appropriate mode based on the size. Raise
22387 an assertion error, if the type was not set.
22388 * genmodes.c (struct mode_data): Add field for the complex type of
22390 (blank_mode): Likewise.
22391 (make_complex_modes): Remember the complex mode created in the
22393 (emit_mode_complex): Write out the mode_complex array to map a
22394 type mode to the complex version.
22395 (emit_insn_modes_c): Likewise.
22396 * tree.c (build_complex_type): Set the complex type to use before
22397 calling layout_type.
22398 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22399 support for __float128 complex datatypes.
22400 (rs6000_hard_regno_mode_ok): Likewise.
22401 (rs6000_setup_reg_addr_masks): Likewise.
22402 (rs6000_complex_function_value): Likewise.
22403 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22404 __float128 and __ibm128 complex.
22405 (FLOAT128_IBM_P): Likewise.
22406 (ALTIVEC_ARG_MAX_RETURN): Likewise.
22407 * doc/extend.texi (Additional Floating Types): Document that
22408 -mfloat128 must be used to enable __float128. Document complex
22409 __float128 and __ibm128 support.
22411 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22414 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22415 char/short arguments promoted to int because of promote_prototypes.
22417 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22419 * config/i386/predicates.md (register_ssemem_operand): New predicate.
22420 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22421 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22422 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
22423 alternatives using "enabled" attribute. Use register_ssemem_operand
22424 as operand 1 predicate.
22425 (*cmpi<unord>xf_i387): Split XFmode pattern from
22426 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22427 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22428 *absneg<mode>2_i387. Disable unsupported alternatives using
22429 "enabled" attribute.
22430 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22432 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22434 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22436 (oacc_loop_process): Check mask for loop termination.
22438 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22440 * cif-code.def (CIF_THUNK): Add.
22441 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22444 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22446 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22447 (dump_inline_summary): Dump it.
22448 (fp_expression_p): New predicate.
22449 (estimate_function_body_sizes): Use it.
22450 (inline_merge_summary): Merge fp_expressions.
22451 (inline_read_section): Read fp_expressions.
22452 (inline_write_summary): Write fp_expressions.
22453 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22454 codegen boundary if either caller or callee is !fp_expressions.
22455 * ipa-inline.h (inline_summary): Add fp_expressions.
22456 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22457 to fp_expressions be sure the fp generation flags are updated.
22459 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22461 PR rtl-optimization/70467
22462 * cse.c (cse_insn): Handle no-op MEM moves after folding.
22464 PR rtl-optimization/70467
22465 * ipa-pure-const.c (check_call): Handle internal calls even in
22466 ipa mode like in local mode.
22468 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22470 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22472 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22474 * match.pd (X u< X, X u> X): New transformations.
22476 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22478 * flag-types.h (enum warn_strict_overflow_code): Move ...
22479 * coretypes.h: ... here.
22480 * fold-const.h (fold_overflow_warning): Declare.
22481 * fold-const.c (fold_overflow_warning): Make non-static.
22482 (fold_comparison): Move the transformation of X +- C1 CMP C2
22483 into X CMP C2 -+ C1 ...
22484 * match.pd: ... here.
22485 * gimple-fold.c (fold_stmt_1): Protect with
22486 fold_defer_overflow_warnings.
22488 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22490 * omp-low.c (struct oacc_loop): Add 'inner' field.
22491 (new_oacc_loop_raw): Initialize it to zero.
22492 (oacc_loop_fixed_partitions): Initialize it.
22493 (oacc_loop_auto_partitions): Partition outermost loop to outermost
22494 available partitioning.
22496 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22498 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22500 (umulsidi3): Likewise.
22501 (indirect_jump): Fix jump instruction assembly patterns.
22503 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
22506 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22507 (nvptx_function_value): Assert non-NULL cfun.
22509 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
22511 PR rtl-optimization/70886
22512 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22514 * cselib.h (rtx_equal_for_cselib_1): Declare.
22515 (rtx_equal_for_cselib_p: New inline function.
22516 * cselib.c (rtx_equal_for_cselib_p): Delete.
22517 (rtx_equal_for_cselib_1): Make public.
22519 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22521 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22522 (register_mixssei387nonimm_operand): Remove predicate.
22523 * config/i386/i386.md (*fop_<mode>_comm): Merge from
22524 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
22525 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
22526 for TARGET_MIX_SSE_I387 alternatives.
22527 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22528 Disable unsupported alternatives using "enabled" attribute. Use
22529 nonimm_ssenomem_operand as operand 1 predicate. Also check
22530 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22532 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22534 * tree.c (cst_and_fits_in_hwi): Simplify.
22536 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22538 * tree.h (wi::to_wide): New function.
22539 * expr.c (expand_expr_real_1): Use wi::to_wide.
22540 * fold-const.c (int_const_binop_1): Likewise.
22541 (extract_muldiv_1): Likewise.
22543 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22545 * wide-int.h: Update offset_int and widest_int documentation.
22546 (WI_SIGNED_SHIFT_RESULT): New macro.
22547 (wi::binary_shift): Define signed_shift_result_type for
22548 shifts on offset_int- and widest_int-like types.
22549 (generic_wide_int): Support <<= and >>= if << and >> are supported.
22550 * tree.h (int_bit_position): Use shift operators instead of wi::
22552 * alias.c (adjust_offset_for_component_ref): Likewise.
22553 * expr.c (get_inner_reference): Likewise.
22554 * fold-const.c (fold_comparison): Likewise.
22555 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22556 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22557 * tree-dfa.c (get_ref_base_and_extent): Likewise.
22558 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22559 (stmt_kills_ref_p): Likewise.
22560 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22561 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22562 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22563 (ao_ref_init_from_vn_reference): Likewise.
22565 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22567 * wide-int.h: Update offset_int and widest_int documentation.
22568 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22569 (wi::binary_traits): Allow ordered comparisons between offset_int and
22570 offset_int, between widest_int and widest_int, and between either
22571 of these types and basic C types.
22572 (operator <, <=, >, >=): Define for the same combinations.
22573 * tree.h (tree_int_cst_lt): Use comparison operators instead
22574 of wi:: comparisons.
22575 (tree_int_cst_le): Likewise.
22576 * gimple-fold.c (fold_array_ctor_reference): Likewise.
22577 (fold_nonarray_ctor_reference): Likewise.
22578 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22579 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22580 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22581 * tree-sra.c (completely_scalarize): Likewise.
22582 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22583 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22584 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22585 (check_for_binary_op_overflow): Likewise.
22586 (search_for_addr_array): Likewise.
22587 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22589 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22591 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22592 (arc_save_restore): Likewise.
22593 (arc_dwarf_register_span): Likewise.
22594 (arc_output_pic_addr_const): Initialize suffix variable.
22596 2016-05-02 Martin Liska <mliska@suse.cz>
22598 * symbol-summary.h (function_summary::function_summary):
22599 Remove checking assert for all cgraph nodes.
22600 (function_summary::get): Check summary_uid.
22601 (symtab_insertion): Check summary_uid.
22603 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22605 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22606 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22607 bmaskn instruction.
22608 (arc_dwarf_register_span): Remove enum keyword.
22609 (compact_memory_operand_p): New function.
22610 * config/arc/arc.h (reg_class): Add code density register classes.
22611 (REG_CLASS_NAMES): Likewise.
22612 (REG_CLASS_CONTENTS): Likewise.
22613 * config/arc/arc.md (*movqi_insn): Add code density instructions.
22614 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22615 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22616 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22617 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22619 (h, Rcd, Rsd, Rzd): New register constraints.
22620 (T): Use compact_memory_operand_p function.
22621 * config/arc/predicates.md (compact_load_memory_operand): Remove.
22623 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22625 * config/sh/sh.md (*negnegt, *movtt): Remove.
22627 2016-05-02 Marek Polacek <polacek@redhat.com>
22628 Tom de Vries <tom@codesourcery.com>
22630 PR tree-optimization/70700
22631 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
22632 bigger than FIRST_REF_NODE.
22634 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22637 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
22639 (prepare_cbranch_operands): Don't use scratch register. Assume that
22640 function is used when pseudos can be created.
22641 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
22642 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
22643 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
22644 define_expand. Allow it only when pseudos can be created.
22645 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
22647 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
22649 * config/i386/constraints.md (BC): Only allow -1 operands.
22650 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
22651 Add "enabled" attribute. Update XI mode attribute calculation.
22652 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
22653 (*movoi_internal_avx): Update XI mode attribute calculation.
22654 (*movti_internal): Ditto.
22656 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22658 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
22659 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
22661 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
22663 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
22664 statement on instruction code. Remove trailing spaces.
22665 (altivec_expand_stv_builtin): Likewise.
22667 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22669 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
22670 (TARGET_FPU_DOUBLE): Simplify.
22671 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
22672 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
22673 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
22674 with 'TARGET_FPU_DOUBLE'.
22675 * config/sh/sh.md: Likewise.
22677 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
22679 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
22680 SH_DIV_STR_FOR_SIZE): Remove.
22681 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
22682 SH_DIV_STR_FOR_SIZE): Remove.
22684 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22686 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
22687 logical_reg_operand): Delete.
22688 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
22689 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
22690 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
22691 match_operand and match_test.
22692 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
22693 variables on their first use. Return bool values.
22694 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
22695 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
22696 arith_reg_operand for input operand. Remove empty constraints.
22698 (*xorsi3_compact): Rename to xorsi3.
22699 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
22700 (*zero_extend<mode>si2_disp_mem): Update comment.
22703 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22705 * config/sh/t-sh: Remove SH5 support.
22706 * config.gcc: Likewise.
22707 * configure: Likewise.
22709 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22711 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
22713 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22715 * config/sh/sh.c (register_sh_passes, sh_option_override,
22716 sh_print_operand, prepare_move_operands,
22717 sh_can_follow_jump): Remove TARGET_SH1 checks.
22718 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
22719 PROMOTE_MODE): Likewise.
22720 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
22723 2016-04-30 Alan Modra <amodra@gmail.com>
22725 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
22726 restoring when fixed_reg_p, but allow out-of-line or stmw save.
22727 Check for user regs later to avoid unnecessary looping over regs.
22728 Merge user reg check with non-saved reg check. Don't force
22729 inline VR restore when static chain used.
22730 (rs6000_frame_related): Omit eh_frame info for user regs when
22732 (fixed_regs_p): Delete.
22734 2016-04-30 Alan Modra <amodra@gmail.com>
22736 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
22737 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
22740 2016-04-30 Alan Modra <amodra@gmail.com>
22743 * config/rs6000/rs6000.c (fixed_reg_p): New function.
22744 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
22747 2016-04-30 Alan Modra <amodra@gmail.com>
22749 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
22750 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
22751 flag_pic test for Darwin.
22753 2016-04-30 Alan Modra <amodra@gmail.com>
22755 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
22756 throw_calls_crossed.
22757 (REG_FREQ_CALLS_CROSSED): Delete.
22758 (REG_N_THROWING_CALLS_CROSSED): Delete.
22759 * regstat.c (regstat_bb_compute_ri): Don't calculate
22760 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
22761 (dump_reg_info): Don't print call cross frequency.
22762 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
22763 and REG_N_THROWING_CALLS_CROSSED.
22765 2016-04-30 Alan Modra <amodra@gmail.com>
22767 * regs.h (struct reg_info_t): Delete live_length.
22768 (REG_LIVE_LENGTH): Delete macro.
22769 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
22770 local_live, local_processed and local_live_last_luid params.
22771 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
22773 (regstat_compute_ri): Adjust for above. Don't set
22775 (dump_reg_info): Don't print live length.
22776 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
22777 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
22778 Localize loop_depth var.
22780 2016-04-30 Alan Modra <amodra@gmail.com>
22782 * ira.c (enum valid_equiv): New.
22783 (validate_equiv_mem): Return enum.
22784 (update_equiv_mem): Create replacement in more cases.
22785 (add_store_equivs): Update validate_equiv_mem call.
22787 2016-04-30 Alan Modra <amodra@gmail.com>
22789 * ira.c (combine_and_move_insns): Rather than scanning insns,
22790 use DF infrastucture to find use and def insns.
22792 2016-04-30 Alan Modra <amodra@gmail.com>
22794 ira.c (combine_and_move_insns): Move invariant conditions..
22795 (ira.c): ..to here. Call combine_and_move_insns before
22796 add_store_equivs. Call grow_reg_equivs later. Allocate
22797 req_equiv later using max_reg_num() rather than global max_regno.
22798 (contains_replace_regs): Delete.
22799 (add_store_equivs): Remove contains_replace_regs test.
22801 2016-04-30 Alan Modra <amodra@gmail.com>
22803 * ira.c (struct equiv_mem_data): New.
22804 (equiv_mem, equiv_mem_modified): Delete static vars.
22805 (validate_equiv_mem_from_store): Use "data" param to communicate..
22806 (validate_equiv_mem): ..from here.
22808 2016-04-30 Alan Modra <amodra@gmail.com>
22810 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
22812 (update_reg_equivs): ..here. Move allocation and freeing of
22813 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
22814 end_alias_analysis to..
22817 2016-04-30 Alan Modra <amodra@gmail.com>
22819 * ira.c (pdx_subregs): Delete.
22820 (struct equivalence): Add pdx_subregs field.
22821 (set_paradoxical_subreg): Remove pdx_subregs param. Update
22822 pdx_subregs access.
22823 (update_equiv_regs): Don't create or free pdx_subregs. Update
22824 pdx_subregs access.
22826 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22828 * config/rs6000/altivec.h: Change definitions of vec_xl and
22830 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
22831 (LD_ELEMREV_V2DI): New.
22832 (LD_ELEMREV_V4SF): New.
22833 (LD_ELEMREV_V4SI): New.
22834 (LD_ELEMREV_V8HI): New.
22835 (LD_ELEMREV_V16QI): New.
22836 (ST_ELEMREV_V2DF): New.
22837 (ST_ELEMREV_V2DI): New.
22838 (ST_ELEMREV_V4SF): New.
22839 (ST_ELEMREV_V4SI): New.
22840 (ST_ELEMREV_V8HI): New.
22841 (ST_ELEMREV_V16QI): New.
22844 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22845 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
22846 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
22847 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
22848 (altivec_expand_builtin): Add handling for
22849 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
22850 (rs6000_invalid_builtin): Add error-checking for
22851 RS6000_BTM_P9_VECTOR.
22852 (altivec_init_builtins): Define builtins used to implement vec_xl
22854 (rs6000_builtin_mask_names): Define power9-vector.
22855 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
22856 (RS6000_BTM_P9_VECTOR): Define.
22857 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
22858 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
22859 (vsx_ld_elemrev_v2df): Likewise.
22860 (vsx_ld_elemrev_v4sf): Likewise.
22861 (vsx_ld_elemrev_v4si): Likewise.
22862 (vsx_ld_elemrev_v8hi): Likewise.
22863 (vsx_ld_elemrev_v16qi): Likewise.
22864 (vsx_st_elemrev_v2df): Likewise.
22865 (vsx_st_elemrev_v2di): Likewise.
22866 (vsx_st_elemrev_v4sf): Likewise.
22867 (vsx_st_elemrev_v4si): Likewise.
22868 (vsx_st_elemrev_v8hi): Likewise.
22869 (vsx_st_elemrev_v16qi): Likewise.
22870 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
22873 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
22875 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
22877 (simplify_control_stmt_condition_1): ... here. Recurse into
22878 BIT_AND_EXPRs and BIT_IOR_EXPRs.
22880 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
22883 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
22884 (zero_extendqi<mode>2_dot): Revert earlier conversion from
22885 define_insn_and_split to define_insn.
22886 (zero_extendqi<mode>2_dot2): Same.
22887 (extendqi<mode>2_dot): Same.
22888 (extendqi<mode>2_dot2): Same.
22890 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22892 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
22893 (probe_stack): New expander.
22894 (probe_stack_<mode>): New insn pattern.
22896 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22898 * config/i386/i386.md
22899 (operations with memory inputs setting flags peephole2):
22900 Remove uneeded REG_P checks. Cleanup pattern generation.
22902 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
22904 * tree-vect-loop.c (vect_transform_loop): Fix
22905 nb_iterations_upper_bound computation for vectorized loop.
22907 2016-04-29 Marek Polacek <polacek@redhat.com>
22908 Jakub Jelinek <jakub@redhat.com>
22911 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
22912 TARGET_EXPR_SLOT as a base.
22914 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
22916 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
22917 with 'rCm2' constraints to limit possible immediate size.
22918 (*load_zeroextendqisi_update): Likewise.
22919 (*load_signextendqisi_update): Likewise.
22920 (*loadhi_update): Likewise.
22921 (*load_zeroextendhisi_update): Likewise.
22922 (*load_signextendhisi_update): Likewise.
22923 (*loadsi_update): Likewise.
22924 (*loadsf_update): Likewise.
22926 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22928 * config/i386/predicates.md (constm1_operand): Fix comparison.
22930 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22932 * testsuite/gcc.target/arc/ieee_eq.c: New test.
22934 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
22936 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
22937 remaining SH5 related settings.
22938 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
22939 shmedia_prepare_call_address): Delete.
22940 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
22941 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
22942 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
22943 UNSUPPORTED_SH2A): Remove m5 checks.
22944 (sh_divide_strategy_e): Remove SH5 division strategies.
22945 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
22946 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
22948 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22950 * config/s390/s390.c (s390_rtx_costs): Update documentation.
22952 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22954 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
22955 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
22956 Change lder to ldr.
22957 * config/s390/vector.md ("mov<mode>"): Likewise.
22959 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
22961 * config/s390/constraints.md ("U", "W"): Invoke
22962 s390_mem_constraint with "ZR" and "ZT".
22963 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
22964 addresses when using LRA. Accept also short displacements for S
22965 and T constraints. Do not check for long displacement target for
22966 S and T constraints.
22967 (s390_mem_constraint): Remove handling of U and W constraints.
22968 * config/s390/s390.md (various patterns): Remove the short
22969 displacement constraints (Q and R) if a long displacement
22970 constraint is present. Add longdisp as required CPU capability.
22971 * config/s390/vector.md: Likewise.
22972 * config/s390/vx-builtins.md: Likewise.
22974 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22977 * reload1.c (reload): Call finish_spills before
22978 restarting reload loop. Skip select_reload_regs
22979 if update_eliminables_and_spill returns true.
22981 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22983 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
22984 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
22985 (umulhisi3_imm): Update predicates and constraint letters.
22986 (umulhisi3_reg): Declare instruction as commutative.
22987 * config/arc/constraints.md (J12, J16): New constraints.
22988 * config/arc/predicates.md (short_unsigned_const_operand): New
22990 (arc_short_operand): Likewise.
22991 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
22993 2016-04-29 Richard Biener <rguenther@suse.de>
22995 PR tree-optimization/13962
22996 PR tree-optimization/65686
22997 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
22998 * tree-ssa-alias.c (ptrs_compare_unequal): New function
22999 using PTA to compare pointers.
23000 * match.pd: Add pattern for pointer equality compare simplification
23001 using ptrs_compare_unequal.
23003 2016-04-29 Richard Biener <rguenther@suse.de>
23005 * stor-layout.c (layout_type): Do not build a pointer-to-element
23008 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23010 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
23011 Use SWI mode iterator. Use general_reg_operand predicate.
23012 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
23013 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
23016 2016-04-29 Jakub Jelinek <jakub@redhat.com>
23018 PR middle-end/70843
23019 * fold-const.c (operand_equal_p): Don't verify hash value equality
23021 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
23024 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23027 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
23028 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
23029 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
23030 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
23031 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
23033 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23035 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
23036 to info. Don't initialize separate fields to 0. Clean up
23039 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23041 * config/i386/i386.md (peephole2s for operations with memory inputs):
23042 Use SWI mode iterator.
23043 (peephole2s for operations with memory outputs): Ditto.
23044 Do not check for stack checking probe.
23046 (probe_stack): Remove expander.
23048 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23049 Andrew Burgess <andrew.burgess@embecosm.com>
23051 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
23052 operands as 32-bits.
23054 2016-04-28 Jason Merrill <jason@redhat.com>
23056 * gdbinit.in: Skip line-map.h.
23058 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23059 Andrew Burgess <andrew.burgess@embecosm.com>
23061 * config/arc/arc.c (arc_conditional_register_usage): Take
23062 TARGET_RRQ_CLASS into account.
23063 (arc_print_operand): Support printing 'p' and 's' operands.
23064 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
23066 (TARGET_RRQ_CLASS): Define.
23067 (IS_POWEROF2_OR_0_P): Define.
23068 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
23070 (*tst_movb): New define_insn.
23071 (*tst): Avoid recognition if it could prevent '*tst_movb'
23072 combination; replace c/CnL with c/Chs alternative.
23073 (*tst_bitfield_tst): New define_insn.
23074 (*tst_bitfield_asr): New define_insn.
23075 (*tst_bitfield): New define_insn.
23076 (andsi3_i): Add Rrq variant.
23077 (extzv): New define_expand.
23078 (insv): New define_expand.
23079 (*insv_i): New define_insn.
23080 (*movb): New define_insn.
23081 (*movb_signed): New define_insn.
23082 (*movb_high): New define_insn.
23083 (*movb_high_signed): New define_insn.
23084 (*movb_high_signed + 1): New define_split pattern.
23085 (*mrgb): New define_insn.
23086 (*mrgb + 1): New define_peephole2 pattern.
23087 (*mrgb + 2): New define_peephole2 pattern.
23088 * config/arc/arc.opt (mbitops): New option for nps400, uses
23089 TARGET_NPS_BITOPS_DEFAULT.
23090 * config/arc/constraints.md (q): Make register class conditional.
23091 (Rrq): New register constraint.
23092 (Chs): New constraint.
23093 (Clo): New constraint.
23094 (Chi): New constraint.
23095 (Cbf): New constraint.
23096 (Cbn): New constraint.
23097 (C18): New constraint.
23098 (Cbi): New constraint.
23100 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23102 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
23104 (bitmap_intersection_of_preds): Ditto.
23105 (bitmap_union_of_succs): Ditto.
23106 (bitmap_union_of_preds): Ditto.
23107 * sbitmap.c (do_popcount): Delete.
23108 (BITMAP_DEBUGGING): Delete.
23109 (sbitmap_verify_popcount): Delete.
23110 (sbitmap_alloc): Don't initialize the popcount field.
23111 (sbitmap_alloc_with_popcount): Delete.
23112 (sbitmap_resize): Don't resize the popcount array.
23113 (sbitmap_vector_alloc): Don't initialize the popcount field.
23114 (bitmap_copy): Don't copy the popcount array.
23115 (bitmap_clear): Don't clear the popcount array.
23116 (bitmap_clear): Delete the popcount array handling.
23117 (bitmap_ior_and_compl): Delete the popcount assert.
23118 (bitmap_not): Ditto.
23119 (bitmap_and_compl): Ditto.
23120 (bitmap_and): Delete the popcount array handling.
23121 (bitmap_xor): Ditto.
23122 (bitmap_ior): Ditto.
23123 (bitmap_or_and): Delete the popcount assert.
23124 (bitmap_and_or): Ditto.
23125 (popcount_table): Delete.
23126 (sbitmap_elt_popcount): Delete.
23127 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
23128 (bitmap_set_bit): Delete the popcount assert.
23129 (bitmap_clear_bit): Ditto.
23130 (sbitmap_free): Don't free the popcount array.
23131 (sbitmap_alloc_with_popcount): Delete declaration.
23132 (sbitmap_popcount): Ditto.
23134 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23135 Andrew Burgess <andrew.burgess@embecosm.com>
23137 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
23138 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
23139 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
23140 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
23141 * config/arc/arc.opt (mcmem): New option.
23142 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
23143 supply length for r/m alternative.
23144 (*extendqisi2_ac): Likewise.
23145 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
23147 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
23148 (movhi_insn): Likewise.
23149 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
23150 (*zero_extendqihi2_i): Add r/Ucm alternative.
23151 (*zero_extendqisi2_ac): Likewise.
23152 (*zero_extendhisi2_i): Likewise.
23153 * config/arc/constraints.md (Uex): New memory constraint.
23154 (Ucm): New define_constraint.
23155 * config/arc/predicates.md (long_immediate_loadstore_operand):
23156 Return 0 for MEM with cmem_address address.
23157 (cmem_address_0): New predicates.
23158 (cmem_address_1): Likewise.
23159 (cmem_address_2): Likewise.
23160 (cmem_address): Likewise.
23162 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23164 * config/rs6000/rs6000.c (machine_function): Rename
23165 insn_chain_scanned_p to spe_insn_chain_scanned_p.
23166 (rs6000_stack_info): Adjust.
23168 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23169 Andrew Burgess <andrew.burgess@embecosm.com>
23171 * config/arc/constraints.md (Usd): Convert to define_constraint.
23175 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23178 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
23179 Add new peephole2 where the first insn is *mov<mode>_or instead of
23180 *mov<mode>_internal.
23182 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
23184 * tracer.c (bb_seen): Make static.
23186 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
23188 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
23189 support, setup defaults.
23190 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
23191 * config/arc/arc.c (arc_init): Add NPS400 support.
23192 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
23193 (TARGET_ARC700): NPS400 is also an ARC700.
23194 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
23196 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23199 * config/nds32/nds32.md (casesi): Don't access the operands array
23202 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23204 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
23205 (or $-1,reg peephole2): Ditto.
23206 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
23208 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23210 * doc/extend.texi (Common Function Attributes) [optimize]:
23211 Discourage use of the optimize attribute.
23213 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
23215 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
23216 special case builtin.
23217 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23218 ALTIVEC_BUILTIN_VEC_ADDE.
23219 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23220 support for ALTIVEC_BUILTIN_VEC_ADDE.
23221 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
23222 for __builtin_vec_adde.
23224 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23226 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
23227 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
23229 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23232 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23233 attributes): Document cilkplus_runtime.
23235 2016-04-28 Martin Jambor <mjambor@suse.cz>
23237 * tree-cfg.c (verify_expr): Verify that local declarations belong to
23238 this function. Call verify_expr on MEM_REFs and bases of other
23239 handled_components.
23241 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23243 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
23244 for WORD_REGISTER_OPERATIONS to runtime check.
23246 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23248 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
23250 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23252 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
23253 big-endian compilation.
23254 * config/arc/arc.md (addf3): Likewise.
23255 (subdf3): Likewise.
23256 (muldf3): Likewise.
23258 2016-04-28 Richard Biener <rguenther@suse.de>
23260 PR tree-optimization/70840
23261 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
23262 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
23263 Mark x * pow(x,c) -> pow(x,c+1) commutative.
23264 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
23266 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23268 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
23269 and explain why in a comment.
23271 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23273 * config/arc/arc.md (cpu_facility): Add fpx variant.
23274 (subdf3): Prohibit use reverse sub when assist operations option
23276 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
23277 instructions only when FPX is enabled.
23278 * testsuite/gcc.target/arc/trsub.c: New test.
23280 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23282 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
23283 mult_operator when calculating "type" attribute.
23284 (*fop_<mode>_1_i387): Ditto.
23285 (*fop_xf_1_i387): Ditto.
23286 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
23287 Use std::swap to swap operands. Use RTL expressions to generate
23290 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23291 Joern Rennecke <joern.rennecke@embecosm.com>
23293 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
23295 (emit_pic_move): Remove.
23296 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
23297 * config/arc/arc.c (emit_pic_move): Removed.
23298 (TARGET_HAVE_TLS): Define.
23299 (arc_conditional_register_usage): Test for arc_tp_regno.
23300 (arc_print_operand, arc_print_operand_address): Handle TLS
23302 (arc_needs_pcl_p): New function.
23303 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
23304 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
23305 (arc_raw_symbolic_reference_mentioned_p): Likewise.
23306 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
23307 (arc_legitimize_tls_address): Likewise.
23308 (DTPOFF_ZERO_SYM): Define.
23309 (arc_legitimize_pic_address): Make it static, handle TLS cases.
23310 (arc_output_pic_addr_const): Print TLS unspecs.
23311 (prepare_pic_move): New function, replaces emit_pic_move.
23312 (arc_legitimate_constant_p): Handle TLS unspecs.
23313 (arc_legitimate_address_p): Likewise.
23314 (arc_rewrite_small_data_p): Use assert for TLS constants.
23315 (prepare_move_operands): Use prepare_pic_move.
23316 (arc_legitimize_address): Legitimize tls addresses.
23317 (arc_epilogue_uses): Check for arc_tp_regno.
23318 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23319 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23321 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23323 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23324 %(arc_tls_extra_start_spec).
23325 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23326 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23328 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23329 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23330 (UNSPEC_TLS_OFF): Add.
23332 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23333 (get_thread_pointersi): New patterns.
23334 * config/arc/arc.opt (mtp-regno): New option.
23335 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23336 (move_dest_operand): Likewise.
23337 * configure: Regenerate.
23338 * configure.ac: Add arc*-*-* case to test for tls.
23339 * doc/invoke.texi (ARC options): Document mtp-regno.
23341 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23343 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23344 the new ARC HS SIMD instructions.
23345 (arc_preferred_simd_mode): New function.
23346 (arc_autovectorize_vector_sizes): Likewise.
23347 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23348 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23349 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23350 (arc_init_builtins): Add new SIMD builtin types.
23351 (arc_split_move): Handle 64 bit vector moves.
23352 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23353 (TARGET_PLUS_QMACW): Define.
23354 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23355 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23356 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23357 (VSUBADD4H): New builtins.
23358 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23359 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23361 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
23362 Matthias Klose <doko@debian.org>
23364 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23366 2016-04-28 Richard Biener <rguenther@suse.de>
23368 PR middle-end/70777
23369 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23372 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
23374 * common/config/sh/sh-common.c: Remove SH5 support.
23375 * config/sh/constraints.md: Likewise.
23376 * config/sh/config/sh/elf.h: Likewise.
23377 * config/sh/linux.h: Likewise.
23378 * config/sh/netbsd-elf.h: Likewise.
23379 * config/sh/predicates.md: Likewise.
23380 * config/sh/sh-c.c: Likewise.
23381 * config/sh/sh-protos.h: Likewise.
23382 * config/sh/sh.c: Likewise.
23383 * config/sh/sh.h: Likewise.
23384 * config/sh/sh.md: Likewise.
23385 * config/sh/sh.opt: Likewise.
23386 * config/sh/sync.md: Likewise.
23387 * config/sh/sh64.h: Delete.
23388 * config/sh/shmedia.h: Likewise.
23389 * config/sh/shmedia.md: Likewise.
23390 * config/sh/sshmedia.h: Likewise.
23391 * config/sh/t-netbsd-sh5-64: Likewise.
23392 * config/sh/t-sh64: Likewise.
23393 * config/sh/ushmedia.h: Likewise.
23395 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23397 * config/i386/i386.md (sign_extend to memory peephole2s): Use
23398 general_reg_operand instead of register_operand predicate.
23400 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23402 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23404 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
23406 * match.pd (A - B > A, A + B < A): New transformations.
23408 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
23410 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23411 which defaults to true. Emit an outer pair of parentheses only if
23412 EMIT_PARENS. When continuing a chain of && or || (or & or |),
23413 don't emit parentheses for the right-hand operand.
23415 2016-04-27 Jeff Law <law@redhat.com>
23417 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23419 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23421 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23422 (altivec_lvx_<mode>_internal): Document.
23423 (altivec_lvx_<mode>_2op): New define_insn.
23424 (altivec_lvx_<mode>_1op): Likewise.
23425 (altivec_lvx_<mode>_2op_si): Likewise.
23426 (altivec_lvx_<mode>_1op_si): Likewise.
23427 (altivec_stvx_<mode>): Remove.
23428 (altivec_stvx_<mode>_internal): Document.
23429 (altivec_stvx_<mode>_2op): New define_insn.
23430 (altivec_stvx_<mode>_1op): Likewise.
23431 (altivec_stvx_<mode>_2op_si): Likewise.
23432 (altivec_stvx_<mode>_1op_si): Likewise.
23433 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23434 Expand vec_ld and vec_st during parsing.
23435 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23437 (altivec_expand_stvx_be): Likewise.
23438 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23439 address-masking behavior in RTL.
23440 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23441 address-masking behavior in RTL.
23442 (altivec_expand_builtin): Change builtin code arguments for calls
23443 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23444 (insn_is_swappable_p): Avoid incorrect swap optimization in the
23445 presence of lvx/stvx patterns.
23446 (alignment_with_canonical_addr): New function.
23447 (alignment_mask): Likewise.
23448 (find_alignment_op): Likewise.
23449 (recombine_lvx_pattern): Likewise.
23450 (recombine_stvx_pattern): Likewise.
23451 (recombine_lvx_stvx_patterns): Likewise.
23452 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23453 stvx patterns from expand.
23454 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23456 (vector_altivec_store_<mode>): Likewise.
23458 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
23460 * config/aarch64/aarch64.md
23461 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23462 remove the "fp" attributes.
23463 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23464 add the "simd" attributes.
23465 (*movdf_aarch64): Likewise.
23466 (*movtf_aarch64): Remove the "fp" attributes.
23467 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23468 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23470 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23472 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23473 rtx to rtx_code_label *.
23474 * rtl.h (maybe_set_first_label_num): Likewise.
23476 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23478 * df-core.c (df_add_problem): Make the problem param be const.
23479 (df_remove_problem): Make local "problem" be const.
23480 * df-problems.c (problem_RD): Make const.
23481 (problem_LR): Likewise.
23482 (problem_LIVE): Likewise.
23483 (problem_MIR): Likewise.
23484 (problem_CHAIN): Likewise.
23485 (problem_WORD_LR): Likewise.
23486 (problem_NOTE): Likewise.
23487 (problem_MD): Likewise.
23488 * df-scan.c (problem_SCAN): Likewise.
23489 * df.h (struct df_problem): Make field "dependent_problem" be
23491 (struct dataflow): Likewise for field "problem".
23492 (df_add_problem): Make param const.
23494 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23496 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23497 inter-unit moves to/from vector registers are enabled. Do not disable
23500 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23502 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23503 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23505 (enum df_problem_id): ...this new enum.
23506 (struct df_problem): Convert field "id" from "int" to
23507 enum df_problem_id.
23509 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23511 * rtl.def: Update comment for "things in the instruction chain" to
23512 reflect the removal of the leading "i" field for INSN_UID in
23513 r210360. Fix bogus apostrophe.
23515 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23517 * config/i386/i386.md
23518 (lea arith with mem operand + setcc peephole2): Set operator mode.
23520 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
23523 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23524 (dimode_scalar_to_vector_candidate_p): This.
23525 (timode_scalar_to_vector_candidate_p): New function.
23526 (scalar_to_vector_candidate_p): Likewise.
23527 (timode_check_non_convertible_regs): Likewise.
23528 (timode_remove_non_convertible_regs): Likewise.
23529 (remove_non_convertible_regs): Likewise.
23530 (remove_non_convertible_regs): Renamed to ...
23531 (dimode_remove_non_convertible_regs): This.
23532 (scalar_chain::~scalar_chain): Make it virtual.
23533 (scalar_chain::compute_convert_gain): Make it pure virtual.
23534 (scalar_chain::mark_dual_mode_def): Likewise.
23535 (scalar_chain::convert_insn): Likewise.
23536 (scalar_chain::convert_registers): Likewise.
23537 (scalar_chain::add_to_queue): Make it protected.
23538 (scalar_chain::emit_conversion_insns): Likewise.
23539 (scalar_chain::replace_with_subreg): Likewise.
23540 (scalar_chain::replace_with_subreg_in_insn): Likewise.
23541 (scalar_chain::convert_op): Likewise.
23542 (scalar_chain::convert_reg): Likewise.
23543 (scalar_chain::make_vector_copies): Likewise.
23544 (scalar_chain::convert_registers): New pure virtual function.
23545 (class dimode_scalar_chain): New class.
23546 (class timode_scalar_chain): Likewise.
23547 (scalar_chain::mark_dual_mode_def): Renamed to ...
23548 (dimode_scalar_chain::mark_dual_mode_def): This.
23549 (timode_scalar_chain::mark_dual_mode_def): New function.
23550 (timode_scalar_chain::convert_insn): Likewise.
23551 (dimode_scalar_chain::convert_registers): Likewise.
23552 (scalar_chain::compute_convert_gain): Renamed to ...
23553 (dimode_scalar_chain::compute_convert_gain): This.
23554 (scalar_chain::replace_with_subreg): Renamed to ...
23555 (dimode_scalar_chain::replace_with_subreg): This.
23556 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23557 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23558 (scalar_chain::make_vector_copies): Renamed to ...
23559 (dimode_scalar_chain::make_vector_copies): This.
23560 (scalar_chain::convert_reg): Renamed to ...
23561 (dimode_scalar_chain::convert_reg ): This.
23562 (scalar_chain::convert_op): Renamed to ...
23563 (dimode_scalar_chain::convert_op): This.
23564 (scalar_chain::convert_insn): Renamed to ...
23565 (dimode_scalar_chain::convert_insn): This.
23566 (scalar_chain::convert): Call convert_registers.
23567 (convert_scalars_to_vector): Change to scalar_chain pointer to
23568 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23569 in 32-bit mode. Delete scalar_chain pointer. Call
23570 free_dominance_info in 64-bit mode.
23571 (pass_stv::gate): Remove TARGET_64BIT check.
23572 (ix86_option_override): Put the 64-bit STV pass before the CSE
23575 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
23577 * dwarf2out.h (struct dw_loc_descr_node): Remove the
23578 dw_loc_frame_offset field.
23579 * dwarf2out.c (new_loc_descr): Likewise.
23580 (resolve_args_picking_1): Turn the VISITED hash set into a
23581 FRAME_OFFSET hash map. Use it to associate a frame offset to
23582 visited nodes. Remove uses of the CHECKING_P macro.
23583 (resolve_args_picking): Update call to resolve_args_picking_1.
23585 2016-04-27 Martin Liska <mliska@suse.cz>
23587 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23588 (free_loop_data): Release vuses of groups.
23590 2016-04-27 Bin Cheng <bin.cheng@arm.com>
23592 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23593 instead of redundant use_id and boolean have_use_for.
23594 (struct iv_use): Change sub_id into group_id. Remove field next.
23595 Move fields: related_cands, n_map_members, cost_map and selected
23597 (struct iv_group): ... here. New structure.
23598 (struct iv_common_cand): Use structure declaration directly.
23599 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23600 (MAX_CONSIDERED_USES): Rename macro to ...
23601 (MAX_CONSIDERED_GROUPS): ... here.
23602 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23603 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23604 (dump_uses): Rename to ...
23605 (dump_groups): ... here. Update all uses.
23606 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23607 (find_induction_variables): Refactor format of dump information.
23608 (record_sub_use): Delete.
23609 (record_use): Update all uses.
23610 (record_group): New function.
23611 (record_group_use, find_interesting_uses_op): Call above functions.
23613 (find_interesting_uses_cond): Ditto.
23614 (group_compare_offset): New function.
23615 (split_all_small_groups): Rename to ...
23616 (split_small_address_groups_p): ... here. Update all uses.
23617 (split_address_groups): Update all uses.
23618 (find_interesting_uses): Refactor format of dump information.
23619 (add_candidate_1): Update all uses. Remove redundant check on iv,
23621 (add_candidate, record_common_cand): Remove redundant assert.
23622 (add_iv_candidate_for_biv): Update use.
23623 (add_iv_candidate_derived_from_uses): Update all uses.
23624 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
23625 (alloc_use_cost_map): Ditto.
23626 (set_use_iv_cost, get_use_iv_cost): Rename to ...
23627 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
23628 (determine_use_iv_cost_generic): Ditto.
23629 (determine_group_iv_cost_generic): Ditto.
23630 (determine_use_iv_cost_address): Ditto.
23631 (determine_group_iv_cost_address): Ditto.
23632 (determine_use_iv_cost_condition): Ditto.
23633 (determine_group_iv_cost_cond): Ditto.
23634 (determine_use_iv_cost): Ditto.
23635 (determine_group_iv_cost): Ditto.
23636 (set_autoinc_for_original_candidates): Update all uses.
23637 (find_iv_candidates): Update all uses. Refactor dump information.
23638 (determine_use_iv_costs): Ditto.
23639 (determine_iv_costs): Ditto.
23640 (iv_ca_cand_for_use): Rename to ...
23641 (iv_ca_cand_for_group): ... here. Update all uses.
23642 (iv_ca_add_use, iv_ca_add_group): Ditto.
23643 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
23644 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
23645 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
23646 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
23647 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
23648 (create_new_iv, adjust_iv_update_pos): Ditto.
23649 (rewrite_use_address): Delete.
23650 (rewrite_use_address_1): Rename to ...
23651 (rewrite_use_address): ... here.
23652 (rewrite_use_compare): Update all uses.
23653 (rewrite_use): Delete.
23654 (rewrite_uses): Rename to ...
23655 (rewrite_groups): ... here. Update all uses.
23656 (remove_unused_ivs, free_loop_data): Update all uses.
23657 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
23659 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23661 * rtlanal.c (nonzero_bits1): Convert preprocessor check
23662 for WORD_REGISTER_OPERATIONS to runtime check.
23664 2016-04-27 Richard Biener <rguenther@suse.de>
23667 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
23668 aggregate_value_p to determine if a function result is
23669 returned by reference.
23670 (ipa_pta_execute): Functions having their address taken are
23671 not automatically nonlocal.
23673 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23676 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
23677 * fold-const.c (operand_equal_p): If flag_checking and
23678 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
23679 and if it returns non-zero, assert iterative_hash_expr on both
23682 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23684 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
23686 2016-04-27 Nick Clifton <nickc@redhat.com>
23688 PR middle-end/49889
23689 * varasm.c (merge_weak): Generate an error if an attempt is made
23690 to convert a non-weak static function into a weak, public function.
23692 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23694 * params.def (MAX_PARTITION_SIZE): New param.
23695 * doc/invoke.texi: Document lto-max-partition.
23697 2016-04-27 Richard Biener <rguenther@suse.de>
23700 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
23701 function cummulating used_from_other_partition, externally_visible
23702 and force_output from aliases.
23703 (refered_from_nonlocal_var): Likewise.
23704 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
23705 node flags properly.
23707 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23709 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
23710 (-Wmemset-elt-size): New item.
23712 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
23715 * stor-layout.h (internal_reference_types): Delete.
23716 * stor-layout.c (reference_types_internal): Likewise.
23717 (internal_reference_types): Likewise.
23718 (layout_type) <REFERENCE_TYPE>: Adjust.
23720 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23723 * tree.h (inchash::add_expr): Add FLAGS argument.
23724 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
23725 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
23726 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
23727 Formatting fix. Adjust recursive calls. For tcc_comparison,
23728 if swap_tree_comparison (code) is smaller than code, hash that
23729 and arguments in the other order. Hash CONVERT_EXPR the same
23730 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
23731 of ADDR_EXPR of decl as the decl itself. Add or remove
23732 OEP_ADDRESS_OF from recursive flags as needed. For
23733 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
23734 operands commutatively and only the third one normally.
23735 For internal CALL_EXPR hash in CALL_EXPR_IFN.
23737 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
23739 * config/rtems.h (LIB_SPEC): Add -latomic.
23741 2016-04-27 Joel Sherrill <joel@rtems.org>
23743 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
23744 xilink.ld and flags not relevant to RTEMS.
23746 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23748 * toplev.c (backend_init_target): Avoid calling init_reload when using
23751 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23753 * reorg.c (try_merge_delay_insns): Declare i and j inside the
23754 for loops rather than one for the whole function.
23756 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23758 * match.pd (X + CST CMP X): New transformation.
23760 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23762 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
23763 * fold-const.c (fold_binary_loc): Remove 2 transformations
23764 superseded by match.pd.
23765 * match.pd (x+x -> x*2): Generalize to integers.
23767 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
23769 * config/i386/i386.md (operation on memory peephole): Duplicate an
23770 existing peephole and adapt it to match lea rather than an operation
23773 PR rtl-optimization/57193
23774 * opts.c (default_options_table): Add OPT_frename_registers at -O2
23776 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
23778 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23780 * tree-if-conv.c (any_pred_load_store): New static variable.
23781 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
23782 any_pred_load_store instead of and_mask_load_store.
23783 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
23784 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
23785 (combine_blocks, tree_if_conversion): Ditto.
23787 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23789 PR tree-optimization/70771
23790 PR tree-optimization/70775
23791 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
23792 virtual PHI nodes. Delete parameter.
23793 (if_convertible_loop_p_1): Delete argument to above function.
23794 (predicate_all_scalar_phis): Delete code handling single-argument
23796 (tree_if_conversion): Mark and update virtual SSA.
23798 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23801 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
23802 (x86_elf_aligned_common): Rename to ...
23803 (x86_elf_aligned_decl_common): ... this.
23804 Add decl arg. Switch to .lbss for largecomm object. Use
23805 LARGECOMM_SECTION_ASM_OP.
23806 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
23808 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
23809 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
23811 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23812 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
23814 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23817 * config/i386/i386.c (SECTION_LARGE): Define.
23818 (x86_64_elf_select_section): Set it for large data/bss sections.
23819 Only clear SECTION_WRITE for .lrodata.
23820 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
23822 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
23823 * varasm.c (default_elf_asm_named_section): Grow flagchars.
23824 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
23826 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
23827 * doc/tm.texi: Regenerate.
23829 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23832 * configure.ac (--enable-checking): Document extra flag, for
23833 non-release builds default to --enable-checking=yes,extra.
23834 If misc checking and extra checking, define CHECKING_P to 2 instead
23836 * common.opt (fchecking=): Add.
23837 * doc/invoke.texi (-fchecking=): Document.
23838 * doc/install.texi: Document --enable-checking changes.
23839 * configure: Regenerated.
23840 * config.in: Regenerated.
23842 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23844 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
23845 attribute instead of which_alternative.
23846 * config/i386/sse.md (*mov<mode>_internal): Ditto.
23847 Use EXT_REX_SSE_REG_P where appropriate.
23849 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23851 * config/i386/predicates.md (const0_operand): Do not match
23852 const_wide_int code.
23853 (const1_operand): Ditto.
23855 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23857 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
23858 for SSE constm1 operands and TARGET_AVX512VL.
23859 (*movti_internal): Ditto.
23860 (*mov<mode>_or): Use constm1_operand predicate.
23861 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
23862 for SSE vector_all_ones operands and TARGET_AVX512VL.
23863 * config/i386/predicates.md (constm1_operand): New predicate.
23864 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
23865 emission of constant -1 load.
23867 2016-04-25 Jason Merrill <jason@redhat.com>
23869 * gdbinit.in: Skip is-a.h.
23871 * attribs.c (register_scoped_attributes): Fix logic.
23872 * attribs.h: Declare register_scoped_attributes.
23874 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23876 * config/rs6000/rs6000-builtin.def: Correct pasto error for
23877 stxvd2x and stxvw4x built-in functions.
23879 2016-04-25 DJ Delorie <dj@redhat.com>
23881 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
23882 (ashrhi3): Likewise.
23883 (lshrhi3): Likewise.
23885 2016-04-25 Richard Biener <rguenther@suse.de>
23887 PR tree-optimization/70780
23888 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
23889 wasn't visited yet.
23890 (compute_antic): Mark blocks with abnormal preds as visited as
23891 they have a final empty antic-in solution already.
23893 2016-04-25 Michael Collison <michael.collison@linaro.org>
23895 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
23897 2016-04-25 Michael Collison <michael.collison@linaro.org>
23899 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
23900 mode is VQI to improve mixed mode vectorization.
23901 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
23902 define_insn to match low half of signed vaddw.
23903 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
23904 define_insn to match high half of signed vaddw.
23905 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
23906 define_insn to match low half of unsigned vaddw.
23907 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
23908 define_insn to match high half of unsigned vaddw.
23909 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
23910 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23911 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
23913 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23914 * config/arm/predicates.md (vect_par_constant_high): Support
23915 big endian and simplify by calling
23916 arm_simd_check_vect_par_cnst_half
23917 (vect_par_constant_low): Likewise.
23919 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23921 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
23922 predicate for operand 2.
23924 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
23925 H.J. Lu <hongjiu.lu@intel.com>
23927 * config/i386/i386-protos.h (standard_sse_constant_p): Add
23928 machine_mode argument.
23929 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
23930 constm1_rtx operands. For VOIDmode constants, get mode from
23931 pred_mode. Check mode size if the mode is supported by ABI.
23932 (standard_sse_constant_opcode): Do not use standard_constant_p.
23933 Strictly check ABI support for all-ones operands.
23934 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
23935 immediates. Update calls to standard_sse_constant_p.
23936 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
23937 (ix86_rtx_costs): Ditto.
23938 * config/i386/i386.md (*movxi_internal_avx512f): Use
23939 nonimmediate_or_sse_const_operand instead of vector_move_operand.
23940 Use (v,BC) alternative instead of (v,C). Use register_operand
23941 checks instead of MEM_P.
23942 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
23943 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
23944 isa attribute. Use register_operand checks instead of MEM_P.
23945 (*movti_internal): Use nonimmediate_or_sse_const_operand for
23946 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
23947 alternative and corresponding sse2 isa attribute.
23948 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
23949 to standard_sse_constant_p.
23950 (FP constant splitters): Ditto.
23951 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
23953 * config/i386/predicates.md (constm1_operand): Remove.
23954 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
23955 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
23956 vector_all_ones_operand instead of constm1_operand.
23958 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23960 * print-rtl.c (print_rtx_insn_vec): New function.
23961 * print-rtl.h: New prototype.
23962 * store-motion.c (struct st_expr): Make avail_stores a vector.
23963 (st_expr_entry): Adjust.
23964 (free_st_expr_entry): Likewise.
23965 (print_store_motion_mems): Likewise.
23966 (find_moveable_store): Likewise.
23967 (compute_store_table): Likewise.
23968 (delete_store): Likewise.
23969 (build_store_vectors): Likewise.
23971 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23973 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
23975 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23977 * vec.h (vec_safe_contains): New function.
23978 (vec::contains): Likewise.
23979 (vec::begin): Likewise.
23980 (vec::end): Likewise.
23982 2016-04-23 Jakub Jelinek <jakub@redhat.com>
23985 * cfgexpand.c (expand_stack_vars): Fix typo.
23987 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23989 * system.h (list, map, set, vector): Include conditionally.
23990 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
23991 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
23992 * ipa-icf.c (INCLUDE_LIST): Define.
23993 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
23994 * config/sh/sh.c (INCLUDE_VECTOR): Define.
23995 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
23996 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
23997 * cp/logic.cc (INCLUDE_LIST): Define.
23998 * fortran/trans-common.c (INCLUDE_MAP): Define.
24000 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24002 * auto-profile.c: Remove <string.h> include.
24003 * ipa-icf-gimple.c: Remove <list> include.
24004 * diagnostic.c: Remove <new> include.
24005 * genmatch.c: Likewise.
24006 * pretty-print.c: Likewise.
24007 * toplev.c: Likewise
24008 * c/c-objc-common.c: Likewise.
24009 * cp/error.c: Likewise.
24010 * fortran/error.c: Likewise.
24012 2016-04-22 Richard Biener <rguenther@suse.de>
24014 * lto-streamer-in.c (input_ssa_names): Do not allocate
24015 GIMPLE_NOP for all SSA names.
24016 * lto-streamer-out.c (output_ssa_names): Do not output
24017 SSA names that should have been released.
24019 2016-04-22 Richard Biener <rguenther@suse.de>
24021 PR tree-optimization/70740
24022 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
24025 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
24028 * config/i386/predicates.md (call_insn_operand): Replace
24029 sibcall_memory_operand with memory_operand.
24031 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
24033 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
24034 has_single_use() tests.
24035 (register_edge_assert_for_1): Likewise.
24036 (find_assert_locations_1): Check the liveness bitmap instead of
24037 checking has_single_use().
24039 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
24042 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
24043 Extract AVX-512BW constraint from AVX.
24045 2016-04-21 Richard Biener <rguenther@suse.de>
24047 PR tree-optimization/70725
24048 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
24049 for phi_convertible_by_degenerating_args.
24050 (predicate_all_scalar_phis): Handle single-argument PHIs.
24052 2016-04-21 Richard Biener <rguenther@suse.de>
24054 PR middle-end/70747
24055 * fold-const.c (fold_comparison): Return properly typed
24058 2016-04-21 Bin Cheng <bin.cheng@arm.com>
24060 PR tree-optimization/70715
24061 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
24062 after expanding BASE using expand_simple_operations.
24064 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24066 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
24067 New transformations.
24069 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24071 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
24073 2016-04-20 Jan Hubicka <jh@suse.cz>
24075 * ipa-inline.c (can_inline_edge_p): Pass caller info to
24076 ultiimate_alias_target.
24077 (update_callee_keys): Likewise.
24078 (lookup_recursive_calls): Likewise.
24079 (speculation_useful_p): Likewise.
24081 2016-04-20 Jan Hubicka <jh@suse.cz>
24084 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
24085 (set_nothrow_flag_1): ... this; handle interposition correctly;
24086 recurse on aliases and thunks.
24087 (cgraph_node::set_nothrow_flag): New.
24088 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
24089 functions compiled with non-call exceptions that binds to current
24091 (propagate_nothrow): Be safe WRT interposition.
24092 * cgraph.h (set_nothrow_flag): Update prototype.
24094 2016-04-18 Jan Hubicka <jh@suse.cz>
24096 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24097 max_loop_iterations_int.
24098 (tree_unswitch_outer_loop): Likewise.
24100 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24102 PR tree-optimization/69489
24103 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
24104 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
24105 Revise dump message.
24106 (if_convertible_bb_p): Remove check on edge count of basic block's
24109 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24111 PR tree-optimization/56625
24112 PR tree-optimization/69489
24113 * tree-data-ref.h (DR_INNERMOST): New macro.
24114 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
24115 hashing struct innermost_loop_behavior.
24116 (ref_DR_map): Remove.
24117 (innermost_DR_map): New map.
24118 (baseref_DR_map): Revise comment.
24119 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
24120 to innermost_DR_map accroding to its innermost loop behavior.
24121 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
24122 to its innermost loop behavior.
24123 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
24124 Add initialization for innermost_DR_map. Record memory reference
24125 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
24126 have innermost loop behavior.
24127 (if_convertible_loop_p): Remove release for ref_DR_map. Release
24130 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
24132 * config/i386/i386.md (*lea<mode>_general_1): Rename from
24133 *lea_general_1. Use explicit SWI12 mode interator.
24134 (*lea<mode>_general_2): Rename from *lea_general_2.
24135 Use explicit SWI12 mode interator.
24136 (*lea<mode>_general_3): Rename from *lea_general_3.
24137 Use explicit SWI12 mode interator.
24138 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
24139 Use explicit SWI12 mode interator.
24140 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
24141 Use explicit SWI48 mode interator.
24143 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24145 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
24146 Short-cut unaligned load and store cases. Handle all integer
24148 (ix86_expand_vector_move_misalign): Short-cut unaligned load
24149 and store cases. Call ix86_avx256_split_vector_move_misalign
24150 directly without checking mode class.
24152 2016-04-20 Andrew Pinski <apinski@cavium.com>
24153 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24156 * config/aarch64/aarch64.md (sibcall): Force call
24157 address to be DImode for ILP32.
24158 (sibcall_value): Likewise.
24160 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24162 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
24164 2016-04-20 Richard Biener <rguenther@suse.de>
24166 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
24167 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
24168 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
24169 (maybe_push_res_to_seq): Adjust.
24170 * gimple-fold.c (maybe_build_generic_op): Likewise.
24172 2016-04-20 Marek Polacek <polacek@redhat.com>
24174 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
24177 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
24179 * config/i386/sse.md (vec_unpacks_lo_hi): Always
24180 use kmovw to support AVX512F target.
24182 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24184 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
24186 2016-04-20 Marek Polacek <polacek@redhat.com>
24188 PR tree-optimization/70725
24189 * tree-if-conv.c (is_false_predicate): New function.
24190 (predicate_mem_writes): Use it.
24192 2016-04-20 Richard Biener <rguenther@suse.de>
24194 PR tree-optimization/70726
24195 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
24196 shift amounts from a pattern stmt operand.
24198 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24201 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
24202 stack_restore_from_fpr pattern when restoring r15.
24203 (s390_optimize_prologue): Strip away the memory barrier in the
24204 parallel when trying to get rid of restore insns.
24205 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
24206 definition for loading the stack pointer from an FPR. Compared to
24207 the normal move insn this pattern includes a full memory barrier.
24209 2016-04-19 Jakub Jelinek <jakub@redhat.com>
24211 PR middle-end/70680
24212 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
24213 implicitly linear or lastprivate iterator on the outer context.
24215 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24217 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
24219 * config/i386/i386.md (ssememalign): Removed.
24220 * config/i386/sse.md: Remove ssememalign attribute from patterns.
24222 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24225 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
24226 const short * to __builtin_ia32_loaddquhi512_mask.
24227 (_mm512_maskz_loadu_epi16): Likewise.
24228 (_mm512_mask_storeu_epi16): Pass short * to
24229 __builtin_ia32_storedquhi512_mask.
24230 (_mm512_mask_loadu_epi8): Pass const char * to
24231 __builtin_ia32_loaddquqi512_mask.
24232 (_mm512_maskz_loadu_epi8): Likewise.
24233 (_mm512_mask_storeu_epi8): Pass char * to
24234 __builtin_ia32_storedquqi512_mask.
24235 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
24236 const double * to __builtin_ia32_loadupd512_mask.
24237 (_mm512_mask_loadu_pd): Likewise.
24238 (_mm512_maskz_loadu_pd): Likewise.
24239 (_mm512_storeu_pd): Pass double * to
24240 __builtin_ia32_storeupd512_mask.
24241 (_mm512_mask_storeu_pd): Likewise.
24242 (_mm512_loadu_ps): Pass const float * to
24243 __builtin_ia32_loadups512_mask.
24244 (_mm512_mask_loadu_ps): Likewise.
24245 (_mm512_maskz_loadu_ps): Likewise.
24246 (_mm512_storeu_ps): Pass float * to
24247 __builtin_ia32_storeups512_mask.
24248 (_mm512_mask_storeu_ps): Likewise.
24249 (_mm512_mask_loadu_epi64): Pass const long long * to
24250 __builtin_ia32_loaddqudi512_mask.
24251 (_mm512_maskz_loadu_epi64): Likewise.
24252 (_mm512_mask_storeu_epi64): Pass long long *
24253 to __builtin_ia32_storedqudi512_mask.
24254 (_mm512_loadu_si512): Pass const int * to
24255 __builtin_ia32_loaddqusi512_mask.
24256 (_mm512_mask_loadu_epi32): Likewise.
24257 (_mm512_maskz_loadu_epi32): Likewise.
24258 (_mm512_storeu_si512): Pass int * to
24259 __builtin_ia32_storedqusi512_mask.
24260 (_mm512_mask_storeu_epi32): Likewise.
24261 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
24262 char * to __builtin_ia32_storedquqi256_mask.
24263 (_mm_mask_storeu_epi8): Likewise.
24264 (_mm256_mask_loadu_epi16): Pass const short * to
24265 __builtin_ia32_loaddquhi256_mask.
24266 (_mm256_maskz_loadu_epi16): Likewise.
24267 (_mm_mask_loadu_epi16): Pass const short * to
24268 __builtin_ia32_loaddquhi128_mask.
24269 (_mm_maskz_loadu_epi16): Likewise.
24270 (_mm256_mask_loadu_epi8): Pass const char * to
24271 __builtin_ia32_loaddquqi256_mask.
24272 (_mm256_maskz_loadu_epi8): Likewise.
24273 (_mm_mask_loadu_epi8): Pass const char * to
24274 __builtin_ia32_loaddquqi128_mask.
24275 (_mm_maskz_loadu_epi8): Likewise.
24276 (_mm256_mask_storeu_epi16): Pass short * to.
24277 __builtin_ia32_storedquhi256_mask.
24278 (_mm_mask_storeu_epi16): Pass short * to.
24279 __builtin_ia32_storedquhi128_mask.
24280 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
24281 const double * to __builtin_ia32_loadupd256_mask.
24282 (_mm256_maskz_loadu_pd): Likewise.
24283 (_mm_mask_loadu_pd): Pass onst double * to
24284 __builtin_ia32_loadupd128_mask.
24285 (_mm_maskz_loadu_pd): Likewise.
24286 (_mm256_mask_storeu_pd): Pass double * to
24287 __builtin_ia32_storeupd256_mask.
24288 (_mm_mask_storeu_pd): Pass double * to
24289 __builtin_ia32_storeupd128_mask.
24290 (_mm256_mask_loadu_ps): Pass const float * to
24291 __builtin_ia32_loadups256_mask.
24292 (_mm256_maskz_loadu_ps): Likewise.
24293 (_mm_mask_loadu_ps): Pass const float * to
24294 __builtin_ia32_loadups128_mask.
24295 (_mm_maskz_loadu_ps): Likewise.
24296 (_mm256_mask_storeu_ps): Pass float * to
24297 __builtin_ia32_storeups256_mask.
24298 (_mm_mask_storeu_ps): ass float * to
24299 __builtin_ia32_storeups128_mask.
24300 (_mm256_mask_loadu_epi64): Pass const long long * to
24301 __builtin_ia32_loaddqudi256_mask.
24302 (_mm256_maskz_loadu_epi64): Likewise.
24303 (_mm_mask_loadu_epi64): Pass const long long * to
24304 __builtin_ia32_loaddqudi128_mask.
24305 (_mm_maskz_loadu_epi64): Likewise.
24306 (_mm256_mask_storeu_epi64): Pass long long * to
24307 __builtin_ia32_storedqudi256_mask.
24308 (_mm_mask_storeu_epi64): Pass long long * to
24309 __builtin_ia32_storedqudi128_mask.
24310 (_mm256_mask_loadu_epi32): Pass const int * to
24311 __builtin_ia32_loaddqusi256_mask.
24312 (_mm256_maskz_loadu_epi32): Likewise.
24313 (_mm_mask_loadu_epi32): Pass const int * to
24314 __builtin_ia32_loaddqusi128_mask.
24315 (_mm_maskz_loadu_epi32): Likewise.
24316 (_mm256_mask_storeu_epi32): Pass int * to
24317 __builtin_ia32_storedqusi256_mask.
24318 (_mm_mask_storeu_epi32): Pass int * to
24319 __builtin_ia32_storedqusi128_mask.
24320 * config/i386/i386-builtin-types.def (PCSHORT): New.
24321 (PINT64): Likewise.
24322 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24323 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24324 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24325 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24326 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24327 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24328 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24329 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24330 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24331 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24332 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24333 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24334 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24335 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24336 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24337 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24338 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24339 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24340 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24341 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24342 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24343 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24344 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24345 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24346 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24347 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24348 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24349 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24350 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24351 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24352 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24353 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24354 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24355 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24356 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24357 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24358 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24359 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24360 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24361 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24362 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24363 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24364 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24365 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24366 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24367 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24368 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24369 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24370 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24372 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24373 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24375 (ix86_expand_vector_move_misalign): Likewise.
24376 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24377 to scalar function prototype for unaligned load/store builtins.
24378 (ix86_expand_special_args_builtin): Updated.
24379 * config/i386/sse.md (UNSPEC_LOADU): Removed.
24380 (UNSPEC_STOREU): Likewise.
24381 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24382 (VI_ULOADSTORE_F_AVX512VL): Likewise.
24383 (ssescalarsize): Handle V4TI, V2TI and V1TI.
24384 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24385 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24386 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24387 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24388 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24389 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24390 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24391 (<avx512>_storedqu<mode>_mask): Likewise.
24392 (*sse4_2_pcmpestr_unaligned): Likewise.
24393 (*sse4_2_pcmpistr_unaligned): Likewise.
24394 (*mov<mode>_internal): Renamed to ...
24395 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
24396 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24397 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24398 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24400 2016-04-19 Richard Biener <rguenther@suse.de>
24402 PR tree-optimization/70171
24403 * tree-ssa-phiprop.c: Include stor-layout.h.
24404 (phiprop_insert_phi): Handle the aggregate copy case.
24405 (propagate_with_phi): Likewise.
24407 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
24409 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24410 instead of simplify_gen_subreg (... , 0).
24411 (ix86_delegitimize_address): Ditto.
24412 (ix86_split_divmod): Ditto.
24413 (ix86_split_copysign_const): Ditto.
24414 (ix86_split_copysign_var): Ditto.
24415 (ix86_expand_args_builtin): Ditto.
24416 (ix86_expand_round_builtin): Ditto.
24417 (ix86_expand_special_args_builtin): Ditto.
24418 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24419 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24420 (udivmodqi4): Ditto.
24421 (absneg splitters): Ditto.
24422 (*jcc_bt<mode>_1): Ditto.
24424 2016-04-19 Richard Biener <rguenther@suse.de>
24426 PR tree-optimization/70724
24427 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24428 restoring out from ...
24429 (free_scc_vn): ... here.
24430 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24431 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24433 (pass_fre::execute): Restore SSA info.
24435 2016-04-19 Richard Biener <rguenther@suse.de>
24437 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24438 * gimple-walk.c (walk_gimple_op): Initialize it.
24439 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24440 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24441 remapping SSA names of defs.
24442 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24445 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
24447 PR middle-end/70689
24448 * lra-constraints.c (equiv_substition_p): New.
24449 (process_alt_operands): Use it.
24450 (swap_operands): Swap it.
24451 (curr_insn_transform): Update it.
24453 2016-04-18 Michael Matz <matz@suse.de>
24455 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24456 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24457 * tree-core.h (tree_type_common.align): Use bit-field.
24458 (tree_type_common.spare): New.
24459 (tree_decl_common.off_align): Make smaller.
24460 (tree_decl_common.align): Use bit-field.
24462 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24463 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24464 (scan_sharing_clauses): Ditto.
24465 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24466 (omp_finish_file): Ditto.
24467 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24468 (layout_decl): Ditto.
24469 (relayout_decl): Ditto.
24470 (finalize_record_size): Use SET_TYPE_ALIGN.
24471 (finalize_type_size): Ditto.
24472 (finish_builtin_struct): Ditto.
24473 (layout_type): Ditto.
24474 (initialize_sizetypes): Ditto.
24475 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24476 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24477 (lookup_field_for_decl): Use SET_DECL_ALIGN.
24478 (get_chain_field): Ditto.
24479 (get_trampoline_type): Ditto.
24480 (get_nl_goto_field): Ditto.
24481 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24483 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24484 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24485 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24486 (build_qualified_type): Use SET_TYPE_ALIGN.
24487 (build_aligned_type, build_range_type_1): Ditto.
24488 (build_atomic_base): Ditto.
24489 (build_common_tree_nodes): Ditto.
24490 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24491 (expand_one_stack_var_at): Ditto.
24492 * coverage.c (build_var): Use SET_DECL_ALIGN.
24493 * except.c (init_eh): Ditto.
24494 * function.c (assign_parm_setup_block): Ditto.
24495 * symtab.c (increase_alignment_1): Ditto.
24496 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24497 * tree-vect-stmts.c (ensure_base_align): Ditto.
24498 * varasm.c (align_variable): Ditto.
24499 (assemble_variable): Ditto.
24500 (build_constant_desc): Ditto.
24501 (output_constant_def_contents): Ditto.
24503 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24504 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24505 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24506 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24507 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24509 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
24512 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24513 replace %vmovsd with "%vmovq".
24514 (vec_concatv2df): Likewise.
24516 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
24518 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24519 (*vec_extractv2si_0): Ditto.
24520 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24521 (zero_extended_scalar_load_operand splitters): Ditto.
24522 (vec_extract splitters): Ditto.
24523 (*vec_extractv4si_0_zext): Ditto.
24524 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24525 and lowpart_subreg.
24526 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24527 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24528 (*sse4_1_extractps): Use lowpart_subreg.
24529 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24531 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24533 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24535 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24536 Mention Solaris 11 packaging changes.
24537 Update gas and gld requirements.
24538 Remove reference to pre-Solaris 10 bug.
24539 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24541 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24544 2016-04-17 Jan Hubicka <jh@suse.cz>
24546 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24547 max_loop_iterations_int.
24549 2016-04-18 Richard Biener <rguenther@suse.de>
24551 PR tree-optimization/43434
24552 * tree-ssa-structalias.c (struct vls_data): New.
24553 (visit_loadstore): Handle all pointer-based accesses.
24554 (compute_dependence_clique): Compute a bitmap of restrict tags
24555 assigned bases and pass it to visit_loadstore.
24557 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
24560 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24561 armv8.1-a and armv8.1-a+crc.
24563 2016-04-18 Richard Biener <rguenther@suse.de>
24565 PR tree-optimization/70701
24566 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24567 references after translating through a memcpy.
24569 2016-04-18 Richard Biener <rguenther@suse.de>
24571 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24572 (compute_antic): ... here. For partial antic use regular
24573 postorder and scrap iteration.
24574 (compute_partial_antic_aux): Remove unused return value.
24575 (init_pre): Do not allocate postorder.
24576 (fini_pre): Do not free postorder.
24578 2016-04-18 Richard Biener <rguenther@suse.de>
24580 PR middle-end/37870
24581 * expmed.c (extract_bit_field_1): Remove broken case
24582 using a wider MODE_INT mode.
24584 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
24586 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24587 unless compiling with at least GCC-4.8.
24589 2016-04-17 Jan Hubicka <jh@suse.cz>
24592 * graphite.c (graphite_finalize): Update call to
24593 tree_estimate_probability.
24594 * predict.h (tree_estimate_probability): Update prototype.
24596 2016-04-17 Jan Hubicka <jh@suse.cz>
24598 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24599 (tree_estimate_probability): Likewise.
24600 (pass_profile::execute): Update.
24601 (report_predictor_hitrates): New function.
24602 * profile.c (compute_branch_probabilities): Use it.
24603 * predict.h (report_predictor_hitrates): Declare.
24605 2016-04-17 Jan Hubicka <jh@suse.cz>
24608 * cgraph.h (cgraph_node::set_const_flag,
24609 cgraph_node::set_pure_flag): Update prototype to return bool;
24611 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24612 of interposable symbol are interposable, too.
24613 (cgraph_set_const_flag_1): Rename to ...
24614 (set_const_flag_1): ... this one; change to self recursive function
24615 instead of call_for_symbol_thunks_and_aliases. Handle correctly
24616 clearnig the flag in all variants and also virtual thunks of const
24617 functions are pure; track if any change was done.
24618 (cgraph_node::set_const_flag): Update.
24619 (struct set_pure_flag_info): New struct.
24620 (cgraph_set_pure_flag_1): Rename to ...
24621 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
24622 rather than pointer encoded flags; track if any changes was done;
24623 handle correctly clearning flag and setting flag of aliases already
24625 (cgraph_node::set_pure_flag): Update.
24626 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
24628 2016-04-17 Tom de Vries <tom@codesourcery.com>
24631 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
24632 backslash in label.
24634 2016-04-17 Tom de Vries <tom@codesourcery.com>
24636 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
24637 '{}<> ' as escape-for-record.
24639 2016-04-17 Tom de Vries <tom@codesourcery.com>
24641 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
24644 2016-04-17 Tom de Vries <tom@codesourcery.com>
24647 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
24648 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
24649 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
24650 * passes.c (finish_optimization_passes): Only call
24651 finish_graph_dump_file if dfi->graph_dump_initialized.
24652 (execute_function_dump, pass_init_dump_file): Use
24653 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
24655 2016-04-17 Tom de Vries <tom@codesourcery.com>
24657 PR tree-optimization/70256
24658 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
24659 (debug_varmap): New function.
24661 2016-04-17 Tom de Vries <tom@codesourcery.com>
24664 * passes.c (pass_manager::register_pass): Propagate pflags.
24666 2016-04-17 Tom de Vries <tom@codesourcery.com>
24669 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
24670 * passes.c (pass_manager::pass_manager): Declare and init p_start in
24671 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
24672 check if it's equal to p_start.
24673 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
24675 2016-04-15 Jan Hubicka <jh@suse.cz>
24678 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
24679 function does not bind to current def.
24680 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
24681 handle conservatively calls to functions that does not need to bind
24683 (check_call): Update call of worse_state.
24684 (ignore_edge_for_nothrow): Update.
24685 (ignore_edge_for_pure_const): Likewise.
24686 (propagate_pure_const): Update calls to worse_state.
24687 (skip_function_for_local_pure_const): Reformat comments.
24689 2016-04-15 Jan Hubicka <jh@suse.cz>
24692 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
24693 (cgraph_node::function_symbol): Likewise.
24694 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24695 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
24696 (symtab_node::ultimate_alias_target): Add REF parameter.
24697 (symtab_node::binds_to_current_def_p): Declare.
24698 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
24699 (cgraph_node::function_symbol): Likewise.
24700 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24701 (cgraph_node::get_availability): Likewise.
24702 (cgraph_edge::binds_to_current_def_p): New inline function.
24703 (varpool_node::get_availability): Add REF parameter.
24704 (varpool_node::ultimate_alias_target): Likewise.
24705 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
24706 (symtab_node::binds_to_current_def_p): Likewise.
24707 * varpool.c (varpool_node::get_availability): Likewise.
24709 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24712 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
24713 Fix mode size check.
24715 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24717 * BASE-VER: Set to 7.0.0.
24719 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
24721 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
24723 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24725 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
24726 architecture revisions.
24728 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
24730 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
24731 * config/i386/i386.c (ix86_using_red_zone): No longer static.
24732 * config/i386/i386.md (stack decrement to push peepholes): Guard
24733 with !x86_using_red_zone ().
24735 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24738 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
24739 to dump_generic_node.
24740 (NIY): Pass also flags to do_niy.
24742 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
24744 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
24745 (simd_clone_vector_of_formal_parm_types)
24746 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
24747 (simd_clone_mangle, simd_clone_create)
24748 (simd_clone_adjust_return_type, create_tmp_simd_array)
24749 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
24750 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
24751 (ipa_simd_modify_function_body, simd_clone_linear_addend)
24752 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
24753 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
24754 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
24755 * omp-simd-clone.c: ... this new file.
24756 (simd_clone_vector_of_formal_parm_types): Make it static.
24757 * Makefile.in (OBJS): Add omp-simd-clone.o.
24759 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24762 * config/i386/sse.md: Use proper memory operand modifiers.
24765 2016-04-15 Richard Biener <rguenther@suse.de>
24766 Alan Modra <amodra@gmail.com>
24768 PR tree-optimization/70130
24769 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
24770 when alignment stays not the same and no not use the realign
24773 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24776 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24777 direct move handlers for KFmode. Change TFmode handlers test from
24778 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
24780 2016-04-14 Jakub Jelinek <jakub@redhat.com>
24783 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
24784 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
24785 (inlined_polymorphic_ctor_dtor_block_p): Use it.
24786 * tree-ssa-live.c (remove_unused_scope_block_p): When
24787 in_ctor_dtor_block, avoid discarding not just BLOCKs with
24788 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
24789 block_ultimate_origin is FUNCTION_DECL.
24790 (remove_unused_locals): If current_function_decl is
24791 polymorphic_ctor_dtor_p, pass initial true to
24792 remove_unused_scope_block_p' is_ctor_dtor_block.
24794 2016-04-14 Martin Sebor <msebor@redhat.com>
24799 * doc/extend.texi (Variable Length): Revert.
24801 2016-04-14 Marek Polacek <polacek@redhat.com>
24802 Jan Hubicka <hubicka@ucw.cz>
24805 * tree.c (verify_type): Disable the canonical type of main variant
24808 2016-04-14 Jason Merrill <jason@redhat.com>
24810 * cfgexpand.c, expr.c: Revert previous change.
24812 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
24814 PR middle-end/70643
24815 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
24816 when building a mem ref for the incoming reduction variable.
24818 2016-04-14 Richard Biener <rguenther@suse.de>
24820 PR tree-optimization/70614
24821 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
24822 loop if the evolution dropped to chrec_dont_know.
24823 (interpret_condition_phi): Likewise.
24825 2016-04-14 Richard Biener <rguenther@suse.de>
24827 PR tree-optimization/70623
24828 * tree-ssa-pre.c (changed_blocks): Make global ...
24829 (compute_antic): ... local here. Move and fix worklist
24830 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
24831 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
24832 worklist handling, dump when ANTIC_IN changed.
24833 (compute_partial_antic_aux): Remove worklist handling.
24834 (init_pre): Do not compute post dominators. Add a comment about
24835 the CFG order chosen.
24836 (fini_pre): Do not free post dominators.
24838 2016-04-13 Martin Sebor <msebor@redhat.com>
24843 * doc/extend.texi (Variable Length): Document C++ specifics.
24845 2016-04-13 Jakub Jelinek <jakub@redhat.com>
24848 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
24849 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
24850 eh edges have been purged.
24853 * tree-sra.c (create_access_replacement,
24854 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
24856 * tree-pretty-print.c (dump_fancy_name): New function.
24857 (dump_decl_name, dump_generic_node): Use it.
24859 2016-04-13 Jason Merrill <jason@redhat.com>
24861 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
24862 * expr.c (expand_expr_real_1): Likewise.
24864 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
24866 * config/i386/i386.md (kunpckhi): Swap operands.
24867 (kunpcksi): Likewise.
24868 (kunpckdi): Likewise.
24869 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
24870 (vec_pack_trunc_<mode>): Likewise.
24872 2016-04-13 Jakub Jelinek <jakub@redhat.com>
24875 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
24877 PR middle-end/70633
24878 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
24879 gimplification turns some element into non-constant.
24882 * rtl.h (convert_memory_address_addr_space_1): New prototype.
24883 * explow.c (convert_memory_address_addr_space_1): No longer static,
24884 add NO_EMIT argument and don't call convert_modes if true, pass
24885 it down recursively, remove break after return.
24886 (convert_memory_address_addr_space): Adjust caller.
24887 * simplify-rtx.c (simplify_unary_operation_1): Call
24888 convert_memory_address_addr_space_1 instead of convert_memory_address,
24889 if it returns NULL, don't simplify.
24891 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
24894 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
24896 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24898 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24899 Bump the upper SIMDLEN limits, so that if the return type or
24900 characteristic type if the return type is void can be passed in
24901 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
24904 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24907 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
24908 Do not use "=" constraint on an input constraint.
24909 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
24910 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
24911 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
24912 generates (neg (abs ...)) instead of (abs ...).
24914 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24916 PR rtl-optimization/70596
24917 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
24918 just invalidate LRA data and reset them. Adjust dump wording.
24920 2016-04-12 Martin Liska <mliska@suse.cz>
24923 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24925 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
24927 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24928 max_loop_iterations_int.
24929 (tree_unswitch_outer_loop): Likewise.
24930 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24931 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24933 2016-04-12 Tom de Vries <tom@codesourcery.com>
24935 PR tree-optimization/68756
24936 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
24937 instead of new_name.
24939 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24941 PR tree-optimization/70602
24942 * tree-sra.c (generate_subtree_copies): Don't write anything into
24943 constant pool decls.
24945 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
24946 regardless whether there are depend clauses or not.
24948 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24951 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
24952 target attribute and pragma from changing the -mfloat128
24953 and -mfloat128-hardware options.
24955 * doc/extend.texi (Additional Floating Types): Document PowerPC
24956 __float128 restrictions.
24958 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24961 * config/aarch64/driver-aarch64.c
24962 (aarch64_get_extension_string_for_isa_flags): New.
24963 (arch_extension): Rename to...
24964 (aarch64_arch_extension): ...This.
24965 (ext_to_feat_string): Rename to...
24966 (aarch64_extensions): ...This.
24967 (aarch64_core_data): Keep track of architecture extension flags.
24968 (cpu_data): Rename to...
24969 (aarch64_cpu_data): ...This.
24970 (aarch64_arch_driver_info): Keep track of architecture extension
24972 (get_arch_name_from_id): Rename to...
24973 (get_arch_from_id): ...This, change return type.
24974 (host_detect_local_cpu): Update and reformat for renames, handle
24975 extensions through common infrastructure.
24977 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24980 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
24981 track of a canonical flag name.
24982 (all_extensions): Likewise.
24983 (arch_to_arch_name): Also track extension flags enabled by the arch.
24984 (all_architectures): Likewise.
24985 (aarch64_parse_extension): Move to here.
24986 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
24988 (aarch64_rewrite_selected_cpu): Update for above change.
24989 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
24990 are handled, such that the single explicit value enabled by an
24991 extension is kept seperate from the implicit values it also enables.
24992 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
24994 (aarch64_parse_extension): New.
24995 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
24996 here to config/aarch64/aarch64-protos.h.
24997 (aarch64_parse_extension): Move from here to
24998 common/config/aarch64/aarch64-common.c.
24999 (aarch64_option_print): Update.
25000 (aarch64_declare_function_name): Likewise.
25001 (aarch64_start_file): Likewise.
25002 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
25003 the canonical flag for extensions.
25004 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
25007 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25009 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
25012 2016-04-09 Tom de Vries <tom@codesourcery.com>
25014 PR tree-optimization/68953
25015 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
25016 first to last subscript.
25018 2016-04-09 Jakub Jelinek <jakub@redhat.com>
25020 PR tree-optimization/70586
25021 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
25024 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
25028 PR tree-optimization/70373
25029 PR middle-end/70533
25030 PR middle-end/70534
25031 PR middle-end/70535
25032 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
25033 clauses for acc parallel reductions as necessary. Error on those
25035 * omp-low.c (scan_sharing_clauses): Don't install variables which
25036 are used in acc parallel reductions.
25037 (lower_rec_input_clauses): Remove dead code.
25038 (lower_oacc_reductions): Add support for reference reductions.
25039 (lower_reduction_clauses): Remove dead code.
25040 (lower_omp_target): Don't remap variables appearing in acc parallel
25042 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
25044 2016-04-08 Jakub Jelinek <jakub@redhat.com>
25046 PR middle-end/70593
25047 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
25048 with multiple SSA_NAME defs, force the outputs other than first
25049 to be live before calling live_track_process_def on each output.
25051 PR rtl-optimization/70574
25052 * fwprop.c (forward_propagate_and_simplify): Don't add
25053 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
25054 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
25055 paradoxical subregs within *loc.
25057 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
25059 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
25060 -ftree-parallelize-loops={0,1}.
25061 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25062 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25063 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25064 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25065 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25067 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
25070 * asan.c (instrument_derefs): If we get unknown location, extract it
25071 with EXPR_LOCATION.
25072 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
25074 2016-04-08 Tom de Vries <tom@codesourcery.com>
25076 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
25077 implicit firstprivate clause.
25079 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25082 * config/arm/thumb2.md (tst + branch-> lsls + branch
25083 peephole below *orsi_not_shiftsi_si): Require that condition
25084 register is dead after the peephole.
25085 (second peephole after the above): Likewise.
25087 2016-04-08 Alan Modra <amodra@gmail.com>
25090 * builtins.c (fold_builtin_classify): For IBM extended precision,
25091 look at just the high-order double to test for NaN.
25092 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
25093 test just the high double for Inf but both doubles for subnormal
25096 2016-04-07 Jakub Jelinek <jakub@redhat.com>
25098 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
25099 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
25100 node->simdclone->mask_mode != VOIDmode masks.
25101 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
25102 earlier, use it instead of node->simdclone.
25103 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25104 Set clonei->mask_mode.
25106 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25109 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
25110 Pass it through to cp_parser_already_scoped_statement.
25111 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
25112 it through to cp_parser_statement.
25113 (cp_parser_statement): Pass IF_P through to
25114 cp_parser_iteration_statement.
25115 (cp_parser_pragma): Adjust call to
25116 cp_parser_iteration_statement.
25118 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25121 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
25122 resolve a future -Wparentheses warning.
25123 * omp-low.c (scan_sharing_clauses): Likewise.
25124 * tree-parloops.c (eliminate_local_variables): Likewise.
25126 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
25128 PR rtl-optimization/70398
25129 * lra-constraints.c (process_address_1): Check zero scale and code
25130 for reloading with zero scale.
25132 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
25134 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
25135 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
25137 2016-04-06 Jakub Jelinek <jakub@redhat.com>
25139 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25140 Add support for AVX512F clones, include them by default for
25141 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
25142 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
25145 PR middle-end/70550
25146 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
25147 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
25148 firstprivate clauses.
25149 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
25150 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
25151 (lower_omp_target): Set TREE_NO_WARNING for
25152 non-addressable possibly uninitialized vars which are copied into
25153 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
25155 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
25157 * config/pa/predicates.md (integer_store_memory_operand): Accept
25158 REG+D operands with a large offset when reload_in_progress is true.
25159 (floating_point_store_memory_operand): Likewise.
25161 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25164 * match.pd (nested int casts): Limit to GIMPLE.
25166 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
25169 * ipa-devirt.c (maybe_record_node): Fix comment; use
25170 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
25172 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25174 PR rtl-optimization/70542
25175 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
25176 if there are any uses other than insn or debug insns.
25178 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
25179 Jakub Jelinek <jakub@redhat.com>
25181 PR tree-optimization/70509
25182 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
25183 Shift HOST_WIDE_INT_1U instead of 1.
25185 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
25187 PR tree-optimization/70509
25188 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
25189 of the vector base type for index.
25191 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
25194 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
25196 2016-04-05 Richard Biener <rguenther@suse.de>
25198 PR tree-optimization/70526
25199 * tree-sra.c (build_ref_for_offset): Use prev_base to
25200 extract the alias pointer type.
25202 2016-04-05 Richard Biener <rguenther@suse.de>
25204 * dse.c (struct store_info): Remove alias_set member.
25205 (struct read_info_type): Likewise.
25206 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
25207 spill_deleted, clear_alias_set_lookup): Remove.
25208 (get_group_info): Remove dead base == NULL_RTX case.
25209 (dse_step0): Remove initialization of removed variables.
25210 (delete_dead_store_insn): Reomve alias set dumping.
25211 (free_read_records): Remove alias_set handling.
25212 (canon_address): Remove alias_set_out parameter.
25213 (record_store): Remove spill_alias_set, it's always zero.
25214 (check_mem_read_rtx): Likewise.
25215 (dse_step2): Rename from ...
25216 (dse_step2_nospill): ... this. Adjust.
25217 (scan_stores): Rename from ...
25218 (scan_stores_nospill): ... this.
25219 (scan_reads): Rename from ...
25220 (scan_reads_nospill): ... this.
25221 (scan_stores_spill, scan_reads_spill): Remove.
25222 (dse_step3_scan): Remove for_spills argument which is always false.
25223 (dse_step3): Likewise.
25224 (dse_step5): Rename from ...
25225 (dse_step5_nospill): ... this. Remove alias_set handling.
25226 (rest_of_handle_dse): Adjust.
25228 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25231 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
25232 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
25233 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
25234 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
25236 2016-04-05 Richard Biener <rguenther@suse.de>
25238 PR middle-end/70499
25239 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
25240 non-register type temporaries into SSA.
25242 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
25245 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
25246 calls when sanitizing.
25247 (possible_polymorphic_call_target_p): Fix formatting.
25249 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25250 Jakub Jelinek <jakub@redhat.com>
25252 PR middle-end/70457
25253 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
25254 to ensure a call statement is compatible with a built-in's
25256 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
25259 2016-04-04 Richard Biener <rguenther@suse.de>
25261 PR rtl-optimization/70484
25262 * rtl.h (canon_output_dependence): Declare.
25263 * alias.c (canon_output_dependence): New function.
25264 * dse.c (record_store): Use canon_output_dependence rather
25265 than canon_true_dependence.
25267 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25270 * cgraph.h (symtab_node::copy_visibility_from): New function.
25271 * symtab.c (symtab_node::copy_visibility_from): New function.
25272 * ipa-visibility.c (optimize_weakref): New function.
25273 (function_and_variable_visibility): Use it.
25275 2016-04-04 Martin Liska <mliska@suse.cz>
25278 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
25279 value that is really in range handled by SBR instruction.
25280 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
25281 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
25282 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
25284 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
25288 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
25289 set, but not for SP_REG operands.
25291 2016-04-02 Martin Sebor <msebor@redhat.com>
25294 * fold-const.c (maybe_nonzero_address): New function.
25295 (fold_comparison): Call it. Fold equality and relational
25296 expressions involving null pointers.
25297 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
25299 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
25301 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
25302 the "Y" constraint (scalar FP 0.0 immediate).
25304 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
25305 Add the "const_double" to the list of operand constraints.
25307 2016-04-01 Jakub Jelinek <jakub@redhat.com>
25309 PR rtl-optimization/70467
25310 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
25311 If low word of the last operand is 0, just emit addition/subtraction
25314 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25317 * config/s390/s390.c (s390_expand_insv): Check for everything
25318 constant instead of just VOIDmode stuff.
25320 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25323 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25325 2016-04-01 Nathan Sidwell <nathan@acm.org>
25327 * tree.def (TRY_CATCH_EXPR): Correct documentation.
25329 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
25331 PR rtl-optimization/70461
25332 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25335 2016-03-31 Martin Liska <mliska@suse.cz>
25338 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25339 a tree value or an immediate integer value to a buffer
25340 that is eventually copied to a BRIG section.
25341 (emit_immediate_operand): Call the function here.
25342 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25343 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25344 of class' fields that are removed.
25345 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25346 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25347 m_brig_repr_size fields.
25349 2016-03-31 Martin Liska <mliska@suse.cz>
25352 * hsa-gen.c (hsa_function_representation::update_dominance): New
25354 (convert_addr_to_flat_segment): Likewise.
25355 (gen_hsa_memory_set): New alignment argument.
25356 (gen_hsa_ctor_assignment): Likewise.
25357 (gen_hsa_insns_for_single_assignment): Provide alignment
25358 to gen_hsa_ctor_assignment.
25359 (gen_hsa_insns_for_direct_call): Add new argument.
25360 (expand_lhs_of_string_op): New function.
25361 (expand_string_operation_builtin): Likewise.
25362 (expand_memory_copy): New function.
25363 (expand_memory_set): New function.
25364 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25365 (convert_switch_statements): Change signature.
25366 (generate_hsa): Use a return value of the function.
25367 (pass_gen_hsail::execute): Do not call
25368 convert_switch_statements here.
25369 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25370 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25371 (hsa_function_representation::update_dominance): New function.
25373 2016-03-31 Martin Liska <mliska@suse.cz>
25376 * hsa-brig.c (emit_directive_variable): Emit alignment
25377 according to hsa_symbol::m_align.
25378 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25379 (dump_hsa_symbol): Dump alignment of HSA symbols.
25380 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25381 (gen_hsa_addr_with_align): New function.
25382 (hsa_bitmemref_alignment): Use newly added function.
25383 (gen_hsa_insns_for_load): Likewise.
25384 (gen_hsa_insns_for_store): Likewise.
25385 (gen_hsa_memory_copy): New argument added.
25386 (gen_hsa_insns_for_single_assignment): Respect
25387 alignment for assignments processed via gen_hsa_memory_copy.
25388 (gen_hsa_insns_for_direct_call): Likewise.
25389 (gen_hsa_insns_for_return): Likewise.
25390 (gen_function_def_parameters): Set default alignment.
25391 * hsa.c (hsa_object_alignment): New function.
25392 (hsa_byte_alignment): Pasted function.
25393 * hsa.h (hsa_symbol::m_align): New field.
25395 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25397 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25398 scratch field for goto case.
25400 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
25402 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25404 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
25407 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25408 (scalar_chain::convert_insn): Call convert_op for reg
25409 moves to handle undefined registers.
25411 2016-03-31 Nathan Sidwell <nathan@acm.org>
25414 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25415 Assert we don't want to move backwards.
25417 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
25420 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25422 2016-03-31 Jakub Jelinek <jakub@redhat.com>
25424 PR rtl-optimization/70460
25425 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25426 with operand from REG_LABEL_OPERAND, instead substitute
25427 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25428 Don't do anything for REG_NON_LOCAL_GOTO jumps.
25430 2016-03-31 Martin Liska <mliska@suse.cz>
25432 * passes.c (execute_one_pass): Do not call
25433 todo_after for a discarded function.
25435 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25437 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25438 (no_cost, infinite_cost): Initialize the new field.
25439 (get_computation_cost_at): Record setup cost.
25440 (determine_use_iv_cost_address): Skip cost computation for sub
25441 uses if we can estimate it without losing accuracy.
25443 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25445 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25447 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25448 max_loop_iterations_int.
25449 (tree_unswitch_outer_loop): Likewise.
25450 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25451 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25453 2016-03-30 Richard Biener <rguenther@suse.de>
25455 PR middle-end/70450
25456 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25458 2016-03-30 Jakub Jelinek <jakub@redhat.com>
25461 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25462 in gen_blendm expander.
25464 2016-03-30 Nick Clifton <nickc@redhat.com>
25467 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25468 case where we are already provided with an SImode SUBREG.
25470 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
25473 * config/i386/i386.c (ix86_expand_epilogue): Properly check
25474 conflict between DRAP register and __builtin_eh_return.
25476 2016-03-30 Michael Matz <matz@suse.de>
25477 Richard Biener <rguenther@suse.de>
25480 * ipa-polymorphic-call.c (struct type_change_info): Change
25481 speculative to an unsigned allowing to limit the work we do.
25482 (csftc_abort_walking_p): New inline function..
25483 (check_stmt_for_type_change): Limit the number of may-defs
25484 skipped for speculative devirtualization to
25485 max-speculative-devirt-maydefs.
25486 * params.def (max-speculative-devirt-maydefs): New param.
25487 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25489 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
25492 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25495 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
25497 PR tree-optimization/59124
25498 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25499 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25501 2016-03-29 Jeff Law <law@redhat.com>
25503 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25505 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25507 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25510 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
25512 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25513 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25514 gcrt0.o if linking dynamically.
25516 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25519 * ipa-devirt.c (methods_equal_p): New function.
25520 (compare_virtual_tables): Use it.
25521 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25522 * cgraphclones.c (clone_function_name_1): Use
25523 symbol_table::symbol_suffix_separator.
25524 * coverage.c (build_var): Likewise.
25525 * symtab.c (symbol_table::symbol_suffix_separator): New.
25527 2016-03-29 Jakub Jelinek <jakub@redhat.com>
25529 PR rtl-optimization/70429
25530 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25531 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25532 mode != result_mode.
25535 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25537 PR tree-optimization/70405
25538 * ssa-iterators.h (num_imm_uses): Add missing braces.
25540 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
25542 PR rtl-optimization/68695
25543 * ira-color.c (allocno_copy_cost_saving): New.
25544 (improve_allocation): Use it.
25546 2016-03-29 Richard Henderson <rth@redhat.com>
25548 PR middle-end/70355
25549 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25551 2016-03-29 Richard Biener <rguenther@suse.de>
25553 PR middle-end/70424
25554 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25555 use alignment returned by get_pointer_alignment_1 if it is
25556 bigger than BITS_PER_UNIT.
25557 * builtins.c (get_pointer_alignment_1): Do not return true
25558 for alignment extracted from SSA info.
25560 2016-03-28 James Bowman <james.bowman@ftdichip.com>
25562 * config/ft32/ft32.opt (mnodiv): New.
25563 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25564 * doc/invoke.texi (FT32 Options -mnodiv): New.
25566 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
25569 * config/i386/i386.md (define_split, andn): Fix modes.
25571 2016-03-26 Richard Biener <rguenther@suse.de>
25572 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25575 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25577 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25578 as 2nd argument to cl_optimization_restore().
25580 2016-03-25 Richard Henderson <rth@redhat.com>
25583 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25584 * config/aarch64/aarch64-protos.h: Declare it.
25585 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25587 2016-03-25 Alan Modra <amodra@gmail.com>
25590 * config/rs6000/constraints.md (j): Simplify.
25591 * config/rs6000/predicates.md (easy_fp_constant): Exclude
25593 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25594 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25595 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25596 in all constraint alternatives.
25597 (movtd_64bit_nodm): Delete "j" constraint alternative.
25599 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25601 * tree-ssa-propagate.c: Enhance docs for
25602 SSA_PROP_NOT_INTERESTING.
25604 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25606 * doc/extend.texi: Fix typo in documentation to pure attribute.
25608 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
25611 * config/pa/pa.md (bswapdi2): Use a scratch register.
25613 2016-03-24 Richard Henderson <rth@redhat.com>
25615 PR middle-end/69845
25616 * fold-const.c (extract_muldiv_1): Correct test for multiplication
25619 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
25621 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
25622 using ix86_expand_binary_operator instead of gen_andsi3.
25624 2016-03-24 Richard Biener <rguenther@suse.de>
25626 PR tree-optimization/70396
25627 * tree-vect-stmts.c (vectorizable_comparison): Use
25628 get_vectype_for_scalar_type.
25630 2016-03-24 Richard Biener <rguenther@suse.de>
25632 PR middle-end/70370
25633 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
25634 with register bases.
25636 2016-03-24 Richard Biener <rguenther@suse.de>
25638 PR tree-optimization/70372
25639 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
25640 build_all_ones_cst to also handle vector types correctly.
25642 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25645 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
25648 2016-03-23 Marek Polacek <polacek@redhat.com>
25651 * doc/invoke.texi: Document -Wignored-attributes.
25653 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25655 PR tree-optimization/69042
25656 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
25657 parameter from 30 to 40.
25659 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25661 PR tree-optimization/69042
25662 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
25663 for use with constant offset stripped in base.
25665 2016-03-23 Richard Biener <rguenther@suse.de>
25667 PR middle-end/70251
25668 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
25669 mode compatibility check.
25670 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25672 2016-03-23 Jeff Law <law@redhat.com>
25674 PR tree-optimization/64058
25675 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
25677 (struct ssa_conflicts): Move up earlier in the file.
25678 (conflicts_, var_map_): New static variables.
25679 (initialize_conflict_count): New function to initialize the
25680 CONFLICT_COUNT field for each conflict pair.
25681 (compare_pairs): Lazily initialize the conflict count and use it
25682 as the first tie-breaker.
25683 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
25684 and wipe conflicts_ and map_ around the call to qsort. Remove
25685 special case for 2 coalesce pairs.
25686 * bitmap.c (bitmap_count_unique_bits): New function.
25687 (bitmap_count_bits_in_word): New function, extracted from
25689 (bitmap_count_bits): Use bitmap_count_bits_in_word.
25690 * bitmap.h (bitmap_count_unique_bits): Declare it.
25692 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
25695 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
25696 transparent alias chain for decl assembler name.
25697 * config/sol2.c (solaris_assemble_visibility): Likewise.
25699 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25701 * config/arm/arm1020e.md (1020call_op): Reduce reservation
25703 (v10_fdivs): Likewise.
25704 (v10_fdivd): Likewise.
25706 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25709 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
25710 to not call fclose twice on file.
25712 2016-03-23 Jakub Jelinek <jakub@redhat.com>
25714 PR tree-optimization/70354
25715 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
25716 oprnd0 is wider than oprnd1 and there is a cast from the wider
25717 type to oprnd1, mask it with the mask of the narrower type.
25720 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
25721 Optimize TARGET_STV splitters, if high or low word of last argument
25724 2016-03-22 Jeff Law <law@redhat.com>
25727 tree-ssa-threadbackward.c
25728 (fsm_find_control_statement_thread_paths): Correctly distinguish
25729 between old style jump threads vs FSM jump threads.
25731 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
25734 * config/i386/i386.c (scalar_chain::convert_op): Support
25735 uninitialized register usage case.
25737 2016-03-22 Richard Biener <rguenther@suse.de>
25739 PR middle-end/70251
25740 * genmatch.c (gen_transform): Adjust last parameter to a three-state
25742 (capture::gen_transform): ... to change behavior when substituting
25743 a condition into cond or not-cond expr context.
25744 (dt_simplify::gen_1): Adjust.
25745 * gimple-match-head.c: Include gimplify.h for unshare_expr.
25746 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
25747 last change and instead change to
25748 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
25749 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25751 2016-03-22 Anthony Green <green@moxielogic.com>
25753 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
25754 issue for moxiebox targets.
25755 (CC1PLUS_SPEC): Ditto.
25757 2016-03-22 Richard Biener <rguenther@suse.de>
25759 PR middle-end/70333
25760 * fold-const.c (extract_muldiv_1): Properly perform multiplication
25763 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25765 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
25767 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25770 * config/i386/i386.c (def_builtin): Handle
25771 OPTION_MASK_ISA_AVX512VL to be and-ed with other
25773 (const struct builtin_description bdesc_special_args[]):
25774 Remove duplicate ISA bits.
25776 2016-03-22 Jakub Jelinek <jakub@redhat.com>
25779 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
25780 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
25781 in a way that works also for AVX512BW.
25784 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
25785 instead of source if operands[1] is xmm16 and above and
25786 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
25787 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
25790 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
25791 on assign if (*from_p) is a comparison, set it to
25792 TREE_NO_WARNING (*from_p).
25794 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25796 PR middle-end/70326
25797 * lra.c (restore_scratches): Ignore deleted insns.
25799 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
25800 Jakub Jelinek <jakub@redhat.com>
25802 PR tree-optimization/70317
25803 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
25806 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
25809 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
25810 of ix86_expand_move.
25812 (movti): Use general_operand for operand 1 predicate.
25814 2016-03-21 Martin Liska <mliska@suse.cz>
25816 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
25818 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
25820 2016-03-21 Martin Liska <mliska@suse.cz>
25823 * ipa-icf.c (sem_function::parse): Skip static
25824 constructors and destructors.
25826 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25829 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
25830 function-like macro, peek following token(s) if it is followed
25831 by CPP_OPEN_PAREN token with optional padding in between, and
25832 if not, don't treat it like a macro.
25834 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
25835 Alexander Monakov <amonakov@ispras.ru>
25837 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
25838 for the stabs debug format.
25840 2016-03-21 Richard Biener <rguenther@suse.de>
25842 PR tree-optimization/70310
25843 * tree-vect-generic.c (expand_vector_condition): Fold the built
25846 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
25849 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
25850 Block third alternative for AVX-512VL target,
25852 2016-03-21 Martin Liska <mliska@suse.cz>
25855 * hsa-brig.c (emit_function_directives): Mark unemitted
25856 global variables for emission.
25857 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
25858 (get_symbol_for_decl): Likewise.
25859 * hsa.h (struct hsa_symbol): New flag.
25861 2016-03-21 Richard Biener <rguenther@suse.de>
25863 PR tree-optimization/70288
25864 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
25865 we do not estimate unsimplified all-constant conditionals or
25866 switches as optimized away.
25868 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
25870 PR rtl-optimization/69102
25871 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
25872 when we have a readonly dependency context.
25874 2016-03-18 Jeff Law <law@redhat.com>
25876 PR rtl-optimization/70263
25877 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
25878 (update_equiv_regs): When trying to move a store to after the insn
25879 that sets the source of the store, make sure the store occurs after
25880 the insn that sets the source of the store. When successful note
25881 the REG_EQUIV note created in the dump file.
25883 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
25884 Bernd Schmidt <bschmidt@redhat.com>
25886 * doc/extend.texi: Document more potential problems with basic asms.
25888 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
25890 PR rtl-optimization/70278
25891 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
25894 2016-03-18 Jason Merrill <jason@redhat.com>
25896 * calls.c (load_register_parameters): Fix zero size sibcall logic.
25898 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25900 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
25901 values to 128b regs.
25903 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25905 PR tree-optimization/70252
25906 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
25907 boolean vector has a proper number of elements.
25908 (supportable_narrowing_operation): Likewise.
25910 2016-03-18 Tom de Vries <tom@codesourcery.com>
25913 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
25915 2016-03-18 Jakub Jelinek <jakub@redhat.com>
25917 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
25918 instead of replace_rtx for DEBUG_INSNs.
25920 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25922 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
25923 load type reservations.
25925 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
25928 * config/pa/constraints.md: Revert 2015-02-13 change. Use
25929 define_constraint for "Q" and "T" constraints.
25931 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
25933 Tweak the pipeline model for Exynos M1
25935 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
25938 2016-03-17 David Malcolm <dmalcolm@redhat.com>
25941 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
25942 where one or both locations aren't within a line_map.
25944 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
25947 * opts.c (finish_options): Don't set flag_pie to the default if
25948 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
25951 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
25953 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
25954 true as ALL_REGS argument to replace_rtx.
25956 2016-03-17 Richard Biener <rguenther@suse.de>
25959 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
25962 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25965 * rtl.h (replace_rtx): Add ALL_REGS argument.
25966 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
25967 equality and assert mode is the same, instead of just rtx pointer
25969 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
25970 true as ALL_REGS argument to replace_rtx.
25972 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
25974 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
25975 for boolean vector with vector mode only.
25976 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25978 2016-03-17 Nick Clifton <nickc@redhat.com>
25981 * config/rx/rx.c (rx_print_integer): Print negative constants in
25984 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25987 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
25989 2016-03-16 Richard Henderson <rth@redhat.com>
25990 Richard Biener <rguenth@suse.de>
25992 PR middle-end/70240
25993 PR middle-end/68215
25995 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
25996 first operand as is_gimple_condexpr.
25998 PR middle-end/70240
25999 PR middle-end/68215
26001 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
26002 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
26003 Do not gimplify the result.
26004 (do_unop): Adjust call to tree_vec_extract.
26005 (do_binop): Likewise.
26006 (do_compare): Likewise.
26007 (do_plus_minus): Likewise.
26008 (do_negate): Likewise.
26009 (expand_vector_condition): Likewise.
26010 (do_cond): Likewise.
26012 2016-03-16 Richard Henderson <rth@redhat.com>
26015 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
26016 (aarch64_classify_address): Use it.
26017 (aarch64_legitimize_address): Force all subexpressions of PLUS
26018 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
26020 2016-03-16 Jakub Jelinek <jakub@redhat.com>
26021 Richard Biener <rguenth@suse.de>
26024 * rtlanal.c (replace_rtx): For REG, if from is a REG,
26025 return to even if only REGNO is equal, and assert
26028 2016-03-11 Jeff Law <law@redhat.com>
26030 PR rtl-optimization/70224
26031 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
26033 2016-03-16 Richard Henderson <rth@redhat.com>
26035 PR middle-end/70199
26036 * function.h (struct function): Add has_forced_label_in_static.
26037 * gimplify.c (force_labels_r): Set it.
26038 * lto-streamer-in.c (input_struct_function_base): Read it.
26039 * lto-streamer-out.c (output_struct_function_base): Write it.
26040 * tree-inline.c (has_label_address_in_static_1): Remove.
26041 (copy_forbidden): Remove fndecl parameter; test
26042 has_forced_label_in_static.
26043 (inline_forbidden_p): Update call to copy_forbidden.
26044 (tree_versionable_function_p): Likewise.
26045 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
26046 (chkp_versioning): Likewise.
26047 * tree-inline.h (copy_forbidden): Update decl.
26049 2016-03-16 Marek Polacek <polacek@redhat.com>
26052 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
26053 function being thunked if the result type doesn't have fixed size.
26054 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
26055 doesn't have fixed size.
26057 2016-03-16 Bin Cheng <bin.cheng@arm.com>
26059 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
26060 reporting malformed loop nest.
26062 2016-03-16 Tom de Vries <tom@codesourcery.com>
26065 * ipa-devirt.c (possible_polymorphic_call_targets): Move
26066 nodes.length () == 1 test to before first nodes[0] access.
26068 2016-03-16 Tom de Vries <tom@codesourcery.com>
26070 PR tree-optimization/68715
26071 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
26072 single_pred_p test.
26074 2016-03-16 Tom de Vries <tom@codesourcery.com>
26076 PR tree-optimization/68809
26077 * graphite-scop-detection.c (same_close_phi_node): Test if result types
26080 2016-03-16 Carlos O'Donell <carlos@redhat.com>
26081 Sandra Loosemore <sandra@codesourcery.com>
26083 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
26084 on leaf attribute. Mention ELF interposition problems.
26086 2016-03-16 Alan Modra <amodra@gmail.com>
26088 PR rtl-optimization/69195
26089 PR rtl-optimization/47992
26090 * ira.c (indirect_jump_optimize): Ignore artificial defs.
26093 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
26096 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
26098 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26100 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
26102 2016-03-15 Jakub Jelinek <jakub@redhat.com>
26104 PR rtl-optimization/70222
26105 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
26106 optimization if mode is different from result_mode, queue up masking
26107 of the result in outer_op. Formatting fix.
26109 PR middle-end/70239
26110 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26113 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26115 PR rtl-optimization/69032
26116 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
26117 looping backwards over basic block insns.
26119 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26122 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
26123 to non-speculative when propagating trap bits.
26125 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26127 PR rtl-optimization/63384
26128 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
26129 DEBUG_INSN_P insns.
26131 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26134 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
26135 factored out from ...
26136 (sched_analyze_insn): ... here.
26137 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
26138 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
26139 get_implicit_reg_pending_clobbers in it.
26140 (setup_id_reg_sets): Use setup_id_implicit_regs.
26141 (deps_init_id): Ditto.
26143 2016-03-15 Tom de Vries <tom@codesourcery.com>
26146 * cgraph.c (cgraph_node::get_body): Save, reset and restore
26148 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
26149 execute_function_dump.
26150 (execute_one_pass): Don't dump function if it will be dumped after ipa
26153 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26155 * genrecog.c (match_pattern_2): If pred is NULL don't call
26156 safe_predicate_mode on it.
26158 2016-03-14 Jakub Jelinek <jakub@redhat.com>
26160 PR middle-end/70219
26161 * lra-constraints.c (delete_move_and_clobber): Change assertion
26162 to also allow dregno == 0.
26164 2016-03-14 Richard Henderson <rth@redhat.com>
26167 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
26168 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
26169 (reassociate_bb): Use optimize_vec_cond_expr; avoid
26170 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
26173 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
26176 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
26178 (lra_create_live_ranges_1): initialize hard register biggest_mode to
26180 * lra-constraints.c (split_reg): For hard regs, try to find the
26181 biggest single-register mode used in the function.
26183 2016-03-14 Richard Biener <rguenther@suse.de>
26185 PR tree-optimization/56365
26186 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
26187 constants to compare against.
26189 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
26192 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
26193 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
26194 (define_split for the GPR case): Use int_reg_operand instead of
26195 gpc_reg_operand for the output.
26197 2016-03-14 Tom de Vries <tom@codesourcery.com>
26199 PR tree-optimization/70045
26200 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
26201 create_empty_if_region_on_edge argument.
26203 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
26205 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
26206 (STACK_CHECK_PROTECT): Likewise.
26207 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26208 (STACK_CHECK_PROTECT): Likewise.
26209 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26210 (STACK_CHECK_PROTECT): Likewise.
26211 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
26212 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
26213 (STACK_CHECK_PROTECT): Likewise.
26215 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
26217 PR rtl-optimization/69307
26218 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
26219 registers in modes that span more than one register.
26221 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
26224 * lra-constraints.c (delete_move_and_clobber): New.
26225 (remove_inheritance_pseudos): Use it.
26227 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
26230 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
26231 the libcall is LCT_THROW.
26232 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
26233 for the checking routine.
26235 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26238 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
26239 optimization if we have direct move.
26240 (roundu32<mode>2_fprs): Likewise.
26242 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
26245 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
26247 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
26248 Arguments swapped. All callers changed. Take reg_renumber into
26249 account, and Calculate and compare register ranges for hard regs.
26251 2016-03-11 Jeff Law <law@redhat.com>
26253 PR tree-optimization/70190
26254 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26255 Handle cases where we can not extract the taken edge, even though we
26256 found a constant value.
26258 PR tree-optimization/64058
26259 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
26260 (num_coalesce_pairs): Move up earlier in file.
26261 (find_coalesce_pair): Initialize the INDEX field for each pair
26263 (compare_pairs): No longer sort on the elements in each pair.
26264 Instead break ties with the index of the coalesce pair.
26266 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26269 * config/aarch64/aarch64-protos.h
26270 (aarch64_save_restore_target_globals): New prototype.
26271 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
26272 Call the above when popping pragma.
26273 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
26275 (aarch64_set_current_function): Rewrite using the above.
26277 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26279 PR tree-optimization/70177
26280 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
26281 (extract_ops_from_tree): ... this. In the 2 argument
26282 overload remove _1 suffix.
26283 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
26284 (extract_ops_from_tree): ... this.
26285 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
26287 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
26288 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
26289 extract_ops_from_tree instead of 2 operand one.
26291 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
26293 PR tree-optimization/70013
26294 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
26295 for constant-pool entries.
26297 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26299 PR rtl-optimization/70174
26300 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
26301 followed by gen_lowpart on force_reg instead of just gen_lowpart.
26303 PR tree-optimization/70169
26304 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
26305 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
26308 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26309 Jakub Jelinek <jakub@redhat.com>
26312 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
26313 of uninitialized values.
26315 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26317 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26319 ("*trunctddd2"): New pattern definition.
26320 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26323 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26325 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26326 definitions for BFP and DFP rounding modes.
26327 ("fixuns_truncdddi2", "fixuns_trunctddi2")
26328 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26329 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26330 ("fix_trunctf<mode>2"): Use the new constants instead of magic
26333 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26335 * config/s390/constraints.md: Adjust comment.
26336 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
26337 s390_decompose_addrstyle_without_index.
26338 * config/s390/predicates.md (shift_count_or_setmem_operand):
26339 Rename to setmem_operand.
26340 * config/s390/s390-protos.h
26341 (s390_decompose_shift_count): Rename to
26342 s390_decompose_addrstyle_without_index.
26343 * config/s390/s390.c (s390_decompose_shift_count)
26344 (s390_mem_constraint, print_shift_count_operand)
26345 (print_operand_address, print_operand): Rename
26346 s390_decompose_shift_count to
26347 s390_decompose_addrstyle_without_index and rename
26348 print_shift_count_operand to print_addrstyle_operand troughout the
26350 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26351 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26352 Rename shift_count_or_setmem_operand to setmem_operand.
26353 * config/s390/vx-builtins.md ("vec_insert<mode>")
26354 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26357 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26360 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26361 Handle overlapping retval and newval.
26363 2016-03-10 Nick Clifton <nickc@redhat.com>
26366 * config/aarch64/aarch64.c
26367 (aarch64_override_options_after_change_1): When forcing
26368 flag_omit_frame_pointer to be true, use a special value that can
26369 be detected if this function is called again, thus preventing
26370 flag_omit_leaf_frame_pointer from being forced to be false.
26372 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26374 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26375 Set x_flag_omit_leaf_frame_pointer when handling
26376 -momit-leaf-frame-pointer.
26378 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26381 * cgraph.c (cgraph_node::dump): Dump split_part and
26382 indirect_call_target.
26383 * cgraph.h (cgraph_node): Add indirect_call_target flag.
26384 * ipa.c (has_addr_references_p): Cleanup.
26385 (is_indirect_call_target_p): New.
26386 (walk_polymorphic_call_targets): Do not mark virtuals that may be
26387 called indirectly as local.
26388 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26390 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26393 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26394 on cxa_pure_virtual.
26396 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26399 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26401 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26404 * tree.c (need_assembler_name_p): Only record main variant type names.
26406 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26409 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26410 Always define to 0 or 1.
26411 (TARGET_FIX_ERR_A53_843419): New macro.
26412 * config/aarch64/aarch64-elf-raw.h
26413 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26414 * config/aarch64/aarch64-linux.h: Likewise.
26415 * config/aarch64/aarch64.c
26416 (aarch64_override_options_after_change_1): Do not default
26417 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26419 (aarch64_attributes): Handle fix-cortex-a53-843419.
26420 (aarch64_can_inline_p): Likewise.
26421 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26423 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
26424 Jakub Jelinek <jakub@redhat.com>
26426 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26427 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26428 DECL_COMMONS if flag_unconstrained_commons is set.
26429 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26430 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26431 (funconstrained-commons): Document.
26433 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26435 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26436 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26438 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
26440 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26441 has a proper number of elements.
26443 2016-03-10 Alan Modra <amodra@gmail.com>
26445 PR rtl-optimization/69195
26446 PR rtl-optimization/47992
26447 * ira.c (recorded_label_ref): Delete.
26448 (update_equiv_regs): Return void.
26449 (indirect_jump_optimize): New function.
26450 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26451 before regstat_compute_ri. Don't rebuild_jump_labels here.
26452 Delete update_regstat.
26454 2016-03-10 Richard Biener <rguenther@suse.de>
26456 PR tree-optimization/70128
26457 * tree-ssa-structalias.c (set_uids_in_ptset): Set
26458 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26460 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26462 PR tree-optimization/70152
26463 * tree-sra.c (replace_removed_params_ssa_names): Copy over
26464 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26467 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26468 instead of gen_sse2_loadlpd.
26469 * config/i386/sse.md (*vec_concatv2df): Rename to...
26470 (vec_concatv2df): ... this.
26472 PR tree-optimization/70127
26473 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26475 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26479 * diagnostic-show-locus.c (compatible_locations_p): New function.
26480 (layout::layout): Sanitize ranges using compatible_locations_p.
26482 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26486 * diagnostic-show-locus.c (layout_range::layout_range): Replace
26487 location_range param with three const expanded_locations * and a
26489 (layout::layout): Replace call to
26490 rich_location::lazily_expand_location with get_expanded_location.
26491 Extract the range and perform location expansion here, passing
26492 the results to the layout_range ctor.
26493 * diagnostic.c (source_range::debug): Delete.
26494 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26495 of rich_location::get_expanded_location.
26496 * gcc-rich-location.c (get_range_for_expr): Delete.
26497 (gcc_rich_location::add_expr): Reimplement to avoid the
26498 rich_location::add_range overload that took a location_range,
26499 passing a location_t instead.
26501 2016-03-09 Richard Biener <rguenther@suse.de>
26502 Jakub Jelinek <jakub@redhat.com>
26504 PR tree-optimization/70138
26505 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26506 Also skip vect_double_reduction_def.
26508 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26511 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26512 if the operand is "m".
26514 2016-03-09 Nathan Sidwell <nathan@acm.org>
26516 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26518 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26520 * config/i386/i386.c (processor_target_table): Fix cost table
26521 intialization order for znver1.
26523 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26525 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26526 - becuase -> because.
26527 * ipa-reference.c (ignore_module_statics): Likewise.
26528 * cgraph.c (cgraph_node::get_body): Likewise.
26529 * ipa-inline.c (early_inliner): Likewise.
26530 * ipa-devirt.c (types_same_for_odr): Likewise.
26531 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26532 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26534 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26536 * tree-ssa-math-opts.c: Fix typo in comment.
26538 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26541 * config/i386/i386.c (scalar_chain::make_vector_copies,
26542 scalar_chain::convert_reg): Call end_sequence in between
26543 get_insns and emit_conversion_insns rather than after both
26546 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
26549 * config/i386/i386.h (machine_function): Add
26550 pc_thunk_call_expanded flag.
26551 (ix86_pc_thunk_call_expanded): New define.
26552 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26553 (*set_got): Rename insn pattern from set_got.
26554 (*set_got_labelled): Rename inst pattern from set_got_labelled.
26555 * config/i386/i386.c (ix86_compute_frame_layout): Use
26556 ix86_pc_thunk_call_expanded to prevent red-zone.
26558 2016-03-07 Martin Jambor <mjambor@suse.cz>
26560 * hsa.h (hsa_get_ctor_statements): Declare.
26561 (hsa_get_dtor_statements): Likewise.
26562 (hsa_get_kernel_dispatch_type): Likewise.
26563 * hsa.c (hsa_get_ctor_statements): New function.
26564 (hsa_get_dtor_statements): Likewise.
26565 (hsa_get_kernel_dispatch_type): Likewise.
26566 * hsa-brig.c (hsa_cdtor_statements): Removed.
26567 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26568 hsa_get_dtor_statements.
26569 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26570 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26572 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
26574 * config/arm/arm-cores.def (cortex-r8): New.
26575 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26576 * config/arm/arm-tune.md: Likewise.
26577 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26579 2016-03-07 Martin Sebor <msebor@redhat.com>
26581 PR rtl-optimization/19705
26582 * doc/invoke.texi (Options That Control Optimization): Clarify
26583 -fno-branch-count-reg.
26585 2016-02-26 Richard Biener <rguenther@suse.de>
26586 Jeff Law <law@redhat.com>
26588 PR tree-optimization/69740
26589 * cfghooks.c (remove_edge): Request loop fixups if we delete
26590 an edge that might turn an irreducible loop into a natural
26592 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26593 Move after definition of loops_state_clear.
26595 2016-03-07 Bin Cheng <bin.cheng@arm.com>
26597 PR rtl-optimization/69052
26598 * rtlanal.c (commutative_operand_precedence): Set higher precedence
26601 2016-03-07 Tom de Vries <tom@codesourcery.com>
26603 PR tree-optimization/70116
26604 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26605 is_tm_ending stmts and ubsan/asan internal functions.
26606 (find_duplicate): Use it. Don't test is_tm_ending here.
26608 2016-03-07 Richard Biener <rguenther@suse.de>
26610 PR tree-optimization/70115
26611 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26612 (propagate_constants_for_unrolling): Use replace_uses_by.
26614 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
26616 PR middle-end/69916
26617 * omp-low.c (struct oacc_loop): Add ifns.
26618 (new_oacc_loop_raw): Initialize it.
26619 (finish_oacc_loop): Clear mask & flags if no ifns.
26620 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
26621 (oacc_loop_xform_loop): Add ifns arg & adjust.
26622 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
26624 2016-03-07 Richard Henderson <rth@redhat.com>
26627 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
26628 (insert_value_copy_on_edge): Likewise.
26630 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26632 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
26634 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26637 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
26639 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26641 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
26643 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26645 Fix sseimul type attribute.
26646 * config/i386/znver1.md
26647 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
26648 znver1_sseimul_avx256_load) : Fix the type attribute.
26649 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
26650 pipe usage and latency.
26652 2016-03-05 Jakub Jelinek <jakub@redhat.com>
26655 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
26656 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
26659 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26662 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
26664 PR rtl-optimization/69941
26665 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
26666 the reg share its mode.
26668 2016-03-04 Jeff Law <law@redhat.com>
26670 PR tree-optimization/69196
26671 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26672 If the both SSA_NAMEs are anonymous, then consider them unassociated
26673 and include the PHI in the statement count.
26675 2016-03-05 Tom de Vries <tom@codesourcery.com>
26677 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
26678 construct in oacc routine. Check for oacc region in oacc routine.
26680 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26683 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
26684 2016-02-22 changes, instead don't recurse if RECUR is already true.
26685 Don't change *dynamic_check if RECUR. Adjust recursive caller
26686 to pass true to the new argument.
26687 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
26690 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
26691 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
26693 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
26695 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26697 PR rtl-optimization/57676
26698 * lra-assigns.c (lra_assign): Guard test for maximum iterations
26699 with flag_checking.
26701 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
26703 * tree-vect-patterns.c (search_type_for_mask): Handle
26704 comparison of booleans.
26706 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26708 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
26712 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
26713 all other ops that have dw_val_class_die_ref operands,
26714 and DW_OP_GNU_entry_value.
26716 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26718 PR rtl-optimization/69904
26719 * config/arm/arm.c (arm_cannot_copy_insn_p):
26720 Return true for load-exclusive instructions.
26722 2016-03-03 Jakub Jelinek <jakub@redhat.com>
26725 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
26726 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
26727 the pattern no matter if it is used just by non-pattern, pattern
26729 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
26730 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26731 oprnd1 def_stmt is in pattern, don't look through it.
26733 2016-03-03 Marek Polacek <polacek@redhat.com>
26735 PR middle-end/70050
26736 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
26738 2016-03-03 Martin Liska <mliska@suse.cz>
26740 PR tree-optimization/70043
26741 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
26742 previous statement if we see a debug statement.
26744 2016-03-03 Richard Biener <rguenther@suse.de>
26746 PR tree-optimization/55936
26747 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
26748 parameter and guard unsafe equivalence use.
26749 (vrp_evaluate_conditional_warnv_with_ops): Always use
26750 safe equivalences but not via the quadratic compare_names
26753 2016-03-03 Michael Collison <michael.collison@linaro.org>
26756 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
26757 for operand 1 to s_register_operand. Change predicate for operand
26758 2 to arm_not_immediate_operand.
26760 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
26762 * doc/tm.texi: Regenerated.
26764 2016-03-02 Richard Henderson <rth@redhat.com>
26767 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
26768 simplification when all args are positive non-fixed registers.
26770 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26772 * target.def (lra_p): Specify that new ports should use LRA.
26774 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26777 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
26778 gimplify_type_sizes the type they refer to.
26779 (omp_notice_variable): Handle reference vars to VLAs.
26780 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
26781 reference to VLA decls in the second pass instead of first pass.
26783 2016-03-02 Tom de Vries <tom@codesourcery.com>
26785 PR tree-optimization/68659
26786 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
26787 new_expr == NULL_TREE.
26788 (get_new_name): Handle ADDR_EXPR.
26790 2016-03-02 Bin Cheng <bin.cheng@arm.com>
26792 PR rtl-optimization/69052
26793 * loop-invariant.c (canonicalize_address): New function.
26794 (inv_can_prop_to_addr_use): Check validity of address expression
26795 which is canonicalized by above function.
26797 2016-03-02 Alan Modra <amodra@gmail.com>
26800 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
26803 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26806 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
26807 (*movhi_internal): Put mask moves from and to memory separately
26808 from moves from/to GPRs.
26810 2016-03-02 Richard Biener <rguenther@suse.de>
26812 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
26813 GENERIC expressions in GIMPLE.
26815 2016-03-02 Richard Biener <rguenther@suse.de>
26817 * config/i386/i386.c (type_natural_mode): Fix typo.
26819 2016-03-02 Nick Clifton <nickc@redhat.com>
26821 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
26823 2016-03-02 Richard Biener <rguenther@suse.de>
26824 Uros Bizjak <ubizjak@gmail.com>
26827 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
26829 2016-03-02 Richard Biener <rguenther@suse.de>
26831 PR middle-end/67278
26832 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
26834 2016-03-02 Marek Polacek <polacek@redhat.com>
26837 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
26838 "is promoted to" warning.
26840 2016-03-01 DJ Delorie <dj@redhat.com>
26842 * config.gcc: Deprecate mep-*.
26844 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
26846 PR middle-end/70025
26847 * lra-constraints.c (regno_val_use_in): New.
26848 (match_reload): Use it instead of regno_use_in.
26850 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
26852 PR rtl-optimization/70007
26853 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
26854 references present in REG_EQUAL notes attached to non-SET patterns.
26856 2016-03-01 Jeff Law <law@redhat.com>
26858 PR tree-optimization/69196
26859 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26860 Appropriately clamp the number of statements to copy when the
26861 thread path does not traverse a loop backedge.
26863 PR tree-optimization/69196
26864 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26865 Do count some PHIs in the thread path against the insn count. Decrease
26866 final statement count by one as the control statement in the last
26867 block will get removed. Remove special cased code for handling PHIs
26870 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
26873 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
26874 asm dialect alternatives to explicit GOTPCREL calls.
26876 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
26879 * ira.c (do_reload): Issue warning for generic stack checking here...
26880 * reload1.c (reload): ...instead of here and streamline it.
26882 2016-03-01 Nick Clifton <nickc@redhat.com>
26884 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
26886 2016-03-01 Richard Biener <rguenther@suse.de>
26888 PR tree-optimization/69983
26889 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
26890 types and fall back to operand_equal_p.
26892 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26895 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26897 * config/s390/constraints.md ("jm8"): New constraint.
26898 * config/s390/predicates.md ("const_int_8bitset_operand"): New
26900 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
26902 ("*setmem_long<setmem_and>"): New pattern.
26903 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
26905 ("*setmem_long_31z<setmem_and>"): New pattern.
26906 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
26907 New substitution rules with the required attributes.
26910 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26913 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26915 * gensupport.c (process_substs_on_one_elem): Split loop to
26916 complete mark_operands_used_in_match_dup on all expressions in the
26918 (adjust_operands_numbers): Inline into process_substs_on_one_elem
26919 and remove function.
26921 2016-03-01 Richard Biener <rguenther@suse.de>
26923 PR middle-end/70022
26924 * fold-const.c (fold_indirect_ref_1): Fix range checking for
26925 vector BIT_FIELD_REF extract.
26927 2016-03-01 Richard Biener <rguenther@suse.de>
26929 PR tree-optimization/69994
26930 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
26932 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
26934 PR tree-optimization/69956
26935 * tree-vect-stmts.c (supportable_widening_operation): Support
26936 multi-step conversion of boolean vectors.
26937 (supportable_narrowing_operation): Likewise.
26939 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26941 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
26944 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26946 * config/s390/subst.md (DSI_VI): New mode iterator.
26947 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
26948 * config/s390/vector.md ("vec_set<mode>"): Move expander before
26949 the insn definition.
26950 ("*vec_set<mode>"): Change predicate and add alternative to
26951 support only either register or const_int operands as element
26953 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
26955 ("vec_extract<mode>"): New expander.
26956 ("*vec_extract<mode>"): New insn definition supporting reg and
26957 const_int element selectors.
26958 ("*vec_extract<mode>_plus"): New insn definition supporting
26959 reg+const_int element selectors.
26960 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
26961 following expander+insn definition.
26962 ("<vec_shifts_name><mode>3"): New expander.
26963 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
26965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26967 * config/s390/s390.md ("*tabort_1"): Change predicate to
26968 nonmemory_operand. Add a second alternative to cover
26969 register as well as const int operands.
26970 ("*tabort_1_plus"): New pattern definition.
26972 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26974 * config/s390/s390.md ("*ashrdi3_cc_31")
26975 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
26976 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
26977 Merge insn definitions into ...
26978 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26979 New pattern definition.
26980 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
26981 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
26982 ("*ashr<mode>3_and"): Merge insn definitions into ...
26983 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26984 New pattern definition.
26985 * config/s390/subst.md ("addr_style_op_cc_subst")
26986 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
26987 substitutions patterns plus attributes.
26988 Add ashiftrt to SUBST iterator.
26990 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26992 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
26993 op2 to nonmemory_operand.
26994 ("*<shift>di3_31", "*<shift>di3_31_and"):
26995 Merge into single pattern definition ...
26996 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
26997 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
26998 pattern definition ...
26999 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
27000 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
27003 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27005 * config/s390/predicates.md (const_int_6bitset_operand): New
27007 * config/s390/s390.md: Include subst.md.
27008 ("rotl<mode>3"): New expander.
27009 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
27011 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
27012 * config/s390/subst.md: New file.
27014 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27016 * config/s390/s390.md ("op_type", "atype", "length" attributes):
27017 Remove RRR type. It doesn't really exist.
27018 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
27020 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
27021 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
27022 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
27023 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
27024 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
27025 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
27026 `enabled' attribute.
27028 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27030 * gensupport.c (process_substs_on_one_elem): Split loop to
27031 complete mark_operands_used_in_match_dup on all expressions in the
27033 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27034 and remove function.
27036 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27039 * config/sparc/sparc.c (NWORDS_UP): Rename to...
27040 (CEIL_NWORDS): ...this. Use CEIL macro.
27041 (compute_fp_layout): Adjust to above renaming.
27042 (function_arg_union_value): Likewise.
27043 (sparc_arg_partial_bytes): Likewise.
27044 (sparc_function_arg_advance): Likewise.
27046 2016-02-29 Jeff Law <law@redhat.com>
27048 PR tree-optimization/70005
27049 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
27050 where an object with a boolean range is compared against a value
27053 PR tree-optimization/69999
27054 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
27055 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
27058 2016-02-29 Richard Biener <rguenther@suse.de>
27060 PR tree-optimization/69994
27061 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
27062 (get_unary_op): Look through nop conversions.
27063 (ops_equal_values_p): New function, look for equality diregarding
27065 (eliminate_plus_minus_pair): Use ops_equal_values_p
27066 (repropagate_negates): Do not use get_unary_op here.
27068 2016-02-29 Martin Liska <mliska@suse.cz>
27070 * system.h: Poison ENABLE_CHECKING macro.
27072 2016-02-29 Martin Liska <mliska@suse.cz>
27074 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
27075 is presented in dump flags.
27076 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27077 (hsa_regalloc): Likewise.
27079 2016-02-19 Richard Biener <rguenther@suse.de>
27081 PR tree-optimization/69980
27082 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
27083 permutation of those we need to keep.
27085 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27088 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
27089 (NWORDS_UP): ...this
27090 (init_cumulative_args): Minor tweaks.
27091 (sparc_promote_function_mode): Likewise.
27092 (scan_record_type): Delete.
27093 (traverse_record_type): New function template.
27094 (classify_data_t): New structure type.
27095 (classify_registers): New inline function.
27096 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
27097 exhausted. Instantiate traverse_record_type on classify_registers and
27098 deal with the case of a structure passed in slot #15 with no FP field
27100 (assign_data_t): New structure type.
27101 (compute_int_layout): New static function.
27102 (compute_fp_layout): Likewise.
27103 (count_registers): New inline function.
27104 (assign_int_registers): New static function.
27105 (assign_fp_registers): Likewise.
27106 (assign_registers): New inline function.
27107 (function_arg_record_value_1): Delete.
27108 (function_arg_record_value_2): Likewise.
27109 (function_arg_record_value_3): Likewise.
27110 (function_arg_record_value): Adjust to above changes. Instantiate
27111 traverse_record_type on count_registers to first count the number of
27112 registers to be used and then on assign_registers to assign them.
27113 (function_arg_union_value): Adjust to above renaming.
27114 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
27115 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
27116 case of a structure passed in slot #15
27117 (sparc_function_arg_advance): Likewise.
27118 (function_arg_padding): Minor tweak.
27120 2016-02-29 Richard Biener <rguenther@suse.de>
27122 PR tree-optimization/69720
27123 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
27124 the adjustment_def path for possibly vectorized defs.
27125 (vect_create_epilog_for_reduction): Handle vectorized initial
27128 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
27130 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
27132 2016-02-27 Jeff Law <law@redhat.com>
27135 2016-02-26 Richard Biener <rguenther@suse.de>
27136 Jeff Law <law@redhat.com>
27138 PR tree-optimization/69740
27139 * cfghooks.c (remove_edge): Request loop fixups if we delete
27140 an edge that might turn an irreducible loop into a natural
27143 2016-02-27 Jakub Jelinek <jakub@redhat.com>
27145 PR rtl-optimization/69896
27146 * tree-vect-generic.c (get_compute_type): Avoid single element
27149 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
27151 Rename the AArch64 tuning option and related functions to enable the
27152 Newton series for the reciprocal square root to reflect its
27153 approximative characteristic.
27155 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
27156 function to "aarch64_emit_approx_rsqrt".
27157 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
27158 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
27159 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
27160 (xgene1_tunings): Likewise.
27161 (use_rsqrt_p): Likewise.
27162 (aarch64_emit_swrsqrt): Use new function name.
27163 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
27164 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
27165 text explaining this option.
27166 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
27168 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27171 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27172 complain about -mallow-movmisalign without -mvsx if
27173 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
27175 2016-02-26 Joel Sherrill <joel@rtems.org>
27177 * config.gcc: Add x86_64-*-rtems*.
27178 * config/i386/rtems-64.h: New file.
27180 2016-02-26 Joel Sherrill <joel@rtems.org>
27182 * config.gcc: Add aarch64-*-rtems*.
27183 * config/aarch64/rtems.h: New file.
27185 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
27188 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
27189 shift amount using %h. Add comment.
27191 2016-02-26 Richard Biener <rguenther@suse.de>
27192 Jeff Law <law@redhat.com>
27194 PR tree-optimization/69740
27195 * cfghooks.c (remove_edge): Request loop fixups if we delete
27196 an edge that might turn an irreducible loop into a natural
27199 2016-02-26 Martin Jambor <mjambor@suse.cz>
27201 PR middle-end/69920
27202 * tree-sra.c (sra_modify_assign): Do not remove loads of
27203 uninitialized aggregates to SSA_NAMEs.
27205 2016-02-26 Richard Henderson <rth@redhat.com>
27208 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
27209 pseudo in case the target rtx matches the source of the left
27212 2016-02-26 Martin Jambor <mjambor@suse.cz>
27215 * hsa.h (hsa_type_packed_p): Declare.
27216 * hsa.c (hsa_type_packed_p): New function.
27217 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
27219 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
27220 * hsa-brig.c (emit_basic_insn): Likewise.
27222 2016-02-26 Martin Jambor <mjambor@suse.cz>
27225 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
27227 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
27229 2016-02-26 Martin Jambor <mjambor@suse.cz>
27231 * hsa.h (is_a_helper): New overload for hsa_op_immed for
27232 hsa_op_with_type operands.
27233 (hsa_unsigned_type_for_type): Declare.
27234 * hsa.c (hsa_unsigned_type_for_type): New function.
27235 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
27236 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
27237 the finalizer. Do not emit extra move.
27239 2016-02-26 Martin Jambor <mjambor@suse.cz>
27241 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
27242 atomic operations in private segment.
27244 2016-02-26 Martin Jambor <mjambor@suse.cz>
27246 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
27247 statements to wi->info. Also disallow omp simd constructs.
27248 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
27249 for not gridifying. Dump special string for omp_for.
27251 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27254 * config/aarch64/aarch64.c (aarch64_set_current_function):
27255 Save/restore target globals when switching to
27256 target_option_default_node.
27258 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27261 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
27262 Return 0 if !SHIFT_COUNT_TRUNCATED.
27264 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27265 Eric Botcazou <ebotcazou@adacore.com>
27267 PR rtl-optimization/69891
27268 * dse.c (scan_insn): If we can't figure out memset arguments
27269 or they are non-constant, call clear_rhs_from_active_local_stores.
27271 2016-02-26 Martin Liska <mliska@suse.cz>
27273 * doc/extend.texi: Mention clog10, clog10f an clog10l
27274 in Builtins section.
27276 2016-02-26 Martin Liska <mliska@suse.cz>
27278 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
27280 (resolve_args_picking_1): Likewise.
27281 * dwarf2out.h (struct GTY): Likewise.
27283 2016-02-26 Martin Liska <mliska@suse.cz>
27285 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
27286 with flag_checking.
27287 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27289 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27290 Martin Liska <mliska@suse.cz>
27292 * doc/install.texi: Mention --enable-valgrind-annotations.
27294 2016-02-26 Richard Biener <rguenther@suse.de>
27296 PR tree-optimization/69551
27297 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
27298 looking through aliases adjust DECL_PT_UID to refer to the
27299 ultimate alias target.
27301 2016-02-25 Martin Liska <mliska@suse.cz>
27303 PR middle-end/69919
27304 * alloc-pool.c (after_memory_report): New variable.
27305 * alloc-pool.h (base_pool_allocator ::release): Do not use
27306 the infrastructure if after_memory_report.
27307 * toplev.c (toplev::main): Mark after memory report.
27309 2016-02-25 Richard Biener <rguenther@suse.de>
27311 PR tree-optimization/48795
27312 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
27314 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
27317 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
27318 offloading is enabled and -fopenacc or -fopenmp is specified.
27319 (CRTOFFLOADEND): Likewise.
27320 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27321 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27322 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27323 (offload_objects_file_name): New static var.
27324 (tool_cleanup): Remove offload_objects_file_name file.
27325 (find_offloadbeginend): Replace with ...
27326 (find_crtoffloadtable): ... this.
27327 (run_gcc): Remove offload_argc and offload_argv.
27328 Get offload_objects_file_name from -foffload-objects=... option.
27329 Read names of object files with offload from this file, pass them to
27330 compile_images_for_offload_targets. Don't call find_offloadbeginend and
27331 don't pass offloadbegin and offloadend to the linker. Don't pass
27332 offload non-LTO files to the linker, because now they're not claimed.
27334 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
27337 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27338 on builtin_unreachable.
27340 2016-02-25 Jakub Jelinek <jakub@redhat.com>
27342 PR rtl-optimization/69896
27343 * regcprop.c: Include cfgrtl.h.
27344 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27345 than remembered mode, either delete it (if noop_move_p), or
27346 treat like copy_p but not noop_p instruction.
27348 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27351 * dwarf2out.c (gen_variable_die): Work around buggy LTO
27352 - allow NULL decl for Fortran DW_TAG_common_block variables.
27354 2016-02-24 Jason Merrill <jason@redhat.com>
27356 * common.opt (flifetime-dse): Add -flifetime-dse=1.
27358 2016-02-24 Richard Biener <rguenther@suse.de>
27359 Jakub Jelinek <jakub@redhat.com>
27361 PR middle-end/69760
27362 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27363 conditionally executed ops to well-defined overflow behavior.
27365 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27367 PR middle-end/69915
27368 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27371 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27373 PR rtl-optimization/69886
27374 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27375 argument. Use it when checking validity of set instructions.
27376 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27377 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27379 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27380 * store-motion.c (find_moveable_store): Update
27381 can_assign_to_reg_without_clobbers_p callsite.
27383 2016-02-24 Richard Biener <rguenther@suse.de>
27385 PR middle-end/68963
27386 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27388 (record_nonwrapping_iv): Do not fall back to the low/high bound
27389 for non-constant IV bases if the stmt is not always executed.
27391 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27393 * config/arm/arm-cores.def (cortex-a32): New entry.
27394 * config/arm/arm-tables.opt: Regenerate.
27395 * config/arm/arm-tune.md: Regenerate.
27396 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27397 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27398 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27399 for -mcpu and -mtune.
27401 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27404 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27405 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27406 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27407 (atomic_loaddi_1): Delete.
27408 (atomic_loaddi): Rewrite expander using the above changes.
27410 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27413 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27416 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27417 Richard Biener <rguenth@suse.de>
27419 PR middle-end/69909
27420 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27421 set_mem_attributes if tem is SSA_NAME which got expanded
27424 2016-02-24 Richard Biener <rguenther@suse.de>
27426 PR tree-optimization/69907
27427 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27428 end of permutations for BB vectorization.
27430 2016-02-24 Christian Bruel <christian.bruel@st.com>
27432 * config/arm/arm-c.c (arm_option_override): Initialize
27433 target_option_current_node.
27434 * config/arm/arm.c (arm_pragma_target_parse): Replace
27435 build_target_option_node call by target_option_current_node.
27436 Set target_option_current_node.
27439 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27442 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27443 define_insn_and_split to define_insn.
27444 (zero_extendqi<mode>2_dot2): Same.
27445 (extendqi<mode>2_dot): Same.
27446 (extendqi<mode>2_dot2): Same.
27448 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27450 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27451 and add bypass for AES{D,E} and AESMC pairs.
27452 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27455 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27457 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27458 series for reciprocal square root in Exynos M1.
27460 2016-02-23 Martin Sebor <msebor@redhat.com>
27463 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27464 __builtin_alloca_with_align.
27466 2016-02-23 Richard Henderson <rth@redhat.com>
27468 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27469 (ix86_register_pragmas): Remove __seg_tls.
27470 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27471 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27472 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27473 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27474 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27475 * doc/extend.texi (__seg_tls): Remove item.
27477 2016-02-23 Richard Biener <rguenther@suse.de>
27479 * alloc-pool.h (struct allocation_object): Make id member
27480 conditional on CHECKING_P again.
27481 (get_instance): Adjust.
27482 (base_pool_allocator): Likewise.
27484 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
27486 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27487 (parallelize_loops): In OpenACC kernels mode, set n_threads to
27489 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27491 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27493 2016-02-23 Richard Biener <rguenther@suse.de>
27495 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27496 * bitmap.h (struct bitmap_usage): Likewise.
27497 (bitmap_move): Declare.
27498 * bitmap.c (register_overhead): Take size_t argument.
27499 (bitmap_move): New function.
27500 * df-problems.c (df_rd_transfer_function): Use bitmap_move
27501 to properly account overhead.
27502 * tree.c (free_node): Use tree_size.
27504 2016-02-23 Jakub Jelinek <jakub@redhat.com>
27507 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27508 when inverting comparison.
27511 * common.opt (Wunreachable-code): Add Warning flag.
27513 2016-02-23 Mark Wielaard <mjw@redhat.com>
27514 Jakub Jelinek <jakub@redhat.com>
27517 * cgraphunit.c (check_global_declaration): Check main_input_filename
27518 and DECL_SOURCE_FILE are not NULL.
27520 2016-02-23 Martin Jambor <mjambor@suse.cz>
27522 PR tree-optimization/69666
27523 * tree-sra.c (sra_modify_assign): Do not attempt to create
27524 default_def replacements for unscalarizable regions.
27526 2016-02-20 Mark Wielaard <mjw@redhat.com>
27529 * cgraphunit.c (check_global_declaration): Check level of
27530 warn_unused_const_variable and main_input_filename.
27531 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27532 (-Wunused-variable): For C implies -Wunused-const-variable=1.
27533 (-Wunused-const-variable): Explain levels 1 and 2.
27535 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27538 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27539 identical arguments. Formatting and spelling fixes.
27542 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27547 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27548 and m68k-devices.def.
27549 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27550 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27552 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
27554 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27555 and HImode registers.
27557 2016-02-22 Richard Biener <rguenther@suse.de>
27559 PR tree-optimization/69882
27560 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27561 preserve permutations present because of gaps.
27562 (vect_supported_load_permutation_p): Always continue checking
27563 permutations after vect_attempt_slp_rearrange_stmts.
27565 2016-02-22 Bin Cheng <bin.cheng@arm.com>
27567 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27568 min_profitable_estimate, rather than min_profitable_iters.
27570 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27573 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27574 SImode for last match_operand.
27576 2016-02-22 Martin Liska <mliska@suse.cz>
27578 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27579 return bitsize - 1 as the return value.
27581 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
27585 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27586 Handle negative shift counts.
27587 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27588 force_reg on the shift constant.
27589 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
27590 (lshrsi3_d): Handle negative shift counts.
27592 2016-02-22 Richard Biener <rguenther@suse.de>
27593 Tom de Vries <tom@codesourcery.com>
27595 * graph.c: Include dumpfile.h.
27596 (print_graph_cfg): Split into three overloads.
27597 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27599 2016-02-22 Tom de Vries <tom@codesourcery.com>
27601 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27604 2016-02-22 Richard Biener <rguenther@suse.de>
27607 * ipa-inline-transform.c (inline_call): When not updating
27608 overall summaries adjust self size by the growth estimate.
27609 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27610 hash-set, do not update overall summaries here. Renamed from ...
27611 (inline_to_all_callers): ... this which is now wrapping the
27612 above and performing delayed overall summary update.
27613 (early_inline_small_functions): Delay updating of the overall
27616 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
27618 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27621 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27624 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
27625 :%* in %:gt() argument.
27626 (greater_than_spec_func): Adjust for expecting only numbers,
27627 if there are more than two numbers, compare the last two.
27629 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
27631 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
27632 -Wnarrowing with -std.
27634 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27637 * expr.c (store_field): Don't use bit-field path if exp is
27638 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
27639 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
27640 and the assignment can be performed by bitwise copy. Formatting
27643 PR middle-end/69838
27644 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
27645 call copy_reg_eh_region_note_forward on before and/or after sequences
27646 and remove note from insn if it no longer can throw.
27649 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
27650 if TARGET_AVX512BW.
27652 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27654 * config/s390/vector.md: Add missing commutative operand markers
27655 to the patterns which qualify for one.
27656 * config/s390/vx-builtins.md: Likewise.
27658 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27660 * config/s390/vector.md (VI, VI_QHS): Add single element vector
27661 types to mode iterators.
27662 (vec_double): ... and mode attribute.
27663 * config/s390/vx-builtins.md (non_vec_int): Likewise.
27665 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27667 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
27668 Change the predicate of op2 from nonimmediate to general and let
27669 reload fix it if necessary.
27671 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27673 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
27675 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27677 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
27680 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27682 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
27683 * config/s390/s390.c (s390_expand_vec_movstr): New function.
27684 * config/s390/s390.md ("movstr<P:mode>"): Call
27685 s390_expand_vec_movstr.
27687 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27689 * config/s390/s390.md: Add missing output modifier for operand 1
27690 to print it as address properly.
27692 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27694 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
27695 * config/s390/2964.md: New file.
27696 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
27697 of insn grouping attributes depending on the CPU level.
27698 (s390_get_unit_mask): New function.
27699 (s390_sched_score): Remove the OOO from the scheduling macros.
27700 Add loop to calculate a score for the instruction mix.
27701 (s390_sched_reorder): Likewise plus improve debug output.
27702 (s390_sched_variable_issue): Rename macros as above. Calculate
27703 the unit distances after actually scheduling an insn. Improve
27705 (s390_sched_init): Clear last_scheduled_unit_distance array.
27706 * config/s390/s390.md: Include 2964.md.
27708 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27711 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
27712 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
27713 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
27714 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
27715 *avx512f_<code>v8div16qi2_mask_1): New insns.
27717 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27720 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
27723 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
27724 earlyclobber from target. Use wF constraint for fused memory
27726 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
27728 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27729 Martin Liska <mliska@suse.cz>
27732 * cfgexpand.c (asan_sanitize_stack_p): New function.
27733 (partition_stack_vars): Use the function.
27734 (expand_stack_vars): Likewise.
27735 (defer_stack_allocation): Likewise.
27736 (expand_used_vars): Likewise.
27738 2016-02-18 Richard Biener <rguenther@suse.de>
27740 PR middle-end/69553
27741 * fold-const.c (operand_equal_p): Properly compare offsets for
27742 IMAGPART_EXPR and ARRAY_REF.
27744 2016-02-18 Nick Clifton <nickc@redhat.com>
27748 * config/arm/arm.c (arm_option_override_internal): Disable
27749 interworking if the target does not support thumb instructions.
27750 (arm_reload_in_hi): Handle the case where a register to register
27751 move needs reloading because there is no simple pattern to handle
27753 (arm_reload_out_hi): Likewise.
27755 2016-02-18 Richard Biener <rguenther@suse.de>
27757 PR middle-end/69854
27758 * match.pd: Don't use fold_binary or fold_unary for folding
27761 2016-02-17 Jakub Jelinek <jakub@redhat.com>
27764 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
27765 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
27766 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
27767 warn on gimple_no_warning_p statements.
27769 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
27771 * doc/extend.texi (C++ Attributes): Correct description of
27772 warn_unused type attribute.
27774 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27776 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
27777 correct instruction.
27779 2016-02-17 Richard Biener <rguenther@suse.de>
27781 PR rtl-optimization/69609
27782 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
27783 (find_traces_1_round): When ending a trace update cached priority
27785 (bb_to_key): Use cached priority when available.
27786 (copy_bb): Initialize cached priority.
27787 (reorder_basic_blocks_software_trace_cache): Likewise.
27789 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27792 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
27794 (aarch64_comparison_operator): Break overly long line into two.
27795 (aarch64_comparison_operation): Likewise.
27796 * config/aarch64/aarch64.md (cstorecc4): Use
27797 aarch64_comparison_operator_mode instead of
27798 aarch64_comparison_operator.
27799 (cstore<mode>4): Likewise.
27800 (aarch64_cstore<mode>): Likewise.
27801 (*cstoresi_insn_uxtw): Likewise.
27802 (cstore<mode>_neg): Likewise.
27803 (*cstoresi_neg_uxtw): Likewise.
27805 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27808 * config/arm/predicates.md (arm_comparison_operator_mode):
27810 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
27811 instead of arm_comparison_operator.
27812 (*mov_negscc): Likewise.
27813 (*mov_notscc): Likewise.
27814 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
27815 (*thumb2_mov_negscc): Likewise.
27816 (*thumb2_mov_negscc_strict_it): Likewise.
27817 (*thumb2_mov_notscc): Likewise.
27818 (*thumb2_mov_notscc_strict_it): Likewise.
27820 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
27822 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
27823 Add missing return.
27825 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
27827 * config/visium/visium.c (machine_libfunc_index): New enum.
27828 (machine_libfuncs): New structure.
27829 (visium_libfuncs): New static variable.
27830 (TARGET_INIT_LIBFUNCS): Define to...
27831 (visium_init_libfuncs): ...this. New function.
27832 (expand_block_move_4): Use the appropriate libfunc.
27833 (expand_block_move_2): Likewise.
27834 (expand_block_move_1): Likewise.
27835 (expand_block_set_4): Likewise.
27836 (expand_block_set_2): Likewise.
27837 (expand_block_set_1): Likewise.
27838 (visium_trampoline_init): Likewise.
27840 2016-02-17 Nick Clifton <nickc@redhat.com>
27842 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
27843 TI's devices.csv file as of March 2016.
27845 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
27848 * opts-global.c (handle_common_deferred_options): Introduce and
27849 initialize two global variables to remember command-line options
27850 specifying a stack-limiting register.
27851 * opts.h: Add extern declarations of the two new global variables.
27852 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
27853 variable based on the values of the two new global variables.
27855 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27858 * common.opt (Wnonnull-compare): New warning.
27859 * doc/invoke.texi (-Wnonnull): Remove text about comparison
27860 of arguments against NULL.
27861 (-Wnonnull-compare): Document.
27862 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
27863 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
27864 * passes.def (pass_warn_nonnull_compare): Add.
27865 * gimple-ssa-nonnull-compare.c: New file.
27867 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27869 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
27870 AARCH64_EXTRA_TUNE_RECIP_SQRT.
27872 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27874 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
27875 reciprocal sqrt for -mlow-precision-recip-sqrt.
27877 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27878 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27880 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
27881 always use lane loads to construct non-constant vectors.
27883 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27885 * config/aarch64/aarch64.md
27886 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
27887 constraints for operand 3.
27888 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
27890 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27891 Richard Biener <rguenther@suse.de>
27893 PR tree-optimization/69820
27894 * tree-vect-patterns.c (type_conversion_p): Return false if
27895 *orig_type is unsigned single precision or boolean.
27896 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
27899 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27901 PR rtl-optimization/69764
27902 PR rtl-optimization/69771
27903 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
27904 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
27906 2016-02-16 Richard Biener <rguenther@suse.de>
27908 PR tree-optimization/69776
27909 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
27911 (indirect_refs_may_alias_p): Likewise.
27912 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
27913 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
27914 according to tbaa_p.
27915 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
27916 (optimize_stmt): For redundant store discovery do not allow tbaa.
27918 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
27920 PR tree-optimization/69714
27921 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
27922 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
27924 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
27926 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
27927 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
27928 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
27929 * config/arc/arc.c (arc_init): Check FPU options.
27930 (get_arc_condition_code): Handle new CC_FPU* modes.
27931 (arc_select_cc_mode): Likewise.
27932 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
27933 register pair only. Allow access for ARCv2 accumulator.
27934 (gen_compare_reg): Whenever we have FPU support use FPU compare
27936 (arc_reorg): Don't generate brcc insns when FPU compare
27937 instructions are involved.
27938 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
27939 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
27940 floating point emulation.
27941 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
27942 (REVERSE_CONDITION): Add new CC_FPU* modes.
27943 (TARGET_FP_SP_BASE): Define.
27944 (TARGET_FP_DP_BASE): Likewise.
27945 (TARGET_FP_SP_FUSED): Likewise.
27946 (TARGET_FP_DP_FUSED): Likewise.
27947 (TARGET_FP_SP_CONV): Likewise.
27948 (TARGET_FP_DP_CONV): Likewise.
27949 (TARGET_FP_SP_SQRT): Likewise.
27950 (TARGET_FP_DP_SQRT): Likewise.
27951 (TARGET_FP_DP_AX): Likewise.
27952 * config/arc/arc.md (ARCV2_ACC): New constant.
27953 (type): New fpu type attribute.
27954 (SDF): Conditional iterator.
27955 (cstore<mode>, cbranch<mode>): Change expand condition.
27956 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
27957 handles FPU/FPX cases as well.
27958 * config/arc/arc.opt (mfpu): New option.
27959 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
27961 (adddf3, muldf3, subdf3): Removed.
27962 * config/arc/predicates.md (proper_comparison_operator): Recognize
27964 * config/arc/fpu.md: New file.
27965 * doc/invoke.texi (ARC Options): Document mfpu option.
27967 2016-02-16 Richard Biener <rguenther@suse.de>
27969 PR rtl-optimization/69291
27970 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
27971 noce_operand_ok check.
27973 2016-02-16 Tom de Vries <tom@codesourcery.com>
27976 * omp-low.c (simd_clone_create): Remove call to
27977 symtab->call_cgraph_insertion_hooks.
27979 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27981 PR tree-optimization/69802
27982 * tree-ssa-reassoc.c (update_range_test): If op is
27983 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
27984 op == 1 test of precision 1 integral op, otherwise handle
27985 that case as op itself. Fix up formatting.
27986 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
27989 2016-02-16 Richard Biener <rguenther@suse.de>
27991 PR tree-optimization/69586
27992 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
27993 types for conversion sources.
27995 2016-02-16 Richard Biener <rguenther@suse.de>
27997 PR middle-end/69801
27998 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
27999 mask OEP_ADDRESS_OF.
28001 2016-02-16 Alan Modra <amodra@gmail.com>
28004 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
28005 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28006 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
28008 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
28009 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
28010 (p8_fmrgow_<mode>): Likewise.
28011 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
28013 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
28014 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
28015 to use movdi_internal64. Remove op0_di.
28016 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
28018 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
28020 Add support for the FCCMP insn types
28022 * config/aarch64/aarch64.md (fccmp): Change insn type.
28023 (fccmpe): Likewise.
28024 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
28025 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
28026 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
28027 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
28028 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
28029 * config/arm/types.md (fccmps): Add new insn type.
28030 (fccmpd): Likewise.
28032 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
28034 * alias.c (get_alias_set): Fix a typo in comment.
28036 2016-02-15 Richard Biener <rguenther@suse.de>
28038 PR tree-optimization/69595
28039 * match.pd: Complete range test simplification to true.
28041 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
28043 PR rtl-optimization/69648
28044 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
28045 pic_offset_table_rtx.
28047 PR rtl-optimization/69752
28048 * ira.c (update_equiv_regs): When looking for more than a single SET,
28049 also take other side effects into account.
28051 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28053 * config/s390/s390.c (s390_function_profiler): Add a new sequence
28054 for z900+ CPUs in 31-bit mode.
28056 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28058 * common/config/s390/s390-common.c (s390_supports_split_stack):
28060 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
28061 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
28062 * config/s390/s390.c (struct machine_function): New field
28063 split_stack_varargs_pointer.
28064 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
28065 in s390_emit_prologue.
28066 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
28068 (morestack_ref): New global.
28069 (SPLIT_STACK_AVAILABLE): New macro.
28070 (s390_expand_split_stack_prologue): New function.
28071 (s390_live_on_entry): New function.
28072 (s390_va_start): Use split-stack vararg pointer if appropriate.
28073 (s390_asm_file_end): Emit the split-stack note sections.
28074 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
28075 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
28076 (UNSPECV_SPLIT_STACK_CALL): New unspec.
28077 (UNSPECV_SPLIT_STACK_DATA): New unspec.
28078 (split_stack_prologue): New expand.
28079 (split_stack_space_check): New expand.
28080 (split_stack_data): New insn.
28081 (split_stack_call): New expand.
28082 (split_stack_call_*): New insn.
28083 (split_stack_cond_call): New expand.
28084 (split_stack_cond_call_*): New insn.
28086 2016-02-15 Richard Biener <rguenther@suse.de>
28088 PR tree-optimization/69783
28089 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28090 Add trivially correct cases.
28092 2016-02-15 Tom de Vries <tom@codesourcery.com>
28095 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
28097 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
28099 2016-02-15 Richard Biener <rguenther@suse.de>
28101 PR tree-optimization/69776
28102 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
28103 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
28104 indicate whether we can use TBAA to disambiguate against stores.
28105 Use alias-set zero if not.
28106 (visit_reference_op_store): Do not use TBAA when looking up
28108 * tree-ssa-pre.c (compute_avail): Use TBAA here.
28109 (eliminate_dom_walker::before_dom_children): But not when looking
28110 up redundant stores.
28112 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
28114 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
28116 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28118 * config/i386/znver1.md
28119 (znver1_pop, znver1_pop_mem,
28120 znver1_load_imov_double_store,
28121 znver1_load_imov_direct_store,
28122 znver1_load_imov_direct_load,
28123 znver1_load_imov_double_load): Add new.
28124 (znver1_insn, znver1_insn_load): Add icmov type.
28125 (znver1_sseavx_fma,
28126 znver1_sseavx_fma_load,
28128 znver1_avx256_fma_load): Fix pipe usage.
28130 2016-02-14 Alan Modra <amodra@gmail.com>
28133 * reload.c (find_reloads_address_1): For pre/post-inc/dec
28134 with an invalid hard reg, reload just the reg not the entire
28135 pre/post-inc/dec address expression.
28137 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28140 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
28141 fixed R1_REG scratch reg.
28142 (sibcall_value_pcrel_fdpic): Likewise.
28144 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28148 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
28150 2016-02-12 Walter Lee <walt@tilera.com>
28152 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
28153 * config/tilegx/t-tilegx: Likewise.
28155 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28158 * diagnostic-show-locus.c (struct line_span): New struct.
28159 (layout::get_first_line): Delete.
28160 (layout::get_last_line): Delete.
28161 (layout::get_num_line_spans): New member function.
28162 (layout::get_line_span): Likewise.
28163 (layout::print_heading_for_line_span_index_p): Likewise.
28164 (layout::get_expanded_location): Likewise.
28165 (layout::calculate_line_spans): Likewise.
28166 (layout::m_first_line): Delete.
28167 (layout::m_last_line): Delete.
28168 (layout::m_line_spans): New field.
28169 (layout::layout): Update comment. Replace m_first_line and
28170 m_last_line with m_line_spans, replacing their initialization
28171 with a call to calculate_line_spans.
28172 (diagnostic_show_locus): When printing source lines and
28173 annotations, rather than looping over a single span
28174 of lines, instead loop over each line_span within
28175 the layout, with an inner loop over the lines within them.
28176 Call the context's start_span callback when changing line spans.
28177 * diagnostic.c (diagnostic_initialize): Initialize start_span.
28178 (diagnostic_build_prefix): Break out the building of the location
28179 part of the string into...
28180 (diagnostic_get_location_text): ...this new function, rewriting
28181 it from nested ternary expressions to a sequence of "if"
28183 (default_diagnostic_start_span_fn): New function.
28184 * diagnostic.h (diagnostic_start_span_fn): New typedef.
28185 (diagnostic_context::start_span): New field.
28186 (default_diagnostic_start_span_fn): New prototype.
28188 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28191 * gcc.c (driver::finalize): Fix cleanup of "specs".
28193 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28197 * gcc.c (driver::driver): Initialize m_option_suggestions.
28198 (driver::~driver): Clean up m_option_suggestions.
28199 (suggest_option): Convert to...
28200 (driver::suggest_option): ...this, and split out into
28201 driver::build_option_suggestions and find_closest_string.
28202 (driver::build_option_suggestions): New function, from
28203 first half of suggest_option. Special-case
28204 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
28205 the sanitizer_opts array. For options of enum types, add the
28206 various enum values to the candidate strings.
28207 (driver::handle_unrecognized_options): Remove "const".
28208 * gcc.h (driver::handle_unrecognized_options): Likewise.
28209 (driver::build_option_suggestions): New decl.
28210 (driver::suggest_option): New decl.
28211 (driver::m_option_suggestions): New field.
28212 * opts-common.c (add_misspelling_candidates): New function.
28213 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
28214 and make non-static.
28215 * opts.h (sanitizer_opts): New array decl.
28216 (add_misspelling_candidates): New function decl.
28217 * spellcheck.c (find_closest_string): New function.
28218 * spellcheck.h (find_closest_string): New function decl.
28220 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28222 PR rtl-optimization/69764
28223 PR rtl-optimization/69771
28224 * optabs.c (expand_binop_directly): For shift_optab_p, force
28225 convert_modes with VOIDmode if xop1 has VOIDmode.
28227 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
28230 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
28231 to correctly determine instrumentation thunks.
28233 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28236 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
28237 type by reference, force lhs on the call.
28240 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
28241 Compute retval and retbnd early in all cases if split_part_return_p
28242 and return_bb is not EXIT. Remove all clobber stmts and reset
28243 all debug stmts that refer to SSA_NAMEs defined in split part,
28244 except if it is retval, in that case replace the old retval with the
28245 lhs of the call to the split part.
28247 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28250 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28252 PR middle-end/66726
28253 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28254 whose result is used in PHI.
28255 (maybe_optimize_range_tests): Likewise.
28256 (final_range_test_p): Likweise.
28258 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28260 PR middle-end/66726
28261 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28262 whose result is used in PHI.
28263 (maybe_optimize_range_tests): Likewise.
28264 (final_range_test_p): Likweise.
28266 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28268 * cgraph.c: Spelling fixes - behaviour -> behavior and
28269 neighbour -> neighbor.
28270 * target.def: Likewise.
28271 * sel-sched.c: Likewise.
28272 * config/mips/mips.c: Likewise.
28273 * config/arc/arc.md: Likewise.
28274 * config/arm/cortex-a57.md: Likewise.
28275 * config/arm/arm.c: Likewise.
28276 * config/arm/neon.md: Likewise.
28277 * config/arm/arm-c.c: Likewise.
28278 * config/vms/vms-c.c: Likewise.
28279 * config/s390/s390.c: Likewise.
28280 * config/i386/znver1.md: Likewise.
28281 * config/i386/i386.c: Likewise.
28282 * config/ia64/hpux-unix2003.h: Likewise.
28283 * config/msp430/msp430.md: Likewise.
28284 * config/rx/rx.c: Likewise.
28285 * config/rx/rx.md: Likewise.
28286 * config/aarch64/aarch64-simd.md: Likewise.
28287 * config/aarch64/aarch64.c: Likewise.
28288 * config/nvptx/nvptx.c: Likewise.
28289 * config/bfin/bfin.c: Likewise.
28290 * config/cris/cris.opt: Likewise.
28291 * config/rs6000/rs6000.c: Likewise.
28292 * target.h: Likewise.
28293 * spellcheck.c: Likewise.
28294 * ira-build.c: Likewise.
28295 * tree-inline.c: Likewise.
28296 * builtins.c: Likewise.
28297 * lra-constraints.c: Likewise.
28298 * explow.c: Likewise.
28299 * hwint.h: Likewise.
28300 * targhooks.c: Likewise.
28301 * tree-vect-data-refs.c: Likewise.
28302 * expr.c: Likewise.
28303 * doc/tm.texi: Likewise.
28304 * doc/extend.texi: Likewise.
28305 * doc/install.texi: Likewise.
28306 * doc/md.texi: Likewise.
28307 * tree-ssa-tail-merge.c: Likewise.
28308 * sched-int.h: Likewise.
28309 * match.pd: Likewise.
28310 * sched-ebb.c: Likewise.
28311 * target.def (omit_struct_return_reg): Likewise.
28312 * gimple-ssa-isolate-paths.c: Likewise.
28313 (find_implicit_erroneous_behaviour): Renamed to...
28314 (find_implicit_erroneous_behavior): ... this.
28315 (find_explicit_erroneous_behaviour): Renamed to...
28316 (find_explicit_erroneous_behavior): ... this.
28317 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28319 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
28321 PR rtl-optimization/64682
28322 PR rtl-optimization/69567
28323 PR rtl-optimization/69737
28324 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28325 in I2 as well, just lose it.
28327 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28329 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28331 (aarch64_last_printed_tune_string): Likewise.
28332 (aarch64_declare_function_name): Only output .arch assembler
28333 directive if it will be different from the previously output
28334 directive. Same for .tune comment but only if -dA is set.
28335 (aarch64_start_file): New function.
28336 (TARGET_ASM_FILE_START): Define.
28338 2016-02-11 David Malcolm <dmalcolm@redhat.com>
28341 * Makefile.in (PLUGIN_HEADERS): Add params.list.
28343 2016-02-11 Jakub Jelinek <jakub@redhat.com>
28346 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28347 -Wmaybe-uninitialized warning.
28349 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
28352 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28354 2016-02-11 Richard Biener <rguenther@suse.de>
28356 PR rtl-optimization/69291
28357 * ifcvt.c (noce_try_store_flag_constants): Do not allow
28358 subexpressions affected by changing the result.
28360 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
28363 * lra-constraints.c (curr_insn_transform): Find in/out operands
28364 for secondary memory moves. Update dups.
28366 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
28368 PR tree-optimization/69652
28369 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28370 to nested loop, did source re-formatting, skip debug statements,
28371 add check on statement with volatile operand, remove dead scalar
28374 2016-02-10 Jakub Jelinek <jakub@redhat.com>
28375 Patrick Palka <ppalka@gcc.gnu.org>
28379 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28380 calls if the return type is TREE_ADDRESSABLE.
28381 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28382 * ipa-split.c (split_function): Fix doubled "we" in comment.
28383 Use void return type for the split part even if
28384 !split_point->split_part_set_retval.
28386 2016-02-10 Bin Cheng <bin.cheng@arm.com>
28388 PR tree-optimization/68021
28389 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28390 when computing the value of biv cand by itself.
28392 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28394 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28395 (cortexa57_tunings): Likewise.
28396 (cortexa72_tunings): Likewise.
28397 (arch_macro_fusion_pair_p): Add support for AES fusion.
28398 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28399 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28400 Allow virtual registers before reload so early scheduling works.
28401 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28402 correct latency and pipeline.
28403 (cortex_a57_crypto_complex): Likewise.
28404 (cortex_a57_crypto_xor): Likewise.
28405 (define_bypass): Add AES bypass.
28407 2016-02-10 Richard Biener <rguenther@suse.de>
28409 PR tree-optimization/69726
28410 * passes.def: Add DCE pass before late uninit.
28411 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28412 really fixup if-conversions job.
28414 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28416 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28417 (arm_cortex_a57_tune): Likewise.
28418 (aarch_macro_fusion_pair_p): Add support for AES fusion.
28419 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28421 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
28423 * timevar.def (TV_PHASE_DBGINFO): Delete.
28424 (TV_PHASE_CHECK_DBGINFO): Likewise.
28425 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28427 2016-02-10 Richard Biener <rguenther@suse.de>
28429 PR tree-optimization/69719
28430 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28431 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28433 2016-02-09 Andrew Pinski <apinski@cavium.com>
28436 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28437 get_vcond_mask_icode returns false.
28439 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28442 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28443 an ADDIS that adds a pointer to a large constant that sets the
28444 upper16 bits with a load operation.
28446 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28449 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28451 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28453 (vzipq_s16): Likewise.
28454 (vzipq_s32): Likewise.
28455 (vzipq_f32): Likewise.
28456 (vzipq_u8): Likewise.
28457 (vzipq_u16): Likewise.
28458 (vzipq_u32): Likewise.
28459 (vzipq_p8): Likewise.
28460 (vzipq_p16): Likewise.
28462 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28465 * config/arm/arm.c (neon_endian_lane_map): New function.
28466 (neon_vector_pair_endian_lane_map): New function.
28467 (arm_evpc_neon_vuzp): Allow for big endian lane order.
28468 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28470 (vuzpq_s16): Likewise.
28471 (vuzpq_s32): Likewise.
28472 (vuzpq_f32): Likewise.
28473 (vuzpq_u8): Likewise.
28474 (vuzpq_u16): Likewise.
28475 (vuzpq_u32): Likewise.
28476 (vuzpq_p8): Likewise.
28477 (vuzpq_p16): Likewise.
28479 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
28482 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28485 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
28487 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28488 truncate const_int operand 1 to QImode.
28490 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
28492 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28493 corresponding to an abnormal edge.
28495 2016-02-09 Tom de Vries <tom@codesourcery.com>
28497 PR tree-optimization/69599
28498 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28500 (find_func_aliases_for_builtin_call, find_func_clobbers)
28501 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
28504 2016-02-09 Richard Biener <rguenther@suse.de>
28506 PR tree-optimization/69715
28507 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28508 LHS on calls as non-rewritable.
28510 2016-02-09 Tom de Vries <tom@codesourcery.com>
28513 * lto-wrapper.c (append_diag_options): New function.
28514 (compile_offload_image): Call append_diag_options.
28516 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
28519 * doc/extend.texi (Flag Output Operands): Correct sectioning.
28520 Minor copy-edit to fix verb tenses.
28522 2016-02-08 Jakub Jelinek <jakub@redhat.com>
28524 PR tree-optimization/69209
28525 * ipa-split.c (split_function): If split part is not
28526 returning retval, retval has gimple type but is not
28527 gimple value, force it into a SSA_NAME first.
28529 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
28531 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28534 2016-02-08 Jason Merrill <jason@redhat.com>
28537 * convert.c (convert_to_integer_1): Check dofold on truncation
28539 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28540 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28541 Rename from *_nofold.
28542 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28543 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28545 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
28548 * tree.c (build_common_tree_nodes): Remove short_double argument.
28549 All callers changed.
28550 * tree.h (build_common_tree_nodes): Adjust declaration.
28551 * doc/invoke.texi (-fshort-double): Remove documentation.
28552 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28553 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28554 * lto-wrapper.c (merge_and_complain, append_compiler_options)
28555 (append_linker_options): Don't handle OPT_fshort_double.
28557 PR rtl-optimization/68730
28558 * lra-remat.c (insn_to_cand_activation): New static variable.
28559 (lra_remat): Allocate and free it.
28560 (create_cand): New arg activation. Initialize a field in
28561 insn_to_cand_activation if it is nonnull.
28562 (create_cands): Pass the activation insn to create_cand when making
28563 a candidate involving an output reload. Reorganize code a little.
28564 (do_remat): Keep track of active status of candidates in a separate
28567 2016-02-08 Richard Biener <rguenther@suse.de>
28569 PR tree-optimization/69719
28570 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28571 Properly use absolute of the difference of the two offsets to
28572 compare or adjust the segment length.
28574 2016-02-08 Richard Biener <rguenther@suse.de>
28575 Jeff Law <law@redhat.com>
28578 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28579 types for anonymous SSA names.
28581 2016-02-08 Richard Biener <rguenther@suse.de>
28583 PR rtl-optimization/69274
28584 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28586 2016-02-08 Jeff Law <law@redhat.com>
28588 PR tree-optimization/65917
28589 * tree-ssa-dom.c (record_temporary_equivalences): Record both
28590 equivalences from if (x == y) style conditionals.
28591 (loop_depth_of_name): Remove.
28592 (record_equality): Remove loop depth check.
28593 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28594 (const_and_copies::record_const_or_copy_raw): New member function.
28595 * tree-ssa-scopedtables.c
28596 (const_and_copies::record_const_or_copy_raw): New, factored out of
28597 (const_and_copies::record_const_or_copy): Call new member function.
28599 2016-02-05 Jeff Law <law@redhat.com>
28601 PR tree-optimization/68541
28602 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28603 (count_stmts_in_block): New function.
28604 (poor_ifcvt_candidate_code): Likewise.
28605 (is_feasible_trace): Add some heuristics to determine when path
28606 splitting is profitable.
28607 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28608 is a diamond with a single exit.
28610 2016-02-05 Martin Sebor <msebor@redhat.com>
28613 * doc/invoke.texi: Update -Wplacement-new to take an optional
28616 2016-02-06 Richard Henderson <rth@redhat.com>
28619 * tree.c (tree_nop_conversion_p): Do not strip casts into or
28620 out of non-standard address spaces.
28622 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28624 PR rtl-optimization/69691
28625 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
28627 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
28629 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
28630 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
28631 (*ieee128_mfvsrd_64bit): Likewise.
28632 (*ieee128_mfvsrd_32bit): Likewise.
28634 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
28638 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28640 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28641 instrumented_version.
28643 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
28645 * doc/invoke.texi (Optimize Options): In table of --param options
28646 rename second occurrence of tracer-min-branch-ratio to
28647 tracer-min-branch-probability, rename
28648 tracer-min-branch-ratio-feedback to
28649 tracer-min-branch-probability-feedback and clarify description,
28650 rename sched-spec-state-edge-prob-cutoff to
28651 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
28652 to selsched-insns-to-rename, rename lto-minpartition to
28653 lto-min-partition, delete reorder-blocks-duplicate and
28654 reorder-blocks-duplicate-feedback.
28656 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28658 * config/s390/s390.c (s390_register_info_set_ranges): Remove
28661 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
28663 * doc/extend.texi: S/390: Correct some typos.
28665 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28667 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
28669 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28672 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
28673 (s390_register_info_gprtofpr): Use new macros above.
28674 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
28676 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
28677 its name. Adjust restore and save gpr ranges.
28678 (s390_register_info_set_ranges): New function.
28679 (s390_register_info): Use new macros above. Call
28680 s390_register_info_set_ranges.
28681 (s390_optimize_register_info): Likewise.
28682 (s390_hard_regno_rename_ok): Use new macros.
28683 (s390_hard_regno_scratch_ok): Likewise.
28684 (s390_emit_epilogue): Likewise.
28685 (s390_can_use_return_insn): Likewise.
28686 (s390_optimize_prologue): Likewise.
28687 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
28689 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28692 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
28694 (ix86_option_override_internal): Disable TARGET_STV even for
28695 -m{incoming,preferred}-stack-boundary=3.
28697 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28699 * config.gcc: Mark deprecated rtems targets as obsolete.
28701 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
28703 PR rtl-optimization/64682
28704 PR rtl-optimization/69567
28705 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
28706 before I2 only if the register is both used and set in I2.
28708 2016-02-04 DJ Delorie <dj@redhat.com>
28710 * config/msp430/msp430.c (msp430_start_function): Add function type.
28712 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28715 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
28717 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
28719 PR rtl-optimization/69577
28721 2015-10-29 Richard Henderson <rth@redhat.com>
28725 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
28726 sse check to the exact conditions of PR 67609.
28728 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
28731 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
28732 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
28733 not allowed into the traditional Altivec registers.
28734 (movtd_64bit_nodm): Likewise.
28735 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
28737 2016-02-04 David Malcolm <dmalcolm@redhat.com>
28739 * config/aarch64/cortex-a57-fma-steering.c
28740 (aarch64_register_fma_steering): Remove "static" from arguments
28743 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
28746 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
28747 twice when complex.
28749 2016-02-04 Mike Frysinger <vapier@gentoo.org>
28751 * doc/invoke.texi: Delete -mno-fma4.
28753 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
28755 PR rtl-optimization/69577
28756 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
28757 (find_subregs_of_mode): Update accordingly. Iterate over partial
28760 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
28762 * config/arm/arm-protos.h (neon_reinterpret): Remove.
28763 * config/arm/arm.c (neon_reinterpret): Remove.
28764 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
28765 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
28766 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
28767 vreinterpretti): Remove.
28768 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
28769 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
28770 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
28771 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
28772 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
28773 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
28774 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
28775 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
28776 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
28777 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
28778 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
28779 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
28780 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
28781 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
28782 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
28783 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
28784 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
28785 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
28786 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
28787 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
28788 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
28789 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
28790 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
28791 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
28792 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
28793 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
28794 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
28795 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
28796 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
28797 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
28798 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
28799 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
28800 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
28801 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
28802 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
28803 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
28804 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
28805 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
28806 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
28807 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
28808 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
28809 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
28810 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
28811 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
28812 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
28813 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
28814 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
28815 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
28816 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
28817 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
28818 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
28819 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
28820 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
28821 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
28822 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
28823 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
28824 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
28825 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
28826 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
28827 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
28828 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
28829 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
28830 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
28831 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
28832 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
28833 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
28834 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
28835 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
28836 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
28837 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
28838 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
28839 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
28840 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
28841 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
28842 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
28843 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
28844 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
28845 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
28846 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
28847 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
28848 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
28849 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
28850 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
28851 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
28852 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
28853 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
28854 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
28855 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
28856 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
28857 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
28858 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
28859 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
28860 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
28861 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
28862 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
28863 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
28864 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
28865 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
28866 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
28867 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
28868 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
28869 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
28870 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
28872 2016-02-04 Martin Liska <mliska@suse.cz>
28875 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
28876 that are gimple_store_p.
28877 (maybe_instrument_call): Likewise.
28879 2016-02-04 Bin Cheng <bin.cheng@arm.com>
28881 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
28882 register scaling out of memory reference and comment why.
28884 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28888 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
28889 folding the source of a SET.
28891 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28895 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
28896 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
28898 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
28902 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
28905 2016-02-04 Christian Bruel <christian.bruel@st.com>
28907 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
28908 * config/arm/arm.c (arm_set_current_function): Likewise.
28910 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28911 Ilya Enkovich <enkovich.gnu@gmail.com>
28912 H.J. Lu <hongjiu.lu@intel.com>
28915 * config/i386/i386.c (convert_scalars_to_vector): Remove
28916 stack alignment fixes.
28917 (ix86_option_override_internal): Disable TARGET_STV if stack
28918 might not be aligned enough.
28919 (ix86_minimum_alignment): Assert that TARGET_STV is false.
28921 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
28923 * config/i386/x86-tune.def: Disable default prefetching
28926 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28927 Vladimir Makarov <vmakarov@redhat.com>
28930 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
28931 in validating fused toc addresses.
28933 2016-02-03 Jakub Jelinek <jakub@redhat.com>
28936 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
28937 range->m_caret fields if range->m_show_caret_p is false.
28940 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28941 Force oldval into register if it does not satisfy reg_or_short_operand
28942 predicate. Fix up formatting.
28944 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
28945 Alexandre Oliva <aoliva@redhat.com>
28948 * lra-constraints.c (simplify_operand_subreg): Check additionally
28949 address validity after potential reloading.
28950 (process_address_1): Check insns validity. In case of failure do
28953 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
28956 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
28959 2016-02-02 Jakub Jelinek <jakub@redhat.com>
28961 * wide-int.cc (canonize_uhwi): New function.
28962 (wi::divmod_internal): Use it.
28964 2016-02-02 James Norris <jnorris@codesourcery.com>
28966 * gimplify.c (omp_notice_variable): Add usage check.
28968 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
28970 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
28971 like LE, GE, LT, GT when emitting relational operator.
28973 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28975 * ira-costs.c (find_costs_and_classes): Add extra argument.
28976 * target.def (ira_change_pseudo_allocno_class): Add parameter.
28977 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
28978 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
28979 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
28980 Add best_class parameter, and return it if not ALL_REGS.
28981 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
28983 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
28984 Update target hook.
28986 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28988 * config/aarch64/aarch64.c
28989 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
28990 (aarch64_ira_change_pseudo_allocno_class): New function.
28992 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
28995 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
28997 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28999 * config/avr/avr.c (avr_option_override): Set
29000 PARAM_ALLOW_STORE_DATA_RACES to 1.
29002 2016-02-02 Richard Biener <rguenther@suse.de>
29004 PR tree-optimization/69595
29005 * match.pd: Add range test simplifications to true/false.
29007 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
29009 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
29010 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
29013 2016-02-02 Richard Biener <rguenther@suse.de>
29015 PR tree-optimization/69606
29016 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
29017 info on the result before moving a stmt.
29019 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
29021 PR middle-end/68542
29022 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
29023 branch with vector comparison.
29024 * config/i386/sse.md (VI48_AVX): New mode iterator.
29025 (define_expand "cbranch<mode>4): Add support for conditional branch
29026 with vector comparison.
29027 * tree-vect-loop.c (optimize_mask_stores): New function.
29028 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
29029 has_mask_store field of vect_info.
29030 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
29031 vectorized loops having masked stores after vec_info destroy.
29032 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
29033 correspondent macros.
29034 (optimize_mask_stores): Add prototype.
29036 2016-02-02 Alan Modra <amodra@gmail.com>
29039 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
29042 2016-02-02 Alan Modra <amodra@gmail.com>
29045 * config/rs6000/rs6000.c (need_toc_init): New var, set it
29046 whenever toc_label_name used.
29047 (rs6000_file_start): Don't set up toc section here,
29048 (rs6000_output_function_epilogue): do so here instead,
29049 (rs6000_xcoff_file_start): and here.
29050 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
29051 (load_toc_aix_di): Likewise.
29053 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29055 PR rtl-optimization/69592
29056 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
29057 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
29058 (num_sign_bit_copies_binary_arith_p): New inline function.
29059 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
29061 2016-02-01 Jeff Law <law@redhat.com>
29063 PR tree-optimization/69580
29064 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
29065 * tree-ssa-threadbackward.c
29066 (fsm_find_control_statement_thread_paths): Do not try to walk
29067 through large PHI nodes.
29069 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29071 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
29072 when count is incremented above limit, don't analyze further
29075 * omp-low.c (oacc_parse_default_dims): Avoid
29076 -Wsign-compare warning, make sure value fits into int
29077 rather than just unsigned int.
29079 2016-02-01 Bin Cheng <bin.cheng@arm.com>
29081 PR tree-optimization/67921
29082 * fold-const.c (split_tree): New parameters. Convert pointer
29083 type variable part to proper type before negating.
29084 (fold_binary_loc): Pass new arguments to split_tree.
29086 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
29088 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
29089 (nvptx_goacc_validate_dims): Extend to handle global defaults.
29090 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
29091 * doc/tm.texti: Rebuilt.
29092 * doc/invoke.texi (fopenacc-dim): Document.
29093 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
29094 (append_compiler_options): Likewise.
29095 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
29096 (oacc_parse_default_dims): New.
29097 (oacc_validate_dims): Add USED arg. Select non-unity default when
29099 (oacc_loop_fixed_partitions): Return mask of used partitions.
29100 (oacc_loop_auto_partitions): Emit dump info.
29101 (oacc_loop_partition): Return mask of used partitions.
29102 (execute_oacc_device_lower): Parse default dimension arg. Adjust
29103 loop partitioning and validation calls.
29105 2016-02-01 Richard Biener <rguenther@suse.de>
29107 PR middle-end/69556
29108 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
29110 2016-02-01 Richard Biener <rguenther@suse.de>
29112 PR tree-optimization/69574
29113 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
29114 of asserting return chrec_dont_know.
29116 2016-02-01 Martin Liska <mliska@suse.cz>
29118 * mem-stats-traits.h: Add copyright header.
29119 * mem-stats.h: Likewise.
29121 2016-02-01 Richard Biener <rguenther@suse.de>
29123 PR tree-optimization/69579
29124 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
29125 Do not propagate through abnormal PHI results.
29127 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
29129 * postreload.c (reload_cse_simplify): Remove dead code.
29131 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29133 PR rtl-optimization/69570
29134 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
29135 if there is more than one set, not if there is a single set.
29137 2016-02-01 Richard Henderson <rth@redhat.com>
29140 * combine.c (make_compound_operation): When looking through a
29141 subreg, make sure to re-extend to the width of the outer mode.
29143 2016-01-30 Jakub Jelinek <jakub@redhat.com>
29145 PR tree-optimization/69546
29146 * wide-int.cc (wi::divmod_internal): For unsigned division
29147 where both operands fit into uhwi, if o1 is 1 and o0 has
29148 msb set, if divident_prec is larger than bits per hwi,
29149 clear another quotient word and return 2 instead of 1.
29150 Similarly for remainder with msb in HWI set, if dividend_prec
29151 is larger than bits per hwi.
29153 2016-01-29 Martin Jambor <mjambor@suse.cz>
29155 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
29156 Use short lowercase names.
29157 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
29158 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
29159 acq_rel one. Protect warning agains segfaults if
29160 get_memory_order_name returns NULL.
29161 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
29162 with release semantics. Do not warn if get_memory_order already did.
29163 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
29164 semantics. Fix check for relaxed or acquire semantics. Do not warn
29165 if get_memory_order already did.
29167 2016-01-29 Sebastian Pop <s.pop@samsung.com>
29169 * doc/install.texi: Document that isl-0.16 is supported.
29171 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
29174 * config/i386/constraints.md (Bm): Describe as special memory
29176 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
29177 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29178 * genpreds.c (struct constraint_data): Add is_special_memory.
29179 (have_special_memory_constraints, special_memory_start): New
29181 (special_memory_end): Ditto.
29182 (add_constraint): Add new arg is_special_memory. Add code to
29183 process its true value. Update have_special_memory_constraints.
29184 (process_define_constraint): Pass the new arg.
29185 (process_define_register_constraint): Ditto.
29186 (choose_enum_order): Process special memory.
29187 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
29188 function insn_extra_special_memory_constraint.
29189 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29190 * gensupport.c (process_rtx): Process
29191 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29192 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
29193 * ira-lives.c (single_reg_class): Use
29194 insn_extra_special_memory_constraint.
29195 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
29196 * lra-constraints.c (process_alt_operands): Ditto.
29197 (curr_insn_transform): Use insn_extra_special_memory_constraint.
29198 * recog.c (asm_operand_ok, preprocess_constraints): Process
29200 * reload.c (find_reloads): Ditto.
29201 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
29202 * stmt.c (parse_input_constraint): Use
29203 insn_extra_special_memory_constraint.
29205 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29208 * lra-splill.c (lra_final_code_change): Revert r229087 by
29209 removing all sub-registers.
29211 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
29214 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
29216 2016-01-29 Jakub Jelinek <jakub@redhat.com>
29219 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
29220 SSE1, copy target into the temporary reg first before recursing
29223 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29225 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
29228 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29230 * ginclude/stdarg.h: Test __cplusplus instead of
29231 __GXX_EXPERIMENTAL_CXX0X__.
29233 2016-01-29 Richard Biener <rguenther@suse.de>
29235 PR tree-optimization/69547
29236 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
29237 Do not mark clobbers necessary.
29238 (mark_all_reaching_defs_necessary_1): Likewise.
29240 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29242 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
29243 declaration name with %qs and print it in both error messages.
29244 Also fix indentation.
29246 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29249 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
29250 trailing blank line from error message.
29252 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29255 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
29258 2016-01-29 Richard Biener <rguenther@suse.de>
29260 PR middle-end/69537
29261 * match.pd: Allow all integral types when simplifying a
29262 widening or sign-changing conversion.
29264 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29266 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
29267 back to setting codegen_error to fail codegen.
29269 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
29272 * config/i386/constraints.md (C): Only accept constant zero operand.
29273 (BC): New constraint.
29274 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
29275 instead of C constraint.
29276 * doc/md.texi (Machine Constraints): Update description
29279 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
29282 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
29284 2016-01-28 Jakub Jelinek <jakub@redhat.com>
29286 PR middle-end/69542
29287 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
29290 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
29292 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
29293 branches if using guessed profile.
29295 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
29297 * graphite-optimize-isl.c (optimize_isl): Fix dump.
29299 2016-01-28 Richard Henderson <rth@redhat.com>
29302 * config/aarch64/aarch64-modes.def (CC_Cmode): New
29303 * config/aarch64/aarch64-protos.h: Update.
29304 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
29305 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
29306 (aarch64_get_condition_code_1): Handle CC_Cmode.
29307 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
29308 (*add<mode>3_compareC_cconly_imm): New.
29309 (*add<mode>3_compareC_cconly): New.
29310 (*add<mode>3_compareC_imm): New.
29311 (add<mode>3_compareC): New.
29312 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
29313 to be first. Use aarch64_carry_operation.
29314 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
29315 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29316 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29317 (subti3): Use subdi3_compare1.
29318 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29319 (sub<mode>3_compare1): New.
29320 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29321 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29322 (*subsi3_carryin_uxtw): Likewise.
29323 (*ngc<mode>, *ngcsi_uxtw): Likewise.
29324 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29325 * config/aarch64/iterators.md (DWI): New.
29326 * config/aarch64/predicates.md (aarch64_carry_operation): New.
29327 (aarch64_borrow_operation): New.
29329 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29331 * graphite-optimize-isl.c (optimize_isl): Print a different debug
29332 message when isl does not return a valid schedule.
29334 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29336 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29337 Remove comments from class declarations: they are already in the code
29340 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29342 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29344 (ternary_op_to_tree): Same.
29345 (unary_op_to_tree): Same.
29346 (nary_op_to_tree): Same.
29347 (gcc_expression_from_isl_expr_op): Same.
29348 (gcc_expression_from_isl_expression): Same.
29349 (graphite_create_new_loop): Same.
29350 (graphite_create_new_loop_guard): Same.
29351 (build_iv_mapping): Same.
29352 (graphite_create_new_guard): Same.
29353 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29354 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29356 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29358 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29359 instead of setting codegen_error to fail codegen.
29361 2016-01-28 Jason Merrill <jason@redhat.com>
29363 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29365 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29367 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29368 Remove CONST_INT_P check in CCMP cost calculation.
29370 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29372 * config/aarch64/aarch64.c (generic_vector_cost):
29373 Set vec_permute_cost.
29374 (cortexa57_vector_cost): Likewise.
29375 (exynosm1_vector_cost): Likewise.
29376 (xgene1_vector_cost): Likewise.
29377 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29378 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29379 Add vec_permute_cost entry.
29381 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29383 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29385 (add<mode>3_compare0): Likewise.
29386 (addsi3_compare0_uxtw): Likewise.
29387 (add<mode>3nr_compare0): Likewise.
29388 (compare_neg<mode>): Likewise.
29389 (<optab><mode>3): Likewise.
29391 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
29393 * tree-vect-stmts.c (vectorizable_comparison): Add
29394 NULL check for vectype.
29396 2016-01-28 Richard Biener <rguenther@suse.de>
29398 PR tree-optimization/69466
29399 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29400 Account for PHIs we couldn't duplicate.
29402 2016-01-28 Martin Liska <mliska@suse.cz>
29405 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29406 instead of ENABLE_VALGRIND_CHECKING.
29408 2016-01-27 Richard Henderson <rth@redhat.com>
29411 * lra-remat.c (subreg_regs): New.
29412 (dump_candidates_and_remat_bb_data): Dump it.
29413 (operand_to_remat): Reject if operand in subreg_regs.
29414 (set_bb_regs): Collect subreg_regs.
29415 (lra_remat): Init and free subreg_regs. Compute
29416 calculate_local_reg_remat_bb_data before create_cands.
29418 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
29421 * config/i386/i386.c (ix86_update_stack_boundary): Don't
29422 change stack_alignment_needed for __tls_get_addr call.
29424 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
29426 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29428 2016-01-27 Jeff Law <law@redhat.com>
29430 PR tree-optimization/68398
29431 PR tree-optimization/69196
29432 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29433 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29434 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29435 Only count PHIs in the last block in the path. The others will
29436 const/copy propagate away. Add heuristic to allow more irreducible
29437 subloops to be created when it is likely profitable to do so.
29439 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29440 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
29441 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
29443 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29446 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29447 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29448 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29449 * tree-streamer-in.c: Include asan.h.
29450 (streamer_get_builtin_tree): For builtins in sanitizer
29451 range call initialize_sanitizer_builtins and retry.
29453 2016-01-27 Ian Lance Taylor <iant@google.com>
29455 * common.opt (fkeep-gc-roots-live): New undocumented option.
29456 * tree-ssa-loop-ivopts.c (add_candidate_1): If
29457 -fkeep-gc-roots-live, skip pointers.
29458 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29461 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
29464 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29465 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29467 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
29470 * configure.ac: NetBSD provides SSP in its C library.
29471 * configure: Updated.
29473 2016-01-27 Richard Biener <rguenther@suse.de>
29475 PR tree-optimization/69166
29476 * tree-vect-loop.c (vect_is_simple_reduction): Always check
29477 reduction code for commutativity / associativity.
29479 2016-01-27 Martin Jambor <mjambor@suse.cz>
29481 PR tree-optimization/69355
29482 * tree-sra.c (analyze_access_subtree): Correct hole detection when
29483 total_scalarization fails.
29485 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
29487 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29490 2016-01-27 Christian Bruel <christian.bruel@st.com>
29493 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29494 Move arm_reset_previous_fndecl and set_target_option_current_node in
29495 the conditional part. Call save_restore_target_globals.
29496 * config/arm/arm.c (arm_set_current_function):
29497 Refactor to better support #pragma target and attribute mix.
29498 Call save_restore_target_globals.
29499 * config/arm/arm-protos.h (save_restore_target_globals): New function.
29501 2016-01-27 Martin Liska <mliska@suse.cz>
29503 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29504 reference for an HSA kernel and its host function.
29506 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29508 PR tree-optimization/69399
29509 * wide-int.h (wi::lrshift): For larger precisions, only
29510 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29512 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
29514 * config/arc/predicates.md (proper_comparison_operator): Reject
29515 constant-constant comparison.
29517 2016-01-26 Tom de Vries <tom@codesourcery.com>
29519 PR tree-optimization/69110
29520 * tree-data-ref.c (initialize_data_dependence_relation): Handle
29521 DR_NUM_DIMENSIONS == 0.
29523 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29524 Sebastian Pop <s.pop@samsung.com>
29526 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29527 isl_ast_op_cond and isl_ast_op_select.
29528 (gcc_expression_from_isl_expr_op): Same.
29530 2016-01-26 Jason Merrill <jason@redhat.com>
29533 * tree.c (recompute_constructor_flags): Split out from
29535 (verify_constructor_flags): New.
29536 * tree.h: Declare them.
29538 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
29540 PR rtl-optimization/69217
29541 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29542 are no TYPE_FIELDS set for the record type.
29544 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29547 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29548 toc_label_name unconditionally.
29549 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29550 SYMBOL_REF string. Use toc_label_name instead of constructing
29552 (rs6000_elf_declare_function_name): Use toc_label_name instead of
29553 constructing LCTOC1.
29555 2016-01-26 Martin Sebor <msebor@redhat.com>
29558 * doc/extend.texi (Common Type Attributes): Move text that talks about
29559 attribute packed from attribute aligned to the section discussing
29560 the former attribute for clarity.
29562 2016-01-26 Richard Henderson <rth@redhat.com>
29564 PR middle-end/60908
29565 * trans-mem.c (tm_region_init): Mark entry block as visited.
29567 2016-01-26 David Malcolm <dmalcolm@redhat.com>
29570 * diagnostic-show-locus.c (layout::print_source_line): Replace
29571 call to pp_newline with call to layout::print_newline.
29572 (layout::print_annotation_line): Likewise.
29573 (layout::move_to_column): Likewise.
29574 (layout::print_any_fixits): After printing any fixits, print a
29575 trailing newline, if necessary.
29576 (layout::print_newline): New method, resetting any colorization
29578 (diagnostic_show_locus): Move the pp_newline to before the
29579 early bailout. Remove dummy block enclosing the layout instance.
29580 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29581 of pp_newline_and_flush with pp_flush.
29582 (diagnostic_append_note): Delete use of pp_newline.
29583 (diagnostic_append_note_at_rich_loc): Delete.
29584 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29585 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29586 when newline characters are added to the buffer.
29588 2016-01-26 Michael Matz <matz@suse.de>
29590 * configure.ac (ac_cv_std_swap_in_utility): New test.
29591 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29592 * configure: Regenerate.
29593 * config.in: Regenerate.
29595 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
29597 * config/arc/arc.md (cstoresi4): Force operand into register.
29598 (arcset<code>): Fix predicate.
29599 (arcsetltu): Likewise.
29600 (arcsetgeu): Likewise.
29601 (arcsethi): Likewise.
29602 (arcsetls): Likewise.
29604 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29606 PR tree-optimization/69483
29607 * gimple-fold.c (canonicalize_constructor_val): Return NULL
29608 if base has error_mark_node type.
29610 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
29613 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29614 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29616 (vget_lane_f16): Handle big-endian.
29617 (vgetq_lane_f16): Likewise.
29618 (vset_lane_f16): Likewise.
29619 (vsetq_lane_f16): Likewise.
29620 * config/arm/iterators.md (VQXMOV): Add V8HF.
29621 (VDQ): Add V4HF and V8HF.
29622 (V_reg): Handle V4HF and V8HF.
29623 (Is_float_mode): Likewise.
29624 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
29625 neon_vdup_nv8hf): New patterns.
29626 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
29627 Use VD_LANE iterator.
29628 (neon_vld1_dup<mode>): Use VQ2 iterator.
29630 2016-01-26 Nathan Sidwell <nathan@acm.org>
29632 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
29633 (set_oacc_fn_attrib): Add IS_KERNEL arg.
29634 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
29635 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
29636 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
29637 (oacc_validate_dims): Add LEVEL arg, don't return level.
29638 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
29639 oacc_validate_dims.
29640 (execute_oacc_device_lower): Adjust, add more dump output.
29641 * tree-ssa-loop.c (gate_oacc_kernels): Use
29642 oacc_fn_attrib_kernels_p.
29643 * tree-parloops.c (create_parallel_loop): Adjust
29644 set_oacc_fn_attrib call.
29646 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29649 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
29650 (append_compiler_options): Handle -fcilkplus.
29651 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
29653 2016-01-26 Nick Clifton <nickc@redhat.com>
29656 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
29657 been marked as DECL_ONE_ONLY but we do not the means to make it
29658 so, then do not allow it to bind locally.
29660 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29663 * opts.h (parse_sanitizer_options): New prototype.
29664 * opts.c (sanitizer_opts): New array.
29665 (parse_sanitizer_options): New function.
29666 (common_handle_option): Use parse_sanitizer_options.
29668 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
29671 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
29672 alignment adjustment to ...
29673 (ix86_update_stack_boundary): Here. Don't over-align stack for
29675 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
29676 if __tls_get_addr is called.
29678 2016-01-26 Christian Bruel <christian.bruel@st.com>
29680 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
29682 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
29684 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
29686 2016-01-26 Richard Biener <rguenther@suse.de>
29688 PR middle-end/69467
29689 * match.pd: Guard X * CST CMP 0 pattern with single_use.
29691 2016-01-26 Richard Biener <rguenther@suse.de>
29693 PR tree-optimization/69452
29694 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
29695 (move_computations_dom_walker::before_dom_children): Rename
29697 (move_computations_worker): This.
29698 (move_computations): Perform an RPO rather than a DOM walk.
29700 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29703 * combine.c (combine_instructions): For REG_EQUAL note with
29704 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
29705 to the underlying register.
29706 * doc/rtl.texi (REG_EQUAL): Document the behavior of
29707 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
29709 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
29712 * config/aarch64/aarch64-builtins.c
29713 (aarch64_init_simd_builtin_types): Do not set structural
29714 equality to __Poly{8,16,64,128}_t types.
29716 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
29718 PR tree-optimization/69400
29719 * wide-int.cc (wi_pack): Take the precision as argument and
29720 perform canonicalization here rather than in the callers.
29721 Use the main loop to handle all full-width HWIs. Add a
29722 zero HWI if in_len isn't a full result.
29723 (wi::divmod_internal): Update accordingly.
29724 (wi::mul_internal): Likewise. Simplify.
29726 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29727 Sebastian Pop <s.pop@samsung.com>
29729 * graphite-poly.c (apply_poly_transforms): Simplify.
29730 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
29731 (print_isl_map): Same.
29732 (print_isl_union_map): Same.
29733 (print_isl_schedule): New.
29734 (debug_isl_schedule): New.
29735 * graphite-dependences.c (scop_get_reads): Do not call
29736 isl_union_map_add_map that is undocumented isl functionality.
29737 (scop_get_must_writes): Same.
29738 (scop_get_may_writes): Same.
29739 (scop_get_original_schedule): Remove.
29740 (scop_get_dependences): Do not call isl_union_map_compute_flow that
29741 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
29742 (compute_deps): Remove.
29743 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
29744 (debug_schedule_ast): New.
29745 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
29746 set_separate_option.
29747 (graphite_regenerate_ast_isl): Add dump.
29748 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
29749 from scop->transformed_schedule.
29750 (graphite_regenerate_ast_isl): Add more dump.
29751 * graphite-optimize-isl.c (optimize_isl): Set
29752 scop->transformed_schedule. Check whether schedules are equal.
29753 (apply_poly_transforms): Move here.
29754 * graphite-poly.c (apply_poly_transforms): ... from here.
29755 (free_poly_bb): Static.
29756 (free_scop): Static.
29757 (pbb_number_of_iterations_at_time): Remove.
29758 (print_isl_ast): New.
29759 (debug_isl_ast): New.
29760 (debug_scop_pbb): New.
29761 * graphite-scop-detection.c (print_edge): Move.
29762 (print_sese): Move.
29763 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
29764 (build_scop_scattering): Remove.
29765 (create_pw_aff_from_tree): Assert instead of bailing out.
29766 (add_condition_to_pbb): Remove unused code, do not fail.
29767 (add_conditions_to_domain): Same.
29768 (add_conditions_to_constraints): Remove.
29769 (build_scop_context): New.
29770 (add_iter_domain_dimension): New.
29771 (build_iteration_domains): Initialize pbb->iterators.
29772 Call add_conditions_to_domain.
29775 (index_outermost_in_loop): New.
29776 (index_pbb_in_loop): New.
29777 (outermost_pbb_in): New.
29778 (add_in_sequence): New.
29779 (add_outer_projection): New.
29780 (outer_projection_mupa): New.
29781 (add_loop_schedule): New.
29782 (build_schedule_pbb): New.
29783 (build_schedule_loop): New.
29784 (embed_in_surrounding_loops): New.
29785 (build_schedule_loop_nest): New.
29786 (build_original_schedule): New.
29787 (build_poly_scop): Call build_original_schedule.
29788 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
29789 (free_poly_dr): Remove.
29790 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
29791 (free_poly_bb): Remove.
29792 (debug_loop_vec): Remove.
29793 (print_isl_ast): Declare.
29794 (debug_isl_ast): Declare.
29795 (scop_do_interchange): Remove.
29796 (scop_do_strip_mine): Remove.
29797 (scop_do_block): Remove.
29798 (flatten_all_loops): Remove.
29799 (optimize_isl): Remove.
29800 (pbb_number_of_iterations_at_time): Remove.
29801 (debug_scop_pbb): Declare.
29802 (print_schedule_ast): Declare.
29803 (debug_schedule_ast): Declare.
29804 (struct scop): Remove schedule. Add original_schedule,
29805 transformed_schedule.
29806 (free_gimple_poly_bb): Remove.
29807 (print_generated_program): Remove.
29808 (debug_generated_program): Remove.
29809 (unify_scattering_dimensions): Remove.
29810 * sese.c (print_edge): ... here.
29811 (print_sese): ... here.
29812 (debug_edge): ... here.
29813 (debug_sese): ... here.
29814 * sese.h (print_edge): Declare.
29815 (print_sese): Declare.
29816 (dump_edge): Declare.
29817 (dump_sese): Declare.
29819 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29820 Sebastian Pop <s.pop@samsung.com>
29822 * Makefile.in: Set ISLVER in site.exp.
29824 2016-01-25 Jakub Jelinek <jakub@redhat.com>
29826 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
29827 DECL_VALUE_EXPR of new_var even for the non-array case. Look
29828 through DECL_VALUE_EXPR for expansion.
29830 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
29832 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
29833 the frame info after reload completed.
29835 2016-01-25 Jeff Law <law@redhat.com>
29837 PR tree-optimization/69196
29838 PR tree-optimization/68398
29839 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
29840 tree-ssa-threadupdate.c.
29841 (determine_bb_domination_status): Prototype
29842 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
29843 (determine_bb_domination_status): No longer static.
29844 (valid_jump_thread_path): Remove code to detect characteristics
29845 of the jump thread path not associated with correctness.
29846 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
29847 Correct test for thread path length. Count PHIs for real operands as
29848 statements that need to be copied. Do not count ASSERT_EXPRs.
29849 Look at all the blocks in the thread path. Compute and selectively
29850 filter thread paths based on threading through the latch, threading
29851 a multiway branch or crossing a multiway branch.
29853 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29855 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
29856 decl with __attribute__ ((unused)) annotation.
29858 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
29861 * tree-vect-stmts.c (vectorizable_condition): Check vectype
29862 of operands is compatible with a statement vectype.
29864 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
29866 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
29867 improve wording for mixed storage order support.
29869 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
29871 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
29872 (vcvt_u64_f64): Likewise.
29873 (vcvta_s64_f64): Likewise.
29874 (vcvta_u64_f64): Likewise.
29875 (vcvtm_s64_f64): Likewise.
29876 (vcvtm_u64_f64): Likewise.
29877 (vcvtn_s64_f64): Likewise.
29878 (vcvtn_u64_f64): Likewise.
29879 (vcvtp_s64_f64): Likewise.
29880 (vcvtp_u64_f64): Likewise.
29882 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
29884 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
29885 (arc_init): Check validity mll64 option.
29886 (arc_save_restore): Use double load/store instruction.
29887 (arc_expand_movmem): Likewise.
29888 (arc_split_move): Don't split if we have double load/store
29889 instructions. Returns a boolean.
29890 (arc_process_double_reg_moves): Change function to return boolean
29891 instead of a sequence of instructions.
29892 (arc_dwarf_register_span): New function.
29893 * config/arc/arc-protos.h (arc_split_move): Change prototype.
29894 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
29895 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
29896 (*movdf_insn): Likewise.
29897 * config/arc/arc.opt (mll64): New option.
29898 * config/arc/predicates.md (even_register_operand): New predicate.
29899 * doc/invoke.texi (ARC Options): Add mll64 documentation.
29901 2016-01-25 Richard Biener <rguenther@suse.de>
29904 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
29905 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
29907 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
29909 2016-01-25 Richard Biener <rguenther@suse.de>
29911 PR tree-optimization/69376
29912 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
29914 (VN_INFO_ANTI_RANGE_P): New inline.
29915 (VN_INFO_RANGE_TYPE): Likewise.
29916 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
29917 SSA_NAME_ANTI_RANGE_P.
29918 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
29919 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29920 Properly query VN_INFO_RANGE_TYPE.
29922 2016-01-25 Nick Clifton <nickc@redhat.com>
29925 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
29927 2016-01-23 Tom de Vries <tom@codesourcery.com>
29929 PR tree-optimization/69426
29930 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
29933 2016-01-23 Jakub Jelinek <jakub@redhat.com>
29935 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
29936 "the the" with "the" in the comments.
29937 * ipa-devirt.c (build_type_inheritance_graph,
29938 update_type_inheritance_graph): Likewise.
29939 * tree.c (build_function_type_list_1): Likewise.
29940 * cfgloopmanip.c (scale_loop_profile): Likewise.
29941 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
29942 * gimple-ssa-split-paths.c
29943 (find_block_to_duplicate_for_splitting_paths): Likewise.
29944 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
29945 * expr.c (convert_move): Likewise.
29946 * var-tracking.c (vt_stack_adjustments): Likewise.
29947 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
29948 * tree-vrp.c (test_for_singularity): Likewise.
29950 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
29951 directly instead of building a temporary tree.
29954 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
29955 remove <algorithm> include.
29957 2016-01-22 Jakub Jelinek <jakub@redhat.com>
29960 * config/i386/i386.c: Include dojump.h.
29961 (expand_small_movmem_or_setmem,
29962 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
29964 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
29965 if dynamic_check != -1.
29967 2016-01-21 Jeff Law <law@redhat.com>
29969 PR middle-end/69347
29970 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
29971 record_temporary_equivalences. Rewritten to avoid unnecessary calls
29972 into dominated_by_p.
29973 (cprop_into_successor_phis): Avoid unnecessary tests.
29975 2016-01-22 Richard Henderson <rth@redhat.com>
29978 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
29979 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
29981 2016-01-22 Michael Matz <matz@suse.de>
29983 * system.h (string, algorithm): Include only conditionally.
29984 (new): Include always under C++.
29985 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
29986 * final.c (toplevel): Ditto.
29987 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
29988 * genconditions.c (write_header): Make gencondmd.c define
29990 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
29992 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
29993 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
29995 2016-01-22 Christian Bruel <christian.bruel@st.com>
29998 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
30000 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30003 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
30004 define_insn_and_split. Ensure operands[1] and operands[0] do not
30005 get assigned the same register.
30007 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
30009 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
30011 2016-01-22 Christian Bruel <christian.bruel@st.com>
30013 * config/arm/arm-c.c (arm_pragma_target_parse):
30014 Remove warn_builtin_macro_redefined overwrite.
30016 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30018 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
30019 flag_non_call_exceptions compatibility.
30021 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30024 * dwarf2out.c (add_child_die_after): New function.
30025 (dwarf_qual_info_t): New type.
30026 (dwarf_qual_info): New variable.
30027 (qualified_die_p): New function.
30028 (modified_type_die): For -fdebug-types-section, ensure
30029 canonical order of qualifiers. Put qualified DIEs adjacent
30030 to the corresponding non-qualified type DIE and search there
30031 for existing qualified DIEs.
30033 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30035 * doc/extend.texi (scalar_storage_order type attribute): Document
30036 restriction on type punning and aliasing, and remove future tense.
30038 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
30041 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
30044 2016-01-21 Jeff Law <law@redhat.com>
30046 PR middle-end/69347
30047 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
30048 useless call to record_temporary_equivalences.
30049 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
30050 allocate 10 slots in the bb_path vector and let it grow as needed.
30051 (fsm_find_control_statement_thread_paths): Similarly for the next_path
30054 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30056 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
30058 * configure: Regenerate.
30060 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
30062 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
30063 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
30065 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
30067 PR middle-end/66178
30068 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
30069 drop EXPAND_INITIALIZER.
30070 * rtl.h (contains_symbolic_reference_p): Declare.
30071 * rtlanal.c (contains_symbolic_reference_p): New function.
30072 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
30073 a subtraction into a NOT if symbolic constants are involved.
30075 2016-01-21 Anton Blanchard <anton@samba.org>
30076 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30079 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
30081 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30084 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30086 * config/microblaze/microblaze.c
30087 (get_branch_target): New.
30088 (insert_wic_for_ilb_runout): New.
30090 (microblaze_machine_dependent_reorg): New.
30091 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
30092 * config/microblaze/microblaze.md
30093 (UNSPEC_IPREFETCH): Define.
30094 (iprefetch): New pattern
30095 * config/microblaze/microblaze.opt
30096 (mxl-prefetch): New flag.
30098 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30100 * config/microblaze/microblaze.h
30101 (FIXED_REGISTERS): Update in macro.
30102 (CALL_USED_REGISTERS): Update in macro.
30104 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
30106 PR rtl-optimization/68920
30107 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
30110 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
30112 PR rtl-optimization/68990
30113 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
30114 pseudo instead of inheritance ones.
30116 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30117 Nick Clifton <nickc@redhat.com>
30121 * config/mips/mips.c (mips_compute_frame_info): Initialise
30122 args_size and hard_frame_pointer_offset fields of the frame
30123 structure before calling mips_global_pointer.
30125 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30127 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
30129 * configure: Regenerate.
30131 2016-01-21 Richard Biener <rguenther@suse.de>
30133 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
30135 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30137 * config/s390/s390.c (s390_asm_declare_function_size): Add code
30138 to actually emit the .size directive.
30140 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
30141 Jakub Jelinek <jakub@redhat.com>
30145 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
30146 args array size by one to avoid buffer overflow.
30148 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30150 * config/s390/s390.md (pool_section_start): Use switch_to_section
30151 to select proper read-only data section instead of hardcoding
30153 (pool_section_end): Use switch_to_section to match the above.
30155 2016-01-21 Richard Biener <rguenther@suse.de>
30157 PR tree-optimization/69378
30158 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
30159 (set_ssa_val_to): Use it for dominance checks taking into
30160 account not executable edges.
30162 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30165 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
30166 for bitsize instead of GET_MODE_PRECISION (mode).
30168 2016-01-20 Martin Sebor <msebor@redhat.com>
30171 * extend.texi (__sync Builtins): Clarify the semantics of
30172 __sync_fetch_and_OP built-ins on pointers.
30173 (__atomic Builtins): Same.
30175 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30176 Sebastian Pop <s.pop@samsung.com>
30178 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
30179 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
30180 (is_valid_rename): Same.
30181 (translate_isl_ast_to_gimple::get_rename): Same.
30182 (translate_isl_ast_to_gimple::rename_all_uses): Same.
30183 (translate_isl_ast_to_gimple::rename_uses): Same.
30184 (get_new_name): Check for close_phi nodes.
30185 (copy_loop_phi_args): Use phi_node_kind.
30186 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
30187 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
30189 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30190 Sebastian Pop <s.pop@samsung.com>
30192 Revert commit r229783.
30193 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
30194 Remove use of parameter_rename_map.
30195 (copy_def): Remove.
30196 (copy_internal_parameters): Remove.
30197 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
30198 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
30199 (free_sese_info): Do not free parameter_rename_map.
30200 (set_rename): Do not use parameter_rename_map.
30201 (rename_uses): Update call to set_rename.
30202 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
30203 * sese.h (parameter_rename_map_t): Remove.
30204 (struct sese_info_t): Remove field parameter_rename_map.
30206 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30207 Sebastian Pop <s.pop@samsung.com>
30209 * graphite-isl-ast-to-gimple.c: Fix comment.
30210 * graphite-scop-detection.c (defined_in_loop_p): New.
30211 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
30212 names defined in loop.
30214 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30215 Sebastian Pop <s.pop@samsung.com>
30217 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
30218 Discard unstructured if-then-else regions.
30220 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30221 Sebastian Pop <s.pop@samsung.com>
30223 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
30224 (cleanup_loop_iter_dom): Remove.
30225 (build_loop_iteration_domains): Remove.
30226 (build_scop_context): Remove.
30227 (build_scop_iteration_domain): Remove.
30228 (add_loop_constraints): New.
30229 (build_iteration_domains): New.
30230 (build_poly_scop): Call build_iteration_domains.
30232 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30233 Sebastian Pop <s.pop@samsung.com>
30235 * graphite-scop-detection.c
30236 (scop_detection::harmful_loop_in_region): Free dom and loops.
30237 (scop_detection::loop_body_is_valid_scop): Free bbs.
30239 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30240 Sebastian Pop <s.pop@samsung.com>
30242 * graphite-scop-detection.c (record_loop_in_sese): New.
30243 (gather_bbs::before_dom_children): Call record_loop_in_sese.
30244 (build_scops): Remove call to build_sese_loop_nests.
30245 * sese.c (sese_record_loop): Remove.
30246 (build_sese_loop_nests): Remove.
30247 (new_sese_info): Remove region->loops.
30248 (free_sese_info): Same.
30249 * sese.h (sese_contains_loop): Same.
30250 (build_sese_loop_nests): Remove.
30251 (sese_contains_loop): Remove.
30253 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30254 Sebastian Pop <s.pop@samsung.com>
30256 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
30257 loop_is_valid_in_scop.
30258 (scop_detection::harmful_stmt_in_region): Renamed
30259 harmful_loop_in_region.
30260 Call loop_is_valid_in_scop.
30262 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30263 Sebastian Pop <s.pop@samsung.com>
30265 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
30268 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30269 Sebastian Pop <s.pop@samsung.com>
30271 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
30272 * graphite.h (struct poly_bb): Remove field is_reduction.
30273 (PBB_IS_REDUCTION): Remove.
30275 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30276 Sebastian Pop <s.pop@samsung.com>
30278 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
30279 (add_pdr_constraints): Same.
30280 (scop_get_reads): Same.
30281 (scop_get_must_writes): Same.
30282 (scop_get_may_writes): Same.
30283 (scop_get_original_schedule): Same.
30284 (extend_schedule): Same.
30285 (apply_schedule_on_deps): Same.
30286 (carries_deps): Same.
30287 (compute_deps): Same.
30288 (scop_get_dependences): Same.
30289 * graphite-isl-ast-to-gimple.c
30290 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
30291 * graphite-optimize-isl.c (get_schedule_for_band): Same.
30292 (get_schedule_for_band_list): Same.
30293 (get_schedule_map): Same.
30294 (apply_schedule_map_to_scop): Same.
30295 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30296 (build_loop_iteration_domains): Same.
30297 (add_condition_to_pbb): Same.
30298 (add_param_constraints): Same.
30299 (pdr_add_memory_accesses): Same.
30300 (pdr_add_data_dimensions): Same.
30302 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30304 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
30307 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30309 * common.opt (feliminate-dwarf2-dups): Replace references to
30310 "DWARF 2" with just "DWARF".
30311 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
30312 * doc/extend.texi: Likewise.
30313 * doc/cpp.texi: Likewise.
30314 * doc/invoke.texi: Likewise.
30315 (Option Summary): Add -gdwarf to list of Debugging Options.
30316 (Debugging Options): Document -gdwarf.
30317 * doc/contrib.texi: Spell "DWARF" like that.
30319 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30321 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30322 warning. Fix up formatting.
30324 PR middle-end/67653
30325 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30326 attempt to mark memory input operand addressable and
30327 call prepare_gimple_addressable in that case. Don't adjust
30328 input_location for diagnostics, use error_at instead.
30330 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
30332 * config/rs6000/ppc-auxv.h: New file.
30333 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30334 (cpu_is): Likewise.
30335 (cpu_supports): Likewise.
30336 * config/rs6000/rs6000.c: include "ppc-auxv.h".
30337 (cpu_is_info): New variable.
30338 (cpu_supports_info): Likewise.
30339 (tcb_verification_symbol): Likewise.
30340 (cpu_builtin_p): Likewise.
30341 (cpu_expand_builtin): New function.
30342 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30343 (rs6000_init_builtins): Likewise.
30344 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30345 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30346 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30347 * configure: Regenerate.
30348 * config.in: Likewise.
30349 * doc/extend.texi (PowerPC Built-in Functions): Document
30350 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30352 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
30355 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30357 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30360 2016-01-20 Richard Henderson <rth@redhat.com>
30366 * tree.c (tm_define_builtin): New.
30367 (find_tm_vector_type): New.
30368 (build_tm_vector_builtins): New.
30369 (build_common_builtin_nodes): Call it.
30371 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
30373 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30374 (arm_fp_ok): Likewise.
30375 (arm_fp): Likewise.
30376 (arm_crypto): Likewise.
30378 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30379 Richard Biener <rguenther@suse.de>
30381 PR tree-optimization/69328
30382 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30383 vectors have same number of elements.
30384 (vectorizable_condition): Fix masked version recognition.
30386 2016-01-20 Richard Biener <rguenther@suse.de>
30388 PR tree-optimization/69345
30389 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30390 (VN_INFO_PTR_INFO): Likewise.
30391 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30392 info when it is equal between non-dominating SSA names.
30393 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30394 Make sure to look at original SSA infos.
30396 2016-01-20 Jeff Law <law@redhat.com>
30399 * config/m68k/predicates.md (pow2_m1_operand): New predicate
30401 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30402 (pc_or_label_operand): New predicate.
30403 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30404 tests for small integers that are 2^n - 1.
30406 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
30408 * doc/invoke.texi (Options Summary): Add '.' after @xref.
30410 2016-01-19 Jeff Law <law@redhat.com>
30412 PR middle-end/69347
30413 * tree-ssa-threadbackwards.c
30414 (fsm_find_control_statement_thread_paths): Do not try to lookup
30415 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30417 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30419 * doc/lto.texi: Remove text that says only Gold has linker plugin
30422 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
30424 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30425 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30426 the DIE accordingly.
30427 (modified_type_die): Add REVERSE parameter and pass it recursively,
30428 as well as to base_type_die. Adjust presence check accordingly.
30429 (base_type_for_mode): Adjust call to modified_type_die.
30430 (add_type_attribute): Add REVERSE parameter and pass it to
30432 (generic_parameter_die): Adjust call to add_type_attribute.
30433 (add_scalar_info): Likewise.
30434 (add_subscript_info): Likewise.
30435 (gen_array_type_die): Likewise.
30436 (gen_descr_array_type_die): Likewise.
30437 (gen_entry_point_die): Likewise.
30438 (gen_enumeration_type_die): Likewise.
30439 (gen_formal_parameter_die): Likewise.
30440 (gen_subprogram_die): Likewise.
30441 (gen_variable_die ): Likewise.
30442 (gen_const_die): Likewise.
30443 (gen_field_die): Likewise.
30444 (gen_pointer_type_die): Likewise.
30445 (gen_reference_type_die): Likewise.
30446 (gen_ptr_to_mbr_type_die): Likewise.
30447 (gen_inheritance_die): Likewise.
30448 (gen_subroutine_type_die): Likewise.
30449 (gen_typedef_die): Likewise.
30450 (force_type_die): Adjust call to modified_type_die.
30452 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
30454 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30455 flow throughout the file. Fix broken link to Objective-C 2.0
30457 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30460 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30462 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30464 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30467 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30468 (maybe_record_node): Record cxa_pure_virtual as the only possible
30469 target if there are not ohter candidates.
30470 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30472 2016-01-19 Richard Biener <rguenther@suse.de>
30474 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30475 (get_memory_order): Likewise.
30477 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
30479 * tree-vect-stmts.c (vectorizable_store): Check
30482 2016-01-19 David Malcolm <dmalcolm@redhat.com>
30485 * gcc.c (driver::decode_argv): Add call to
30486 init_opts_obstack before init_options_struct.
30487 * opts.c (init_opts_obstack): Remove idempotency.
30488 (init_options_struct): Replace call to init_opts_obstack
30489 with a gcc_assert to verify that it has already been called.
30490 * toplev.c (toplev::main): Add call to init_opts_obstack before
30491 calls to init_options_struct.
30492 (toplev::finalize): Move cleanup of opts_obstack next to
30493 cleanup of save_decoded_options, clearing the latter, and
30494 save_decoded_options_count.
30496 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30499 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30500 attribute to unconditional. Remove %? from output template.
30502 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30503 Jiong Wang <jiong.wang@arm.com>
30505 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30506 generated from different expand order.
30508 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30510 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30511 Add support for CCMP costing.
30513 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30515 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30516 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30517 (fccmpe<mode>): Likewise.
30518 (fcmp): Rename to fcmp and globalize pattern.
30520 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30521 (aarch64_gen_ccmp_next): Add FP support.
30523 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30525 * target.def (gen_ccmp_first): Update documentation.
30526 (gen_ccmp_next): Likewise.
30527 * doc/tm.texi (gen_ccmp_first): Update documentation.
30528 (gen_ccmp_next): Likewise.
30529 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30530 expand_ccmp_expr_1. Improve comments.
30531 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30532 (ccmp_ior<mode>): Remove pattern.
30533 (cmp<mode>): Remove expand.
30534 (cmp): Globalize pattern.
30535 (cstorecc4): Use cc_register.
30536 (mov<mode>cc): Remove ccmp_cc_register check.
30537 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30538 Simplify after removal of CC_DNE/* modes.
30539 (aarch64_ccmp_mode_to_code): Remove.
30540 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
30541 In 'k' case use integer as condition.
30542 (aarch64_nzcv_codes): Remove inverted cases.
30543 (aarch64_code_to_ccmode): Remove.
30544 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
30545 comparison with CC register to be used in folowing CCMP/branch/CSEL.
30546 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30547 pattern. Return the comparison with CC register. Invert conditions
30548 when bitcode is OR.
30549 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30550 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30552 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30554 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30555 instrumented_version.
30557 2016-01-19 Richard Biener <rguenther@suse.de>
30559 PR tree-optimization/69336
30560 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30561 handled components with get_ref_base_and_extent.
30562 (equal_mem_array_ref_p): Adjust.
30564 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30567 * shrink-wrap.c: Include valtrack.h.
30568 (move_insn_for_shrink_wrap): Add DEBUG argument. If
30569 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30570 in between insn and where it will be moved to. Call
30571 dead_debug_insert_temp.
30572 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
30573 first and dead_debug_local_finish at the end.
30574 For uses and defs bitmap, handle all regs in between REGNO and
30575 END_REGNO, not just the first one.
30577 2016-01-19 Richard Biener <rguenther@suse.de>
30579 PR tree-optimization/69352
30580 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30581 (equal_mem_array_ref_p): Constrain size and max size properly.
30582 Compare the reverse flag.
30584 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
30586 * ira.c (ira): Update regstat data if we deleted insns.
30588 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30590 PR rtl-optimization/68955
30591 PR rtl-optimization/64557
30592 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30593 here. Fix up formatting.
30594 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30596 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30599 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30600 assume that the node has body.
30601 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30604 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30606 * lto-streamer-out.c (lto_output): Do not stream instrumentation
30609 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30611 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30612 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30614 2016-01-19 Martin Jambor <mjambor@suse.cz>
30615 Martin Liska <mliska@suse.cz>
30616 Michael Matz <matz@suse.de>
30618 * Makefile.in (OBJS): Add new source files.
30619 (GTFILES): Add hsa.c.
30620 * common.opt (disable_hsa): New variable.
30621 (-Whsa): New warning.
30622 * config.in (ENABLE_HSA): New.
30623 * configure.ac: Treat hsa differently from other accelerators.
30624 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
30625 $enable_offloading.
30626 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
30627 * doc/install.texi (Configuration): Document --with-hsa-runtime,
30628 --with-hsa-runtime-include, --with-hsa-runtime-lib and
30629 --with-hsa-kmt-lib.
30630 * doc/invoke.texi (-Whsa): Document.
30631 (hsa-gen-debug-stores): Likewise.
30632 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
30633 to invoke offload compiler for hsa acclerator.
30634 * opts.c (common_handle_option): Determine whether HSA offloading
30635 should be performed.
30636 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
30637 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
30638 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
30639 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
30640 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
30641 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
30642 GF_OMP_FOR_KIND_GRID_LOOP.
30643 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
30644 (pp_gimple_stmt_1): Likewise.
30645 * gimple-walk.c (walk_gimple_stmt): Likewise.
30646 * gimple.c (gimple_build_omp_grid_body): New function.
30647 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
30648 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
30649 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
30650 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
30651 GF_OMP_TEAMS_GRID_PHONY.
30652 (gimple_statement_omp_single_layout): Updated comments.
30653 (gimple_build_omp_grid_body): New function.
30654 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
30655 (gimple_omp_for_grid_phony): New function.
30656 (gimple_omp_for_set_grid_phony): Likewise.
30657 (gimple_omp_parallel_grid_phony): Likewise.
30658 (gimple_omp_parallel_set_grid_phony): Likewise.
30659 (gimple_omp_teams_grid_phony): Likewise.
30660 (gimple_omp_teams_set_grid_phony): Likewise.
30661 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
30662 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
30663 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
30664 (BUILT_IN_GOMP_TARGET): Updated type.
30665 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
30666 (adjust_for_condition): New function.
30667 (get_omp_for_step_from_incr): Likewise.
30668 (extract_omp_for_data): Moved parts to adjust_for_condition and
30669 get_omp_for_step_from_incr.
30670 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
30671 (fixup_child_record_type): Bail out if receiver_decl is NULL.
30672 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
30673 (scan_omp_parallel): Do not create child functions for phony
30675 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
30676 (scan_omp_1_op): Checking assert we are not remapping to
30677 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
30678 (parallel_needs_hsa_kernel_p): New function.
30679 (expand_parallel_call): Register apprpriate parallel child
30680 functions as HSA kernels.
30681 (grid_launch_attributes_trees): New type.
30682 (grid_attr_trees): New variable.
30683 (grid_create_kernel_launch_attr_types): New function.
30684 (grid_insert_store_range_dim): Likewise.
30685 (grid_get_kernel_launch_attributes): Likewise.
30686 (get_target_argument_identifier_1): Likewise.
30687 (get_target_argument_identifier): Likewise.
30688 (get_target_argument_value): Likewise.
30689 (push_target_argument_according_to_value): Likewise.
30690 (get_target_arguments): Likewise.
30691 (expand_omp_target): Call get_target_arguments instead of looking
30692 up for teams and thread limit.
30693 (grid_expand_omp_for_loop): New function.
30694 (grid_arg_decl_map): New type.
30695 (grid_remap_kernel_arg_accesses): New function.
30696 (grid_expand_target_kernel_body): New function.
30697 (expand_omp): Call it.
30698 (lower_omp_for): Do not emit phony constructs.
30699 (lower_omp_taskreg): Do not emit phony constructs but create for them
30700 a temporary variable receiver_decl.
30701 (lower_omp_taskreg): Do not emit phony constructs.
30702 (lower_omp_teams): Likewise.
30703 (lower_omp_grid_body): New function.
30704 (lower_omp_1): Call it.
30705 (grid_reg_assignment_to_local_var_p): New function.
30706 (grid_seq_only_contains_local_assignments): Likewise.
30707 (grid_find_single_omp_among_assignments_1): Likewise.
30708 (grid_find_single_omp_among_assignments): Likewise.
30709 (grid_find_ungridifiable_statement): Likewise.
30710 (grid_target_follows_gridifiable_pattern): Likewise.
30711 (grid_remap_prebody_decls): Likewise.
30712 (grid_copy_leading_local_assignments): Likewise.
30713 (grid_process_kernel_body_copy): Likewise.
30714 (grid_attempt_target_gridification): Likewise.
30715 (grid_gridify_all_targets_stmt): Likewise.
30716 (grid_gridify_all_targets): Likewise.
30717 (execute_lower_omp): Call grid_gridify_all_targets.
30718 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
30719 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
30720 (tree_omp_clause): Added union field dimension.
30721 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
30722 * tree.c (omp_clause_num_ops): Added number of arguments of
30723 OMP_CLAUSE__GRIDDIM_.
30724 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
30725 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
30726 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
30727 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
30728 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
30729 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
30730 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
30731 * tree-pass.h (make_pass_gen_hsail): Declare.
30732 (make_pass_ipa_hsa): Likewise.
30733 * ipa-hsa.c: New file.
30734 * lto-section-in.c (lto_section_name): Add hsa section name.
30735 * lto-streamer.h (lto_section_type): Add hsa section.
30736 * timevar.def (TV_IPA_HSA): New.
30737 * hsa-brig-format.h: New file.
30738 * hsa-brig.c: New file.
30739 * hsa-dump.c: Likewise.
30740 * hsa-gen.c: Likewise.
30743 * toplev.c (compile_file): Call hsa_output_brig.
30744 * hsa-regalloc.c: New file.
30746 2016-01-18 Jeff Law <law@redhat.com>
30748 PR tree-optimization/69320
30749 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
30750 ranged object, do nothing if the RHS constant is not [0..1].
30751 (optimize_stmt): Comparing a boolean ranged object against a
30752 constant outside [0..1] results in a compile-time constant.
30754 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
30757 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
30759 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30760 (Option Summary): Update to reflect new section and moved options.
30761 (C++ Dialect Options): Move -fstats to new section.
30762 (Debugging Options): Move all dump, statistics, and other GCC
30763 developer options to new section. Rewrite section introduction
30764 and re-order remaining options to put the more basic ones first.
30765 (Optimization Options): Move -fira-verbose and -flto-report* to
30767 (Developer Options): New section incorporating moved options.
30768 * doc/cppopts.texi (-dM): Update cross-reference.
30770 2016-01-18 Richard Henderson <rth@redhat.com>
30773 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
30774 operands to pseudo only if CSE is expected. Split long immediate
30775 operands only after reload, and for the stack pointer.
30776 (*add<GPI>3_pluslong): Remove.
30777 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
30778 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
30779 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
30780 (*add<GPI>3 peepholes): New.
30781 (*add<GPI>3 splitters): New.
30782 * config/aarch64/constraints.md (Upl): New.
30783 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
30785 2016-01-18 Richard Biener <rguenther@suse.de>
30787 PR tree-optimization/69297
30788 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
30790 (vect_bb_vectorization_profitable_p): Clear visited flag again.
30792 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
30794 PR middle-end/68542
30795 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
30796 of mixind vector and scalar types.
30797 (fold_relational_const): Add handling of vector
30798 comparison with boolean result.
30799 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
30800 comparison of vector operands with boolean result for EQ/NE only.
30801 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
30802 (verify_gimple_cond): Likewise.
30803 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
30806 2016-01-18 Joseph Myers <joseph@codesourcery.com>
30808 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
30811 2016-01-18 Richard Biener <rguenther@suse.de>
30813 PR middle-end/69308
30814 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
30816 2016-01-18 Tom de Vries <tom@codesourcery.com>
30818 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
30820 2016-01-18 Tom de Vries <tom@codesourcery.com>
30822 * omp-low.c (set_oacc_fn_attrib): Make extern.
30823 * omp-low.h (set_oacc_fn_attrib): Declare.
30824 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
30825 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
30826 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
30827 Add and handle function parameter oacc_kernels_p.
30828 (find_reduc_addr, get_omp_data_i_param): New function.
30829 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
30830 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
30831 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
30832 Calculate dominance info. Skip loops that are not in a kernels region
30833 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
30834 (pass_parallelize_loops::execute): Call parallelize_loops with
30835 oacc_kernels_p argument.
30836 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
30837 New member function.
30838 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
30839 * passes.def: Add argument to pass_parallelize_loops instantation.
30841 2016-01-18 Tom de Vries <tom@codesourcery.com>
30843 * tree-parloops.c (pass_parallelize_loops::execute): Allow
30844 pass_parallelize_loops to be run outside the loop pipeline.
30846 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30848 * tree-scalar-evolution.c (follow_copies_to_constant): New.
30849 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
30851 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30854 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
30855 using get_ref_base_and_extent.
30856 (equal_mem_array_ref_p): New.
30857 (hashable_expr_equal_p): Add call to previous.
30859 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30862 * tree-sra.c (disqualified_constants, constant_decl_p): New.
30863 (sra_initialize): Allocate disqualified_constants.
30864 (sra_deinitialize): Free disqualified_constants.
30865 (disqualify_candidate): Update disqualified_constants when appropriate.
30866 (create_access): Scan for constant-pool entries as we go along.
30867 (scalarizable_type_p): Add check against type_contains_placeholder_p.
30868 (maybe_add_sra_candidate): Allow constant-pool entries.
30869 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
30870 (initialize_constant_pool_replacements): New.
30871 (sra_modify_assign): Avoid mangling assignments created by previous,
30872 and don't generate writes into constant pool.
30873 (sra_modify_function_body): Call initialize_constant_pool_replacements.
30875 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
30877 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
30878 andnot instruction.
30879 (scalar_chain::convert_op): Likewise.
30880 * config/i386/i386.md (*andndi3_doubleword): New.
30882 2016-01-18 Richard Biener <rguenther@suse.de>
30884 PR tree-optimization/69170
30885 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
30886 building a vector from scalar results of a pattern stmt.
30888 2016-01-18 Jakub Jelinek <jakub@redhat.com>
30890 * haifa-sched.c (autopref_multipass_init): Work around
30891 -Wmaybe-uninitialized warning.
30893 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
30895 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
30896 against the constant 0.
30898 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30900 PR tree-optimization/68799
30901 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
30902 look up phi candidates in the statement-candidate map.
30903 (phi_add_costs): Likewise.
30904 (record_phi_increments): Likewise.
30905 (phi_incr_cost): Likewise.
30906 (ncd_with_phi): Likewise.
30907 (all_phi_incrs_profitable): Likewise.
30909 2016-01-17 Jakub Jelinek <jakub@redhat.com>
30911 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
30912 -Wmaybe-uninitialized warning.
30914 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
30916 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30917 (Option Summary): Update to reflect new section and moved options.
30918 (C++ Dialect Options): Move -fvtable-verify and related options.
30919 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
30920 and profiling-related options.
30921 (Optimization Options): Move profile generation options and
30922 -fstack-protector and related options.
30923 (Instrumentation Options): New section incorporating moved options.
30924 (Code Generation Options): Move -finstrument-functions and
30925 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
30927 2016-01-16 Tom de Vries <tom@codesourcery.com>
30929 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
30931 2016-01-16 Tom de Vries <tom@codesourcery.com>
30933 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
30935 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
30937 * hash-table.h (hash_table::empty): Turn into an inline wrapper
30938 that checks whether the table is already empty. Rename the
30939 original implementation to...
30940 (hash_table::empty_slot): ...this new private function.
30942 2016-01-15 David Malcolm <dmalcolm@redhat.com>
30944 PR diagnostic/68899
30945 * diagnostic-show-locus.c (layout::print_source_line): Move x
30946 offset of line until after call to
30947 get_line_width_without_trailing_whitespace.
30949 2016-01-15 Jeff Law <law@redhat.com>
30951 PR tree-optimization/69270
30952 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
30953 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
30954 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
30955 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
30956 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
30957 ssa_name_has_boolean_range and constant_boolean_node.
30959 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
30961 PR rtl-optimization/69030
30962 * lra-spills.c (remove_pseudos): Check nrefs and make the function
30964 (spill_pseudos): Delete debug insn for dead pseudo.
30965 (lra_spill): Initiate spill_hard_reg and slots memory separately.
30967 2016-01-15 Jiong Wang <jiong.wang@arm.com>
30969 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
30971 (TYPES_UNOPUS): Likewise.
30972 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
30973 builtin type, from UNOP to UNOPUS.
30974 (lbtruncuv4sf): Likewise.
30975 (lbtruncuv2df): Likewise.
30976 (lrounduv2sf): Likewise.
30977 (lrounduv4sf): Likewise.
30978 (lrounduv2df): Likewise.
30979 (lroundusf): Likewise.
30980 (lroundusf): Likewise.
30981 (lceiluv2sf): Likewise.
30982 (lceiluv4sf): Likewise.
30983 (lceiluv2df): Likewise.
30984 (lceilusf): Likewise.
30985 (lceiludf): Likewise.
30986 (lflooruv2sf): Likewise.
30987 (lflooruv4sf): Likewise.
30988 (lflooruv2df): Likewise.
30989 (lfloorusf): Likewise.
30990 (lfloorudf): Likewise.
30991 (lfrintnuv2sf): Likewise.
30992 (lfrintnuv4sf): Likewise.
30993 (lfrintnuv2df): Likewise.
30994 (lfrintnusf): Likewise.
30995 (lfrintnudf): Likewise.
30996 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
30998 (vcvtq_u32_f32): Likewise.
30999 (vcvtq_u64_f64): Likewise.
31000 (vcvta_u32_f32): Likewise.
31001 (vcvtaq_u32_f32): Likewise.
31002 (vcvtaq_u64_f64): Likewise.
31003 (vcvtm_u32_f32): Likewise.
31004 (vcvtmq_u32_f32): Likewise.
31005 (vcvtmq_u64_f64): Likewise.
31006 (vcvtn_u32_f32): Likwise.
31007 (vcvtnq_u32_f32): Likewise.
31008 (vcvtnq_u64_f64): Likewise.
31009 (vcvtp_u32_f32): Likewise.
31010 (vcvtpq_u32_f32): Likewise.
31011 (vcvtpq_u64_f64): Likewise.
31012 (vcvtmd_u64_f64): Likewise.
31013 (vcvtms_u32_f32): Likewise.
31014 (vcvtad_u64_f64): Likewise.
31015 (vcvtas_u32_f32): Likewise.
31016 (vcvtnd_u64_f64): Likewise.
31017 (vcvtns_u32_f32): Likewise.
31018 (vcvtpd_u64_f64): Likewise.
31019 (vcvtps_u32_f32): Likewise.
31021 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31023 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
31024 CSEL of zero_extended registers.
31026 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31028 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31029 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
31031 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31033 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
31034 false when argument string is not found in the attributes table
31037 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
31040 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
31041 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
31042 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
31043 precision estimate.
31045 2016-01-15 Richard Biener <rguenther@suse.de>
31047 PR tree-optimization/66856
31048 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
31049 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
31050 (vect_create_new_slp_node): Increment stmt reference count.
31051 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
31052 an SLP tree before swapping operands.
31053 (vect_build_slp_tree): Likewise.
31054 (destroy_bb_vec_info): Free stmt info after SLP instances.
31055 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
31056 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
31057 (STMT_VINFO_NUM_SLP_USES): New macro.
31059 2016-01-15 Richard Biener <rguenther@suse.de>
31062 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
31063 (add_linkage_name): ... here.
31064 (gen_typedef_die): Use add_linkage_name_raw instead of
31065 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
31068 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
31070 * gimplify.c (oacc_default_clause): Decode reference and pointer
31071 types for both kernels and parallel regions.
31073 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
31075 PR middle-end/69246
31076 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
31078 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31080 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
31081 (convert_scalars_to_vector): Likewise.
31083 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
31085 * doc/extend.texi (Type Traits): Fix grammar.
31087 2016-01-15 Martin Jambor <mjambor@suse.cz>
31089 * tree-inline.c (remap_decl): Use existing dclarations if
31090 remapping a type and prevent_decl_creation_for_types.
31091 (replace_locals_stmt): Do an initial remapping of non-VLA typed
31092 decls first. Do real remapping with
31093 prevent_decl_creation_for_types set.
31094 * tree-inline.h (copy_body_data): New field
31095 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
31098 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31100 * config/s390/s390.opt (mmvcle): More verbose help text.
31102 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31104 * config/s390/s390.opt: Add period to -mzvector option text.
31106 2016-01-15 Richard Biener <rguenther@suse.de>
31108 PR tree-optimization/68961
31109 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
31110 of invariants in stores again.
31112 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31114 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
31116 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31118 * config/i386/i386.c (ix86_expand_branch): Don't split
31119 DI mode xor instruction to SI mode.
31121 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31124 * ipa-icf.c (sem_function::merge): Virtual functions may become
31125 reachable even if they address is not taken and there are no
31128 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31130 * lto-streamer-out.c (subtract_estimated_size): New function.
31131 (get_symbol_initial_value): Use it.
31133 2016-01-15 Christian Bruel <christian.bruel@st.com>
31136 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
31137 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
31138 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
31139 use add_builtin_function_ext_scope instead of add_builtin_function.
31140 (neon_set_p, neon_crypto_set_p): Remove.
31141 (arm_init_builtins): Always call arm_init_neon_builtins and
31142 arm_init_crypto_builtins.
31143 (arm_expand_builtin): Check that builtins are allowed for the arch.
31144 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
31145 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
31146 arm_init_neon_builtins call.
31148 2016-01-15 Richard Biener <rguenther@suse.de>
31150 PR tree-optimization/69117
31151 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
31152 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
31153 of the leader conservatively.
31154 (free_scc_vn): Restore original SSA name infos.
31156 2016-01-14 Jeff Law <law@redhat.com>
31158 PR tree-optimization/69270
31159 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
31160 single bit of precision, verify it's also unsigned.
31161 (record_edge_info): Use constant_boolean_node rather than fold_convert
31162 to convert boolean_true/boolean_false to the right type.
31164 2016-01-14 Richard Henderson <rth@redhat.com>
31167 * loop-doloop.c (record_reg_sets): New.
31168 (doloop_optimize): Reject the transform if the sequence
31169 clobbers registers live at the end of the loop block.
31170 (doloop_optimize_loops): Enable df_live if needed.
31172 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31174 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
31175 * config/rs6000/rs6000.c: Likewise.
31176 * config/rs6000/rs6000.h: Likewise.
31177 * config/rs6000/rs6000.md: Likewise.
31178 * doc/extend.texi: Likewsie.
31180 2016-01-14 Jeff Law <law@redhat.com>
31182 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
31185 2016-01-14 Richard Henderson <rth@redhat.com>
31189 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
31190 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
31191 instead of builtin_decl_declared_p to test for declaration.
31193 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
31195 * doc/loop.texi (Loop Analysis and Representation): Document
31196 loop_depth function.
31198 2016-01-14 Tom de Vries <tom@codesourcery.com>
31200 PR tree-optimization/68773
31201 * omp-low.c (expand_omp_target): Don't set force_output.
31202 * varpool.c (varpool_node::get_create): Same.
31203 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
31204 offload_funcs with force_output.
31206 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31209 * lra-eliminations.c (move_plus_up): Don't change anything if either
31210 the outer or inner subreg mode is not MODE_INT.
31211 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
31212 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
31214 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31216 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
31217 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
31218 reduc_uplus_@var{m}): Remove.
31219 * expr.c (expand_expr_real_2): Remove expansion path for
31220 reduc_[us](min|max|plus) optabs.
31221 * optabs-tree.c (scalar_reduc_to_vector): Remove.
31222 * optabs-tree.h (scalar_reduc_to_vector): Remove.
31223 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
31224 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
31225 * tree-vect-loop.c (vectorizable_reduction): Remove test for
31226 reduc_[us](min|max|plus) optabs.
31228 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31230 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
31231 (reduc_plus_scal_v2sf): New.
31232 (reduc_smax_v2sf): Rename to...
31233 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
31234 (reduc_smin_v2sf): Rename to...
31235 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
31237 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
31239 * alias.c (compare_base_symbol_refs): New function.
31240 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
31243 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31245 PR middle-end/68146
31246 PR tree-optimization/69155
31247 * tree-complex.c: Include cfganal.h.
31248 (phis_to_revisit): New variable.
31249 (extract_component): Add phiarg_p argument. Assert that returned
31250 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
31251 (update_phi_components): Partly rewrite to use loop over real/imag
31252 components instead of code duplication. If extract_component returns
31253 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
31254 create_tmp_reg into the PHI node instead, and mention the phi triplet
31255 in phis_to_revisit.
31256 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
31257 in phis_to_revisit at the end.
31259 2016-01-14 Richard Biener <rguenther@suse.de>
31261 PR tree-optimization/68060
31262 * tree-vect-loop.c (vect_is_simple_reduction): Check the
31263 outer loop reduction is only used in the inner loop before
31264 detecting a double reduction.
31266 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31269 * combine.c (expand_field_assignment): Punt if compute_mode is
31270 unsupported scalar mode.
31272 2016-01-14 Richard Biener <rguenther@suse.de>
31274 PR tree-optimization/66856
31275 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
31276 SLP node only if it built successfully.
31277 (vect_analyze_slp_instance): Adjust.
31279 2016-01-14 Jeff Law <law@redhat.com>
31281 PR tree-optimization/69270
31282 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
31283 (record_edge_info): Use it. Convert boolean_{true,false}_node
31284 to the type of op0.
31286 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
31289 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
31290 use block_ultimate_origin
31291 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
31293 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31295 * doc/invoke.texi (Submodel Options): Rename section to
31296 "Machine-Dependent Options" to better reflect its content.
31297 Rewrite introductory text to remove archaic CPU names.
31300 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31302 * doc/invoke.texi (Code Gen Options): Move section up in file,
31303 before target-specific options. Update menu and option summary
31304 to reflect the new section ordering.
31306 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31308 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
31309 (C++ Dialect Options): Add cross-reference to -std option.
31310 * doc/standards.texi (C++ Language): Document C++14 support.
31312 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31314 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
31315 for pack/unpack functions for __ibm128.
31316 (PACK_IF): Likewise.
31317 (UNPACK_IF): Likewise.
31319 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31320 support for __ibm128 pack/unpack functions.
31321 (rs6000_invalid_builtin): Likewise.
31322 (rs6000_init_builtins): Likewise.
31323 (rs6000_opt_masks): Likewise.
31325 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31326 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31328 (RS6000_BTM_COMMON): Likewise.
31330 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31331 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31332 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31333 128-bit floating point. Add support for the double values to be
31334 in Altivec registers for TF/IF packing and unpacking, but restrict
31335 TD packing sub-fields to be FPR registers. Don't allow overlapped
31336 register support for packing. Allow pack inputs to be memory
31337 locations. Don't build generator functions for unpack<mode>_dm
31338 and unpack<mode>_nodm.
31339 (unpack<mode>_dm): Likewise.
31340 (unpack<mode>_nodm): Likewise.
31341 (pack<mode>): Likewise.
31343 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31344 built-in functions to pack/unpack explicit __ibm128 values.
31345 (__builtin_unpack_ibm128): Likewise.
31347 * doc/extend.texi (PowerPC Built-in Functions): Document
31348 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31350 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
31353 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31354 Add new arg loc and pass it down as context.
31355 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31356 to the location to use for the warning.
31357 (check_function_arguments): New arg loc. All callers changed. Pass
31358 it to check_function_nonnull.
31359 * c-common.h (check_function_arguments): Adjust declaration.
31361 2016-01-13 Jakub Jelinek <jakub@redhat.com>
31363 PR tree-optimization/69156
31364 * gimple.c (validate_type): Removed.
31365 (gimple_builtin_call_types_compatible_p): Use
31366 useless_type_conversion_p instead of validate_type.
31367 * value-prof.c (gimple_stringop_fixed_value): Fold
31368 icall_size to correct type.
31370 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31372 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31375 2016-01-13 Richard Henderson <rth@redhat.com>
31378 * target.def (builtin_tm_load, builtin_tm_store): Remove.
31379 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31380 (ix86_builtin_tm_store): Remove.
31381 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31382 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31383 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31384 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31385 * doc/tm.texi: Rebuild.
31387 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31388 (BUILT_IN_TM_MEMCPY_RTWN): New.
31389 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31390 fallback from vector to integer helpers.
31391 (build_tm_load): Handle vector types directly, instead of
31393 (build_tm_store): Likewise.
31394 (expand_assign_tm): Prepare for register types not handled by
31395 the above. Copy them to memory and use memcpy.
31396 * tree.c (tm_define_builtin): New.
31397 (find_tm_vector_type): New.
31398 (build_tm_vector_builtins): New.
31399 (build_common_builtin_nodes): Call it.
31401 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
31403 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31404 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
31406 2016-01-13 Tom de Vries <tom@codesourcery.com>
31408 PR tree-optimization/69169
31409 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31410 handled_struct_type param.
31411 (create_variable_info_for, intra_create_variable_infos): Call
31412 create_variable_info_for_1 with extra arg.
31414 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
31416 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31417 and "armv8.1-a+crc" entries.
31419 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
31422 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31423 Change first operand predicate from register_or_constm1_operand
31424 to register_operand.
31425 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31426 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31427 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31428 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31429 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31430 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31431 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31432 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31433 comparison with constm1_rtx from vec_prefetch_gen part.
31435 2016-01-13 Richard Biener <rguenther@suse.de>
31437 PR tree-optimization/69013
31438 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31439 Exchange assert for a test.
31441 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31444 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31446 2016-01-13 Richard Biener <rguenther@suse.de>
31448 PR tree-optimization/69242
31449 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31450 assert with a check.
31452 2016-01-13 Richard Biener <rguenther@suse.de>
31454 PR tree-optimization/69186
31455 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31456 Properly guard vect_update_misalignment_for_peel call.
31458 2016-01-12 Jeff Law <law@redhat.com>
31460 PR tree-optimization/pr67755
31461 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31462 "need_profile_correction".
31463 (thread_block_1): Initialize new field to false by default. If we
31464 have multiple thread paths through a common joiner to different
31465 final targets, then set new field to true.
31466 (compute_path_counts): Only do count adjustment when it's really
31469 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31471 * doc/invoke.texi (Spec Files): Move section down in file, past
31472 all command-line option descriptions.
31474 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31476 PR middle-end/54809
31477 * doc/gty.texi: Remove documentation of mark_hook.
31478 * gengtype.c (struct write_types_data): Remove code to support
31479 mark_hook attribute.
31480 (walk_type): Likewise.
31481 (write_func_for_structure): Likewise.
31483 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31485 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31486 Directory Options, and -specs= to Overall Options.
31487 (Overall Options): Adjust similarly. Reorder to group related
31488 options together. Make -specs= cross-reference the spec file details.
31489 (Directory Options): Adjust similarly.
31491 2016-01-12 Jeff Law <law@redhat.com>
31493 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31495 2016-01-12 Olivier Hainque <hainque@adacore.com>
31497 * gcc.c (spec_undefvar_allowed): New global.
31498 (process_command): Set to true when running for --version or --help,
31500 (getenv_spec_function): When the variable is not defined, use the
31501 variable name as the variable value if we're allowed not to issue
31504 2016-01-12 Bin Cheng <bin.cheng@arm.com>
31506 PR tree-optimization/68911
31507 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31508 information computed for expression "init + nit * step".
31510 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31512 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
31513 about name of GCC executable. Remove deleted node from menu.
31514 (Directory Options) <-B>: Remove cross-reference to deleted node.
31515 (Target Options): Delete section.
31517 2016-01-12 Christian Bruel <christian.bruel@st.com>
31520 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31521 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31523 2016-01-12 Jakub Jelinek <jakub@redhat.com>
31526 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31527 aligned_mem is properly set for AVX512-VL floating point masked
31531 * ifcvt.c (cond_exec_process_if_block): When removing the last
31532 insn from then_bb, remove also any possible barriers that follow it.
31534 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
31538 * config/i386/iamcu.h (SIZE_TYPE): New macro.
31539 (PTRDIFF_TYPE): Likewise.
31540 (WCHAR_TYPE): Likewise.
31541 (WCHAR_TYPE_SIZE): Likewise.
31542 (STDINT_LONG32): Likewise.
31544 2016-01-12 Richard Biener <rguenther@suse.de>
31546 PR tree-optimization/69053
31547 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31548 convert initial value for cond reductions.
31550 2016-01-12 Richard Biener <rguenther@suse.de>
31552 PR tree-optimization/69007
31553 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31554 widen_sum after dot_prod and sad.
31556 2016-01-12 Richard Biener <rguenther@suse.de>
31558 PR tree-optimization/69168
31559 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31560 pattern stmt SLP type.
31561 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31562 end up unused so cope with that case.
31564 2016-01-12 Richard Biener <rguenther@suse.de>
31566 PR tree-optimization/69157
31567 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31568 stmts def type only during analyze phase.
31569 (vectorizable_call): Likewise.
31570 (vectorizable_simd_clone_call): Likewise.
31571 (vectorizable_conversion): Likewise.
31572 (vectorizable_assignment): Likewise.
31573 (vectorizable_shift): Likewise.
31574 (vectorizable_operation): Likewise.
31575 (vectorizable_store): Likewise.
31576 (vectorizable_load): Likewise.
31578 2016-01-12 Richard Biener <rguenther@suse.de>
31580 PR tree-optimization/69174
31581 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31583 (vectorizable_load): Properly compute the number of loads needed
31584 for permuted strided SLP loads and do not spuriously assign
31585 to SLP_TREE_VEC_STMTS.
31587 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
31589 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31590 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31591 (MD_EXEC_PREFIX): Remove.
31592 (MD_STARTFILE_PREFIX) Removee.
31593 (FILE_NAME_ABSOLUTE_P): Remove.
31594 (CPP_SPEC): Do not read macros from sys/version.h.
31595 (LINK_COMMAND_SPEC): Remove.
31596 (LOCAL_INCLUDE_DIR): Remove.
31597 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31598 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31599 (POST_LINK_SPEC): Define to invoke stubify after linker
31600 (LIBSTDCXX): Remove define
31601 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31602 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31603 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31604 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31605 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31606 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31607 (i386_djgpp_asm_named_section): Add propotype of new procedure
31609 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31610 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31611 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31612 in config/i386/djgpp.h).
31613 (STANDARD_STARTFILE_PREFIX_2): Define identical to
31614 STANDARD_STARTFILE_PREFIX_1.
31615 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31616 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31617 installation errors.
31618 (MAX_OFILE_ALIGNMENT): Define to 128.
31619 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
31621 * config/i386/djgpp.c: New file. Add implementation of
31622 i386_djgpp_asm_named_section.
31624 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
31626 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
31627 Add rule for building djgpp.o.
31629 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31631 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
31632 (rtx_is_swappable_p): Reductions are swappable.
31633 (insn_is_swappable_p): V2DF reductions are swappable.
31635 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
31637 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
31638 reloads for other unsupported memory operands.
31640 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31641 Jim Wilson <jim.wilson@linaro.org>
31644 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
31645 copy_to_mode_reg instead of force_reg.
31647 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31650 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
31651 TARGET_80387 is true.
31653 2016-01-11 Jakub Jelinek <jakub@redhat.com>
31656 * lra-eliminations.c (move_plus_up): Only move plus up
31657 if subreg of the constant can be simplified into constant
31658 and use the simplified subreg of the constant instead of
31659 the original constant.
31661 * fold-const.c (fold_convertible_p): Don't return true
31662 for conversion of VECTOR_TYPE to same sized integral type.
31663 (fold_convert_loc): Fix up formatting. Fold conversion of
31664 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
31665 instead of NOP_EXPR.
31667 PR tree-optimization/69214
31668 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
31669 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31672 PR tree-optimization/69207
31673 * tree-vect-slp.c (vect_get_constant_vectors): For
31674 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
31675 fold_convertible_p to vector_type's element type, and always
31676 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
31678 2016-01-11 Richard Biener <rguenther@suse.de>
31680 PR tree-optimization/69173
31681 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
31682 fixup the cycle if all stmts are in a pattern.
31684 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
31686 PR middle-end/68999
31687 * alias.c (base_alias_check): Move check for addresses with
31688 alignment ANDs before the call for compare_base_decls.
31689 (memrefs_conflict_p): Return -1 for different decls
31690 that went through alignment adjustments.
31692 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31694 PR rtl-optimization/68796
31695 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
31696 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
31697 and QImode comparisons against zero with CC_NZmode.
31698 * config/aarch64/iterators.md (short_mask): New mode_attr.
31700 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31702 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
31703 (<avx512>_store<mode>_mask): Likewise.
31705 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
31706 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31708 PR rtl-optimization/68841
31709 * ifcvt.c (struct noce_if_info): Add orig_x field.
31710 (bbs_ok_for_cmove_arith): Add to_rename parameter.
31711 Don't record conflicts on to_rename if it's present.
31712 Allow memory destinations in sets.
31713 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
31714 blocks, passing orig_x to the checks.
31715 (noce_process_if_block): Set if_info->orig_x appropriately.
31717 2016-01-11 Tom de Vries <tom@codesourcery.com>
31719 PR tree-optimization/69069
31720 * tree-parloops.c (create_parallel_loop): Add missing phi args.
31722 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
31724 PR rtl-optimization/68920
31725 * config/i386/i386.c (ix86_option_override_internal): Restrict number
31726 of conditional moves for RTL if-conversion to 1 for
31727 TARGET_ONE_IF_CONV_INSN.
31728 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
31729 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
31730 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
31731 parameter to restirct number of conditional moves for
31733 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
31734 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
31737 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
31740 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
31741 onepart vars. Fix typo in comment. Fix reversed condition in
31743 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
31746 * var-tracking.c (dump_onepart_variable_differences): New.
31747 (dataflow_set_different): If a detailed dump is requested,
31748 delay early returns and dump differences between onepart
31749 variables present before and after, and added variables.
31751 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
31754 * expr.c (expand_expr_real_1): For boolean vector constants
31755 with a scalar mode use const_scalar_mask_from_tree.
31756 (const_scalar_mask_from_tree): New.
31757 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
31758 assigned to a mask type to handle constants.
31760 2016-01-11 Martin Jambor <mjambor@suse.cz>
31763 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
31764 useless parameters if we cannot change function signature.
31766 2016-01-11 Martin Jambor <mjambor@suse.cz>
31769 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
31772 2016-01-11 Tom de Vries <tom@codesourcery.com>
31774 PR tree-optimization/69109
31775 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
31778 2016-01-11 Tom de Vries <tom@codesourcery.com>
31780 PR tree-optimization/69108
31781 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
31782 res is not used in a phi.
31784 2016-01-11 Yury Gribov <y.gribov@samsung.com>
31787 * common.opt (frandom-seed): Fix parameter name.
31788 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
31790 2016-01-11 Tom de Vries <tom@codesourcery.com>
31792 PR tree-optimization/69058
31793 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
31796 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
31798 * config/arc/arc.opt (mdiv-rem): Add period to the end.
31799 (mcode-density): Likewise.
31801 2016-01-10 Tom de Vries <tom@codesourcery.com>
31803 PR tree-optimization/69062
31804 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
31805 (parallelize_loops): Don't paralelize loop that has phi with address
31808 2016-01-10 Tom de Vries <tom@codesourcery.com>
31810 PR tree-optimization/69039
31811 * tree-parloops.c (try_create_reduction_list): Only allow single exit
31814 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
31816 PR middle-end/68743
31817 * match.pd: Require target has function_c99_misc before doing
31818 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
31820 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
31822 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
31824 * configure: Regenerate.
31826 2016-01-09 Jakub Jelinek <jakub@redhat.com>
31828 PR middle-end/50865
31829 PR tree-optimization/69097
31830 * fold-const.h (expr_not_equal_to): New prototype.
31831 * fold-const.c: Include stringpool.h and tree-ssanames.h.
31832 (expr_not_equal_to): New function.
31833 * match.pd (X % -Y is the same as X % Y): Don't optimize
31834 unless X is known not to be equal to minimum or Y is known
31835 not to be equal to -1.
31836 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
31837 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
31838 (simplify_stmt_using_ranges): Adjust caller.
31839 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
31840 substitute_and_fold.
31842 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
31844 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
31847 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31849 PR tree-optimization/69167
31850 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
31851 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
31853 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
31855 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31856 Richard Biener <rguenther@suse.de>
31858 PR tree-optimization/68707
31859 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
31860 instances that can be handled via vect_load_lanes.
31862 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
31864 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
31865 if we can't determine address equivalence.
31866 * alias.c (compare_base_decl): Update for changed return value of
31867 symtab_node::equal_address_to.
31869 2016-01-08 Jason Merrill <jason@redhat.com>
31873 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
31874 * expr.c (store_field): Not here.
31875 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
31876 call with TREE_ADDRESSABLE type.
31877 * tree-cfg.c (verify_gimple_call): Adjust.
31879 2016-01-08 Olivier Hainque <hainque@adacore.com>
31881 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
31884 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31886 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
31887 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
31888 (reduc_smin_v2sf): Rename to...
31889 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
31890 (reduc_splus_v2sf): Rename to...
31891 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
31893 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31895 PR tree-optimization/69162
31896 * gimplify.c (gimplify_va_arg_expr): Encode original type of
31897 valist argument in another argument.
31898 (gimplify_modify_expr): Adjust for the above change. Cleanup.
31899 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
31900 to determine the va_list type, build a MEM_REF instead of
31901 build_fold_indirect_ref.
31903 PR tree-optimization/69172
31904 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
31907 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
31909 PR tree-optimization/67781
31910 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
31911 and cmpnop in two steps: first the ones not accessed in original
31912 gimple expression in a endian independent way and then the ones not
31913 accessed in the final result in an endian-specific way.
31915 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31917 PR tree-optimization/69083
31918 * tree-vect-slp.c (vect_get_constant_vectors): For
31919 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
31920 element type. If op is fold_convertible_p to vector_type's element
31921 type, use NOP_EXPR instead of VCE.
31923 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
31925 PR rtl-optimization/67778
31926 PR rtl-optimization/68634
31927 PR rtl-optimization/68909
31928 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
31929 block from the stack until done with it. Remove a superfluous
31930 bitmap set. Remove a superfluous bitmap test.
31932 2016-01-07 Martin Sebor <msebor@redhat.com>
31935 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
31936 constraint on the type of arguments.
31938 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
31940 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
31941 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
31942 unaligned_access on the gcc_options set.
31943 * config/arm/arm.c (arm_option_override_internal): Use
31944 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
31946 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31949 * config/i386/i386.c (ix86_frame_pointer_required): Enable
31950 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
31952 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31955 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
31958 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31959 depending on frame_pointer_needed before remaining integer and SSE
31960 registers are saved.
31962 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
31965 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
31967 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
31970 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
31971 Use the "xBm" constraint.
31972 (float<sseintvecmodelower><mode>2<mask_name><round_name):
31974 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
31975 (sse_cvtsi2ssq<round_name>): Likewise.
31976 (sse_cvtss2si<round_name>): Likewise.
31977 (sse_cvtss2siq<round_name>): Likewise.
31978 (sse2_cvtsi2sdq<round_name>): Likewise.
31979 (sse2_cvtsd2si<round_name>): Likewise.
31980 (sse2_cvtsd2siq<round_name>): Likewise.
31981 * config/i386/subst.md (round_nimm_scalar_predicate): New
31984 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
31986 PR middle-end/67639
31987 * varasm.c (make_decl_rtl): Mark invalid register vars as
31990 PR rtl-optimization/66206
31991 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
31992 All callers changed.
31994 2016-01-07 Jakub Jelinek <jakub@redhat.com>
31996 PR tree-optimization/69141
31997 * tree-ssa-pre.c: Include langhooks.h.
31998 (eliminate_dom_walker::before_dom_children): Use
31999 lang_hooks.decl_printable_name instead of
32000 cgraph_node::get ()->name ().
32002 PR middle-end/68960
32003 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
32004 it and DECL_ALIGN too.
32006 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
32008 * config/mips/mips-ftypes.def: Sort to lexicographical order.
32010 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32013 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32014 depending on frame_pointer_needed before remaining integer and SSE
32015 registers are saved.
32017 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32019 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
32020 mode iterator with VSX_M2.
32021 (*p9_vecstore_<mode>): Likewise.
32022 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
32023 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
32024 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
32025 (define_split for VSX_LE128 stores): Likewise.
32026 (define_peephole2 for TImode LE swaps): Likewise.
32027 (define_split for VSX_LE128 post-reload stores): Likewise.
32029 2016-01-06 Marek Polacek <polacek@redhat.com>
32032 * convert.c (convert_to_integer_1): Adjust call to
32033 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
32034 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
32035 EXPR instead of ARG.
32036 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
32038 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32041 * doc/extend.texi (RL78 Variable Attributes): New section.
32043 2016-01-05 Marek Polacek <polacek@redhat.com>
32046 * builtins.c (get_memmodel): Use expansion point location rather than
32047 the input location. Call warning_at rather than warning.
32048 (expand_builtin_atomic_compare_exchange): Likewise.
32049 (expand_builtin_atomic_load): Likewise.
32050 (expand_builtin_atomic_store): Likewise.
32051 (expand_builtin_atomic_clear): Likewise.
32053 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32056 * config/i386/i386.c (ix86_expand_vector_logical_operator):
32057 Replace nonimmediate_operand with vector_operand.
32058 * config/i386/predicates.md (vector_operand): New predicate.
32059 (general_vector_operand): Replace nonimmediate_operand with
32061 * config/i386/sse.md: Replace nonimmediate_operand with
32062 vector_operand and m constraint with Bm constraint on SSE
32063 patterns with 16-byte memory operand.
32064 * config/i386/subst.md (round_nimm_predicate): Replace
32065 nonimmediate_operand with vector_operand.
32066 (round_saeonly_nimm_predicate): Likewise.
32067 (round_saeonly_nimm_scalar_predicate): New.
32069 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32072 * config/i386/constraints.md (Bm): New constraint.
32073 * config/i386/predicates.md (vector_memory_operand): New
32075 * config/i386/sse.md: Replace xm with xBm in plusminus and
32076 any_logic patterns.
32078 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32081 * doc/extend.texi (V850 Function Attributes): New section.
32082 (V850 Variable Attributes): New section.
32084 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32087 * doc/extend.texi (MicroBlaze Function Attributes): Document
32088 interrupt_handler and fast_interrupt attributes.
32090 2016-01-05 Sergei Trofimovich <siarheit@google.com>
32093 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
32094 for local symbolic operands.
32095 * config/ia64/predicates.md (local_symbolic_operand64): New
32098 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32100 PR rtl-optimization/68651
32101 * combine.c (combine_simplify_rtx): Canonicalize x + x into
32104 2016-01-05 Nathan Sidwell <nathan@acm.org>
32106 * alias.c (compare_base_decls): Use symtab_node::get.
32108 2016-01-05 Nick Clifton <nickc@redhat.com>
32111 * ira-costs.c (copy_cost): Initialise the t_icode field of the
32112 secondary_reload_info structure.
32115 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
32116 decls if weak support is available.
32118 2016-01-04 Martin Sebor <msebor@redhat.com>
32120 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
32122 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32124 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
32125 OPTION_MASK_P9_DFORM.
32127 * config/rs6000/constraints.md (wo constraint): New constraint for
32130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
32132 (rs6000_init_hard_regno_mode_ok): Likewise.
32134 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
32137 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
32138 expanders not to have constraints. Add support for ISA 3.0 xxperm
32139 instruction. Add support for fusing xxlor with xxperm.
32140 (altivec_vperm_<mode>_internal): Likewise.
32141 (altivec_vperm_v8hiv16qi): Likewise.
32142 (altivec_vperm_<mode>v16q): Likewise.
32143 (altivec_vperm_<mode>_uns): Likewise.
32144 (vperm_v8hiv4si): Likewise.
32145 (vperm_v16qiv8hi): Likewise.
32147 * doc/md.texi (RS/6000 constraints): Document wo constraint.
32149 2016-01-04 Jakub Jelinek <jakub@redhat.com>
32151 Update copyright years.
32153 * gcc.c (process_command): Update copyright notice dates.
32154 * gcov-dump.c (print_version): Ditto.
32155 * gcov.c (print_version): Ditto.
32156 * gcov-tool.c (print_version): Ditto.
32157 * gengtype.c (create_file): Ditto.
32158 * doc/cpp.texi: Bump @copying's copyright year.
32159 * doc/cppinternals.texi: Ditto.
32160 * doc/gcc.texi: Ditto.
32161 * doc/gccint.texi: Ditto.
32162 * doc/gcov.texi: Ditto.
32163 * doc/install.texi: Ditto.
32164 * doc/invoke.texi: Ditto.
32166 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32168 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
32169 modes larger than TImode as TImode if NEON is not enabled.
32171 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32174 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
32175 mode for %f0-%f31 only if TARGET_FPU.
32177 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32180 * config/sparc/sparc.c (scan_record_type): Take into account subfields
32181 to compute the PACKED_P predicate.
32182 (function_arg_record_value): Minor tweaks.
32184 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32186 * doc/install.texi (--with-multilib-list): Describe the meaning of the
32187 option for arm*-*-* targets.
32189 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
32191 * doc/extend.texi (Common Function Attributes): Move docs for
32192 MSP430-specific attributes to....
32193 (MSP430 Function Attributes): ...here. Delete the redundant
32194 entries and copy-edit the remaining text.
32195 (MSP430 Variable Attributes): Use uniform format for index
32196 entries and add a cross-reference to the corresponding function
32199 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
32201 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
32203 (x86 Options): Likewise.
32205 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32209 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
32210 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
32211 to corresponding attribute.
32213 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32215 * doc/extend.texi (Common Function Attributes) <noplt>: Move
32216 to correct alphabetization of table. Copy-edit and correct
32218 <stack_protect>: Likewise.
32219 <target_clones>: Likewise.
32221 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
32222 Correct punctuation.
32223 (Code Gen Options) <-fno-plt>: Copy-edit.
32225 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32228 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
32229 SI values. Explicitly convert SI to DI and vice-versa.
32231 2016-01-01 Jakub Jelinek <jakub@redhat.com>
32233 PR tree-optimization/69070
32234 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
32235 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
32238 * ubsan.c (ubsan_instrument_float_cast): Call
32239 initialize_sanitizer_builtins.
32242 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
32244 Copyright (C) 2016 Free Software Foundation, Inc.
32246 Copying and distribution of this file, with or without modification,
32247 are permitted in any medium without royalty provided the copyright
32248 notice and this notice are preserved.